* 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
* 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
+ * 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+ * 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+ * 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 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 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+ * 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+ * 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 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 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+ * 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.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+ * 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+ * 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() { * * ** * 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 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" + * }; + * } *- * 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 + maprenamed_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-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index 708fb0136c..dd6e9afac6 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom -2.48.0 +2.49.0 pom @@ -23,17 +23,17 @@ com.google.api gapic-generator-java-pom-parent -2.50.0 +2.51.0 ../../gapic-generator-java-pom-parent com.google.cloud google-cloud-core -2.48.0 +2.49.0 com.google.cloud google-cloud-core-grpc -2.48.0 +2.49.0 com.google.cloud google-cloud-core-http -2.48.0 +2.49.0
+ * 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
+ * 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+ * 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];
+}
diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml
index a3a38e386a..0ca0a5dbce 100644
--- a/java-iam/proto-google-iam-v2/pom.xml
+++ b/java-iam/proto-google-iam-v2/pom.xml
@@ -4,13 +4,13 @@