Skip to content

Commit 15e1b33

Browse files
chore: remove unused imports (#385)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 459515628 Source-Link: googleapis/googleapis@ed9ca3b Source-Link: https://github.com/googleapis/googleapis-gen/commit/94137b9ca03191691de40fc05eef6f695e490b76 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTQxMzdiOWNhMDMxOTE2OTFkZTQwZmMwNWVlZjZmNjk1ZTQ5MGI3NiJ9
1 parent 5953377 commit 15e1b33

File tree

6 files changed

+52
-70
lines changed

6 files changed

+52
-70
lines changed

java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java

+9-14
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4444

4545
static {
4646
java.lang.String[] descriptorData = {
47-
"\n\030google/api/billing.proto\022\ngoogle.api\032\027"
48-
+ "google/api/metric.proto\"\223\001\n\007Billing\022E\n\025c"
49-
+ "onsumer_destinations\030\010 \003(\0132&.google.api."
50-
+ "Billing.BillingDestination\032A\n\022BillingDes"
51-
+ "tination\022\032\n\022monitored_resource\030\001 \001(\t\022\017\n\007"
52-
+ "metrics\030\002 \003(\tBn\n\016com.google.apiB\014Billing"
53-
+ "ProtoP\001ZEgoogle.golang.org/genproto/goog"
54-
+ "leapis/api/serviceconfig;serviceconfig\242\002"
55-
+ "\004GAPIb\006proto3"
47+
"\n\030google/api/billing.proto\022\ngoogle.api\"\223"
48+
+ "\001\n\007Billing\022E\n\025consumer_destinations\030\010 \003("
49+
+ "\0132&.google.api.Billing.BillingDestinatio"
50+
+ "n\032A\n\022BillingDestination\022\032\n\022monitored_res"
51+
+ "ource\030\001 \001(\t\022\017\n\007metrics\030\002 \003(\tBn\n\016com.goog"
52+
+ "le.apiB\014BillingProtoP\001ZEgoogle.golang.or"
53+
+ "g/genproto/googleapis/api/serviceconfig;"
54+
+ "serviceconfig\242\002\004GAPIb\006proto3"
5655
};
5756
descriptor =
5857
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
59-
descriptorData,
60-
new com.google.protobuf.Descriptors.FileDescriptor[] {
61-
com.google.api.MetricProto.getDescriptor(),
62-
});
58+
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
6359
internal_static_google_api_Billing_descriptor = getDescriptor().getMessageTypes().get(0);
6460
internal_static_google_api_Billing_fieldAccessorTable =
6561
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
@@ -75,7 +71,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
7571
new java.lang.String[] {
7672
"MonitoredResource", "Metrics",
7773
});
78-
com.google.api.MetricProto.getDescriptor();
7974
}
8075

8176
// @@protoc_insertion_point(outer_class_scope)

java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() {
18471847
*
18481848
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
18491849
*
1850-
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=173
1850+
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=170
18511851
* @return Whether the configVersion field is set.
18521852
*/
18531853
@java.lang.Override
@@ -1866,7 +1866,7 @@ public boolean hasConfigVersion() {
18661866
*
18671867
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
18681868
*
1869-
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=173
1869+
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=170
18701870
* @return The configVersion.
18711871
*/
18721872
@java.lang.Override
@@ -8549,7 +8549,7 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() {
85498549
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
85508550
*
85518551
* @deprecated google.api.Service.config_version is deprecated. See
8552-
* google/api/service.proto;l=173
8552+
* google/api/service.proto;l=170
85538553
* @return Whether the configVersion field is set.
85548554
*/
85558555
@java.lang.Deprecated
@@ -8568,7 +8568,7 @@ public boolean hasConfigVersion() {
85688568
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
85698569
*
85708570
* @deprecated google.api.Service.config_version is deprecated. See
8571-
* google/api/service.proto;l=173
8571+
* google/api/service.proto;l=170
85728572
* @return The configVersion.
85738573
*/
85748574
@java.lang.Deprecated

java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ public interface ServiceOrBuilder
10491049
*
10501050
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
10511051
*
1052-
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=173
1052+
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=170
10531053
* @return Whether the configVersion field is set.
10541054
*/
10551055
@java.lang.Deprecated
@@ -1065,7 +1065,7 @@ public interface ServiceOrBuilder
10651065
*
10661066
* <code>.google.protobuf.UInt32Value config_version = 20 [deprecated = true];</code>
10671067
*
1068-
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=173
1068+
* @deprecated google.api.Service.config_version is deprecated. See google/api/service.proto;l=170
10691069
* @return The configVersion.
10701070
*/
10711071
@java.lang.Deprecated

java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java

+37-45
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4646
+ "e/api/context.proto\032\030google/api/control."
4747
+ "proto\032\036google/api/documentation.proto\032\031g"
4848
+ "oogle/api/endpoint.proto\032\025google/api/htt"
49-
+ "p.proto\032\026google/api/label.proto\032\024google/"
50-
+ "api/log.proto\032\030google/api/logging.proto\032"
51-
+ "\027google/api/metric.proto\032#google/api/mon"
52-
+ "itored_resource.proto\032\033google/api/monito"
53-
+ "ring.proto\032\026google/api/quota.proto\032\031goog"
54-
+ "le/api/resource.proto\032\034google/api/source"
55-
+ "_info.proto\032!google/api/system_parameter"
56-
+ ".proto\032\026google/api/usage.proto\032\031google/p"
57-
+ "rotobuf/any.proto\032\031google/protobuf/api.p"
58-
+ "roto\032\032google/protobuf/type.proto\032\036google"
59-
+ "/protobuf/wrappers.proto\"\332\007\n\007Service\022\014\n\004"
60-
+ "name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\033\n\023producer_pr"
61-
+ "oject_id\030\026 \001(\t\022\n\n\002id\030! \001(\t\022\"\n\004apis\030\003 \003(\013"
62-
+ "2\024.google.protobuf.Api\022$\n\005types\030\004 \003(\0132\025."
63-
+ "google.protobuf.Type\022$\n\005enums\030\005 \003(\0132\025.go"
64-
+ "ogle.protobuf.Enum\0220\n\rdocumentation\030\006 \001("
65-
+ "\0132\031.google.api.Documentation\022$\n\007backend\030"
66-
+ "\010 \001(\0132\023.google.api.Backend\022\036\n\004http\030\t \001(\013"
67-
+ "2\020.google.api.Http\022 \n\005quota\030\n \001(\0132\021.goog"
68-
+ "le.api.Quota\0222\n\016authentication\030\013 \001(\0132\032.g"
69-
+ "oogle.api.Authentication\022$\n\007context\030\014 \001("
70-
+ "\0132\023.google.api.Context\022 \n\005usage\030\017 \001(\0132\021."
71-
+ "google.api.Usage\022\'\n\tendpoints\030\022 \003(\0132\024.go"
72-
+ "ogle.api.Endpoint\022$\n\007control\030\025 \001(\0132\023.goo"
73-
+ "gle.api.Control\022\'\n\004logs\030\027 \003(\0132\031.google.a"
74-
+ "pi.LogDescriptor\022-\n\007metrics\030\030 \003(\0132\034.goog"
75-
+ "le.api.MetricDescriptor\022D\n\023monitored_res"
76-
+ "ources\030\031 \003(\0132\'.google.api.MonitoredResou"
77-
+ "rceDescriptor\022$\n\007billing\030\032 \001(\0132\023.google."
78-
+ "api.Billing\022$\n\007logging\030\033 \001(\0132\023.google.ap"
79-
+ "i.Logging\022*\n\nmonitoring\030\034 \001(\0132\026.google.a"
80-
+ "pi.Monitoring\0227\n\021system_parameters\030\035 \001(\013"
81-
+ "2\034.google.api.SystemParameters\022+\n\013source"
82-
+ "_info\030% \001(\0132\026.google.api.SourceInfo\0228\n\016c"
83-
+ "onfig_version\030\024 \001(\0132\034.google.protobuf.UI"
84-
+ "nt32ValueB\002\030\001Bn\n\016com.google.apiB\014Service"
85-
+ "ProtoP\001ZEgoogle.golang.org/genproto/goog"
86-
+ "leapis/api/serviceconfig;serviceconfig\242\002"
87-
+ "\004GAPIb\006proto3"
49+
+ "p.proto\032\024google/api/log.proto\032\030google/ap"
50+
+ "i/logging.proto\032\027google/api/metric.proto"
51+
+ "\032#google/api/monitored_resource.proto\032\033g"
52+
+ "oogle/api/monitoring.proto\032\026google/api/q"
53+
+ "uota.proto\032\034google/api/source_info.proto"
54+
+ "\032!google/api/system_parameter.proto\032\026goo"
55+
+ "gle/api/usage.proto\032\031google/protobuf/api"
56+
+ ".proto\032\032google/protobuf/type.proto\032\036goog"
57+
+ "le/protobuf/wrappers.proto\"\332\007\n\007Service\022\014"
58+
+ "\n\004name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\033\n\023producer_"
59+
+ "project_id\030\026 \001(\t\022\n\n\002id\030! \001(\t\022\"\n\004apis\030\003 \003"
60+
+ "(\0132\024.google.protobuf.Api\022$\n\005types\030\004 \003(\0132"
61+
+ "\025.google.protobuf.Type\022$\n\005enums\030\005 \003(\0132\025."
62+
+ "google.protobuf.Enum\0220\n\rdocumentation\030\006 "
63+
+ "\001(\0132\031.google.api.Documentation\022$\n\007backen"
64+
+ "d\030\010 \001(\0132\023.google.api.Backend\022\036\n\004http\030\t \001"
65+
+ "(\0132\020.google.api.Http\022 \n\005quota\030\n \001(\0132\021.go"
66+
+ "ogle.api.Quota\0222\n\016authentication\030\013 \001(\0132\032"
67+
+ ".google.api.Authentication\022$\n\007context\030\014 "
68+
+ "\001(\0132\023.google.api.Context\022 \n\005usage\030\017 \001(\0132"
69+
+ "\021.google.api.Usage\022\'\n\tendpoints\030\022 \003(\0132\024."
70+
+ "google.api.Endpoint\022$\n\007control\030\025 \001(\0132\023.g"
71+
+ "oogle.api.Control\022\'\n\004logs\030\027 \003(\0132\031.google"
72+
+ ".api.LogDescriptor\022-\n\007metrics\030\030 \003(\0132\034.go"
73+
+ "ogle.api.MetricDescriptor\022D\n\023monitored_r"
74+
+ "esources\030\031 \003(\0132\'.google.api.MonitoredRes"
75+
+ "ourceDescriptor\022$\n\007billing\030\032 \001(\0132\023.googl"
76+
+ "e.api.Billing\022$\n\007logging\030\033 \001(\0132\023.google."
77+
+ "api.Logging\022*\n\nmonitoring\030\034 \001(\0132\026.google"
78+
+ ".api.Monitoring\0227\n\021system_parameters\030\035 \001"
79+
+ "(\0132\034.google.api.SystemParameters\022+\n\013sour"
80+
+ "ce_info\030% \001(\0132\026.google.api.SourceInfo\0228\n"
81+
+ "\016config_version\030\024 \001(\0132\034.google.protobuf."
82+
+ "UInt32ValueB\002\030\001Bn\n\016com.google.apiB\014Servi"
83+
+ "ceProtoP\001ZEgoogle.golang.org/genproto/go"
84+
+ "ogleapis/api/serviceconfig;serviceconfig"
85+
+ "\242\002\004GAPIb\006proto3"
8886
};
8987
descriptor =
9088
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -98,18 +96,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
9896
com.google.api.DocumentationProto.getDescriptor(),
9997
com.google.api.EndpointProto.getDescriptor(),
10098
com.google.api.HttpProto.getDescriptor(),
101-
com.google.api.LabelProto.getDescriptor(),
10299
com.google.api.LogProto.getDescriptor(),
103100
com.google.api.LoggingProto.getDescriptor(),
104101
com.google.api.MetricProto.getDescriptor(),
105102
com.google.api.MonitoredResourceProto.getDescriptor(),
106103
com.google.api.MonitoringProto.getDescriptor(),
107104
com.google.api.QuotaProto.getDescriptor(),
108-
com.google.api.ResourceProto.getDescriptor(),
109105
com.google.api.SourceInfoProto.getDescriptor(),
110106
com.google.api.SystemParameterProto.getDescriptor(),
111107
com.google.api.UsageProto.getDescriptor(),
112-
com.google.protobuf.AnyProto.getDescriptor(),
113108
com.google.protobuf.ApiProto.getDescriptor(),
114109
com.google.protobuf.TypeProto.getDescriptor(),
115110
com.google.protobuf.WrappersProto.getDescriptor(),
@@ -153,18 +148,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
153148
com.google.api.DocumentationProto.getDescriptor();
154149
com.google.api.EndpointProto.getDescriptor();
155150
com.google.api.HttpProto.getDescriptor();
156-
com.google.api.LabelProto.getDescriptor();
157151
com.google.api.LogProto.getDescriptor();
158152
com.google.api.LoggingProto.getDescriptor();
159153
com.google.api.MetricProto.getDescriptor();
160154
com.google.api.MonitoredResourceProto.getDescriptor();
161155
com.google.api.MonitoringProto.getDescriptor();
162156
com.google.api.QuotaProto.getDescriptor();
163-
com.google.api.ResourceProto.getDescriptor();
164157
com.google.api.SourceInfoProto.getDescriptor();
165158
com.google.api.SystemParameterProto.getDescriptor();
166159
com.google.api.UsageProto.getDescriptor();
167-
com.google.protobuf.AnyProto.getDescriptor();
168160
com.google.protobuf.ApiProto.getDescriptor();
169161
com.google.protobuf.TypeProto.getDescriptor();
170162
com.google.protobuf.WrappersProto.getDescriptor();

java-common-protos/proto-google-common-protos/src/main/proto/google/api/billing.proto

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ syntax = "proto3";
1616

1717
package google.api;
1818

19-
import "google/api/metric.proto";
20-
2119
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
2220
option java_multiple_files = true;
2321
option java_outer_classname = "BillingProto";

java-common-protos/proto-google-common-protos/src/main/proto/google/api/service.proto

-3
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ import "google/api/control.proto";
2424
import "google/api/documentation.proto";
2525
import "google/api/endpoint.proto";
2626
import "google/api/http.proto";
27-
import "google/api/label.proto";
2827
import "google/api/log.proto";
2928
import "google/api/logging.proto";
3029
import "google/api/metric.proto";
3130
import "google/api/monitored_resource.proto";
3231
import "google/api/monitoring.proto";
3332
import "google/api/quota.proto";
34-
import "google/api/resource.proto";
3533
import "google/api/source_info.proto";
3634
import "google/api/system_parameter.proto";
3735
import "google/api/usage.proto";
38-
import "google/protobuf/any.proto";
3936
import "google/protobuf/api.proto";
4037
import "google/protobuf/type.proto";
4138
import "google/protobuf/wrappers.proto";

0 commit comments

Comments
 (0)