From 51d6ae0b02c9c7dd32cf55dd0a67181a3f8618fe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Dec 2020 12:36:04 -0800 Subject: [PATCH] feat: Add the `UNORDERED_LIST` enum value for `google.api.field_behavior`. (#95) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4d5f8f32-a507-4654-bfa4-5be913dcb58e/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 346664095 Source-Link: https://github.com/googleapis/googleapis/commit/468a94a87b9f80d22d1f5e3076d5bab73a5c996f --- .../java/com/google/api/AuthProvider.java | 28 +++++++++---------- .../com/google/api/AuthProviderOrBuilder.java | 8 +++--- .../main/java/com/google/api/Endpoint.java | 16 +++++------ .../java/com/google/api/FieldBehavior.java | 28 +++++++++++++++++++ .../com/google/api/FieldBehaviorProto.java | 18 ++++++------ .../src/main/java/com/google/api/Service.java | 24 ++++++++-------- .../java/com/google/api/ServiceOrBuilder.java | 6 ++-- synth.metadata | 6 ++-- 8 files changed, 81 insertions(+), 53 deletions(-) diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java index 4915f6d0..5706114a 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java @@ -279,8 +279,8 @@ public com.google.protobuf.ByteString getIssuerBytes() { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -312,8 +312,8 @@ public java.lang.String getJwksUri() { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -1284,8 +1284,8 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -1316,8 +1316,8 @@ public java.lang.String getJwksUri() { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -1348,8 +1348,8 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -1379,8 +1379,8 @@ public Builder setJwksUri(java.lang.String value) { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -1406,8 +1406,8 @@ public Builder clearJwksUri() { * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs diff --git a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java index 57bd9a39..97b03308 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java @@ -95,8 +95,8 @@ public interface AuthProviderOrBuilder * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs @@ -117,8 +117,8 @@ public interface AuthProviderOrBuilder * Optional if the key set document: * - can be retrieved from * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - * the issuer. + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google * service account). * Example: https://www.googleapis.com/oauth2/v1/certs diff --git a/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java index 08087bd0..8378a618 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java @@ -22,10 +22,10 @@ * * *
- * `Endpoint` describes a network endpoint that serves a set of APIs.
- * A service may expose any number of endpoints, and all endpoints share the
- * same service configuration, such as quota configuration and monitoring
- * configuration.
+ * `Endpoint` describes a network endpoint of a service that serves a set of
+ * APIs. It is commonly known as a service endpoint. A service may expose
+ * any number of service endpoints, and all service endpoints share the same
+ * service definition, such as quota limits and monitoring metrics.
  * Example service configuration:
  *     name: library-example.googleapis.com
  *     endpoints:
@@ -550,10 +550,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * `Endpoint` describes a network endpoint that serves a set of APIs.
-   * A service may expose any number of endpoints, and all endpoints share the
-   * same service configuration, such as quota configuration and monitoring
-   * configuration.
+   * `Endpoint` describes a network endpoint of a service that serves a set of
+   * APIs. It is commonly known as a service endpoint. A service may expose
+   * any number of service endpoints, and all service endpoints share the same
+   * service definition, such as quota limits and monitoring metrics.
    * Example service configuration:
    *     name: library-example.googleapis.com
    *     endpoints:
diff --git a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
index 5ac6cf3a..aa517ed4 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
@@ -103,6 +103,19 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum {
    * IMMUTABLE = 5;
    */
   IMMUTABLE(5),
+  /**
+   *
+   *
+   * 
+   * Denotes that a (repeated) field is an unordered list.
+   * This indicates that the service may provide the elements of the list
+   * in any arbitrary order, rather than the order the user originally
+   * provided. Additionally, the list's order may or may not be stable.
+   * 
+ * + * UNORDERED_LIST = 6; + */ + UNORDERED_LIST(6), UNRECOGNIZED(-1), ; @@ -177,6 +190,19 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum { * IMMUTABLE = 5; */ public static final int IMMUTABLE_VALUE = 5; + /** + * + * + *
+   * Denotes that a (repeated) field is an unordered list.
+   * This indicates that the service may provide the elements of the list
+   * in any arbitrary order, rather than the order the user originally
+   * provided. Additionally, the list's order may or may not be stable.
+   * 
+ * + * UNORDERED_LIST = 6; + */ + public static final int UNORDERED_LIST_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -214,6 +240,8 @@ public static FieldBehavior forNumber(int value) { return INPUT_ONLY; case 5: return IMMUTABLE; + case 6: + return UNORDERED_LIST; default: return null; } diff --git a/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java index 261136ba..a5653b82 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java @@ -65,15 +65,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\037google/api/field_behavior.proto\022\ngoogl" + "e.api\032 google/protobuf/descriptor.proto*" - + "{\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSPE" - + "CIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n\013" - + "OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTAB" - + "LE\020\005:Q\n\016field_behavior\022\035.google.protobuf" - + ".FieldOptions\030\234\010 \003(\0162\031.google.api.FieldB" - + "ehaviorBp\n\016com.google.apiB\022FieldBehavior" - + "ProtoP\001ZAgoogle.golang.org/genproto/goog" - + "leapis/api/annotations;annotations\242\002\004GAP" - + "Ib\006proto3" + + "\217\001\n\rFieldBehavior\022\036\n\032FIELD_BEHAVIOR_UNSP" + + "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" + + "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" + + "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006:Q\n\016field_behav" + + "ior\022\035.google.protobuf.FieldOptions\030\234\010 \003(" + + "\0162\031.google.api.FieldBehaviorBp\n\016com.goog" + + "le.apiB\022FieldBehaviorProtoP\001ZAgoogle.gol" + + "ang.org/genproto/googleapis/api/annotati" + + "ons;annotations\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-common-protos/src/main/java/com/google/api/Service.java b/proto-google-common-protos/src/main/java/com/google/api/Service.java index f7e12b8b..d8a15709 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Service.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Service.java @@ -458,7 +458,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -473,7 +473,7 @@ public boolean hasConfigVersion() { * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -490,7 +490,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() { * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3043,7 +3043,7 @@ public Builder mergeFrom( * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3057,7 +3057,7 @@ public boolean hasConfigVersion() { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3077,7 +3077,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3099,7 +3099,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value value) { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3118,7 +3118,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderF * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3144,7 +3144,7 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3164,7 +3164,7 @@ public Builder clearConfigVersion() { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3178,7 +3178,7 @@ public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -3196,7 +3196,7 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { * * *
-     * This field is obsolete. Its value must be set to `3`.
+     * Deprecated. The service config compiler always sets this field to `3`.
      * 
* * .google.protobuf.UInt32Value config_version = 20; diff --git a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java index 3840c3ea..78177c44 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java @@ -27,7 +27,7 @@ public interface ServiceOrBuilder * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -39,7 +39,7 @@ public interface ServiceOrBuilder * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; @@ -51,7 +51,7 @@ public interface ServiceOrBuilder * * *
-   * This field is obsolete. Its value must be set to `3`.
+   * Deprecated. The service config compiler always sets this field to `3`.
    * 
* * .google.protobuf.UInt32Value config_version = 20; diff --git a/synth.metadata b/synth.metadata index 9c9c24ed..a36c39cc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-common-protos.git", - "sha": "d1f5bb15490f0b1095a8dc7dbddf16af883d35fe" + "sha": "4ee413bc57d984144ef8e1671c2c2063c22bb647" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "be0bdf86cd31aa7c1a7b30a9a2e9f2fd53ee3d91", - "internalRef": "342353190" + "sha": "468a94a87b9f80d22d1f5e3076d5bab73a5c996f", + "internalRef": "346664095" } }, {