Skip to content

Commit fa7a07a

Browse files
chore: update googleapis commit at Wed Jan 29 02:22:50 UTC 2025 (#3593)
chore: update googleapis commit at Wed Jan 29 02:22:50 UTC 2025
1 parent 172d4da commit fa7a07a

File tree

5 files changed

+159
-19
lines changed

5 files changed

+159
-19
lines changed

generation_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9
1+
googleapis_commitish: 3cf61b2df20eace09e6336c23f9e08859c0d87ae
22
# the libraries are ordered with respect to library name, which is
33
# java-{library.library_name} or java-{library.api-shortname} when
44
# library.library_name is not defined.

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

+19-18
Original file line numberDiff line numberDiff line change
@@ -330,23 +330,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
330330
+ "oll_delay_multiplier\030\002 \001(\002\0221\n\016max_poll_d"
331331
+ "elay\030\003 \001(\0132\031.google.protobuf.Duration\0225\n"
332332
+ "\022total_poll_timeout\030\004 \001(\0132\031.google.proto"
333-
+ "buf.Duration\"+\n\030SelectiveGapicGeneration"
334-
+ "\022\017\n\007methods\030\001 \003(\t*\243\001\n\031ClientLibraryOrgan"
335-
+ "ization\022+\n\'CLIENT_LIBRARY_ORGANIZATION_U"
336-
+ "NSPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOT"
337-
+ "OS\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003G"
338-
+ "EO\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibrary"
339-
+ "Destination\022*\n&CLIENT_LIBRARY_DESTINATIO"
340-
+ "N_UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_M"
341-
+ "ANAGER\020\024:9\n\020method_signature\022\036.google.pr"
342-
+ "otobuf.MethodOptions\030\233\010 \003(\t:6\n\014default_h"
343-
+ "ost\022\037.google.protobuf.ServiceOptions\030\231\010 "
344-
+ "\001(\t:6\n\014oauth_scopes\022\037.google.protobuf.Se"
345-
+ "rviceOptions\030\232\010 \001(\t:8\n\013api_version\022\037.goo"
346-
+ "gle.protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tBi\n"
347-
+ "\016com.google.apiB\013ClientProtoP\001ZAgoogle.g"
348-
+ "olang.org/genproto/googleapis/api/annota"
349-
+ "tions;annotations\242\002\004GAPIb\006proto3"
333+
+ "buf.Duration\"Q\n\030SelectiveGapicGeneration"
334+
+ "\022\017\n\007methods\030\001 \003(\t\022$\n\034generate_omitted_as"
335+
+ "_internal\030\002 \001(\010*\243\001\n\031ClientLibraryOrganiz"
336+
+ "ation\022+\n\'CLIENT_LIBRARY_ORGANIZATION_UNS"
337+
+ "PECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS"
338+
+ "\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO"
339+
+ "\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibraryDe"
340+
+ "stination\022*\n&CLIENT_LIBRARY_DESTINATION_"
341+
+ "UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_MAN"
342+
+ "AGER\020\024:9\n\020method_signature\022\036.google.prot"
343+
+ "obuf.MethodOptions\030\233\010 \003(\t:6\n\014default_hos"
344+
+ "t\022\037.google.protobuf.ServiceOptions\030\231\010 \001("
345+
+ "\t:6\n\014oauth_scopes\022\037.google.protobuf.Serv"
346+
+ "iceOptions\030\232\010 \001(\t:8\n\013api_version\022\037.googl"
347+
+ "e.protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tBi\n\016c"
348+
+ "om.google.apiB\013ClientProtoP\001ZAgoogle.gol"
349+
+ "ang.org/genproto/googleapis/api/annotati"
350+
+ "ons;annotations\242\002\004GAPIb\006proto3"
350351
};
351352
descriptor =
352353
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -522,7 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
522523
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
523524
internal_static_google_api_SelectiveGapicGeneration_descriptor,
524525
new java.lang.String[] {
525-
"Methods",
526+
"Methods", "GenerateOmittedAsInternal",
526527
});
527528
methodSignature.internalInit(descriptor.getExtensions().get(0));
528529
defaultHost.internalInit(descriptor.getExtensions().get(1));

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

+113
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,29 @@ public com.google.protobuf.ByteString getMethodsBytes(int index) {
132132
return methods_.getByteString(index);
133133
}
134134

135+
public static final int GENERATE_OMITTED_AS_INTERNAL_FIELD_NUMBER = 2;
136+
private boolean generateOmittedAsInternal_ = false;
137+
/**
138+
*
139+
*
140+
* <pre>
141+
* Setting this to true indicates to the client generators that methods
142+
* that would be excluded from the generation should instead be generated
143+
* in a way that indicates these methods should not be consumed by
144+
* end users. How this is expressed is up to individual language
145+
* implementations to decide. Some examples may be: added annotations,
146+
* obfuscated identifiers, or other language idiomatic patterns.
147+
* </pre>
148+
*
149+
* <code>bool generate_omitted_as_internal = 2;</code>
150+
*
151+
* @return The generateOmittedAsInternal.
152+
*/
153+
@java.lang.Override
154+
public boolean getGenerateOmittedAsInternal() {
155+
return generateOmittedAsInternal_;
156+
}
157+
135158
private byte memoizedIsInitialized = -1;
136159

137160
@java.lang.Override
@@ -149,6 +172,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
149172
for (int i = 0; i < methods_.size(); i++) {
150173
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, methods_.getRaw(i));
151174
}
175+
if (generateOmittedAsInternal_ != false) {
176+
output.writeBool(2, generateOmittedAsInternal_);
177+
}
152178
getUnknownFields().writeTo(output);
153179
}
154180

@@ -166,6 +192,9 @@ public int getSerializedSize() {
166192
size += dataSize;
167193
size += 1 * getMethodsList().size();
168194
}
195+
if (generateOmittedAsInternal_ != false) {
196+
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, generateOmittedAsInternal_);
197+
}
169198
size += getUnknownFields().getSerializedSize();
170199
memoizedSize = size;
171200
return size;
@@ -182,6 +211,7 @@ public boolean equals(final java.lang.Object obj) {
182211
com.google.api.SelectiveGapicGeneration other = (com.google.api.SelectiveGapicGeneration) obj;
183212

184213
if (!getMethodsList().equals(other.getMethodsList())) return false;
214+
if (getGenerateOmittedAsInternal() != other.getGenerateOmittedAsInternal()) return false;
185215
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
186216
return true;
187217
}
@@ -197,6 +227,8 @@ public int hashCode() {
197227
hash = (37 * hash) + METHODS_FIELD_NUMBER;
198228
hash = (53 * hash) + getMethodsList().hashCode();
199229
}
230+
hash = (37 * hash) + GENERATE_OMITTED_AS_INTERNAL_FIELD_NUMBER;
231+
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateOmittedAsInternal());
200232
hash = (29 * hash) + getUnknownFields().hashCode();
201233
memoizedHashCode = hash;
202234
return hash;
@@ -338,6 +370,7 @@ public Builder clear() {
338370
super.clear();
339371
bitField0_ = 0;
340372
methods_ = com.google.protobuf.LazyStringArrayList.emptyList();
373+
generateOmittedAsInternal_ = false;
341374
return this;
342375
}
343376

@@ -378,6 +411,9 @@ private void buildPartial0(com.google.api.SelectiveGapicGeneration result) {
378411
methods_.makeImmutable();
379412
result.methods_ = methods_;
380413
}
414+
if (((from_bitField0_ & 0x00000002) != 0)) {
415+
result.generateOmittedAsInternal_ = generateOmittedAsInternal_;
416+
}
381417
}
382418

383419
@java.lang.Override
@@ -435,6 +471,9 @@ public Builder mergeFrom(com.google.api.SelectiveGapicGeneration other) {
435471
}
436472
onChanged();
437473
}
474+
if (other.getGenerateOmittedAsInternal() != false) {
475+
setGenerateOmittedAsInternal(other.getGenerateOmittedAsInternal());
476+
}
438477
this.mergeUnknownFields(other.getUnknownFields());
439478
onChanged();
440479
return this;
@@ -468,6 +507,12 @@ public Builder mergeFrom(
468507
methods_.add(s);
469508
break;
470509
} // case 10
510+
case 16:
511+
{
512+
generateOmittedAsInternal_ = input.readBool();
513+
bitField0_ |= 0x00000002;
514+
break;
515+
} // case 16
471516
default:
472517
{
473518
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -670,6 +715,74 @@ public Builder addMethodsBytes(com.google.protobuf.ByteString value) {
670715
return this;
671716
}
672717

718+
private boolean generateOmittedAsInternal_;
719+
/**
720+
*
721+
*
722+
* <pre>
723+
* Setting this to true indicates to the client generators that methods
724+
* that would be excluded from the generation should instead be generated
725+
* in a way that indicates these methods should not be consumed by
726+
* end users. How this is expressed is up to individual language
727+
* implementations to decide. Some examples may be: added annotations,
728+
* obfuscated identifiers, or other language idiomatic patterns.
729+
* </pre>
730+
*
731+
* <code>bool generate_omitted_as_internal = 2;</code>
732+
*
733+
* @return The generateOmittedAsInternal.
734+
*/
735+
@java.lang.Override
736+
public boolean getGenerateOmittedAsInternal() {
737+
return generateOmittedAsInternal_;
738+
}
739+
/**
740+
*
741+
*
742+
* <pre>
743+
* Setting this to true indicates to the client generators that methods
744+
* that would be excluded from the generation should instead be generated
745+
* in a way that indicates these methods should not be consumed by
746+
* end users. How this is expressed is up to individual language
747+
* implementations to decide. Some examples may be: added annotations,
748+
* obfuscated identifiers, or other language idiomatic patterns.
749+
* </pre>
750+
*
751+
* <code>bool generate_omitted_as_internal = 2;</code>
752+
*
753+
* @param value The generateOmittedAsInternal to set.
754+
* @return This builder for chaining.
755+
*/
756+
public Builder setGenerateOmittedAsInternal(boolean value) {
757+
758+
generateOmittedAsInternal_ = value;
759+
bitField0_ |= 0x00000002;
760+
onChanged();
761+
return this;
762+
}
763+
/**
764+
*
765+
*
766+
* <pre>
767+
* Setting this to true indicates to the client generators that methods
768+
* that would be excluded from the generation should instead be generated
769+
* in a way that indicates these methods should not be consumed by
770+
* end users. How this is expressed is up to individual language
771+
* implementations to decide. Some examples may be: added annotations,
772+
* obfuscated identifiers, or other language idiomatic patterns.
773+
* </pre>
774+
*
775+
* <code>bool generate_omitted_as_internal = 2;</code>
776+
*
777+
* @return This builder for chaining.
778+
*/
779+
public Builder clearGenerateOmittedAsInternal() {
780+
bitField0_ = (bitField0_ & ~0x00000002);
781+
generateOmittedAsInternal_ = false;
782+
onChanged();
783+
return this;
784+
}
785+
673786
@java.lang.Override
674787
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
675788
return super.setUnknownFields(unknownFields);

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

+18
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,22 @@ public interface SelectiveGapicGenerationOrBuilder
7878
* @return The bytes of the methods at the given index.
7979
*/
8080
com.google.protobuf.ByteString getMethodsBytes(int index);
81+
82+
/**
83+
*
84+
*
85+
* <pre>
86+
* Setting this to true indicates to the client generators that methods
87+
* that would be excluded from the generation should instead be generated
88+
* in a way that indicates these methods should not be consumed by
89+
* end users. How this is expressed is up to individual language
90+
* implementations to decide. Some examples may be: added annotations,
91+
* obfuscated identifiers, or other language idiomatic patterns.
92+
* </pre>
93+
*
94+
* <code>bool generate_omitted_as_internal = 2;</code>
95+
*
96+
* @return The generateOmittedAsInternal.
97+
*/
98+
boolean getGenerateOmittedAsInternal();
8199
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -469,4 +469,12 @@ message SelectiveGapicGeneration {
469469
// An allowlist of the fully qualified names of RPCs that should be included
470470
// on public client surfaces.
471471
repeated string methods = 1;
472+
473+
// Setting this to true indicates to the client generators that methods
474+
// that would be excluded from the generation should instead be generated
475+
// in a way that indicates these methods should not be consumed by
476+
// end users. How this is expressed is up to individual language
477+
// implementations to decide. Some examples may be: added annotations,
478+
// obfuscated identifiers, or other language idiomatic patterns.
479+
bool generate_omitted_as_internal = 2;
472480
}

0 commit comments

Comments
 (0)