From d9be11c7a127452c5e5ef871854a4a65c68b1b34 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:40:15 +0000 Subject: [PATCH] feat: [common-protos,common-protos] add auto_populated_fields to google.api.MethodSettings (#2273) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 586359350 Source-Link: https://togithub.com/googleapis/googleapis/commit/fce431c83ad15007ffbfe0b0b1c36b7d6af68ab8 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/df4b8f412dfa9fc8020575053c7bc5eaf3e2cd0b Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJkZjRiOGY0MTJkZmE5ZmM4MDIwNTc1MDUzYzdiYzVlYWYzZTJjZDBiIn0= feat: add auto_populated_fields to google.api.MethodSettings PiperOrigin-RevId: 586359350 Source-Link: https://togithub.com/googleapis/googleapis/commit/fce431c83ad15007ffbfe0b0b1c36b7d6af68ab8 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/df4b8f412dfa9fc8020575053c7bc5eaf3e2cd0b Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJkZjRiOGY0MTJkZmE5ZmM4MDIwNTc1MDUzYzdiYzVlYWYzZTJjZDBiIn0= --- .../main/java/com/google/api/ClientProto.java | 45 +- .../java/com/google/api/MethodSettings.java | 407 ++++++++++++++++++ .../google/api/MethodSettingsOrBuilder.java | 91 ++++ .../src/main/proto/google/api/client.proto | 13 + 4 files changed, 534 insertions(+), 22 deletions(-) diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java index 8bdd110ef1..8c8f14f0e7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java @@ -268,28 +268,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\014RubySettings\0222\n\006common\030\001 \001(\0132\".google." + "api.CommonLanguageSettings\"@\n\nGoSettings" + "\0222\n\006common\030\001 \001(\0132\".google.api.CommonLang" - + "uageSettings\"\260\002\n\016MethodSettings\022\020\n\010selec" + + "uageSettings\"\317\002\n\016MethodSettings\022\020\n\010selec" + "tor\030\001 \001(\t\022<\n\014long_running\030\002 \001(\0132&.google" - + ".api.MethodSettings.LongRunning\032\315\001\n\013Long" - + "Running\0225\n\022initial_poll_delay\030\001 \001(\0132\031.go" - + "ogle.protobuf.Duration\022\035\n\025poll_delay_mul" - + "tiplier\030\002 \001(\002\0221\n\016max_poll_delay\030\003 \001(\0132\031." - + "google.protobuf.Duration\0225\n\022total_poll_t" - + "imeout\030\004 \001(\0132\031.google.protobuf.Duration*" - + "\243\001\n\031ClientLibraryOrganization\022+\n\'CLIENT_" - + "LIBRARY_ORGANIZATION_UNSPECIFIED\020\000\022\t\n\005CL" - + "OUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS\020\003\022\017\n\013STREET_VIE" - + "W\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO\020\006\022\021\n\rGENERATIVE" - + "_AI\020\007*g\n\030ClientLibraryDestination\022*\n&CLI" - + "ENT_LIBRARY_DESTINATION_UNSPECIFIED\020\000\022\n\n" - + "\006GITHUB\020\n\022\023\n\017PACKAGE_MANAGER\020\024:9\n\020method" - + "_signature\022\036.google.protobuf.MethodOptio" - + "ns\030\233\010 \003(\t:6\n\014default_host\022\037.google.proto" - + "buf.ServiceOptions\030\231\010 \001(\t:6\n\014oauth_scope" - + "s\022\037.google.protobuf.ServiceOptions\030\232\010 \001(" - + "\tBi\n\016com.google.apiB\013ClientProtoP\001ZAgoog" - + "le.golang.org/genproto/googleapis/api/an" - + "notations;annotations\242\002\004GAPIb\006proto3" + + ".api.MethodSettings.LongRunning\022\035\n\025auto_" + + "populated_fields\030\003 \003(\t\032\315\001\n\013LongRunning\0225" + + "\n\022initial_poll_delay\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\022\035\n\025poll_delay_multiplier\030\002" + + " \001(\002\0221\n\016max_poll_delay\030\003 \001(\0132\031.google.pr" + + "otobuf.Duration\0225\n\022total_poll_timeout\030\004 " + + "\001(\0132\031.google.protobuf.Duration*\243\001\n\031Clien" + + "tLibraryOrganization\022+\n\'CLIENT_LIBRARY_O" + + "RGANIZATION_UNSPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003" + + "ADS\020\002\022\n\n\006PHOTOS\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SH" + + "OPPING\020\005\022\007\n\003GEO\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030" + + "ClientLibraryDestination\022*\n&CLIENT_LIBRA" + + "RY_DESTINATION_UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n" + + "\022\023\n\017PACKAGE_MANAGER\020\024:9\n\020method_signatur" + + "e\022\036.google.protobuf.MethodOptions\030\233\010 \003(\t" + + ":6\n\014default_host\022\037.google.protobuf.Servi" + + "ceOptions\030\231\010 \001(\t:6\n\014oauth_scopes\022\037.googl" + + "e.protobuf.ServiceOptions\030\232\010 \001(\tBi\n\016com." + + "google.apiB\013ClientProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/api/annotations" + + ";annotations\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -432,7 +433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_api_MethodSettings_descriptor, new java.lang.String[] { - "Selector", "LongRunning", + "Selector", "LongRunning", "AutoPopulatedFields", }); internal_static_google_api_MethodSettings_LongRunning_descriptor = internal_static_google_api_MethodSettings_descriptor.getNestedTypes().get(0); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java index c9336554ea..226b7d9264 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java @@ -39,6 +39,7 @@ private MethodSettings(com.google.protobuf.GeneratedMessageV3.Builder builder private MethodSettings() { selector_ = ""; + autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -1718,6 +1719,110 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde : longRunning_; } + public static final int AUTO_POPULATED_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList autoPopulatedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return A list containing the autoPopulatedFields. + */ + public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList() { + return autoPopulatedFields_; + } + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return The count of autoPopulatedFields. + */ + public int getAutoPopulatedFieldsCount() { + return autoPopulatedFields_.size(); + } + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the element to return. + * @return The autoPopulatedFields at the given index. + */ + public java.lang.String getAutoPopulatedFields(int index) { + return autoPopulatedFields_.get(index); + } + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the value to return. + * @return The bytes of the autoPopulatedFields at the given index. + */ + public com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index) { + return autoPopulatedFields_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1738,6 +1843,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (longRunning_ != null) { output.writeMessage(2, getLongRunning()); } + for (int i = 0; i < autoPopulatedFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, autoPopulatedFields_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1753,6 +1861,14 @@ public int getSerializedSize() { if (longRunning_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLongRunning()); } + { + int dataSize = 0; + for (int i = 0; i < autoPopulatedFields_.size(); i++) { + dataSize += computeStringSizeNoTag(autoPopulatedFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoPopulatedFieldsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1773,6 +1889,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLongRunning()) { if (!getLongRunning().equals(other.getLongRunning())) return false; } + if (!getAutoPopulatedFieldsList().equals(other.getAutoPopulatedFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1790,6 +1907,10 @@ public int hashCode() { hash = (37 * hash) + LONG_RUNNING_FIELD_NUMBER; hash = (53 * hash) + getLongRunning().hashCode(); } + if (getAutoPopulatedFieldsCount() > 0) { + hash = (37 * hash) + AUTO_POPULATED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getAutoPopulatedFieldsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1931,6 +2052,7 @@ public Builder clear() { longRunningBuilder_.dispose(); longRunningBuilder_ = null; } + autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1972,6 +2094,10 @@ private void buildPartial0(com.google.api.MethodSettings result) { result.longRunning_ = longRunningBuilder_ == null ? longRunning_ : longRunningBuilder_.build(); } + if (((from_bitField0_ & 0x00000004) != 0)) { + autoPopulatedFields_.makeImmutable(); + result.autoPopulatedFields_ = autoPopulatedFields_; + } } @java.lang.Override @@ -2027,6 +2153,16 @@ public Builder mergeFrom(com.google.api.MethodSettings other) { if (other.hasLongRunning()) { mergeLongRunning(other.getLongRunning()); } + if (!other.autoPopulatedFields_.isEmpty()) { + if (autoPopulatedFields_.isEmpty()) { + autoPopulatedFields_ = other.autoPopulatedFields_; + bitField0_ |= 0x00000004; + } else { + ensureAutoPopulatedFieldsIsMutable(); + autoPopulatedFields_.addAll(other.autoPopulatedFields_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2065,6 +2201,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAutoPopulatedFieldsIsMutable(); + autoPopulatedFields_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2523,6 +2666,270 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde return longRunningBuilder_; } + private com.google.protobuf.LazyStringArrayList autoPopulatedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAutoPopulatedFieldsIsMutable() { + if (!autoPopulatedFields_.isModifiable()) { + autoPopulatedFields_ = new com.google.protobuf.LazyStringArrayList(autoPopulatedFields_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return A list containing the autoPopulatedFields. + */ + public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList() { + autoPopulatedFields_.makeImmutable(); + return autoPopulatedFields_; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return The count of autoPopulatedFields. + */ + public int getAutoPopulatedFieldsCount() { + return autoPopulatedFields_.size(); + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the element to return. + * @return The autoPopulatedFields at the given index. + */ + public java.lang.String getAutoPopulatedFields(int index) { + return autoPopulatedFields_.get(index); + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the value to return. + * @return The bytes of the autoPopulatedFields at the given index. + */ + public com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index) { + return autoPopulatedFields_.getByteString(index); + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index to set the value at. + * @param value The autoPopulatedFields to set. + * @return This builder for chaining. + */ + public Builder setAutoPopulatedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoPopulatedFieldsIsMutable(); + autoPopulatedFields_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param value The autoPopulatedFields to add. + * @return This builder for chaining. + */ + public Builder addAutoPopulatedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoPopulatedFieldsIsMutable(); + autoPopulatedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param values The autoPopulatedFields to add. + * @return This builder for chaining. + */ + public Builder addAllAutoPopulatedFields(java.lang.Iterable values) { + ensureAutoPopulatedFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoPopulatedFields_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return This builder for chaining. + */ + public Builder clearAutoPopulatedFields() { + autoPopulatedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * List of top-level fields of the request message, that should be
+     * automatically populated by the client libraries based on their
+     * (google.api.field_info).format. Currently supported format: UUID4.
+     *
+     * Example of a YAML configuration:
+     *
+     *  publishing:
+     *    method_settings:
+     *      - selector: google.example.v1.ExampleService.CreateExample
+     *        auto_populated_fields:
+     *        - request_id
+     * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param value The bytes of the autoPopulatedFields to add. + * @return This builder for chaining. + */ + public Builder addAutoPopulatedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAutoPopulatedFieldsIsMutable(); + autoPopulatedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java index bd505c8f47..f939599c7f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java @@ -132,4 +132,95 @@ public interface MethodSettingsOrBuilder * .google.api.MethodSettings.LongRunning long_running = 2; */ com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilder(); + + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return A list containing the autoPopulatedFields. + */ + java.util.List getAutoPopulatedFieldsList(); + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @return The count of autoPopulatedFields. + */ + int getAutoPopulatedFieldsCount(); + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the element to return. + * @return The autoPopulatedFields at the given index. + */ + java.lang.String getAutoPopulatedFields(int index); + /** + * + * + *
+   * List of top-level fields of the request message, that should be
+   * automatically populated by the client libraries based on their
+   * (google.api.field_info).format. Currently supported format: UUID4.
+   *
+   * Example of a YAML configuration:
+   *
+   *  publishing:
+   *    method_settings:
+   *      - selector: google.example.v1.ExampleService.CreateExample
+   *        auto_populated_fields:
+   *        - request_id
+   * 
+ * + * repeated string auto_populated_fields = 3; + * + * @param index The index of the value to return. + * @return The bytes of the autoPopulatedFields at the given index. + */ + com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index); } diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto index 6d01954eee..39bdde82a9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto +++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/client.proto @@ -349,6 +349,19 @@ message MethodSettings { // total_poll_timeout: // seconds: 54000 # 90 minutes LongRunning long_running = 2; + + // List of top-level fields of the request message, that should be + // automatically populated by the client libraries based on their + // (google.api.field_info).format. Currently supported format: UUID4. + // + // Example of a YAML configuration: + // + // publishing: + // method_settings: + // - selector: google.example.v1.ExampleService.CreateExample + // auto_populated_fields: + // - request_id + repeated string auto_populated_fields = 3; } // The organization for which the client libraries are being published.