From a5b015caddcbe5fdcac4d3b411e3ad7adf79e089 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 12 Dec 2024 16:50:21 +0000 Subject: [PATCH] chore: generate libraries at Thu Dec 12 16:48:52 UTC 2024 --- .../google/longrunning/OperationsGrpc.java | 120 +-- .../main/java/com/google/api/ClientProto.java | 71 +- .../main/java/com/google/api/GoSettings.java | 418 ++++++++ .../com/google/api/GoSettingsOrBuilder.java | 93 ++ .../longrunning/CancelOperationRequest.java | 6 +- .../longrunning/DeleteOperationRequest.java | 6 +- .../longrunning/GetOperationRequest.java | 6 +- .../longrunning/ListOperationsRequest.java | 6 +- .../longrunning/ListOperationsResponse.java | 6 +- .../com/google/longrunning/Operation.java | 24 +- .../com/google/longrunning/OperationInfo.java | 26 +- .../longrunning/OperationOrBuilder.java | 6 +- .../google/longrunning/OperationsProto.java | 19 +- .../longrunning/WaitOperationRequest.java | 6 +- .../src/main/proto/google/api/client.proto | 10 + .../proto/google/longrunning/operations.proto | 67 +- .../google/iam/v1/ResourcePolicyMember.java | 901 ++++++++++++++++++ .../iam/v1/ResourcePolicyMemberOrBuilder.java | 100 ++ .../iam/v1/ResourcePolicyMemberProto.java | 77 ++ .../iam/v1/resource_policy_member.proto | 50 + 20 files changed, 1834 insertions(+), 184 deletions(-) create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMember.java create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberOrBuilder.java create mode 100644 java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberProto.java create mode 100644 java-iam/proto-google-iam-v1/src/main/proto/google/iam/v1/resource_policy_member.proto diff --git a/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java index 060b81a5f4..a99c9d0937 100644 --- a/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java +++ b/java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java @@ -23,12 +23,12 @@ *
  * Manages long-running operations with an API service.
  * When an API method normally takes long time to complete, it can be designed
- * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
- * interface to receive the real response asynchronously by polling the
- * operation resource, or pass the operation resource to another API (such as
- * Google Cloud Pub/Sub API) to receive the response.  Any API service that
- * returns long-running operations should implement the `Operations` interface
- * so developers can have a consistent client experience.
+ * to return [Operation][google.longrunning.Operation] to the client, and the
+ * client can use this interface to receive the real response asynchronously by
+ * polling the operation resource, or pass the operation resource to another API
+ * (such as Pub/Sub API) to receive the response.  Any API service that returns
+ * long-running operations should implement the `Operations` interface so
+ * developers can have a consistent client experience.
  * 
*/ @javax.annotation.Generated( @@ -296,12 +296,12 @@ public OperationsFutureStub newStub( *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
-   * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
-   * interface to receive the real response asynchronously by polling the
-   * operation resource, or pass the operation resource to another API (such as
-   * Google Cloud Pub/Sub API) to receive the response.  Any API service that
-   * returns long-running operations should implement the `Operations` interface
-   * so developers can have a consistent client experience.
+   * to return [Operation][google.longrunning.Operation] to the client, and the
+   * client can use this interface to receive the real response asynchronously by
+   * polling the operation resource, or pass the operation resource to another API
+   * (such as Pub/Sub API) to receive the response.  Any API service that returns
+   * long-running operations should implement the `Operations` interface so
+   * developers can have a consistent client experience.
    * 
*/ public interface AsyncService { @@ -312,13 +312,6 @@ public interface AsyncService { *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
-     * NOTE: the `name` binding allows API services to override the binding
-     * to use different resource name schemes, such as `users/*/operations`. To
-     * override the binding, API services can add a binding such as
-     * `"/v1/{name=users/*}/operations"` to their service configuration.
-     * For backwards compatibility, the default name includes the operations
-     * collection id, however overriding users must ensure the name binding
-     * is the parent resource, without the operations collection id.
      * 
*/ default void listOperations( @@ -374,8 +367,9 @@ default void deleteOperation( * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, * the operation is not deleted; instead, it becomes an operation with - * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * an [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. * */ default void cancelOperation( @@ -414,12 +408,12 @@ default void waitOperation( *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
-   * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
-   * interface to receive the real response asynchronously by polling the
-   * operation resource, or pass the operation resource to another API (such as
-   * Google Cloud Pub/Sub API) to receive the response.  Any API service that
-   * returns long-running operations should implement the `Operations` interface
-   * so developers can have a consistent client experience.
+   * to return [Operation][google.longrunning.Operation] to the client, and the
+   * client can use this interface to receive the real response asynchronously by
+   * polling the operation resource, or pass the operation resource to another API
+   * (such as Pub/Sub API) to receive the response.  Any API service that returns
+   * long-running operations should implement the `Operations` interface so
+   * developers can have a consistent client experience.
    * 
*/ public abstract static class OperationsImplBase implements io.grpc.BindableService, AsyncService { @@ -436,12 +430,12 @@ public final io.grpc.ServerServiceDefinition bindService() { *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
-   * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
-   * interface to receive the real response asynchronously by polling the
-   * operation resource, or pass the operation resource to another API (such as
-   * Google Cloud Pub/Sub API) to receive the response.  Any API service that
-   * returns long-running operations should implement the `Operations` interface
-   * so developers can have a consistent client experience.
+   * to return [Operation][google.longrunning.Operation] to the client, and the
+   * client can use this interface to receive the real response asynchronously by
+   * polling the operation resource, or pass the operation resource to another API
+   * (such as Pub/Sub API) to receive the response.  Any API service that returns
+   * long-running operations should implement the `Operations` interface so
+   * developers can have a consistent client experience.
    * 
*/ public static final class OperationsStub extends io.grpc.stub.AbstractAsyncStub { @@ -460,13 +454,6 @@ protected OperationsStub build(io.grpc.Channel channel, io.grpc.CallOptions call *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
-     * NOTE: the `name` binding allows API services to override the binding
-     * to use different resource name schemes, such as `users/*/operations`. To
-     * override the binding, API services can add a binding such as
-     * `"/v1/{name=users/*}/operations"` to their service configuration.
-     * For backwards compatibility, the default name includes the operations
-     * collection id, however overriding users must ensure the name binding
-     * is the parent resource, without the operations collection id.
      * 
*/ public void listOperations( @@ -528,8 +515,9 @@ public void deleteOperation( * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, * the operation is not deleted; instead, it becomes an operation with - * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * an [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. * */ public void cancelOperation( @@ -572,12 +560,12 @@ public void waitOperation( *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
-   * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
-   * interface to receive the real response asynchronously by polling the
-   * operation resource, or pass the operation resource to another API (such as
-   * Google Cloud Pub/Sub API) to receive the response.  Any API service that
-   * returns long-running operations should implement the `Operations` interface
-   * so developers can have a consistent client experience.
+   * to return [Operation][google.longrunning.Operation] to the client, and the
+   * client can use this interface to receive the real response asynchronously by
+   * polling the operation resource, or pass the operation resource to another API
+   * (such as Pub/Sub API) to receive the response.  Any API service that returns
+   * long-running operations should implement the `Operations` interface so
+   * developers can have a consistent client experience.
    * 
*/ public static final class OperationsBlockingStub @@ -598,13 +586,6 @@ protected OperationsBlockingStub build( *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
-     * NOTE: the `name` binding allows API services to override the binding
-     * to use different resource name schemes, such as `users/*/operations`. To
-     * override the binding, API services can add a binding such as
-     * `"/v1/{name=users/*}/operations"` to their service configuration.
-     * For backwards compatibility, the default name includes the operations
-     * collection id, however overriding users must ensure the name binding
-     * is the parent resource, without the operations collection id.
      * 
*/ public com.google.longrunning.ListOperationsResponse listOperations( @@ -656,8 +637,9 @@ public com.google.protobuf.Empty deleteOperation( * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, * the operation is not deleted; instead, it becomes an operation with - * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * an [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. * */ public com.google.protobuf.Empty cancelOperation( @@ -694,12 +676,12 @@ public com.google.longrunning.Operation waitOperation( *
    * Manages long-running operations with an API service.
    * When an API method normally takes long time to complete, it can be designed
-   * to return [Operation][google.longrunning.Operation] to the client, and the client can use this
-   * interface to receive the real response asynchronously by polling the
-   * operation resource, or pass the operation resource to another API (such as
-   * Google Cloud Pub/Sub API) to receive the response.  Any API service that
-   * returns long-running operations should implement the `Operations` interface
-   * so developers can have a consistent client experience.
+   * to return [Operation][google.longrunning.Operation] to the client, and the
+   * client can use this interface to receive the real response asynchronously by
+   * polling the operation resource, or pass the operation resource to another API
+   * (such as Pub/Sub API) to receive the response.  Any API service that returns
+   * long-running operations should implement the `Operations` interface so
+   * developers can have a consistent client experience.
    * 
*/ public static final class OperationsFutureStub @@ -719,13 +701,6 @@ protected OperationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
      * Lists operations that match the specified filter in the request. If the
      * server doesn't support this method, it returns `UNIMPLEMENTED`.
-     * NOTE: the `name` binding allows API services to override the binding
-     * to use different resource name schemes, such as `users/*/operations`. To
-     * override the binding, API services can add a binding such as
-     * `"/v1/{name=users/*}/operations"` to their service configuration.
-     * For backwards compatibility, the default name includes the operations
-     * collection id, however overriding users must ensure the name binding
-     * is the parent resource, without the operations collection id.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -778,8 +753,9 @@ protected OperationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, * the operation is not deleted; instead, it becomes an operation with - * an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * an [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. * */ public com.google.common.util.concurrent.ListenableFuture 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 86a8da410d..4a46de43ed 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 @@ -231,6 +231,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_api_GoSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_api_GoSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_api_GoSettings_RenamedServicesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_api_GoSettings_RenamedServicesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_api_MethodSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -313,33 +317,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "enamedResourcesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\"B\n\014RubySettings\0222\n\006common\030\001" + " \001(\0132\".google.api.CommonLanguageSettings" - + "\"@\n\nGoSettings\0222\n\006common\030\001 \001(\0132\".google." - + "api.CommonLanguageSettings\"\317\002\n\016MethodSet" - + "tings\022\020\n\010selector\030\001 \001(\t\022<\n\014long_running\030" - + "\002 \001(\0132&.google.api.MethodSettings.LongRu" - + "nning\022\035\n\025auto_populated_fields\030\003 \003(\t\032\315\001\n" - + "\013LongRunning\0225\n\022initial_poll_delay\030\001 \001(\013" - + "2\031.google.protobuf.Duration\022\035\n\025poll_dela" - + "y_multiplier\030\002 \001(\002\0221\n\016max_poll_delay\030\003 \001" - + "(\0132\031.google.protobuf.Duration\0225\n\022total_p" - + "oll_timeout\030\004 \001(\0132\031.google.protobuf.Dura" - + "tion\"+\n\030SelectiveGapicGeneration\022\017\n\007meth" - + "ods\030\001 \003(\t*\243\001\n\031ClientLibraryOrganization\022" - + "+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFI" - + "ED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOTOS\020\003\022\017\n\013" - + "STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003GEO\020\006\022\021\n\r" - + "GENERATIVE_AI\020\007*g\n\030ClientLibraryDestinat" - + "ion\022*\n&CLIENT_LIBRARY_DESTINATION_UNSPEC" - + "IFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_MANAGER\020\024" - + ":9\n\020method_signature\022\036.google.protobuf.M" - + "ethodOptions\030\233\010 \003(\t:6\n\014default_host\022\037.go" - + "ogle.protobuf.ServiceOptions\030\231\010 \001(\t:6\n\014o" - + "auth_scopes\022\037.google.protobuf.ServiceOpt" - + "ions\030\232\010 \001(\t:8\n\013api_version\022\037.google.prot" - + "obuf.ServiceOptions\030\301\272\253\372\001 \001(\tBi\n\016com.goo" - + "gle.apiB\013ClientProtoP\001ZAgoogle.golang.or" - + "g/genproto/googleapis/api/annotations;an" - + "notations\242\002\004GAPIb\006proto3" + + "\"\277\001\n\nGoSettings\0222\n\006common\030\001 \001(\0132\".google" + + ".api.CommonLanguageSettings\022E\n\020renamed_s" + + "ervices\030\002 \003(\0132+.google.api.GoSettings.Re" + + "namedServicesEntry\0326\n\024RenamedServicesEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\317\002\n\016M" + + "ethodSettings\022\020\n\010selector\030\001 \001(\t\022<\n\014long_" + + "running\030\002 \001(\0132&.google.api.MethodSetting" + + "s.LongRunning\022\035\n\025auto_populated_fields\030\003" + + " \003(\t\032\315\001\n\013LongRunning\0225\n\022initial_poll_del" + + "ay\030\001 \001(\0132\031.google.protobuf.Duration\022\035\n\025p" + + "oll_delay_multiplier\030\002 \001(\002\0221\n\016max_poll_d" + + "elay\030\003 \001(\0132\031.google.protobuf.Duration\0225\n" + + "\022total_poll_timeout\030\004 \001(\0132\031.google.proto" + + "buf.Duration\"+\n\030SelectiveGapicGeneration" + + "\022\017\n\007methods\030\001 \003(\t*\243\001\n\031ClientLibraryOrgan" + + "ization\022+\n\'CLIENT_LIBRARY_ORGANIZATION_U" + + "NSPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\007\n\003ADS\020\002\022\n\n\006PHOT" + + "OS\020\003\022\017\n\013STREET_VIEW\020\004\022\014\n\010SHOPPING\020\005\022\007\n\003G" + + "EO\020\006\022\021\n\rGENERATIVE_AI\020\007*g\n\030ClientLibrary" + + "Destination\022*\n&CLIENT_LIBRARY_DESTINATIO" + + "N_UNSPECIFIED\020\000\022\n\n\006GITHUB\020\n\022\023\n\017PACKAGE_M" + + "ANAGER\020\024:9\n\020method_signature\022\036.google.pr" + + "otobuf.MethodOptions\030\233\010 \003(\t:6\n\014default_h" + + "ost\022\037.google.protobuf.ServiceOptions\030\231\010 " + + "\001(\t:6\n\014oauth_scopes\022\037.google.protobuf.Se" + + "rviceOptions\030\232\010 \001(\t:8\n\013api_version\022\037.goo" + + "gle.protobuf.ServiceOptions\030\301\272\253\372\001 \001(\tBi\n" + + "\016com.google.apiB\013ClientProtoP\001ZAgoogle.g" + + "olang.org/genproto/googleapis/api/annota" + + "tions;annotations\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -483,7 +490,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_api_GoSettings_descriptor, new java.lang.String[] { - "Common", + "Common", "RenamedServices", + }); + internal_static_google_api_GoSettings_RenamedServicesEntry_descriptor = + internal_static_google_api_GoSettings_descriptor.getNestedTypes().get(0); + internal_static_google_api_GoSettings_RenamedServicesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_api_GoSettings_RenamedServicesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_api_MethodSettings_descriptor = getDescriptor().getMessageTypes().get(11); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java index 28f61d751b..cb52352790 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java @@ -50,6 +50,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_GoSettings_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRenamedServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -105,6 +117,138 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() { return common_ == null ? com.google.api.CommonLanguageSettings.getDefaultInstance() : common_; } + public static final int RENAMED_SERVICES_FIELD_NUMBER = 2; + + private static final class RenamedServicesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.api.ClientProto + .internal_static_google_api_GoSettings_RenamedServicesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField renamedServices_; + + private com.google.protobuf.MapField + internalGetRenamedServices() { + if (renamedServices_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RenamedServicesDefaultEntryHolder.defaultEntry); + } + return renamedServices_; + } + + public int getRenamedServicesCount() { + return internalGetRenamedServices().getMap().size(); + } + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public boolean containsRenamedServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRenamedServices().getMap().containsKey(key); + } + /** Use {@link #getRenamedServicesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRenamedServices() { + return getRenamedServicesMap(); + } + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public java.util.Map getRenamedServicesMap() { + return internalGetRenamedServices().getMap(); + } + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getRenamedServicesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRenamedServices().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public java.lang.String getRenamedServicesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRenamedServices().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -122,6 +266,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRenamedServices(), RenamedServicesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -134,6 +280,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } + for (java.util.Map.Entry entry : + internalGetRenamedServices().getMap().entrySet()) { + com.google.protobuf.MapEntry renamedServices__ = + RenamedServicesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, renamedServices__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -153,6 +309,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCommon()) { if (!getCommon().equals(other.getCommon())) return false; } + if (!internalGetRenamedServices().equals(other.internalGetRenamedServices())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -168,6 +325,10 @@ public int hashCode() { hash = (37 * hash) + COMMON_FIELD_NUMBER; hash = (53 * hash) + getCommon().hashCode(); } + if (!internalGetRenamedServices().getMap().isEmpty()) { + hash = (37 * hash) + RENAMED_SERVICES_FIELD_NUMBER; + hash = (53 * hash) + internalGetRenamedServices().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -284,6 +445,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.ClientProto.internal_static_google_api_GoSettings_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRenamedServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableRenamedServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -317,6 +500,7 @@ public Builder clear() { commonBuilder_.dispose(); commonBuilder_ = null; } + internalGetMutableRenamedServices().clear(); return this; } @@ -356,6 +540,10 @@ private void buildPartial0(com.google.api.GoSettings result) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.renamedServices_ = internalGetRenamedServices(); + result.renamedServices_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -407,6 +595,8 @@ public Builder mergeFrom(com.google.api.GoSettings other) { if (other.hasCommon()) { mergeCommon(other.getCommon()); } + internalGetMutableRenamedServices().mergeFrom(other.internalGetRenamedServices()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -439,6 +629,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + com.google.protobuf.MapEntry renamedServices__ = + input.readMessage( + RenamedServicesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRenamedServices() + .getMutableMap() + .put(renamedServices__.getKey(), renamedServices__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -643,6 +845,222 @@ public com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder() { return commonBuilder_; } + private com.google.protobuf.MapField renamedServices_; + + private com.google.protobuf.MapField + internalGetRenamedServices() { + if (renamedServices_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RenamedServicesDefaultEntryHolder.defaultEntry); + } + return renamedServices_; + } + + private com.google.protobuf.MapField + internalGetMutableRenamedServices() { + if (renamedServices_ == null) { + renamedServices_ = + com.google.protobuf.MapField.newMapField( + RenamedServicesDefaultEntryHolder.defaultEntry); + } + if (!renamedServices_.isMutable()) { + renamedServices_ = renamedServices_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return renamedServices_; + } + + public int getRenamedServicesCount() { + return internalGetRenamedServices().getMap().size(); + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public boolean containsRenamedServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRenamedServices().getMap().containsKey(key); + } + /** Use {@link #getRenamedServicesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRenamedServices() { + return getRenamedServicesMap(); + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public java.util.Map getRenamedServicesMap() { + return internalGetRenamedServices().getMap(); + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getRenamedServicesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRenamedServices().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + @java.lang.Override + public java.lang.String getRenamedServicesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRenamedServices().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRenamedServices() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableRenamedServices().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + public Builder removeRenamedServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRenamedServices().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableRenamedServices() { + bitField0_ |= 0x00000002; + return internalGetMutableRenamedServices().getMutableMap(); + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + public Builder putRenamedServices(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRenamedServices().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * Map of service names to renamed services. Keys are the package relative
+     * service names and values are the name to be used for the service client
+     * and call options.
+     *
+     * publishing:
+     *   go_settings:
+     *     renamed_services:
+     *       Publisher: TopicAdmin
+     * 
+ * + * map<string, string> renamed_services = 2; + */ + public Builder putAllRenamedServices(java.util.Map values) { + internalGetMutableRenamedServices().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + 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/GoSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java index defcc2997f..60d1fe7376 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java @@ -58,4 +58,97 @@ public interface GoSettingsOrBuilder * .google.api.CommonLanguageSettings common = 1; */ com.google.api.CommonLanguageSettingsOrBuilder getCommonOrBuilder(); + + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + int getRenamedServicesCount(); + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + boolean containsRenamedServices(java.lang.String key); + /** Use {@link #getRenamedServicesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getRenamedServices(); + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + java.util.Map getRenamedServicesMap(); + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + /* nullable */ + java.lang.String getRenamedServicesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Map of service names to renamed services. Keys are the package relative
+   * service names and values are the name to be used for the service client
+   * and call options.
+   *
+   * publishing:
+   *   go_settings:
+   *     renamed_services:
+   *       Publisher: TopicAdmin
+   * 
+ * + * map<string, string> renamed_services = 2; + */ + java.lang.String getRenamedServicesOrThrow(java.lang.String key); } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java index 1971847cc7..7049fa2bcc 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java @@ -23,7 +23,8 @@ * * *
- * The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
+ * The request message for
+ * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
  * 
* * Protobuf type {@code google.longrunning.CancelOperationRequest} @@ -277,7 +278,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
+   * The request message for
+   * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
    * 
* * Protobuf type {@code google.longrunning.CancelOperationRequest} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java index 66ad2ee922..a7c80538fe 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java @@ -23,7 +23,8 @@ * * *
- * The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
+ * The request message for
+ * [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
  * 
* * Protobuf type {@code google.longrunning.DeleteOperationRequest} @@ -277,7 +278,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
+   * The request message for
+   * [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
    * 
* * Protobuf type {@code google.longrunning.DeleteOperationRequest} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java index c08917dbc6..2d6b93be06 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java @@ -23,7 +23,8 @@ * * *
- * The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
+ * The request message for
+ * [Operations.GetOperation][google.longrunning.Operations.GetOperation].
  * 
* * Protobuf type {@code google.longrunning.GetOperationRequest} @@ -277,7 +278,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
+   * The request message for
+   * [Operations.GetOperation][google.longrunning.Operations.GetOperation].
    * 
* * Protobuf type {@code google.longrunning.GetOperationRequest} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java index 3a1d957cc9..79efbfe46e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java @@ -23,7 +23,8 @@ * * *
- * The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
+ * The request message for
+ * [Operations.ListOperations][google.longrunning.Operations.ListOperations].
  * 
* * Protobuf type {@code google.longrunning.ListOperationsRequest} @@ -426,7 +427,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
+   * The request message for
+   * [Operations.ListOperations][google.longrunning.Operations.ListOperations].
    * 
* * Protobuf type {@code google.longrunning.ListOperationsRequest} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java index 19a7eaa90e..8a60b2769f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java @@ -23,7 +23,8 @@ * * *
- * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
+ * The response message for
+ * [Operations.ListOperations][google.longrunning.Operations.ListOperations].
  * 
* * Protobuf type {@code google.longrunning.ListOperationsResponse} @@ -360,7 +361,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
+   * The response message for
+   * [Operations.ListOperations][google.longrunning.Operations.ListOperations].
    * 
* * Protobuf type {@code google.longrunning.ListOperationsResponse} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java index 7e0378de7e..e64657bda1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java @@ -299,7 +299,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -321,7 +321,7 @@ public boolean hasResponse() {
    *
    *
    * 
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -346,7 +346,7 @@ public com.google.protobuf.Any getResponse() {
    *
    *
    * 
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1462,7 +1462,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1484,7 +1484,7 @@ public boolean hasResponse() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1516,7 +1516,7 @@ public com.google.protobuf.Any getResponse() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1545,7 +1545,7 @@ public Builder setResponse(com.google.protobuf.Any value) {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1571,7 +1571,7 @@ public Builder setResponse(com.google.protobuf.Any.Builder builderForValue) {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1608,7 +1608,7 @@ public Builder mergeResponse(com.google.protobuf.Any value) {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1640,7 +1640,7 @@ public Builder clearResponse() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1659,7 +1659,7 @@ public com.google.protobuf.Any.Builder getResponseBuilder() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -1686,7 +1686,7 @@ public com.google.protobuf.AnyOrBuilder getResponseOrBuilder() {
      *
      *
      * 
-     * The normal response of the operation in case of success.  If the original
+     * The normal, successful response of the operation.  If the original
      * method returns no data on success, such as `Delete`, the response is
      * `google.protobuf.Empty`.  If the original method is standard
      * `Get`/`Create`/`Update`, the response should be the resource.  For other
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
index ec1e9a0c42..780d173edd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java
@@ -27,13 +27,12 @@
  *
  * Example:
  *
- *   rpc LongRunningRecognize(LongRunningRecognizeRequest)
- *       returns (google.longrunning.Operation) {
- *     option (google.longrunning.operation_info) = {
- *       response_type: "LongRunningRecognizeResponse"
- *       metadata_type: "LongRunningRecognizeMetadata"
- *     };
- *   }
+ *     rpc Export(ExportRequest) returns (google.longrunning.Operation) {
+ *       option (google.longrunning.operation_info) = {
+ *         response_type: "ExportResponse"
+ *         metadata_type: "ExportMetadata"
+ *       };
+ *     }
  * 
* * Protobuf type {@code google.longrunning.OperationInfo} @@ -376,13 +375,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Example: * - * rpc LongRunningRecognize(LongRunningRecognizeRequest) - * returns (google.longrunning.Operation) { - * option (google.longrunning.operation_info) = { - * response_type: "LongRunningRecognizeResponse" - * metadata_type: "LongRunningRecognizeMetadata" - * }; - * } + * rpc Export(ExportRequest) returns (google.longrunning.Operation) { + * option (google.longrunning.operation_info) = { + * response_type: "ExportResponse" + * metadata_type: "ExportMetadata" + * }; + * } *
* * Protobuf type {@code google.longrunning.OperationInfo} diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java index b4edfc4783..2be5f22612 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java @@ -151,7 +151,7 @@ public interface OperationOrBuilder * * *
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -170,7 +170,7 @@ public interface OperationOrBuilder
    *
    *
    * 
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
@@ -189,7 +189,7 @@ public interface OperationOrBuilder
    *
    *
    * 
-   * The normal response of the operation in case of success.  If the original
+   * The normal, successful response of the operation.  If the original
    * method returns no data on success, such as `Delete`, the response is
    * `google.protobuf.Empty`.  If the original method is standard
    * `Get`/`Create`/`Update`, the response should be the resource.  For other
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
index 3d02ac5688..502eec4452 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java
@@ -96,10 +96,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
       "\n#google/longrunning/operations.proto\022\022g"
           + "oogle.longrunning\032\034google/api/annotation"
           + "s.proto\032\027google/api/client.proto\032\031google"
-          + "/protobuf/any.proto\032\036google/protobuf/dur"
-          + "ation.proto\032\033google/protobuf/empty.proto"
-          + "\032\027google/rpc/status.proto\032 google/protob"
-          + "uf/descriptor.proto\"\250\001\n\tOperation\022\014\n\004nam"
+          + "/protobuf/any.proto\032 google/protobuf/des"
+          + "criptor.proto\032\036google/protobuf/duration."
+          + "proto\032\033google/protobuf/empty.proto\032\027goog"
+          + "le/rpc/status.proto\"\250\001\n\tOperation\022\014\n\004nam"
           + "e\030\001 \001(\t\022&\n\010metadata\030\002 \001(\0132\024.google.proto"
           + "buf.Any\022\014\n\004done\030\003 \001(\010\022#\n\005error\030\004 \001(\0132\022.g"
           + "oogle.rpc.StatusH\000\022(\n\010response\030\005 \001(\0132\024.g"
@@ -134,11 +134,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "ongrunning.Operation\"\000\032\035\312A\032longrunning.g"
           + "oogleapis.com:Z\n\016operation_info\022\036.google"
           + ".protobuf.MethodOptions\030\231\010 \001(\0132!.google."
-          + "longrunning.OperationInfoB\235\001\n\026com.google"
+          + "longrunning.OperationInfoB\245\001\n\026com.google"
           + ".longrunningB\017OperationsProtoP\001ZCcloud.g"
           + "oogle.com/go/longrunning/autogen/longrun"
-          + "ningpb;longrunningpb\370\001\001\252\002\022Google.LongRun"
-          + "ning\312\002\022Google\\LongRunningb\006proto3"
+          + "ningpb;longrunningpb\370\001\001\242\002\005GLRUN\252\002\022Google"
+          + ".LongRunning\312\002\022Google\\LongRunningb\006proto"
+          + "3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -147,10 +148,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.api.AnnotationsProto.getDescriptor(),
               com.google.api.ClientProto.getDescriptor(),
               com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.protobuf.DescriptorProtos.getDescriptor(),
               com.google.protobuf.DurationProto.getDescriptor(),
               com.google.protobuf.EmptyProto.getDescriptor(),
               com.google.rpc.StatusProto.getDescriptor(),
-              com.google.protobuf.DescriptorProtos.getDescriptor(),
             });
     internal_static_google_longrunning_Operation_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -227,10 +228,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.api.AnnotationsProto.getDescriptor();
     com.google.api.ClientProto.getDescriptor();
     com.google.protobuf.AnyProto.getDescriptor();
+    com.google.protobuf.DescriptorProtos.getDescriptor();
     com.google.protobuf.DurationProto.getDescriptor();
     com.google.protobuf.EmptyProto.getDescriptor();
     com.google.rpc.StatusProto.getDescriptor();
-    com.google.protobuf.DescriptorProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
index 7e7b2bd76f..c3d41a8079 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java
@@ -23,7 +23,8 @@
  *
  *
  * 
- * The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
+ * The request message for
+ * [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
  * 
* * Protobuf type {@code google.longrunning.WaitOperationRequest} @@ -344,7 +345,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
+   * The request message for
+   * [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
    * 
* * Protobuf type {@code google.longrunning.WaitOperationRequest} 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 6003be5307..7e3e66e9ed 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 @@ -342,6 +342,16 @@ message RubySettings { message GoSettings { // Some settings. CommonLanguageSettings common = 1; + + // Map of service names to renamed services. Keys are the package relative + // service names and values are the name to be used for the service client + // and call options. + // + // publishing: + // go_settings: + // renamed_services: + // Publisher: TopicAdmin + map renamed_services = 2; } // Describes the generator configuration for a method. diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto index be8880b3f7..bb42620b73 100644 --- a/java-common-protos/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto +++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/longrunning/operations.proto @@ -19,10 +19,10 @@ package google.longrunning; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/protobuf/any.proto"; +import "google/protobuf/descriptor.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/rpc/status.proto"; -import "google/protobuf/descriptor.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.LongRunning"; @@ -30,6 +30,7 @@ option go_package = "cloud.google.com/go/longrunning/autogen/longrunningpb;longr option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.longrunning"; +option objc_class_prefix = "GLRUN"; option php_namespace = "Google\\LongRunning"; extend google.protobuf.MethodOptions { @@ -45,25 +46,17 @@ extend google.protobuf.MethodOptions { // Manages long-running operations with an API service. // // When an API method normally takes long time to complete, it can be designed -// to return [Operation][google.longrunning.Operation] to the client, and the client can use this -// interface to receive the real response asynchronously by polling the -// operation resource, or pass the operation resource to another API (such as -// Google Cloud Pub/Sub API) to receive the response. Any API service that -// returns long-running operations should implement the `Operations` interface -// so developers can have a consistent client experience. +// to return [Operation][google.longrunning.Operation] to the client, and the +// client can use this interface to receive the real response asynchronously by +// polling the operation resource, or pass the operation resource to another API +// (such as Pub/Sub API) to receive the response. Any API service that returns +// long-running operations should implement the `Operations` interface so +// developers can have a consistent client experience. service Operations { option (google.api.default_host) = "longrunning.googleapis.com"; // Lists operations that match the specified filter in the request. If the // server doesn't support this method, it returns `UNIMPLEMENTED`. - // - // NOTE: the `name` binding allows API services to override the binding - // to use different resource name schemes, such as `users/*/operations`. To - // override the binding, API services can add a binding such as - // `"/v1/{name=users/*}/operations"` to their service configuration. - // For backwards compatibility, the default name includes the operations - // collection id, however overriding users must ensure the name binding - // is the parent resource, without the operations collection id. rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { option (google.api.http) = { get: "/v1/{name=operations}" @@ -100,8 +93,9 @@ service Operations { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, // the operation is not deleted; instead, it becomes an operation with - // an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // an [Operation.error][google.longrunning.Operation.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + // `Code.CANCELLED`. rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{name=operations/**}:cancel" @@ -119,8 +113,7 @@ service Operations { // Note that this method is on a best-effort basis. It may return the latest // state before the specified timeout (including immediately), meaning even an // immediate response is no guarantee that the operation is done. - rpc WaitOperation(WaitOperationRequest) returns (Operation) { - } + rpc WaitOperation(WaitOperationRequest) returns (Operation) {} } // This resource represents a long-running operation that is the result of a @@ -144,12 +137,13 @@ message Operation { // The operation result, which can be either an `error` or a valid `response`. // If `done` == `false`, neither `error` nor `response` is set. - // If `done` == `true`, exactly one of `error` or `response` is set. + // If `done` == `true`, exactly one of `error` or `response` can be set. + // Some services might not provide the result. oneof result { // The error result of the operation in case of failure or cancellation. google.rpc.Status error = 4; - // The normal response of the operation in case of success. If the original + // The normal, successful response of the operation. If the original // method returns no data on success, such as `Delete`, the response is // `google.protobuf.Empty`. If the original method is standard // `Get`/`Create`/`Update`, the response should be the resource. For other @@ -161,13 +155,15 @@ message Operation { } } -// The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation]. +// The request message for +// [Operations.GetOperation][google.longrunning.Operations.GetOperation]. message GetOperationRequest { // The name of the operation resource. string name = 1; } -// The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. +// The request message for +// [Operations.ListOperations][google.longrunning.Operations.ListOperations]. message ListOperationsRequest { // The name of the operation's parent resource. string name = 4; @@ -182,7 +178,8 @@ message ListOperationsRequest { string page_token = 3; } -// The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. +// The response message for +// [Operations.ListOperations][google.longrunning.Operations.ListOperations]. message ListOperationsResponse { // A list of operations that matches the specified filter in the request. repeated Operation operations = 1; @@ -191,19 +188,22 @@ message ListOperationsResponse { string next_page_token = 2; } -// The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. +// The request message for +// [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. message CancelOperationRequest { // The name of the operation resource to be cancelled. string name = 1; } -// The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. +// The request message for +// [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. message DeleteOperationRequest { // The name of the operation resource to be deleted. string name = 1; } -// The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation]. +// The request message for +// [Operations.WaitOperation][google.longrunning.Operations.WaitOperation]. message WaitOperationRequest { // The name of the operation resource to wait on. string name = 1; @@ -218,13 +218,12 @@ message WaitOperationRequest { // // Example: // -// rpc LongRunningRecognize(LongRunningRecognizeRequest) -// returns (google.longrunning.Operation) { -// option (google.longrunning.operation_info) = { -// response_type: "LongRunningRecognizeResponse" -// metadata_type: "LongRunningRecognizeMetadata" -// }; -// } +// rpc Export(ExportRequest) returns (google.longrunning.Operation) { +// option (google.longrunning.operation_info) = { +// response_type: "ExportResponse" +// metadata_type: "ExportMetadata" +// }; +// } message OperationInfo { // Required. The message name of the primary return type for this // long-running operation. diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMember.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMember.java new file mode 100644 index 0000000000..7f8ee8d3ca --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMember.java @@ -0,0 +1,901 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/resource_policy_member.proto + +// Protobuf Java Version: 3.25.5 +package com.google.iam.v1; + +/** + * + * + *
+ * Output-only policy member strings of a Google Cloud resource's built-in
+ * identity.
+ * 
+ * + * Protobuf type {@code google.iam.v1.ResourcePolicyMember} + */ +public final class ResourcePolicyMember extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.iam.v1.ResourcePolicyMember) + ResourcePolicyMemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourcePolicyMember.newBuilder() to construct. + private ResourcePolicyMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourcePolicyMember() { + iamPolicyNamePrincipal_ = ""; + iamPolicyUidPrincipal_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourcePolicyMember(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.ResourcePolicyMemberProto + .internal_static_google_iam_v1_ResourcePolicyMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.ResourcePolicyMemberProto + .internal_static_google_iam_v1_ResourcePolicyMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.ResourcePolicyMember.class, + com.google.iam.v1.ResourcePolicyMember.Builder.class); + } + + public static final int IAM_POLICY_NAME_PRINCIPAL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object iamPolicyNamePrincipal_ = ""; + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+   * and recreated with the same name, the binding will be applicable to the new
+   * resource.
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+   * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iamPolicyNamePrincipal. + */ + @java.lang.Override + public java.lang.String getIamPolicyNamePrincipal() { + java.lang.Object ref = iamPolicyNamePrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamPolicyNamePrincipal_ = s; + return s; + } + } + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+   * and recreated with the same name, the binding will be applicable to the new
+   * resource.
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+   * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iamPolicyNamePrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIamPolicyNamePrincipalBytes() { + java.lang.Object ref = iamPolicyNamePrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iamPolicyNamePrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IAM_POLICY_UID_PRINCIPAL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object iamPolicyUidPrincipal_ = ""; + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+   * resource is deleted and recreated with the same name, the binding will not
+   * be applicable to the new resource
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+   * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iamPolicyUidPrincipal. + */ + @java.lang.Override + public java.lang.String getIamPolicyUidPrincipal() { + java.lang.Object ref = iamPolicyUidPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamPolicyUidPrincipal_ = s; + return s; + } + } + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+   * resource is deleted and recreated with the same name, the binding will not
+   * be applicable to the new resource
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+   * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iamPolicyUidPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIamPolicyUidPrincipalBytes() { + java.lang.Object ref = iamPolicyUidPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iamPolicyUidPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamPolicyNamePrincipal_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamPolicyNamePrincipal_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamPolicyUidPrincipal_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, iamPolicyUidPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamPolicyNamePrincipal_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iamPolicyNamePrincipal_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamPolicyUidPrincipal_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, iamPolicyUidPrincipal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v1.ResourcePolicyMember)) { + return super.equals(obj); + } + com.google.iam.v1.ResourcePolicyMember other = (com.google.iam.v1.ResourcePolicyMember) obj; + + if (!getIamPolicyNamePrincipal().equals(other.getIamPolicyNamePrincipal())) return false; + if (!getIamPolicyUidPrincipal().equals(other.getIamPolicyUidPrincipal())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IAM_POLICY_NAME_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getIamPolicyNamePrincipal().hashCode(); + hash = (37 * hash) + IAM_POLICY_UID_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getIamPolicyUidPrincipal().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v1.ResourcePolicyMember parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v1.ResourcePolicyMember parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v1.ResourcePolicyMember parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v1.ResourcePolicyMember prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output-only policy member strings of a Google Cloud resource's built-in
+   * identity.
+   * 
+ * + * Protobuf type {@code google.iam.v1.ResourcePolicyMember} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v1.ResourcePolicyMember) + com.google.iam.v1.ResourcePolicyMemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v1.ResourcePolicyMemberProto + .internal_static_google_iam_v1_ResourcePolicyMember_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v1.ResourcePolicyMemberProto + .internal_static_google_iam_v1_ResourcePolicyMember_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v1.ResourcePolicyMember.class, + com.google.iam.v1.ResourcePolicyMember.Builder.class); + } + + // Construct using com.google.iam.v1.ResourcePolicyMember.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + iamPolicyNamePrincipal_ = ""; + iamPolicyUidPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v1.ResourcePolicyMemberProto + .internal_static_google_iam_v1_ResourcePolicyMember_descriptor; + } + + @java.lang.Override + public com.google.iam.v1.ResourcePolicyMember getDefaultInstanceForType() { + return com.google.iam.v1.ResourcePolicyMember.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v1.ResourcePolicyMember build() { + com.google.iam.v1.ResourcePolicyMember result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v1.ResourcePolicyMember buildPartial() { + com.google.iam.v1.ResourcePolicyMember result = + new com.google.iam.v1.ResourcePolicyMember(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v1.ResourcePolicyMember result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.iamPolicyNamePrincipal_ = iamPolicyNamePrincipal_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iamPolicyUidPrincipal_ = iamPolicyUidPrincipal_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v1.ResourcePolicyMember) { + return mergeFrom((com.google.iam.v1.ResourcePolicyMember) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v1.ResourcePolicyMember other) { + if (other == com.google.iam.v1.ResourcePolicyMember.getDefaultInstance()) return this; + if (!other.getIamPolicyNamePrincipal().isEmpty()) { + iamPolicyNamePrincipal_ = other.iamPolicyNamePrincipal_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIamPolicyUidPrincipal().isEmpty()) { + iamPolicyUidPrincipal_ = other.iamPolicyUidPrincipal_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + iamPolicyNamePrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + iamPolicyUidPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object iamPolicyNamePrincipal_ = ""; + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+     * and recreated with the same name, the binding will be applicable to the new
+     * resource.
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+     * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iamPolicyNamePrincipal. + */ + public java.lang.String getIamPolicyNamePrincipal() { + java.lang.Object ref = iamPolicyNamePrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamPolicyNamePrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+     * and recreated with the same name, the binding will be applicable to the new
+     * resource.
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+     * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for iamPolicyNamePrincipal. + */ + public com.google.protobuf.ByteString getIamPolicyNamePrincipalBytes() { + java.lang.Object ref = iamPolicyNamePrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iamPolicyNamePrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+     * and recreated with the same name, the binding will be applicable to the new
+     * resource.
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+     * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iamPolicyNamePrincipal to set. + * @return This builder for chaining. + */ + public Builder setIamPolicyNamePrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iamPolicyNamePrincipal_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+     * and recreated with the same name, the binding will be applicable to the new
+     * resource.
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+     * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIamPolicyNamePrincipal() { + iamPolicyNamePrincipal_ = getDefaultInstance().getIamPolicyNamePrincipal(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+     * and recreated with the same name, the binding will be applicable to the new
+     * resource.
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+     * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for iamPolicyNamePrincipal to set. + * @return This builder for chaining. + */ + public Builder setIamPolicyNamePrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamPolicyNamePrincipal_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object iamPolicyUidPrincipal_ = ""; + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+     * resource is deleted and recreated with the same name, the binding will not
+     * be applicable to the new resource
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+     * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The iamPolicyUidPrincipal. + */ + public java.lang.String getIamPolicyUidPrincipal() { + java.lang.Object ref = iamPolicyUidPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamPolicyUidPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+     * resource is deleted and recreated with the same name, the binding will not
+     * be applicable to the new resource
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+     * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for iamPolicyUidPrincipal. + */ + public com.google.protobuf.ByteString getIamPolicyUidPrincipalBytes() { + java.lang.Object ref = iamPolicyUidPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iamPolicyUidPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+     * resource is deleted and recreated with the same name, the binding will not
+     * be applicable to the new resource
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+     * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The iamPolicyUidPrincipal to set. + * @return This builder for chaining. + */ + public Builder setIamPolicyUidPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iamPolicyUidPrincipal_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+     * resource is deleted and recreated with the same name, the binding will not
+     * be applicable to the new resource
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+     * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIamPolicyUidPrincipal() { + iamPolicyUidPrincipal_ = getDefaultInstance().getIamPolicyUidPrincipal(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * IAM policy binding member referring to a Google Cloud resource by
+     * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+     * resource is deleted and recreated with the same name, the binding will not
+     * be applicable to the new resource
+     *
+     * Example:
+     * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+     * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for iamPolicyUidPrincipal to set. + * @return This builder for chaining. + */ + public Builder setIamPolicyUidPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamPolicyUidPrincipal_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.iam.v1.ResourcePolicyMember) + } + + // @@protoc_insertion_point(class_scope:google.iam.v1.ResourcePolicyMember) + private static final com.google.iam.v1.ResourcePolicyMember DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v1.ResourcePolicyMember(); + } + + public static com.google.iam.v1.ResourcePolicyMember getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourcePolicyMember parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v1.ResourcePolicyMember getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberOrBuilder.java new file mode 100644 index 0000000000..b1c9e29e53 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/resource_policy_member.proto + +// Protobuf Java Version: 3.25.5 +package com.google.iam.v1; + +public interface ResourcePolicyMemberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v1.ResourcePolicyMember) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+   * and recreated with the same name, the binding will be applicable to the new
+   * resource.
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+   * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iamPolicyNamePrincipal. + */ + java.lang.String getIamPolicyNamePrincipal(); + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * user-assigned name (https://google.aip.dev/122). If a resource is deleted
+   * and recreated with the same name, the binding will be applicable to the new
+   * resource.
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`
+   * 
+ * + * string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iamPolicyNamePrincipal. + */ + com.google.protobuf.ByteString getIamPolicyNamePrincipalBytes(); + + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+   * resource is deleted and recreated with the same name, the binding will not
+   * be applicable to the new resource
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+   * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iamPolicyUidPrincipal. + */ + java.lang.String getIamPolicyUidPrincipal(); + /** + * + * + *
+   * IAM policy binding member referring to a Google Cloud resource by
+   * system-assigned unique identifier (https://google.aip.dev/148#uid). If a
+   * resource is deleted and recreated with the same name, the binding will not
+   * be applicable to the new resource
+   *
+   * Example:
+   * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
+   * 
+ * + * string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iamPolicyUidPrincipal. + */ + com.google.protobuf.ByteString getIamPolicyUidPrincipalBytes(); +} diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberProto.java new file mode 100644 index 0000000000..28627cdb58 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/ResourcePolicyMemberProto.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v1/resource_policy_member.proto + +// Protobuf Java Version: 3.25.5 +package com.google.iam.v1; + +public final class ResourcePolicyMemberProto { + private ResourcePolicyMemberProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v1_ResourcePolicyMember_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_v1_ResourcePolicyMember_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/iam/v1/resource_policy_member.p" + + "roto\022\rgoogle.iam.v1\032\037google/api/field_be" + + "havior.proto\"e\n\024ResourcePolicyMember\022&\n\031" + + "iam_policy_name_principal\030\001 \001(\tB\003\340A\003\022%\n\030" + + "iam_policy_uid_principal\030\002 \001(\tB\003\340A\003B\207\001\n\021" + + "com.google.iam.v1B\031ResourcePolicyMemberP" + + "rotoP\001Z)cloud.google.com/go/iam/apiv1/ia" + + "mpb;iampb\252\002\023Google.Cloud.Iam.V1\312\002\023Google" + + "\\Cloud\\Iam\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_iam_v1_ResourcePolicyMember_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_v1_ResourcePolicyMember_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_v1_ResourcePolicyMember_descriptor, + new java.lang.String[] { + "IamPolicyNamePrincipal", "IamPolicyUidPrincipal", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v1/src/main/proto/google/iam/v1/resource_policy_member.proto b/java-iam/proto-google-iam-v1/src/main/proto/google/iam/v1/resource_policy_member.proto new file mode 100644 index 0000000000..8f9aae60d4 --- /dev/null +++ b/java-iam/proto-google-iam-v1/src/main/proto/google/iam/v1/resource_policy_member.proto @@ -0,0 +1,50 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V1"; +option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb"; +option php_namespace = "Google\\Cloud\\Iam\\V1"; +option java_multiple_files = true; +option java_outer_classname = "ResourcePolicyMemberProto"; +option java_package = "com.google.iam.v1"; + +// Output-only policy member strings of a Google Cloud resource's built-in +// identity. +message ResourcePolicyMember { + // IAM policy binding member referring to a Google Cloud resource by + // user-assigned name (https://google.aip.dev/122). If a resource is deleted + // and recreated with the same name, the binding will be applicable to the new + // resource. + // + // Example: + // `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + string iam_policy_name_principal = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // IAM policy binding member referring to a Google Cloud resource by + // system-assigned unique identifier (https://google.aip.dev/148#uid). If a + // resource is deleted and recreated with the same name, the binding will not + // be applicable to the new resource + // + // Example: + // `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + string iam_policy_uid_principal = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +}