callable.withDefaultCallContext(
clientContext
.getDefaultCallContext()
- .withStreamIdleTimeout(callSettings.getIdleTimeout()));
+ .withStreamIdleTimeout(callSettings.getIdleTimeout())
+ .withStreamWaitTimeout(callSettings.getWaitTimeout()));
return callable;
}
diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java
index 0c71d12420..70bf4eeda0 100644
--- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java
+++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingAttemptCallable.java
@@ -37,7 +37,6 @@
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import javax.annotation.concurrent.GuardedBy;
-import org.threeten.bp.Duration;
/**
* A callable that generates Server Streaming attempts. At any one time, it is responsible for at
@@ -181,15 +180,6 @@ public void cancel() {
}
isStarted = true;
- // Propagate the totalTimeout as the overall stream deadline, so long as the user
- // has not provided a timeout via the ApiCallContext. If they have, retain it.
- Duration totalTimeout =
- outerRetryingFuture.getAttemptSettings().getGlobalSettings().getTotalTimeout();
-
- if (totalTimeout != null && context != null && context.getTimeout() == null) {
- context = context.withTimeout(totalTimeout);
- }
-
// Call the inner callable
call();
}
@@ -218,13 +208,10 @@ public Void call() {
ApiCallContext attemptContext = context;
- // Set the streamWaitTimeout to the attempt RPC Timeout, only if the context
- // does not already have a timeout set by a user via withStreamWaitTimeout.
if (!outerRetryingFuture.getAttemptSettings().getRpcTimeout().isZero()
- && attemptContext.getStreamWaitTimeout() == null) {
+ && attemptContext.getTimeout() == null) {
attemptContext =
- attemptContext.withStreamWaitTimeout(
- outerRetryingFuture.getAttemptSettings().getRpcTimeout());
+ attemptContext.withTimeout(outerRetryingFuture.getAttemptSettings().getRpcTimeout());
}
attemptContext
diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java
index eb9373e0c3..da40b657b7 100644
--- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java
+++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ServerStreamingCallSettings.java
@@ -47,9 +47,11 @@
* This class includes settings that are applicable to all server streaming calls, which
* currently just includes retries and watchdog timers.
*
- *
The watchdog timer is configured via {@code idleTimeout}. The watchdog will terminate any
- * stream that has not has seen any demand (via {@link StreamController#request(int)}) in the
- * configured interval. To turn off idle checks, set the interval to {@link Duration#ZERO}.
+ *
The watchdog timer is configured via {@code idleTimeout} and {@code waitTimeout}. The watchdog
+ * will terminate any stream that has not has seen any demand (via {@link
+ * StreamController#request(int)}) in the configured interval or has not seen a message from the
+ * server in {@code waitTimeout}. To turn off idle checks, set the interval to {@link
+ * Duration#ZERO}.
*
*
Retry configuration allows for the stream to be restarted and resumed. It is composed of 3
* parts: the retryable codes, the retry settings and the stream resumption strategy. The retryable
@@ -79,12 +81,14 @@ public final class ServerStreamingCallSettings
@Nonnull private final StreamResumptionStrategy resumptionStrategy;
@Nonnull private final Duration idleTimeout;
+ @Nonnull private final Duration waitTimeout;
private ServerStreamingCallSettings(Builder builder) {
this.retryableCodes = ImmutableSet.copyOf(builder.retryableCodes);
this.retrySettings = builder.retrySettingsBuilder.build();
this.resumptionStrategy = builder.resumptionStrategy;
this.idleTimeout = builder.idleTimeout;
+ this.waitTimeout = builder.waitTimeout;
}
/**
@@ -123,6 +127,15 @@ public Duration getIdleTimeout() {
return idleTimeout;
}
+ /**
+ * See the class documentation of {@link ServerStreamingCallSettings} for a description of what
+ * the {@link #waitTimeout} does.
+ */
+ @Nonnull
+ public Duration getWaitTimeout() {
+ return waitTimeout;
+ }
+
public Builder toBuilder() {
return new Builder<>(this);
}
@@ -135,6 +148,7 @@ public static Builder newBuilder() {
public String toString() {
return MoreObjects.toStringHelper(this)
.add("idleTimeout", idleTimeout)
+ .add("waitTimeout", waitTimeout)
.add("retryableCodes", retryableCodes)
.add("retrySettings", retrySettings)
.toString();
@@ -148,6 +162,8 @@ public static class Builder
@Nonnull private Duration idleTimeout;
+ @Nonnull private Duration waitTimeout;
+
/** Initialize the builder with default settings */
private Builder() {
this.retryableCodes = ImmutableSet.of();
@@ -155,6 +171,7 @@ private Builder() {
this.resumptionStrategy = new SimpleStreamResumptionStrategy<>();
this.idleTimeout = Duration.ZERO;
+ this.waitTimeout = Duration.ZERO;
}
private Builder(ServerStreamingCallSettings settings) {
@@ -164,6 +181,7 @@ private Builder(ServerStreamingCallSettings settings) {
this.resumptionStrategy = settings.resumptionStrategy;
this.idleTimeout = settings.idleTimeout;
+ this.waitTimeout = settings.waitTimeout;
}
/**
@@ -233,9 +251,9 @@ public Builder setSimpleTimeoutNoRetries(@Nonnull Duration
.setInitialRetryDelay(Duration.ZERO)
.setRetryDelayMultiplier(1)
.setMaxRetryDelay(Duration.ZERO)
- .setInitialRpcTimeout(Duration.ZERO)
+ .setInitialRpcTimeout(timeout)
.setRpcTimeoutMultiplier(1)
- .setMaxRpcTimeout(Duration.ZERO)
+ .setMaxRpcTimeout(timeout)
.setMaxAttempts(1)
.build());
@@ -264,14 +282,27 @@ public Duration getIdleTimeout() {
}
/**
- * See the class documentation of {@link ServerStreamingCallSettings} for a description of what
- * the {@link #idleTimeout} does. {@link Duration#ZERO} disables the watchdog.
+ * Set how long to wait before considering the stream orphaned by the user and closing it.
+ * {@link Duration#ZERO} disables the check for abandoned streams.
*/
public Builder setIdleTimeout(@Nonnull Duration idleTimeout) {
this.idleTimeout = Preconditions.checkNotNull(idleTimeout);
return this;
}
+ @Nonnull
+ public Duration getWaitTimeout() {
+ return waitTimeout;
+ }
+
+ /**
+ * Set the maximum amount of time to wait for the next message from the server. {@link
+ * Duration#ZERO} disables the check for abandoned streams.
+ */
+ public void setWaitTimeout(@Nonnull Duration waitTimeout) {
+ this.waitTimeout = waitTimeout;
+ }
+
@Override
public ServerStreamingCallSettings build() {
return new ServerStreamingCallSettings<>(this);
diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java
index eaa0be04c7..04e025fecb 100644
--- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java
+++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java
@@ -137,7 +137,7 @@ public void testNonRetriedServerStreamingCallableWithRetrySettings() throws Exce
ServerStreamingCallable callable =
Callables.retrying(innerServerStreamingCallable, callSettings, clientContext);
- Duration timeout = retrySettings.getTotalTimeout();
+ Duration timeout = retrySettings.getInitialRpcTimeout();
callable.call("Is your refrigerator running?", callContextWithRetrySettings);
diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java
index a0c8b833f3..acc70467bf 100644
--- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java
+++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingAttemptCallableTest.java
@@ -62,6 +62,7 @@ public class ServerStreamingAttemptCallableTest {
private FakeRetryingFuture fakeRetryingFuture;
private StreamResumptionStrategy resumptionStrategy;
private static Duration totalTimeout = Duration.ofHours(1);
+ private static final Duration attemptTimeout = Duration.ofMinutes(1);
private FakeCallContext mockedCallContext;
@Before
@@ -100,7 +101,6 @@ public void testUserProvidedContextTimeout() {
// Ensure that the callable did not overwrite the user provided timeouts
Mockito.verify(mockedCallContext, Mockito.times(1)).getTimeout();
Mockito.verify(mockedCallContext, Mockito.never()).withTimeout(totalTimeout);
- Mockito.verify(mockedCallContext, Mockito.times(1)).getStreamWaitTimeout();
Mockito.verify(mockedCallContext, Mockito.never())
.withStreamWaitTimeout(Mockito.any(Duration.class));
@@ -128,7 +128,7 @@ public void testNoUserProvidedContextTimeout() {
Mockito.doReturn(BaseApiTracer.getInstance()).when(mockedCallContext).getTracer();
Mockito.doReturn(null).when(mockedCallContext).getTimeout();
Mockito.doReturn(null).when(mockedCallContext).getStreamWaitTimeout();
- Mockito.doReturn(mockedCallContext).when(mockedCallContext).withTimeout(totalTimeout);
+ Mockito.doReturn(mockedCallContext).when(mockedCallContext).withTimeout(attemptTimeout);
Mockito.doReturn(mockedCallContext)
.when(mockedCallContext)
.withStreamWaitTimeout(Mockito.any(Duration.class));
@@ -139,10 +139,7 @@ public void testNoUserProvidedContextTimeout() {
// Ensure that the callable configured the timeouts via the Settings in the
// absence of user-defined timeouts.
Mockito.verify(mockedCallContext, Mockito.times(1)).getTimeout();
- Mockito.verify(mockedCallContext, Mockito.times(1)).withTimeout(totalTimeout);
- Mockito.verify(mockedCallContext, Mockito.times(1)).getStreamWaitTimeout();
- Mockito.verify(mockedCallContext, Mockito.times(1))
- .withStreamWaitTimeout(Mockito.any(Duration.class));
+ Mockito.verify(mockedCallContext, Mockito.times(1)).withTimeout(attemptTimeout);
// Should notify outer observer
Truth.assertThat(observer.controller).isNotNull();
diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java
index a14268f8d5..bcd5a9272e 100644
--- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java
+++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/ServerStreamingCallSettingsTest.java
@@ -98,6 +98,20 @@ public void idleTimeoutIsNotLost() {
assertThat(builder.build().toBuilder().getIdleTimeout()).isEqualTo(idleTimeout);
}
+ @Test
+ public void waitTimeoutIsNotLost() {
+ Duration waitTimeout = Duration.ofSeconds(5);
+
+ ServerStreamingCallSettings.Builder builder =
+ ServerStreamingCallSettings.newBuilder();
+
+ builder.setWaitTimeout(waitTimeout);
+
+ assertThat(builder.getWaitTimeout()).isEqualTo(waitTimeout);
+ assertThat(builder.build().getWaitTimeout()).isEqualTo(waitTimeout);
+ assertThat(builder.build().toBuilder().getWaitTimeout()).isEqualTo(waitTimeout);
+ }
+
@Test
public void testRetrySettingsBuilder() {
RetrySettings initialSettings =
diff --git a/gax-java/pom.xml b/gax-java/pom.xml
index d90e92f202..0f6e091b63 100644
--- a/gax-java/pom.xml
+++ b/gax-java/pom.xml
@@ -4,14 +4,14 @@
com.google.api
gax-parent
pom
- 2.27.0
+ 2.28.0
GAX (Google Api eXtensions) for Java (Parent)
Google Api eXtensions for Java (Parent)
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../gapic-generator-java-pom-parent
@@ -51,7 +51,7 @@
com.google.api
api-common
- 2.10.0
+ 2.11.0
com.google.auth
@@ -109,24 +109,24 @@
com.google.api
gax
- 2.27.0
+ 2.28.0
com.google.api
gax
- 2.27.0
+ 2.28.0
test-jar
testlib
com.google.api.grpc
proto-google-common-protos
- 2.18.0
+ 2.19.0
com.google.api.grpc
grpc-google-common-protos
- 2.18.0
+ 2.19.0
io.grpc
diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml
index 6f3aa5c48c..d92b14d332 100644
--- a/java-common-protos/grpc-google-common-protos/pom.xml
+++ b/java-common-protos/grpc-google-common-protos/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-common-protos
- 2.18.0
+ 2.19.0
grpc-google-common-protos
GRPC library for grpc-google-common-protos
com.google.api.grpc
google-common-protos-parent
- 2.18.0
+ 2.19.0
diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml
index 1917b1f719..85ce896420 100644
--- a/java-common-protos/pom.xml
+++ b/java-common-protos/pom.xml
@@ -4,7 +4,7 @@
com.google.api.grpc
google-common-protos-parent
pom
- 2.18.0
+ 2.19.0
Google Common Protos Parent
Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../gapic-generator-java-pom-parent
@@ -69,7 +69,7 @@
com.google.api.grpc
grpc-google-common-protos
- 2.18.0
+ 2.19.0
io.grpc
@@ -81,7 +81,7 @@
com.google.api.grpc
proto-google-common-protos
- 2.18.0
+ 2.19.0
com.google.guava
diff --git a/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml b/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
index 999a997772..6b1aaa345b 100644
--- a/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
+++ b/java-common-protos/proto-google-common-protos/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
+
+ 7002
+ com/google/**/*Builder
+ * addRepeatedField(*)
+
+
+ 7002
+ com/google/**/*Builder
+ * clearField(*)
+
+
+ 7002
+ com/google/**/*Builder
+ * clearOneof(*)
+
+
+ 7002
+ com/google/**/*Builder
+ * clone()
+
+
+ 7002
+ com/google/**/*Builder
+ * setField(*)
+
+
+ 7002
+ com/google/**/*Builder
+ * setRepeatedField(*)
+
7012
com/google/api/*OrBuilder
diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml
index 3f0d073863..95f4d415c5 100644
--- a/java-common-protos/proto-google-common-protos/pom.xml
+++ b/java-common-protos/proto-google-common-protos/pom.xml
@@ -3,13 +3,13 @@
4.0.0
com.google.api.grpc
proto-google-common-protos
- 2.18.0
+ 2.19.0
proto-google-common-protos
PROTO library for proto-google-common-protos
com.google.api.grpc
google-common-protos-parent
- 2.18.0
+ 2.19.0
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
index 16305c553e..1497403693 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Advice();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConfigChangeProto.internal_static_google_api_Advice_descriptor;
}
@@ -352,39 +347,6 @@ private void buildPartial0(com.google.api.Advice result) {
}
}
- @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.api.Advice) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
index b5e3be7c88..52083e4a44 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java
@@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuthProvider();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthProvider_descriptor;
}
@@ -81,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -106,6 +102,7 @@ public java.lang.String getId() {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -137,6 +134,7 @@ public com.google.protobuf.ByteString getIdBytes() {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -164,6 +162,7 @@ public java.lang.String getIssuer() {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -203,6 +202,7 @@ public com.google.protobuf.ByteString getIssuerBytes() {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -236,6 +236,7 @@ public java.lang.String getJwksUri() {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -276,7 +277,9 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -313,7 +316,9 @@ public java.lang.String getAudiences() {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -399,12 +404,15 @@ public com.google.protobuf.ByteString getAuthorizationUrlBytes() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -426,12 +434,15 @@ public java.util.List getJwtLocationsList() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -454,12 +465,15 @@ public java.util.List getJwtLocationsList() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -481,12 +495,15 @@ public int getJwtLocationsCount() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -508,12 +525,15 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -847,39 +867,6 @@ private void buildPartial0(com.google.api.AuthProvider result) {
}
}
- @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.api.AuthProvider) {
@@ -1038,6 +1025,7 @@ public Builder mergeFrom(
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -1062,6 +1050,7 @@ public java.lang.String getId() {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -1086,6 +1075,7 @@ public com.google.protobuf.ByteString getIdBytes() {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -1109,6 +1099,7 @@ public Builder setId(java.lang.String value) {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -1128,6 +1119,7 @@ public Builder clearId() {
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -1155,6 +1147,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -1181,6 +1174,7 @@ public java.lang.String getIssuer() {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -1207,6 +1201,7 @@ public com.google.protobuf.ByteString getIssuerBytes() {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -1232,6 +1227,7 @@ public Builder setIssuer(java.lang.String value) {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -1253,6 +1249,7 @@ public Builder clearIssuer() {
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -1288,6 +1285,7 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -1320,6 +1318,7 @@ public java.lang.String getJwksUri() {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -1352,6 +1351,7 @@ public com.google.protobuf.ByteString getJwksUriBytes() {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -1383,6 +1383,7 @@ public Builder setJwksUri(java.lang.String value) {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -1410,6 +1411,7 @@ public Builder clearJwksUri() {
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -1446,7 +1448,9 @@ public Builder setJwksUriBytes(com.google.protobuf.ByteString value) {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -1482,7 +1486,9 @@ public java.lang.String getAudiences() {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -1518,7 +1524,9 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -1553,7 +1561,9 @@ public Builder setAudiences(java.lang.String value) {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -1584,7 +1594,9 @@ public Builder clearAudiences() {
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -1739,12 +1751,15 @@ private void ensureJwtLocationsIsMutable() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1769,12 +1784,15 @@ public java.util.List getJwtLocationsList() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1799,12 +1817,15 @@ public int getJwtLocationsCount() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1829,12 +1850,15 @@ public com.google.api.JwtLocation getJwtLocations(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1865,12 +1889,15 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation value) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1898,12 +1925,15 @@ public Builder setJwtLocations(int index, com.google.api.JwtLocation.Builder bui
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1934,12 +1964,15 @@ public Builder addJwtLocations(com.google.api.JwtLocation value) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -1970,12 +2003,15 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation value) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2003,12 +2039,15 @@ public Builder addJwtLocations(com.google.api.JwtLocation.Builder builderForValu
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2036,12 +2075,15 @@ public Builder addJwtLocations(int index, com.google.api.JwtLocation.Builder bui
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2070,12 +2112,15 @@ public Builder addAllJwtLocations(
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2103,12 +2148,15 @@ public Builder clearJwtLocations() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2136,12 +2184,15 @@ public Builder removeJwtLocations(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2162,12 +2213,15 @@ public com.google.api.JwtLocation.Builder getJwtLocationsBuilder(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2192,12 +2246,15 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2223,12 +2280,15 @@ public com.google.api.JwtLocationOrBuilder getJwtLocationsOrBuilder(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2250,12 +2310,15 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder() {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -2277,12 +2340,15 @@ public com.google.api.JwtLocation.Builder addJwtLocationsBuilder(int index) {
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
index 87ac693a46..ac0f0426ee 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java
@@ -29,6 +29,7 @@ public interface AuthProviderOrBuilder
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -43,6 +44,7 @@ public interface AuthProviderOrBuilder
*
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`.
+ *
* Example: "bookstore_auth".
*
*
@@ -59,6 +61,7 @@ public interface AuthProviderOrBuilder
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -75,6 +78,7 @@ public interface AuthProviderOrBuilder
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
* Usually a URL or an email address.
+ *
* Example: https://securetoken.google.com
* Example: 1234567-compute@developer.gserviceaccount.com
*
@@ -99,6 +103,7 @@ public interface AuthProviderOrBuilder
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -121,6 +126,7 @@ public interface AuthProviderOrBuilder
* of the issuer.
* - can be inferred from the email domain of the issuer (e.g. a Google
* service account).
+ *
* Example: https://www.googleapis.com/oauth2/v1/certs
*
*
@@ -146,7 +152,9 @@ public interface AuthProviderOrBuilder
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -172,7 +180,9 @@ public interface AuthProviderOrBuilder
* -
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
* - https://library-example.googleapis.com/
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -217,12 +227,15 @@ public interface AuthProviderOrBuilder
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -241,12 +254,15 @@ public interface AuthProviderOrBuilder
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -265,12 +281,15 @@ public interface AuthProviderOrBuilder
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -289,12 +308,15 @@ public interface AuthProviderOrBuilder
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
@@ -313,12 +335,15 @@ public interface AuthProviderOrBuilder
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
+ *
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
+ *
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
* 3) access_token query parameter
+ *
* Default locations can be specified as followings:
* jwt_locations:
* - header: Authorization
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
index 1c3418f5f3..cb424414e2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuthRequirement();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthRequirement_descriptor;
}
@@ -76,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -101,7 +98,9 @@ public java.lang.String getProviderId() {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -132,6 +131,7 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -140,7 +140,9 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -167,6 +169,7 @@ public java.lang.String getAudiences() {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -175,7 +178,9 @@ public java.lang.String getAudiences() {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -445,39 +450,6 @@ private void buildPartial0(com.google.api.AuthRequirement result) {
}
}
- @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.api.AuthRequirement) {
@@ -563,7 +535,9 @@ public Builder mergeFrom(
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -587,7 +561,9 @@ public java.lang.String getProviderId() {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -611,7 +587,9 @@ public com.google.protobuf.ByteString getProviderIdBytes() {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -634,7 +612,9 @@ public Builder setProviderId(java.lang.String value) {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -653,7 +633,9 @@ public Builder clearProviderId() {
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -680,6 +662,7 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -688,7 +671,9 @@ public Builder setProviderIdBytes(com.google.protobuf.ByteString value) {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -714,6 +699,7 @@ public java.lang.String getAudiences() {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -722,7 +708,9 @@ public java.lang.String getAudiences() {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -748,6 +736,7 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -756,7 +745,9 @@ public com.google.protobuf.ByteString getAudiencesBytes() {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -781,6 +772,7 @@ public Builder setAudiences(java.lang.String value) {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -789,7 +781,9 @@ public Builder setAudiences(java.lang.String value) {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -810,6 +804,7 @@ public Builder clearAudiences() {
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -818,7 +813,9 @@ public Builder clearAudiences() {
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
index da45b4a941..86a8a37c7c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java
@@ -28,7 +28,9 @@ public interface AuthRequirementOrBuilder
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -42,7 +44,9 @@ public interface AuthRequirementOrBuilder
*
*
* [id][google.api.AuthProvider.id] from authentication provider.
+ *
* Example:
+ *
* provider_id: bookstore_auth
*
*
@@ -58,6 +62,7 @@ public interface AuthRequirementOrBuilder
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -66,7 +71,9 @@ public interface AuthRequirementOrBuilder
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
@@ -82,6 +89,7 @@ public interface AuthRequirementOrBuilder
*
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components.
+ *
* The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
* that are allowed to access. A JWT containing any of these audiences will
@@ -90,7 +98,9 @@ public interface AuthRequirementOrBuilder
* will be accepted. For example, if no audiences are in the setting,
* LibraryService API will only accept JWTs with the following audience
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
+ *
* Example:
+ *
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
index cc415379a2..c3e5c2f8b2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java
@@ -24,7 +24,9 @@
*
* `Authentication` defines the authentication configuration for API methods
* provided by an API service.
+ *
* Example:
+ *
* name: calendar.googleapis.com
* authentication:
* providers:
@@ -63,11 +65,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Authentication();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_Authentication_descriptor;
}
@@ -89,6 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -103,6 +101,7 @@ public java.util.List getRulesList() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -118,6 +117,7 @@ public java.util.List getRulesList() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -132,6 +132,7 @@ public int getRulesCount() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -146,6 +147,7 @@ public com.google.api.AuthenticationRule getRules(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -403,7 +405,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* `Authentication` defines the authentication configuration for API methods
* provided by an API service.
+ *
* Example:
+ *
* name: calendar.googleapis.com
* authentication:
* providers:
@@ -520,39 +524,6 @@ private void buildPartial0(com.google.api.Authentication result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Authentication) {
@@ -710,6 +681,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -727,6 +699,7 @@ public java.util.List getRulesList() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -744,6 +717,7 @@ public int getRulesCount() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -761,6 +735,7 @@ public com.google.api.AuthenticationRule getRules(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -784,6 +759,7 @@ public Builder setRules(int index, com.google.api.AuthenticationRule value) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -804,6 +780,7 @@ public Builder setRules(int index, com.google.api.AuthenticationRule.Builder bui
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -827,6 +804,7 @@ public Builder addRules(com.google.api.AuthenticationRule value) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -850,6 +828,7 @@ public Builder addRules(int index, com.google.api.AuthenticationRule value) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -870,6 +849,7 @@ public Builder addRules(com.google.api.AuthenticationRule.Builder builderForValu
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -890,6 +870,7 @@ public Builder addRules(int index, com.google.api.AuthenticationRule.Builder bui
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -911,6 +892,7 @@ public Builder addAllRules(
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -931,6 +913,7 @@ public Builder clearRules() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -951,6 +934,7 @@ public Builder removeRules(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -964,6 +948,7 @@ public com.google.api.AuthenticationRule.Builder getRulesBuilder(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -981,6 +966,7 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -999,6 +985,7 @@ public com.google.api.AuthenticationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1013,6 +1000,7 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder() {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1027,6 +1015,7 @@ public com.google.api.AuthenticationRule.Builder addRulesBuilder(int index) {
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
index d7dd35ee0e..148735aae4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java
@@ -28,6 +28,7 @@ public interface AuthenticationOrBuilder
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -39,6 +40,7 @@ public interface AuthenticationOrBuilder
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -50,6 +52,7 @@ public interface AuthenticationOrBuilder
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -61,6 +64,7 @@ public interface AuthenticationOrBuilder
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -72,6 +76,7 @@ public interface AuthenticationOrBuilder
*
*
* A list of authentication rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
index 15ab9eb377..801f7e8d26 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java
@@ -23,10 +23,12 @@
*
*
* Authentication rules for the service.
+ *
* By default, if a method has any authentication requirements, every request
* must include a valid credential matching one of the requirements.
* It's an error to include more than one kind of credential in a single
* request.
+ *
* If a method doesn't have any auth requirements, request credentials will be
* ignored.
*
@@ -54,11 +56,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuthenticationRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor;
}
@@ -81,6 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -106,6 +104,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -459,10 +458,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Authentication rules for the service.
+ *
* By default, if a method has any authentication requirements, every request
* must include a valid credential matching one of the requirements.
* It's an error to include more than one kind of credential in a single
* request.
+ *
* If a method doesn't have any auth requirements, request credentials will be
* ignored.
*
@@ -570,39 +571,6 @@ private void buildPartial0(com.google.api.AuthenticationRule result) {
}
}
- @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.api.AuthenticationRule) {
@@ -734,6 +702,7 @@ public Builder mergeFrom(
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -758,6 +727,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -782,6 +752,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -805,6 +776,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -824,6 +796,7 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
index ca38fc60e7..fdcffb5e88 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface AuthenticationRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface AuthenticationRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
index 316b08163d..2a3a35a847 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Backend();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BackendProto.internal_static_google_api_Backend_descriptor;
}
@@ -73,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -87,6 +83,7 @@ public java.util.List getRulesList() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -101,6 +98,7 @@ public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrB
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -115,6 +113,7 @@ public int getRulesCount() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -129,6 +128,7 @@ public com.google.api.BackendRule getRules(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -390,39 +390,6 @@ private void buildPartial0(com.google.api.Backend result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Backend) {
@@ -539,6 +506,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -556,6 +524,7 @@ public java.util.List getRulesList() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -573,6 +542,7 @@ public int getRulesCount() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -590,6 +560,7 @@ public com.google.api.BackendRule getRules(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -613,6 +584,7 @@ public Builder setRules(int index, com.google.api.BackendRule value) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -633,6 +605,7 @@ public Builder setRules(int index, com.google.api.BackendRule.Builder builderFor
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -656,6 +629,7 @@ public Builder addRules(com.google.api.BackendRule value) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -679,6 +653,7 @@ public Builder addRules(int index, com.google.api.BackendRule value) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -699,6 +674,7 @@ public Builder addRules(com.google.api.BackendRule.Builder builderForValue) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -719,6 +695,7 @@ public Builder addRules(int index, com.google.api.BackendRule.Builder builderFor
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -739,6 +716,7 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.BackendRu
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -759,6 +737,7 @@ public Builder clearRules() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -779,6 +758,7 @@ public Builder removeRules(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -792,6 +772,7 @@ public com.google.api.BackendRule.Builder getRulesBuilder(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -809,6 +790,7 @@ public com.google.api.BackendRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -826,6 +808,7 @@ public java.util.List extends com.google.api.BackendRuleOrBuilder> getRulesOrB
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -839,6 +822,7 @@ public com.google.api.BackendRule.Builder addRulesBuilder() {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -853,6 +837,7 @@ public com.google.api.BackendRule.Builder addRulesBuilder(int index) {
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java
index 807191b594..9649071c93 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java
@@ -28,6 +28,7 @@ public interface BackendOrBuilder
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -39,6 +40,7 @@ public interface BackendOrBuilder
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -50,6 +52,7 @@ public interface BackendOrBuilder
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -61,6 +64,7 @@ public interface BackendOrBuilder
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -72,6 +76,7 @@ public interface BackendOrBuilder
*
*
* A list of API backend rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
index 8eb90a0d77..161bb7092a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BackendRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BackendProto.internal_static_google_api_BackendRule_descriptor;
}
@@ -85,6 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* Path Translation specifies how to combine the backend address with the
* request path in order to produce the appropriate forwarding URL for the
* request.
+ *
* Path Translation is applicable only to HTTP-based backends. Backends which
* do not accept requests over HTTP/HTTPS should leave `path_translation`
* unspecified.
@@ -104,15 +100,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
* appended to the query string. If a query string parameter and a URL
* pattern variable have the same name, this may result in duplicate keys in
* the query string.
+ *
* # Examples
+ *
* Given the following operation config:
+ *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.cloudfunctions.net/getUser
+ *
* Requests to the following request paths will call the backend at the
* translated path:
+ *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
+ *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
@@ -126,15 +128,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request path will be appended to the backend address.
+ *
* # Examples
+ *
* Given the following operation config:
+ *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.appspot.com
+ *
* Requests to the following request paths will call the backend at the
* translated path:
+ *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe
+ *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -157,15 +165,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
* appended to the query string. If a query string parameter and a URL
* pattern variable have the same name, this may result in duplicate keys in
* the query string.
+ *
* # Examples
+ *
* Given the following operation config:
+ *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.cloudfunctions.net/getUser
+ *
* Requests to the following request paths will call the backend at the
* translated path:
+ *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
+ *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
@@ -179,15 +193,21 @@ public enum PathTranslation implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request path will be appended to the backend address.
+ *
* # Examples
+ *
* Given the following operation config:
+ *
* Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.appspot.com
+ *
* Requests to the following request paths will call the backend at the
* translated path:
+ *
* Request path: /api/company/widgetworks/user/johndoe
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe
+ *
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
* Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
@@ -283,6 +303,8 @@ private PathTranslation(int value) {
}
private int authenticationCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object authentication_;
public enum AuthenticationCase
@@ -338,6 +360,7 @@ public AuthenticationCase getAuthenticationCase() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -363,6 +386,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -393,18 +417,23 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -430,18 +459,23 @@ public java.lang.String getAddress() {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -672,17 +706,22 @@ public boolean getDisableAuth() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -710,17 +749,22 @@ public java.lang.String getProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -1273,39 +1317,6 @@ private void buildPartialOneofs(com.google.api.BackendRule result) {
result.authentication_ = this.authentication_;
}
- @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.api.BackendRule) {
@@ -1502,6 +1513,7 @@ public Builder clearAuthentication() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1526,6 +1538,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1550,6 +1563,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1573,6 +1587,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1592,6 +1607,7 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1618,18 +1634,23 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1654,18 +1675,23 @@ public java.lang.String getAddress() {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1690,18 +1716,23 @@ public com.google.protobuf.ByteString getAddressBytes() {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1725,18 +1756,23 @@ public Builder setAddress(java.lang.String value) {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -1756,18 +1792,23 @@ public Builder clearAddress() {
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -2257,17 +2298,22 @@ public Builder clearDisableAuth() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2294,17 +2340,22 @@ public java.lang.String getProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2331,17 +2382,22 @@ public com.google.protobuf.ByteString getProtocolBytes() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2367,17 +2423,22 @@ public Builder setProtocol(java.lang.String value) {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -2399,17 +2460,22 @@ public Builder clearProtocol() {
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
index e4d76647a7..e1cc5b2630 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface BackendRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface BackendRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -57,18 +59,23 @@ public interface BackendRuleOrBuilder
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -83,18 +90,23 @@ public interface BackendRuleOrBuilder
*
*
* The address of the API backend.
+ *
* The scheme is used to determine the backend protocol and security.
* The following schemes are accepted:
+ *
* SCHEME PROTOCOL SECURITY
* http:// HTTP None
* https:// HTTP TLS
* grpc:// gRPC None
* grpcs:// gRPC TLS
+ *
* It is recommended to explicitly include a scheme. Leaving out the scheme
* may cause constrasting behaviors across platforms.
+ *
* If the port is unspecified, the default is:
* - 80 for schemes without TLS
* - 443 for schemes with TLS
+ *
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
* to specify the protocol version.
*
@@ -242,17 +254,22 @@ public interface BackendRuleOrBuilder
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -269,17 +286,22 @@ public interface BackendRuleOrBuilder
*
* The protocol used for sending a request to the backend.
* The supported values are "http/1.1" and "h2".
+ *
* The default value is inferred from the scheme in the
* [address][google.api.BackendRule.address] field:
+ *
* SCHEME PROTOCOL
* http:// http/1.1
* https:// http/1.1
* grpc:// h2
* grpcs:// h2
+ *
* For secure HTTP backends (https://) that support HTTP/2, set this field
* to "h2" for improved performance.
+ *
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends.
+ *
* See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
* for more details on the supported values.
@@ -349,5 +371,5 @@ com.google.api.BackendRule getOverridesByRequestProtocolOrDefault(
*/
com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang.String key);
- public com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
+ com.google.api.BackendRule.AuthenticationCase getAuthenticationCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
index 081f409851..77a1b33e54 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java
@@ -23,12 +23,15 @@
*
*
* Billing related configuration of the service.
+ *
* The following example shows how to configure monitored resources and metrics
* for billing, `consumer_destinations` is the only supported destination and
* the monitored resources need at least one label key
* `cloud.googleapis.com/location` to indicate the location of the billing
* usage, using different monitored resources between monitoring and billing is
* recommended so they can be evolved independently:
+ *
+ *
* monitored_resources:
* - type: library.googleapis.com/billing_branch
* labels:
@@ -75,11 +78,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Billing();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BillingProto.internal_static_google_api_Billing_descriptor;
}
@@ -207,7 +205,7 @@ private BillingDestination(com.google.protobuf.GeneratedMessageV3.Builder> bui
private BillingDestination() {
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -216,11 +214,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BillingDestination();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.BillingProto
.internal_static_google_api_Billing_BillingDestination_descriptor;
@@ -294,7 +287,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
public static final int METRICS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList metrics_;
+ private com.google.protobuf.LazyStringArrayList metrics_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -580,8 +574,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -609,7 +602,6 @@ public com.google.api.Billing.BillingDestination build() {
public com.google.api.Billing.BillingDestination buildPartial() {
com.google.api.Billing.BillingDestination result =
new com.google.api.Billing.BillingDestination(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -617,54 +609,15 @@ public com.google.api.Billing.BillingDestination buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.api.Billing.BillingDestination result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- metrics_ = metrics_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.metrics_ = metrics_;
- }
-
private void buildPartial0(com.google.api.Billing.BillingDestination result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.monitoredResource_ = monitoredResource_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ metrics_.makeImmutable();
+ result.metrics_ = metrics_;
+ }
}
@java.lang.Override
@@ -687,7 +640,7 @@ public Builder mergeFrom(com.google.api.Billing.BillingDestination other) {
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
@@ -868,14 +821,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList metrics_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList metrics_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMetricsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!metrics_.isModifiable()) {
metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -891,7 +844,8 @@ private void ensureMetricsIsMutable() {
* @return A list containing the metrics.
*/
public com.google.protobuf.ProtocolStringList getMetricsList() {
- return metrics_.getUnmodifiableView();
+ metrics_.makeImmutable();
+ return metrics_;
}
/**
*
@@ -964,6 +918,7 @@ public Builder setMetrics(int index, java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -987,6 +942,7 @@ public Builder addMetrics(java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1007,6 +963,7 @@ public Builder addMetrics(java.lang.String value) {
public Builder addAllMetrics(java.lang.Iterable values) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1024,8 +981,9 @@ public Builder addAllMetrics(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearMetrics() {
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1050,6 +1008,7 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMetricsIsMutable();
metrics_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1370,12 +1329,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Billing related configuration of the service.
+ *
* The following example shows how to configure monitored resources and metrics
* for billing, `consumer_destinations` is the only supported destination and
* the monitored resources need at least one label key
* `cloud.googleapis.com/location` to indicate the location of the billing
* usage, using different monitored resources between monitoring and billing is
* recommended so they can be evolved independently:
+ *
+ *
* monitored_resources:
* - type: library.googleapis.com/billing_branch
* labels:
@@ -1485,39 +1447,6 @@ private void buildPartial0(com.google.api.Billing result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Billing) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
index 22e1d6a886..12400b691c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ClientLibrarySettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_ClientLibrarySettings_descriptor;
}
@@ -995,39 +990,6 @@ private void buildPartial0(com.google.api.ClientLibrarySettings result) {
}
}
- @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.api.ClientLibrarySettings) {
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 1a5e87bc39..8bdd110ef1 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
@@ -37,23 +37,31 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
*
* A definition of a client library method signature.
+ *
* In client libraries, each proto RPC corresponds to one or more methods
* which the end user is able to call, and calls the underlying RPC.
* Normally, this method receives a single argument (a struct or instance
* corresponding to the RPC request object). Defining this field will
* add one or more overloads providing flattened or simpler method signatures
* in some languages.
+ *
* The fields on the method signature are provided as a comma-separated
* string.
+ *
* For example, the proto RPC and annotation:
+ *
* rpc CreateSubscription(CreateSubscriptionRequest)
* returns (Subscription) {
* option (google.api.method_signature) = "name,topic";
* }
+ *
* Would add the following Java overload (in addition to the method accepting
* the request object):
+ *
* public final Subscription createSubscription(String name, String topic)
+ *
* The following backwards-compatibility guidelines apply:
+ *
* * Adding this annotation to an unannotated method is backwards
* compatible.
* * Adding this annotation to a method which already has existing
@@ -80,7 +88,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
* The hostname for this service.
* This should be specified with no prefix or protocol.
+ *
* Example:
+ *
* service Foo {
* option (google.api.default_host) = "foo.googleapi.com";
* ...
@@ -101,14 +111,19 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
*
* OAuth scopes needed for the client.
+ *
* Example:
+ *
* service Foo {
* option (google.api.oauth_scopes) = \
* "https://www.googleapis.com/auth/cloud-platform";
* ...
* }
+ *
* If there is more than one scope, use a comma-separated string:
+ *
* Example:
+ *
* service Foo {
* option (google.api.oauth_scopes) = \
* "https://www.googleapis.com/auth/cloud-platform,"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
index cd775f9434..e2dc7ee3c4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CommonLanguageSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_CommonLanguageSettings_descriptor;
}
@@ -499,39 +494,6 @@ private void buildPartial0(com.google.api.CommonLanguageSettings result) {
}
}
- @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.api.CommonLanguageSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
index 2d38026dd4..f9c91ce5cf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java
@@ -24,6 +24,7 @@
*
* Output generated from semantically comparing two versions of a service
* configuration.
+ *
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
@@ -55,11 +56,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ConfigChange();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConfigChangeProto.internal_static_google_api_ConfigChange_descriptor;
}
@@ -556,6 +552,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Output generated from semantically comparing two versions of a service
* configuration.
+ *
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
@@ -663,39 +660,6 @@ private void buildPartial0(com.google.api.ConfigChange result) {
}
}
- @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.api.ConfigChange) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
index f3f2c60cf3..80f9bb90f5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java
@@ -23,24 +23,31 @@
*
*
* `Context` defines which contexts an API requests.
+ *
* Example:
+ *
* context:
* rules:
* - selector: "*"
* requested:
* - google.rpc.context.ProjectContext
* - google.rpc.context.OriginContext
+ *
* The above specifies that all methods in the API request
* `google.rpc.context.ProjectContext` and
* `google.rpc.context.OriginContext`.
+ *
* Available context types are defined in package
* `google.rpc.context`.
+ *
* This also provides mechanism to allowlist any protobuf message extension that
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
* “x-goog-ext-<extension_id>-jspb” format. For example, list any service
* specific protobuf types that can appear in grpc metadata as follows in your
* yaml file:
+ *
* Example:
+ *
* context:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -48,6 +55,7 @@
* - google.foo.v1.NewExtension
* allowed_response_extensions:
* - google.foo.v1.NewExtension
+ *
* You can also specify extension ID instead of fully qualified extension name
* here.
*
@@ -74,11 +82,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Context();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ContextProto.internal_static_google_api_Context_descriptor;
}
@@ -100,6 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -114,6 +118,7 @@ public java.util.List getRulesList() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -128,6 +133,7 @@ public java.util.List extends com.google.api.ContextRuleOrBuilder> getRulesOrB
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -142,6 +148,7 @@ public int getRulesCount() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -156,6 +163,7 @@ public com.google.api.ContextRule getRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -330,24 +338,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* `Context` defines which contexts an API requests.
+ *
* Example:
+ *
* context:
* rules:
* - selector: "*"
* requested:
* - google.rpc.context.ProjectContext
* - google.rpc.context.OriginContext
+ *
* The above specifies that all methods in the API request
* `google.rpc.context.ProjectContext` and
* `google.rpc.context.OriginContext`.
+ *
* Available context types are defined in package
* `google.rpc.context`.
+ *
* This also provides mechanism to allowlist any protobuf message extension that
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
* “x-goog-ext-<extension_id>-jspb” format. For example, list any service
* specific protobuf types that can appear in grpc metadata as follows in your
* yaml file:
+ *
* Example:
+ *
* context:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -355,6 +370,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* - google.foo.v1.NewExtension
* allowed_response_extensions:
* - google.foo.v1.NewExtension
+ *
* You can also specify extension ID instead of fully qualified extension name
* here.
*
@@ -444,39 +460,6 @@ private void buildPartial0(com.google.api.Context result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Context) {
@@ -593,6 +576,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -610,6 +594,7 @@ public java.util.List getRulesList() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -627,6 +612,7 @@ public int getRulesCount() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -644,6 +630,7 @@ public com.google.api.ContextRule getRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -667,6 +654,7 @@ public Builder setRules(int index, com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -687,6 +675,7 @@ public Builder setRules(int index, com.google.api.ContextRule.Builder builderFor
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -710,6 +699,7 @@ public Builder addRules(com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -733,6 +723,7 @@ public Builder addRules(int index, com.google.api.ContextRule value) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -753,6 +744,7 @@ public Builder addRules(com.google.api.ContextRule.Builder builderForValue) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -773,6 +765,7 @@ public Builder addRules(int index, com.google.api.ContextRule.Builder builderFor
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -793,6 +786,7 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.ContextRu
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -813,6 +807,7 @@ public Builder clearRules() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -833,6 +828,7 @@ public Builder removeRules(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -846,6 +842,7 @@ public com.google.api.ContextRule.Builder getRulesBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -863,6 +860,7 @@ public com.google.api.ContextRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -880,6 +878,7 @@ public java.util.List extends com.google.api.ContextRuleOrBuilder> getRulesOrB
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -893,6 +892,7 @@ public com.google.api.ContextRule.Builder addRulesBuilder() {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -907,6 +907,7 @@ public com.google.api.ContextRule.Builder addRulesBuilder(int index) {
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
index f7018ada23..8a776db816 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java
@@ -28,6 +28,7 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -39,6 +40,7 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -50,6 +52,7 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -61,6 +64,7 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -72,6 +76,7 @@ public interface ContextOrBuilder
*
*
* A list of RPC context rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
index de05105937..c03d4701c2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java
@@ -40,10 +40,10 @@ private ContextRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private ContextRule() {
selector_ = "";
- requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ContextRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ContextProto.internal_static_google_api_ContextRule_descriptor;
}
@@ -78,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -103,6 +99,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -127,7 +124,8 @@ public com.google.protobuf.ByteString getSelectorBytes() {
public static final int REQUESTED_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList requested_;
+ private com.google.protobuf.LazyStringArrayList requested_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -190,7 +188,8 @@ public com.google.protobuf.ByteString getRequestedBytes(int index) {
public static final int PROVIDED_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList provided_;
+ private com.google.protobuf.LazyStringArrayList provided_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -253,7 +252,8 @@ public com.google.protobuf.ByteString getProvidedBytes(int index) {
public static final int ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList allowedRequestExtensions_;
+ private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -320,7 +320,8 @@ public com.google.protobuf.ByteString getAllowedRequestExtensionsBytes(int index
public static final int ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList allowedResponseExtensions_;
+ private com.google.protobuf.LazyStringArrayList allowedResponseExtensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -647,14 +648,10 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
selector_ = "";
- requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
+ requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ allowedRequestExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ allowedResponseExtensions_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -680,7 +677,6 @@ public com.google.api.ContextRule build() {
@java.lang.Override
public com.google.api.ContextRule buildPartial() {
com.google.api.ContextRule result = new com.google.api.ContextRule(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -688,67 +684,27 @@ public com.google.api.ContextRule buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.api.ContextRule result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- requested_ = requested_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.requested_ = requested_;
- if (((bitField0_ & 0x00000004) != 0)) {
- provided_ = provided_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.provided_ = provided_;
- if (((bitField0_ & 0x00000008) != 0)) {
- allowedRequestExtensions_ = allowedRequestExtensions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.allowedRequestExtensions_ = allowedRequestExtensions_;
- if (((bitField0_ & 0x00000010) != 0)) {
- allowedResponseExtensions_ = allowedResponseExtensions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.allowedResponseExtensions_ = allowedResponseExtensions_;
- }
-
private void buildPartial0(com.google.api.ContextRule result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.selector_ = selector_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ requested_.makeImmutable();
+ result.requested_ = requested_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ provided_.makeImmutable();
+ result.provided_ = provided_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ allowedRequestExtensions_.makeImmutable();
+ result.allowedRequestExtensions_ = allowedRequestExtensions_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ allowedResponseExtensions_.makeImmutable();
+ result.allowedResponseExtensions_ = allowedResponseExtensions_;
+ }
}
@java.lang.Override
@@ -771,7 +727,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.requested_.isEmpty()) {
if (requested_.isEmpty()) {
requested_ = other.requested_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureRequestedIsMutable();
requested_.addAll(other.requested_);
@@ -781,7 +737,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.provided_.isEmpty()) {
if (provided_.isEmpty()) {
provided_ = other.provided_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ |= 0x00000004;
} else {
ensureProvidedIsMutable();
provided_.addAll(other.provided_);
@@ -791,7 +747,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.allowedRequestExtensions_.isEmpty()) {
if (allowedRequestExtensions_.isEmpty()) {
allowedRequestExtensions_ = other.allowedRequestExtensions_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ |= 0x00000008;
} else {
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.addAll(other.allowedRequestExtensions_);
@@ -801,7 +757,7 @@ public Builder mergeFrom(com.google.api.ContextRule other) {
if (!other.allowedResponseExtensions_.isEmpty()) {
if (allowedResponseExtensions_.isEmpty()) {
allowedResponseExtensions_ = other.allowedResponseExtensions_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ |= 0x00000010;
} else {
ensureAllowedResponseExtensionsIsMutable();
allowedResponseExtensions_.addAll(other.allowedResponseExtensions_);
@@ -893,6 +849,7 @@ public Builder mergeFrom(
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -917,6 +874,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -941,6 +899,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -964,6 +923,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -983,6 +943,7 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1003,14 +964,14 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList requested_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList requested_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRequestedIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!requested_.isModifiable()) {
requested_ = new com.google.protobuf.LazyStringArrayList(requested_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -1024,7 +985,8 @@ private void ensureRequestedIsMutable() {
* @return A list containing the requested.
*/
public com.google.protobuf.ProtocolStringList getRequestedList() {
- return requested_.getUnmodifiableView();
+ requested_.makeImmutable();
+ return requested_;
}
/**
*
@@ -1089,6 +1051,7 @@ public Builder setRequested(int index, java.lang.String value) {
}
ensureRequestedIsMutable();
requested_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1110,6 +1073,7 @@ public Builder addRequested(java.lang.String value) {
}
ensureRequestedIsMutable();
requested_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1128,6 +1092,7 @@ public Builder addRequested(java.lang.String value) {
public Builder addAllRequested(java.lang.Iterable values) {
ensureRequestedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requested_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1143,8 +1108,9 @@ public Builder addAllRequested(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearRequested() {
- requested_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ requested_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1167,18 +1133,19 @@ public Builder addRequestedBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureRequestedIsMutable();
requested_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList provided_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList provided_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureProvidedIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!provided_.isModifiable()) {
provided_ = new com.google.protobuf.LazyStringArrayList(provided_);
- bitField0_ |= 0x00000004;
}
+ bitField0_ |= 0x00000004;
}
/**
*
@@ -1192,7 +1159,8 @@ private void ensureProvidedIsMutable() {
* @return A list containing the provided.
*/
public com.google.protobuf.ProtocolStringList getProvidedList() {
- return provided_.getUnmodifiableView();
+ provided_.makeImmutable();
+ return provided_;
}
/**
*
@@ -1257,6 +1225,7 @@ public Builder setProvided(int index, java.lang.String value) {
}
ensureProvidedIsMutable();
provided_.set(index, value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1278,6 +1247,7 @@ public Builder addProvided(java.lang.String value) {
}
ensureProvidedIsMutable();
provided_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1296,6 +1266,7 @@ public Builder addProvided(java.lang.String value) {
public Builder addAllProvided(java.lang.Iterable values) {
ensureProvidedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, provided_);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1311,8 +1282,9 @@ public Builder addAllProvided(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearProvided() {
- provided_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ provided_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
+ ;
onChanged();
return this;
}
@@ -1335,19 +1307,20 @@ public Builder addProvidedBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureProvidedIsMutable();
provided_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList allowedRequestExtensions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList allowedRequestExtensions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAllowedRequestExtensionsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!allowedRequestExtensions_.isModifiable()) {
allowedRequestExtensions_ =
new com.google.protobuf.LazyStringArrayList(allowedRequestExtensions_);
- bitField0_ |= 0x00000008;
}
+ bitField0_ |= 0x00000008;
}
/**
*
@@ -1362,7 +1335,8 @@ private void ensureAllowedRequestExtensionsIsMutable() {
* @return A list containing the allowedRequestExtensions.
*/
public com.google.protobuf.ProtocolStringList getAllowedRequestExtensionsList() {
- return allowedRequestExtensions_.getUnmodifiableView();
+ allowedRequestExtensions_.makeImmutable();
+ return allowedRequestExtensions_;
}
/**
*
@@ -1431,6 +1405,7 @@ public Builder setAllowedRequestExtensions(int index, java.lang.String value) {
}
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.set(index, value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1453,6 +1428,7 @@ public Builder addAllowedRequestExtensions(java.lang.String value) {
}
ensureAllowedRequestExtensionsIsMutable();
allowedRequestExtensions_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1472,6 +1448,7 @@ public Builder addAllowedRequestExtensions(java.lang.String value) {
public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) {
ensureAllowedRequestExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedRequestExtensions_);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1488,8 +1465,9 @@ public Builder addAllAllowedRequestExtensions(java.lang.Iterable values) {
ensureAllowedResponseExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedResponseExtensions_);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1666,8 +1649,9 @@ public Builder addAllAllowedResponseExtensions(java.lang.Iterable
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface ContextRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
index 2a4452abc3..f5df4104e1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java
@@ -23,7 +23,9 @@
*
*
* Selects and configures the service controller used by the service.
+ *
* Example:
+ *
* control:
* environment: servicecontrol.googleapis.com
*
@@ -50,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Control();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ControlProto.internal_static_google_api_Control_descriptor;
}
@@ -284,7 +281,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Selects and configures the service controller used by the service.
+ *
* Example:
+ *
* control:
* environment: servicecontrol.googleapis.com
*
@@ -358,39 +357,6 @@ private void buildPartial0(com.google.api.Control result) {
}
}
- @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.api.Control) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
index 9559091e0e..3c42bd0e64 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CppSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_CppSettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.CppSettings result) {
}
}
- @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.api.CppSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
index 9d1518d10d..8e0a2d471a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CustomHttpPattern();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_CustomHttpPattern_descriptor;
}
@@ -415,39 +410,6 @@ private void buildPartial0(com.google.api.CustomHttpPattern result) {
}
}
- @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.api.CustomHttpPattern) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
index 14f77f78a9..7dc4ce7a0a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java
@@ -25,12 +25,14 @@
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
+ *
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
+ *
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
@@ -59,11 +61,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Distribution();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
}
@@ -135,11 +132,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Range();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_descriptor;
@@ -449,41 +441,6 @@ private void buildPartial0(com.google.api.Distribution.Range result) {
}
}
- @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.api.Distribution.Range) {
@@ -839,7 +796,7 @@ public interface BucketOptionsOrBuilder
*/
com.google.api.Distribution.BucketOptions.ExplicitOrBuilder getExplicitBucketsOrBuilder();
- public com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase();
+ com.google.api.Distribution.BucketOptions.OptionsCase getOptionsCase();
}
/**
*
@@ -849,6 +806,7 @@ public interface BucketOptionsOrBuilder
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
+ *
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
@@ -881,11 +839,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BucketOptions();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_descriptor;
@@ -952,9 +905,12 @@ public interface LinearOrBuilder
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
+ *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
+ *
* Upper bound (0 <= i < N-1): offset + (width * i).
+ *
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
@@ -978,11 +934,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Linear();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
@@ -1245,9 +1196,12 @@ protected Builder newBuilderForType(
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
+ *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
+ *
* Upper bound (0 <= i < N-1): offset + (width * i).
+ *
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
@@ -1334,41 +1288,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Linear resu
}
}
- @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.api.Distribution.BucketOptions.Linear) {
@@ -1728,9 +1647,12 @@ public interface ExponentialOrBuilder
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
+ *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
+ *
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
+ *
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
@@ -1754,11 +1676,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exponential();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
@@ -2022,9 +1939,12 @@ protected Builder newBuilderForType(
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
+ *
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
+ *
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
+ *
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
@@ -2111,41 +2031,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Exponential
}
}
- @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.api.Distribution.BucketOptions.Exponential) {
@@ -2502,10 +2387,13 @@ public interface ExplicitOrBuilder
*
*
* Specifies a set of buckets with arbitrary widths.
+ *
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
+ *
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
+ *
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
@@ -2533,11 +2421,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Explicit();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
@@ -2784,10 +2667,13 @@ protected Builder newBuilderForType(
*
*
* Specifies a set of buckets with arbitrary widths.
+ *
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
+ *
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
+ *
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
@@ -2875,41 +2761,6 @@ private void buildPartial0(com.google.api.Distribution.BucketOptions.Explicit re
int from_bitField0_ = bitField0_;
}
- @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.api.Distribution.BucketOptions.Explicit) {
@@ -3189,6 +3040,8 @@ public com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForT
}
private int optionsCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object options_;
public enum OptionsCase
@@ -3606,6 +3459,7 @@ protected Builder newBuilderForType(
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
+ *
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
@@ -3715,41 +3569,6 @@ private void buildPartialOneofs(com.google.api.Distribution.BucketOptions result
}
}
- @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.api.Distribution.BucketOptions) {
@@ -4622,10 +4441,14 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4638,10 +4461,14 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4654,10 +4481,14 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4670,10 +4501,14 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4686,10 +4521,14 @@ public interface ExemplarOrBuilder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4731,11 +4570,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exemplar();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DistributionProto
.internal_static_google_api_Distribution_Exemplar_descriptor;
@@ -4825,10 +4659,14 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4844,10 +4682,14 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4864,10 +4706,14 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4883,10 +4729,14 @@ public int getAttachmentsCount() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -4902,10 +4752,14 @@ public com.google.protobuf.Any getAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5219,41 +5073,6 @@ private void buildPartial0(com.google.api.Distribution.Exemplar result) {
}
}
- @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.api.Distribution.Exemplar) {
@@ -5628,10 +5447,14 @@ private void ensureAttachmentsIsMutable() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5650,10 +5473,14 @@ public java.util.List getAttachmentsList() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5672,10 +5499,14 @@ public int getAttachmentsCount() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5694,10 +5525,14 @@ public com.google.protobuf.Any getAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5722,10 +5557,14 @@ public Builder setAttachments(int index, com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5747,10 +5586,14 @@ public Builder setAttachments(int index, com.google.protobuf.Any.Builder builder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5775,10 +5618,14 @@ public Builder addAttachments(com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5803,10 +5650,14 @@ public Builder addAttachments(int index, com.google.protobuf.Any value) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5828,10 +5679,14 @@ public Builder addAttachments(com.google.protobuf.Any.Builder builderForValue) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5853,10 +5708,14 @@ public Builder addAttachments(int index, com.google.protobuf.Any.Builder builder
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5879,10 +5738,14 @@ public Builder addAllAttachments(
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5904,10 +5767,14 @@ public Builder clearAttachments() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5929,10 +5796,14 @@ public Builder removeAttachments(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5947,10 +5818,14 @@ public com.google.protobuf.Any.Builder getAttachmentsBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5969,10 +5844,14 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -5992,10 +5871,14 @@ public com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6011,10 +5894,14 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder() {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6030,10 +5917,14 @@ public com.google.protobuf.Any.Builder addAttachmentsBuilder(int index) {
*
*
* Contextual information about the example value. Examples are:
+ *
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
+ *
* Literal string: type.googleapis.com/google.protobuf.StringValue
+ *
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
+ *
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
@@ -6175,9 +6066,12 @@ public double getMean() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
+ *
* Sum[i=1..n]((x_i - mean)^2)
+ *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
+ *
* If `count` is zero then this field must be zero.
*
*
@@ -6305,9 +6199,11 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6332,9 +6228,11 @@ public java.util.List getBucketCountsList() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6358,9 +6256,11 @@ public int getBucketCountsCount() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -6704,12 +6604,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
+ *
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
+ *
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
@@ -6836,39 +6738,6 @@ private void buildPartial0(com.google.api.Distribution result) {
}
}
- @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.api.Distribution) {
@@ -7161,9 +7030,12 @@ public Builder clearMean() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
+ *
* Sum[i=1..n]((x_i - mean)^2)
+ *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
+ *
* If `count` is zero then this field must be zero.
*
*
@@ -7181,9 +7053,12 @@ public double getSumOfSquaredDeviation() {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
+ *
* Sum[i=1..n]((x_i - mean)^2)
+ *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
+ *
* If `count` is zero then this field must be zero.
*
*
@@ -7205,9 +7080,12 @@ public Builder setSumOfSquaredDeviation(double value) {
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
+ *
* Sum[i=1..n]((x_i - mean)^2)
+ *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
+ *
* If `count` is zero then this field must be zero.
*
*
@@ -7620,9 +7498,11 @@ private void ensureBucketCountsIsMutable() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7648,9 +7528,11 @@ public java.util.List getBucketCountsList() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7674,9 +7556,11 @@ public int getBucketCountsCount() {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7701,9 +7585,11 @@ public long getBucketCounts(int index) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7733,9 +7619,11 @@ public Builder setBucketCounts(int index, long value) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7764,9 +7652,11 @@ public Builder addBucketCounts(long value) {
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -7794,9 +7684,11 @@ public Builder addAllBucketCounts(java.lang.Iterable extends java.lang.Long> v
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
index 27f3411ae3..1b6d60c622 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java
@@ -58,9 +58,12 @@ public interface DistributionOrBuilder
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
+ *
* Sum[i=1..n]((x_i - mean)^2)
+ *
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
+ *
* If `count` is zero then this field must be zero.
*
*
@@ -155,9 +158,11 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -179,9 +184,11 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
@@ -203,9 +210,11 @@ public interface DistributionOrBuilder
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
+ *
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
+ *
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
index bb34d32e9e..67836bc269 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java
@@ -23,6 +23,7 @@
*
*
* `Documentation` provides the information for describing a service.
+ *
* Example:
* <pre><code>documentation:
* summary: >
@@ -49,11 +50,14 @@
* code blocks are supported. Section headers can be provided and are
* interpreted relative to the section nesting of the context where
* a documentation fragment is embedded.
+ *
* Documentation from the IDL is merged with documentation defined
* via the config at normalization time, where documentation provided
* by config rules overrides IDL provided.
+ *
* A number of constructs specific to the API platform are supported
* in documentation text.
+ *
* In order to reference a proto element, the following
* notation can be used:
* <pre><code>[fully.qualified.proto.name][]</code></pre>
@@ -61,6 +65,7 @@
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
* Text can be excluded from doc using the following notation:
* <pre><code>(-- internal comment --)</code></pre>
+ *
* A few directives are available in documentation. Note that
* directives must appear on a single line to be properly
* identified. The `include` directive includes a markdown file from
@@ -101,11 +106,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Documentation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto.internal_static_google_api_Documentation_descriptor;
}
@@ -255,6 +255,7 @@ public com.google.api.PageOrBuilder getPagesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -269,6 +270,7 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -284,6 +286,7 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -298,6 +301,7 @@ public int getRulesCount() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -312,6 +316,7 @@ public com.google.api.DocumentationRule getRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -716,6 +721,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* `Documentation` provides the information for describing a service.
+ *
* Example:
* <pre><code>documentation:
* summary: >
@@ -742,11 +748,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* code blocks are supported. Section headers can be provided and are
* interpreted relative to the section nesting of the context where
* a documentation fragment is embedded.
+ *
* Documentation from the IDL is merged with documentation defined
* via the config at normalization time, where documentation provided
* by config rules overrides IDL provided.
+ *
* A number of constructs specific to the API platform are supported
* in documentation text.
+ *
* In order to reference a proto element, the following
* notation can be used:
* <pre><code>[fully.qualified.proto.name][]</code></pre>
@@ -754,6 +763,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
* Text can be excluded from doc using the following notation:
* <pre><code>(-- internal comment --)</code></pre>
+ *
* A few directives are available in documentation. Note that
* directives must appear on a single line to be properly
* identified. The `include` directive includes a markdown file from
@@ -885,39 +895,6 @@ private void buildPartial0(com.google.api.Documentation result) {
}
}
- @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.api.Documentation) {
@@ -1574,6 +1551,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1591,6 +1569,7 @@ public java.util.List getRulesList() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1608,6 +1587,7 @@ public int getRulesCount() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1625,6 +1605,7 @@ public com.google.api.DocumentationRule getRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1648,6 +1629,7 @@ public Builder setRules(int index, com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1668,6 +1650,7 @@ public Builder setRules(int index, com.google.api.DocumentationRule.Builder buil
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1691,6 +1674,7 @@ public Builder addRules(com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1714,6 +1698,7 @@ public Builder addRules(int index, com.google.api.DocumentationRule value) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1734,6 +1719,7 @@ public Builder addRules(com.google.api.DocumentationRule.Builder builderForValue
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1754,6 +1740,7 @@ public Builder addRules(int index, com.google.api.DocumentationRule.Builder buil
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1775,6 +1762,7 @@ public Builder addAllRules(
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1795,6 +1783,7 @@ public Builder clearRules() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1815,6 +1804,7 @@ public Builder removeRules(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1828,6 +1818,7 @@ public com.google.api.DocumentationRule.Builder getRulesBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1845,6 +1836,7 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1863,6 +1855,7 @@ public com.google.api.DocumentationRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1877,6 +1870,7 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder() {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1891,6 +1885,7 @@ public com.google.api.DocumentationRule.Builder addRulesBuilder(int index) {
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
index 11af64871f..b8dbbb9cb6 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java
@@ -110,6 +110,7 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -121,6 +122,7 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -132,6 +134,7 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -143,6 +146,7 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -154,6 +158,7 @@ public interface DocumentationOrBuilder
*
*
* A list of documentation rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
index 68b53d491a..809dccbc87 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DocumentationRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto
.internal_static_google_api_DocumentationRule_descriptor;
@@ -502,39 +497,6 @@ private void buildPartial0(com.google.api.DocumentationRule result) {
}
}
- @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.api.DocumentationRule) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
index 5ef78bea9c..d1fb6bb6a3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java
@@ -38,9 +38,9 @@ private DotnetSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder
}
private DotnetSettings() {
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DotnetSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_DotnetSettings_descriptor;
}
@@ -368,7 +363,8 @@ public java.lang.String getRenamedResourcesOrThrow(java.lang.String key) {
public static final int IGNORED_RESOURCES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList ignoredResources_;
+ private com.google.protobuf.LazyStringArrayList ignoredResources_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -447,7 +443,8 @@ public com.google.protobuf.ByteString getIgnoredResourcesBytes(int index) {
public static final int FORCED_NAMESPACE_ALIASES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList forcedNamespaceAliases_;
+ private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -514,7 +511,8 @@ public com.google.protobuf.ByteString getForcedNamespaceAliasesBytes(int index)
public static final int HANDWRITTEN_SIGNATURES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList handwrittenSignatures_;
+ private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -896,12 +894,9 @@ public Builder clear() {
}
internalGetMutableRenamedServices().clear();
internalGetMutableRenamedResources().clear();
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000020);
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -927,7 +922,6 @@ public com.google.api.DotnetSettings build() {
@java.lang.Override
public com.google.api.DotnetSettings buildPartial() {
com.google.api.DotnetSettings result = new com.google.api.DotnetSettings(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -935,24 +929,6 @@ public com.google.api.DotnetSettings buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.api.DotnetSettings result) {
- if (((bitField0_ & 0x00000008) != 0)) {
- ignoredResources_ = ignoredResources_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.ignoredResources_ = ignoredResources_;
- if (((bitField0_ & 0x00000010) != 0)) {
- forcedNamespaceAliases_ = forcedNamespaceAliases_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.forcedNamespaceAliases_ = forcedNamespaceAliases_;
- if (((bitField0_ & 0x00000020) != 0)) {
- handwrittenSignatures_ = handwrittenSignatures_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.handwrittenSignatures_ = handwrittenSignatures_;
- }
-
private void buildPartial0(com.google.api.DotnetSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -966,39 +942,18 @@ private void buildPartial0(com.google.api.DotnetSettings result) {
result.renamedResources_ = internalGetRenamedResources();
result.renamedResources_.makeImmutable();
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ ignoredResources_.makeImmutable();
+ result.ignoredResources_ = ignoredResources_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ forcedNamespaceAliases_.makeImmutable();
+ result.forcedNamespaceAliases_ = forcedNamespaceAliases_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ handwrittenSignatures_.makeImmutable();
+ result.handwrittenSignatures_ = handwrittenSignatures_;
+ }
}
@java.lang.Override
@@ -1023,7 +978,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
if (!other.ignoredResources_.isEmpty()) {
if (ignoredResources_.isEmpty()) {
ignoredResources_ = other.ignoredResources_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ |= 0x00000008;
} else {
ensureIgnoredResourcesIsMutable();
ignoredResources_.addAll(other.ignoredResources_);
@@ -1033,7 +988,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
if (!other.forcedNamespaceAliases_.isEmpty()) {
if (forcedNamespaceAliases_.isEmpty()) {
forcedNamespaceAliases_ = other.forcedNamespaceAliases_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ |= 0x00000010;
} else {
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.addAll(other.forcedNamespaceAliases_);
@@ -1043,7 +998,7 @@ public Builder mergeFrom(com.google.api.DotnetSettings other) {
if (!other.handwrittenSignatures_.isEmpty()) {
if (handwrittenSignatures_.isEmpty()) {
handwrittenSignatures_ = other.handwrittenSignatures_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ |= 0x00000020;
} else {
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.addAll(other.handwrittenSignatures_);
@@ -1723,14 +1678,14 @@ public Builder putAllRenamedResources(
return this;
}
- private com.google.protobuf.LazyStringList ignoredResources_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList ignoredResources_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIgnoredResourcesIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!ignoredResources_.isModifiable()) {
ignoredResources_ = new com.google.protobuf.LazyStringArrayList(ignoredResources_);
- bitField0_ |= 0x00000008;
}
+ bitField0_ |= 0x00000008;
}
/**
*
@@ -1748,7 +1703,8 @@ private void ensureIgnoredResourcesIsMutable() {
* @return A list containing the ignoredResources.
*/
public com.google.protobuf.ProtocolStringList getIgnoredResourcesList() {
- return ignoredResources_.getUnmodifiableView();
+ ignoredResources_.makeImmutable();
+ return ignoredResources_;
}
/**
*
@@ -1829,6 +1785,7 @@ public Builder setIgnoredResources(int index, java.lang.String value) {
}
ensureIgnoredResourcesIsMutable();
ignoredResources_.set(index, value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1854,6 +1811,7 @@ public Builder addIgnoredResources(java.lang.String value) {
}
ensureIgnoredResourcesIsMutable();
ignoredResources_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1876,6 +1834,7 @@ public Builder addIgnoredResources(java.lang.String value) {
public Builder addAllIgnoredResources(java.lang.Iterable values) {
ensureIgnoredResourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredResources_);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1895,8 +1854,9 @@ public Builder addAllIgnoredResources(java.lang.Iterable value
* @return This builder for chaining.
*/
public Builder clearIgnoredResources() {
- ignoredResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ ignoredResources_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
+ ;
onChanged();
return this;
}
@@ -1923,19 +1883,20 @@ public Builder addIgnoredResourcesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureIgnoredResourcesIsMutable();
ignoredResources_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList forcedNamespaceAliases_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList forcedNamespaceAliases_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureForcedNamespaceAliasesIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
+ if (!forcedNamespaceAliases_.isModifiable()) {
forcedNamespaceAliases_ =
new com.google.protobuf.LazyStringArrayList(forcedNamespaceAliases_);
- bitField0_ |= 0x00000010;
}
+ bitField0_ |= 0x00000010;
}
/**
*
@@ -1950,7 +1911,8 @@ private void ensureForcedNamespaceAliasesIsMutable() {
* @return A list containing the forcedNamespaceAliases.
*/
public com.google.protobuf.ProtocolStringList getForcedNamespaceAliasesList() {
- return forcedNamespaceAliases_.getUnmodifiableView();
+ forcedNamespaceAliases_.makeImmutable();
+ return forcedNamespaceAliases_;
}
/**
*
@@ -2019,6 +1981,7 @@ public Builder setForcedNamespaceAliases(int index, java.lang.String value) {
}
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.set(index, value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2041,6 +2004,7 @@ public Builder addForcedNamespaceAliases(java.lang.String value) {
}
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.add(value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2060,6 +2024,7 @@ public Builder addForcedNamespaceAliases(java.lang.String value) {
public Builder addAllForcedNamespaceAliases(java.lang.Iterable values) {
ensureForcedNamespaceAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forcedNamespaceAliases_);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -2076,8 +2041,9 @@ public Builder addAllForcedNamespaceAliases(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearForcedNamespaceAliases() {
- forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ forcedNamespaceAliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
+ ;
onChanged();
return this;
}
@@ -2101,19 +2067,20 @@ public Builder addForcedNamespaceAliasesBytes(com.google.protobuf.ByteString val
checkByteStringIsUtf8(value);
ensureForcedNamespaceAliasesIsMutable();
forcedNamespaceAliases_.add(value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList handwrittenSignatures_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList handwrittenSignatures_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureHandwrittenSignaturesIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
+ if (!handwrittenSignatures_.isModifiable()) {
handwrittenSignatures_ =
new com.google.protobuf.LazyStringArrayList(handwrittenSignatures_);
- bitField0_ |= 0x00000020;
}
+ bitField0_ |= 0x00000020;
}
/**
*
@@ -2129,7 +2096,8 @@ private void ensureHandwrittenSignaturesIsMutable() {
* @return A list containing the handwrittenSignatures.
*/
public com.google.protobuf.ProtocolStringList getHandwrittenSignaturesList() {
- return handwrittenSignatures_.getUnmodifiableView();
+ handwrittenSignatures_.makeImmutable();
+ return handwrittenSignatures_;
}
/**
*
@@ -2202,6 +2170,7 @@ public Builder setHandwrittenSignatures(int index, java.lang.String value) {
}
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.set(index, value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2225,6 +2194,7 @@ public Builder addHandwrittenSignatures(java.lang.String value) {
}
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.add(value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2245,6 +2215,7 @@ public Builder addHandwrittenSignatures(java.lang.String value) {
public Builder addAllHandwrittenSignatures(java.lang.Iterable values) {
ensureHandwrittenSignaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, handwrittenSignatures_);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2262,8 +2233,9 @@ public Builder addAllHandwrittenSignatures(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearHandwrittenSignatures() {
- handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ handwrittenSignatures_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
+ ;
onChanged();
return this;
}
@@ -2288,6 +2260,7 @@ public Builder addHandwrittenSignaturesBytes(com.google.protobuf.ByteString valu
checkByteStringIsUtf8(value);
ensureHandwrittenSignaturesIsMutable();
handwrittenSignatures_.add(value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
index 0601b05d8d..feea7e6337 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java
@@ -26,7 +26,9 @@
* APIs. It is commonly known as a service endpoint. A service may expose
* any number of service endpoints, and all service endpoints share the same
* service definition, such as quota limits and monitoring metrics.
+ *
* Example:
+ *
* type: google.api.Service
* name: library-example.googleapis.com
* endpoints:
@@ -57,7 +59,7 @@ private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Endpoint() {
name_ = "";
- aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
target_ = "";
}
@@ -67,11 +69,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Endpoint();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.EndpointProto.internal_static_google_api_Endpoint_descriptor;
}
@@ -138,15 +135,18 @@ public com.google.protobuf.ByteString getNameBytes() {
public static final int ALIASES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList aliases_;
+ private com.google.protobuf.LazyStringArrayList aliases_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -164,9 +164,11 @@ public com.google.protobuf.ProtocolStringList getAliasesList() {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -184,9 +186,11 @@ public int getAliasesCount() {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -205,9 +209,11 @@ public java.lang.String getAliases(int index) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -503,7 +509,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* APIs. It is commonly known as a service endpoint. A service may expose
* any number of service endpoints, and all service endpoints share the same
* service definition, such as quota limits and monitoring metrics.
+ *
* Example:
+ *
* type: google.api.Service
* name: library-example.googleapis.com
* endpoints:
@@ -550,8 +558,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
- aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
target_ = "";
allowCors_ = false;
return this;
@@ -579,7 +586,6 @@ public com.google.api.Endpoint build() {
@java.lang.Override
public com.google.api.Endpoint buildPartial() {
com.google.api.Endpoint result = new com.google.api.Endpoint(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -587,19 +593,15 @@ public com.google.api.Endpoint buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.api.Endpoint result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- aliases_ = aliases_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.aliases_ = aliases_;
- }
-
private void buildPartial0(com.google.api.Endpoint result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ aliases_.makeImmutable();
+ result.aliases_ = aliases_;
+ }
if (((from_bitField0_ & 0x00000004) != 0)) {
result.target_ = target_;
}
@@ -608,39 +610,6 @@ private void buildPartial0(com.google.api.Endpoint result) {
}
}
- @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.api.Endpoint) {
@@ -661,7 +630,7 @@ public Builder mergeFrom(com.google.api.Endpoint other) {
if (!other.aliases_.isEmpty()) {
if (aliases_.isEmpty()) {
aliases_ = other.aliases_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
@@ -852,23 +821,25 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList aliases_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList aliases_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAliasesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!aliases_.isModifiable()) {
aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -879,16 +850,19 @@ private void ensureAliasesIsMutable() {
*/
@java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getAliasesList() {
- return aliases_.getUnmodifiableView();
+ aliases_.makeImmutable();
+ return aliases_;
}
/**
*
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -906,9 +880,11 @@ public int getAliasesCount() {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -927,9 +903,11 @@ public java.lang.String getAliases(int index) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -948,9 +926,11 @@ public com.google.protobuf.ByteString getAliasesBytes(int index) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -968,6 +948,7 @@ public Builder setAliases(int index, java.lang.String value) {
}
ensureAliasesIsMutable();
aliases_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -976,9 +957,11 @@ public Builder setAliases(int index, java.lang.String value) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -995,6 +978,7 @@ public Builder addAliases(java.lang.String value) {
}
ensureAliasesIsMutable();
aliases_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1003,9 +987,11 @@ public Builder addAliases(java.lang.String value) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -1019,6 +1005,7 @@ public Builder addAliases(java.lang.String value) {
public Builder addAllAliases(java.lang.Iterable values) {
ensureAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aliases_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1027,9 +1014,11 @@ public Builder addAllAliases(java.lang.Iterable values) {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -1040,8 +1029,9 @@ public Builder addAllAliases(java.lang.Iterable values) {
*/
@java.lang.Deprecated
public Builder clearAliases() {
- aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ aliases_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1050,9 +1040,11 @@ public Builder clearAliases() {
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -1070,6 +1062,7 @@ public Builder addAliasesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAliasesIsMutable();
aliases_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
index fae540697b..0eb9aa6dc4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java
@@ -53,9 +53,11 @@ public interface EndpointOrBuilder
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -71,9 +73,11 @@ public interface EndpointOrBuilder
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -89,9 +93,11 @@ public interface EndpointOrBuilder
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
@@ -108,9 +114,11 @@ public interface EndpointOrBuilder
*
*
* Unimplemented. Dot not use.
+ *
* DEPRECATED: This field is no longer supported. Instead of using aliases,
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
* of the intended aliases.
+ *
* Additional names that this endpoint will be hosted on.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
index 68f6de9284..a848229cfb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java
@@ -52,8 +52,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is calling a disabled service for a consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is disabled:
+ *
* { "reason": "SERVICE_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -61,6 +63,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the "pubsub.googleapis.com" has been disabled in
* "projects/123".
*
@@ -73,9 +76,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request whose associated billing account is disabled.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because the associated billing account is
* disabled:
+ *
* { "reason": "BILLING_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -83,6 +88,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the billing account associated has been disabled.
*
*
@@ -96,8 +102,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the provided [API
* key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
* may be in a bad format, cannot be found, or has been expired).
+ *
* Example of an ErrorInfo when the request is contacting
* "storage.googleapis.com" service with an invalid API key:
+ *
* { "reason": "API_KEY_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -115,9 +123,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key API
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call the
* "storage.googleapis.com" service because this service is restricted in the
* API key:
+ *
* { "reason": "API_KEY_SERVICE_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -136,9 +146,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key HTTP
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the http referrer of the request
* violates API key HTTP restrictions:
+ *
* { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -157,9 +169,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key IP address
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the caller IP of the request
* violates API key IP address restrictions:
+ *
* { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -178,9 +192,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key Android application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the Android apps
* violates the API key Android application restrictions:
+ *
* { "reason": "API_KEY_ANDROID_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -199,9 +215,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key iOS application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the iOS apps
* violates the API key iOS application restrictions:
+ *
* { "reason": "API_KEY_IOS_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -220,11 +238,13 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough rate quota for the
* consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because consumer's rate quota usage has
* reached the maximum value set for the quota limit
* "ReadsPerMinutePerProject" on the quota metric
* "pubsub.googleapis.com/read_requests":
+ *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -234,10 +254,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "ReadsPerMinutePerProject"
* }
* }
+ *
* Example of an ErrorInfo when the consumer "projects/123" checks quota on
* the service "dataflow.googleapis.com" and hits the organization quota
* limit "DefaultRequestsPerMinutePerOrganization" on the metric
* "dataflow.googleapis.com/default_requests".
+ *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -258,10 +280,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough resource quota for the
* consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "compute.googleapis.com" service because consumer's resource quota usage
* has reached the maximum value set for the quota limit "VMsPerProject"
* on the quota metric "compute.googleapis.com/vms":
+ *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -271,10 +295,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "VMsPerProject"
* }
* }
+ *
* Example of an ErrorInfo when the consumer "projects/123" checks resource
* quota on the service "dataflow.googleapis.com" and hits the organization
* quota limit "jobs-per-organization" on the metric
* "dataflow.googleapis.com/job_count".
+ *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -296,9 +322,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request whose associated billing account address is in a tax restricted
* location, violates the local tax restrictions when creating resources in
* the restricted region.
+ *
* Example of an ErrorInfo when creating the Cloud Storage Bucket in the
* container "projects/123" under a tax restricted region
* "locations/asia-northeast3":
+ *
* { "reason": "LOCATION_TAX_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -307,6 +335,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "location": "locations/asia-northeast3"
* }
* }
+ *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates the location tax restriction.
*
@@ -322,8 +351,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* on the user project "projects/123" or the user project is invalid. For more
* information, check the [userProject System
* Parameters](https://cloud.google.com/apis/docs/system-parameters).
+ *
* Example of an ErrorInfo when the caller is calling Cloud Storage service
* with insufficient permissions on the user project:
+ *
* { "reason": "USER_PROJECT_DENIED",
* "domain": "googleapis.com",
* "metadata": {
@@ -344,8 +375,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to Terms of Service(Tos) violations. Check [Project suspension
* guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
* for more information.
+ *
* Example of an ErrorInfo when calling Cloud Storage service with the
* suspended consumer "projects/123":
+ *
* { "reason": "CONSUMER_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -364,8 +397,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the associated consumer is invalid. It may be
* in a bad format, cannot be found, or have been deleted.
+ *
* Example of an ErrorInfo when calling Cloud Storage service with the
* invalid consumer "projects/123":
+ *
* { "reason": "CONSUMER_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -388,9 +423,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to search the audit log for a request rejected by VPC Service Controls. For
* more information, please refer [VPC Service Controls
* Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* Cloud Storage service because the request is prohibited by the VPC Service
* Controls.
+ *
* { "reason": "SECURITY_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -409,8 +446,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because the provided access token has expired.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an expired access token:
+ *
* { "reason": "ACCESS_TOKEN_EXPIRED",
* "domain": "googleapis.com",
* "metadata": {
@@ -433,8 +472,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
* the list of the OAuth 2.0 scopes that you might need to request to access
* the API.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an access token that is missing required scopes:
+ *
* { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
* "domain": "googleapis.com",
* "metadata": {
@@ -454,12 +495,15 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the account associated with the provided
* access token is in an invalid state, such as disabled or deleted.
* For more information, see https://cloud.google.com/docs/authentication.
+ *
* Warning: For privacy reasons, the server may not be able to disclose the
* email address for some accounts. The client MUST NOT depend on the
* availability of the `email` attribute.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an access token that is associated with a disabled or deleted [service
* account](http://cloud/iam/docs/service-accounts):
+ *
* { "reason": "ACCOUNT_STATE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -479,8 +523,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the type of the provided access token is not
* supported by the API being called.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an unsupported token type.
+ *
* { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -501,8 +547,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* credentials. For more information regarding the supported authentication
* strategies for Google Cloud APIs, see
* https://cloud.google.com/docs/authentication.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API
* without any authentication credentials.
+ *
* { "reason": "CREDENTIALS_MISSING",
* "domain": "googleapis.com",
* "metadata": {
@@ -523,9 +571,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* which acts as the [API
* consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
* invalid. It may be in a bad format or empty.
+ *
* Example of an ErrorInfo when the request is to the Cloud Functions API,
* but the offered resource project in the request in a bad format which can't
* perform the ListFunctions method.
+ *
* { "reason": "RESOURCE_PROJECT_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -545,8 +595,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the provided session cookie is missing,
* invalid or failed to decode.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with a SID cookie which can't be decoded.
+ *
* { "reason": "SESSION_COOKIE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -566,9 +618,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the user is from a Google Workspace customer
* that blocks their users from accessing a particular service.
+ *
* Example scenario: https://support.google.com/a/answer/9197205?hl=en
+ *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* blocked by the Google Workspace administrator:
+ *
* { "reason": "USER_BLOCKED_BY_ADMIN",
* "domain": "googleapis.com",
* "metadata": {
@@ -589,8 +644,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* by administrators according to the organization policy constraint.
* For more information see
* https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
+ *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* restricted by Resource Usage Restriction policy:
+ *
* { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -608,11 +665,14 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
+ *
* The request is denied because it contains unsupported system parameters in
* URL query parameters or HTTP headers. For more information,
* see https://cloud.google.com/apis/docs/system-parameters
+ *
* Example of an ErrorInfo when access "pubsub.googleapis.com" service with
* a request header of "x-goog-user-ip":
+ *
* { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -632,8 +692,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because it violates Org Restriction: the requested
* resource does not belong to allowed organizations specified in
* "X-Goog-Allowed-Resources" header.
+ *
* Example of an ErrorInfo when accessing a GCP resource that is restricted by
* Org Restriction for "pubsub.googleapis.com" service.
+ *
* {
* reason: "ORG_RESTRICTION_VIOLATION"
* domain: "googleapis.com"
@@ -653,9 +715,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because "X-Goog-Allowed-Resources" header is in a bad
* format.
+ *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an invalid
* "X-Goog-Allowed-Resources" request header.
+ *
* {
* reason: "ORG_RESTRICTION_HEADER_INVALID"
* domain: "googleapis.com"
@@ -674,9 +738,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
+ *
* The request is calling a service that is not visible to the consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is not visible to the consumer.
+ *
* { "reason": "SERVICE_NOT_VISIBLE",
* "domain": "googleapis.com",
* "metadata": {
@@ -684,6 +751,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the "pubsub.googleapis.com" is not visible to
* "projects/123" (or it may not exist).
*
@@ -696,8 +764,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is related to a project for which GCP access is suspended.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because GCP access is suspended:
+ *
* { "reason": "GCP_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -705,6 +775,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the associated GCP account has been suspended.
*
*
@@ -729,8 +800,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is calling a disabled service for a consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is disabled:
+ *
* { "reason": "SERVICE_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -738,6 +811,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the "pubsub.googleapis.com" has been disabled in
* "projects/123".
*
@@ -750,9 +824,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request whose associated billing account is disabled.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because the associated billing account is
* disabled:
+ *
* { "reason": "BILLING_DISABLED",
* "domain": "googleapis.com",
* "metadata": {
@@ -760,6 +836,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the billing account associated has been disabled.
*
*
@@ -773,8 +850,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the provided [API
* key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
* may be in a bad format, cannot be found, or has been expired).
+ *
* Example of an ErrorInfo when the request is contacting
* "storage.googleapis.com" service with an invalid API key:
+ *
* { "reason": "API_KEY_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -792,9 +871,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key API
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call the
* "storage.googleapis.com" service because this service is restricted in the
* API key:
+ *
* { "reason": "API_KEY_SERVICE_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -813,9 +894,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key HTTP
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the http referrer of the request
* violates API key HTTP restrictions:
+ *
* { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -834,9 +917,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key IP address
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the caller IP of the request
* violates API key IP address restrictions:
+ *
* { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -855,9 +940,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key Android application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the Android apps
* violates the API key Android application restrictions:
+ *
* { "reason": "API_KEY_ANDROID_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -876,9 +963,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because it violates [API key iOS application
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* "storage.googleapis.com" service because the request from the iOS apps
* violates the API key iOS application restrictions:
+ *
* { "reason": "API_KEY_IOS_APP_BLOCKED",
* "domain": "googleapis.com",
* "metadata": {
@@ -897,11 +986,13 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough rate quota for the
* consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because consumer's rate quota usage has
* reached the maximum value set for the quota limit
* "ReadsPerMinutePerProject" on the quota metric
* "pubsub.googleapis.com/read_requests":
+ *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -911,10 +1002,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "ReadsPerMinutePerProject"
* }
* }
+ *
* Example of an ErrorInfo when the consumer "projects/123" checks quota on
* the service "dataflow.googleapis.com" and hits the organization quota
* limit "DefaultRequestsPerMinutePerOrganization" on the metric
* "dataflow.googleapis.com/default_requests".
+ *
* { "reason": "RATE_LIMIT_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -935,10 +1028,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because there is not enough resource quota for the
* consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "compute.googleapis.com" service because consumer's resource quota usage
* has reached the maximum value set for the quota limit "VMsPerProject"
* on the quota metric "compute.googleapis.com/vms":
+ *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -948,10 +1043,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "quota_limit": "VMsPerProject"
* }
* }
+ *
* Example of an ErrorInfo when the consumer "projects/123" checks resource
* quota on the service "dataflow.googleapis.com" and hits the organization
* quota limit "jobs-per-organization" on the metric
* "dataflow.googleapis.com/job_count".
+ *
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -973,9 +1070,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request whose associated billing account address is in a tax restricted
* location, violates the local tax restrictions when creating resources in
* the restricted region.
+ *
* Example of an ErrorInfo when creating the Cloud Storage Bucket in the
* container "projects/123" under a tax restricted region
* "locations/asia-northeast3":
+ *
* { "reason": "LOCATION_TAX_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -984,6 +1083,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "location": "locations/asia-northeast3"
* }
* }
+ *
* This response indicates creating the Cloud Storage Bucket in
* "locations/asia-northeast3" violates the location tax restriction.
*
@@ -999,8 +1099,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* on the user project "projects/123" or the user project is invalid. For more
* information, check the [userProject System
* Parameters](https://cloud.google.com/apis/docs/system-parameters).
+ *
* Example of an ErrorInfo when the caller is calling Cloud Storage service
* with insufficient permissions on the user project:
+ *
* { "reason": "USER_PROJECT_DENIED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1021,8 +1123,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to Terms of Service(Tos) violations. Check [Project suspension
* guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
* for more information.
+ *
* Example of an ErrorInfo when calling Cloud Storage service with the
* suspended consumer "projects/123":
+ *
* { "reason": "CONSUMER_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1041,8 +1145,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the associated consumer is invalid. It may be
* in a bad format, cannot be found, or have been deleted.
+ *
* Example of an ErrorInfo when calling Cloud Storage service with the
* invalid consumer "projects/123":
+ *
* { "reason": "CONSUMER_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1065,9 +1171,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* to search the audit log for a request rejected by VPC Service Controls. For
* more information, please refer [VPC Service Controls
* Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to call
* Cloud Storage service because the request is prohibited by the VPC Service
* Controls.
+ *
* { "reason": "SECURITY_POLICY_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1086,8 +1194,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is denied because the provided access token has expired.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an expired access token:
+ *
* { "reason": "ACCESS_TOKEN_EXPIRED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1110,8 +1220,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
* the list of the OAuth 2.0 scopes that you might need to request to access
* the API.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with an access token that is missing required scopes:
+ *
* { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
* "domain": "googleapis.com",
* "metadata": {
@@ -1131,12 +1243,15 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because the account associated with the provided
* access token is in an invalid state, such as disabled or deleted.
* For more information, see https://cloud.google.com/docs/authentication.
+ *
* Warning: For privacy reasons, the server may not be able to disclose the
* email address for some accounts. The client MUST NOT depend on the
* availability of the `email` attribute.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an access token that is associated with a disabled or deleted [service
* account](http://cloud/iam/docs/service-accounts):
+ *
* { "reason": "ACCOUNT_STATE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1156,8 +1271,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the type of the provided access token is not
* supported by the API being called.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API with
* an unsupported token type.
+ *
* { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1178,8 +1295,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* credentials. For more information regarding the supported authentication
* strategies for Google Cloud APIs, see
* https://cloud.google.com/docs/authentication.
+ *
* Example of an ErrorInfo when the request is to the Cloud Storage API
* without any authentication credentials.
+ *
* { "reason": "CREDENTIALS_MISSING",
* "domain": "googleapis.com",
* "metadata": {
@@ -1200,9 +1319,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* which acts as the [API
* consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
* invalid. It may be in a bad format or empty.
+ *
* Example of an ErrorInfo when the request is to the Cloud Functions API,
* but the offered resource project in the request in a bad format which can't
* perform the ListFunctions method.
+ *
* { "reason": "RESOURCE_PROJECT_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1222,8 +1343,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the provided session cookie is missing,
* invalid or failed to decode.
+ *
* Example of an ErrorInfo when the request is calling Cloud Storage service
* with a SID cookie which can't be decoded.
+ *
* { "reason": "SESSION_COOKIE_INVALID",
* "domain": "googleapis.com",
* "metadata": {
@@ -1243,9 +1366,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because the user is from a Google Workspace customer
* that blocks their users from accessing a particular service.
+ *
* Example scenario: https://support.google.com/a/answer/9197205?hl=en
+ *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* blocked by the Google Workspace administrator:
+ *
* { "reason": "USER_BLOCKED_BY_ADMIN",
* "domain": "googleapis.com",
* "metadata": {
@@ -1266,8 +1392,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* by administrators according to the organization policy constraint.
* For more information see
* https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
+ *
* Example of an ErrorInfo when access to Google Cloud Storage service is
* restricted by Resource Usage Restriction policy:
+ *
* { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1285,11 +1413,14 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
+ *
* The request is denied because it contains unsupported system parameters in
* URL query parameters or HTTP headers. For more information,
* see https://cloud.google.com/apis/docs/system-parameters
+ *
* Example of an ErrorInfo when access "pubsub.googleapis.com" service with
* a request header of "x-goog-user-ip":
+ *
* { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1309,8 +1440,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* The request is denied because it violates Org Restriction: the requested
* resource does not belong to allowed organizations specified in
* "X-Goog-Allowed-Resources" header.
+ *
* Example of an ErrorInfo when accessing a GCP resource that is restricted by
* Org Restriction for "pubsub.googleapis.com" service.
+ *
* {
* reason: "ORG_RESTRICTION_VIOLATION"
* domain: "googleapis.com"
@@ -1330,9 +1463,11 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
* The request is denied because "X-Goog-Allowed-Resources" header is in a bad
* format.
+ *
* Example of an ErrorInfo when
* accessing "pubsub.googleapis.com" service with an invalid
* "X-Goog-Allowed-Resources" request header.
+ *
* {
* reason: "ORG_RESTRICTION_HEADER_INVALID"
* domain: "googleapis.com"
@@ -1351,9 +1486,12 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unimplemented. Do not use.
+ *
* The request is calling a service that is not visible to the consumer.
+ *
* Example of an ErrorInfo when the consumer "projects/123" contacting
* "pubsub.googleapis.com" service which is not visible to the consumer.
+ *
* { "reason": "SERVICE_NOT_VISIBLE",
* "domain": "googleapis.com",
* "metadata": {
@@ -1361,6 +1499,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the "pubsub.googleapis.com" is not visible to
* "projects/123" (or it may not exist).
*
@@ -1373,8 +1512,10 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The request is related to a project for which GCP access is suspended.
+ *
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
* "pubsub.googleapis.com" service because GCP access is suspended:
+ *
* { "reason": "GCP_SUSPENDED",
* "domain": "googleapis.com",
* "metadata": {
@@ -1382,6 +1523,7 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates the associated GCP account has been suspended.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
index 9b2fd46279..a0c5464986 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
@@ -26,6 +26,7 @@
* is required in requests, or given as output but ignored as input).
* This **does not** change the behavior in protocol buffers itself; it only
* denotes the behavior and may affect how API tooling handles the field.
+ *
* Note: This enum **may** receive new values in the future.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
index 07ab7e51a0..191d7a1ac2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java
@@ -36,7 +36,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
*
* A designation of a specific field behavior (required, output only, etc.)
* in protobuf messages.
+ *
* Examples:
+ *
* string name = 1 [(google.api.field_behavior) = REQUIRED];
* State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
* google.protobuf.Duration ttl = 1
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 bb22becb93..1658b588a5 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
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GoSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_GoSettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.GoSettings result) {
}
}
- @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.api.GoSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
index da9fd8337d..5f603701ed 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Http();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_Http_descriptor;
}
@@ -75,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -89,6 +85,7 @@ public java.util.List getRulesList() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -103,6 +100,7 @@ public java.util.List extends com.google.api.HttpRuleOrBuilder> getRulesOrBuil
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -117,6 +115,7 @@ public int getRulesCount() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -131,6 +130,7 @@ public com.google.api.HttpRule getRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -150,6 +150,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
+ *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -431,39 +432,6 @@ private void buildPartial0(com.google.api.Http result) {
}
}
- @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.api.Http) {
@@ -589,6 +557,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -606,6 +575,7 @@ public java.util.List getRulesList() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -623,6 +593,7 @@ public int getRulesCount() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -640,6 +611,7 @@ public com.google.api.HttpRule getRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -663,6 +635,7 @@ public Builder setRules(int index, com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -683,6 +656,7 @@ public Builder setRules(int index, com.google.api.HttpRule.Builder builderForVal
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -706,6 +680,7 @@ public Builder addRules(com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -729,6 +704,7 @@ public Builder addRules(int index, com.google.api.HttpRule value) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -749,6 +725,7 @@ public Builder addRules(com.google.api.HttpRule.Builder builderForValue) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -769,6 +746,7 @@ public Builder addRules(int index, com.google.api.HttpRule.Builder builderForVal
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -789,6 +767,7 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.HttpRule>
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -809,6 +788,7 @@ public Builder clearRules() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -829,6 +809,7 @@ public Builder removeRules(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -842,6 +823,7 @@ public com.google.api.HttpRule.Builder getRulesBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -859,6 +841,7 @@ public com.google.api.HttpRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -876,6 +859,7 @@ public java.util.List extends com.google.api.HttpRuleOrBuilder> getRulesOrBuil
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -889,6 +873,7 @@ public com.google.api.HttpRule.Builder addRulesBuilder() {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -902,6 +887,7 @@ public com.google.api.HttpRule.Builder addRulesBuilder(int index) {
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -936,6 +922,7 @@ public java.util.List getRulesBuilderList() {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
+ *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -955,6 +942,7 @@ public boolean getFullyDecodeReservedExpansion() {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
+ *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
@@ -978,6 +966,7 @@ public Builder setFullyDecodeReservedExpansion(boolean value) {
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
+ *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
index 141f53de8a..a102cee5e7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java
@@ -25,31 +25,44 @@
* Message that represents an arbitrary HTTP body. It should only be used for
* payload formats that can't be represented as JSON, such as raw binary or
* an HTML page.
+ *
+ *
* This message can be used both in streaming and non-streaming API methods in
* the request as well as the response.
+ *
* It can be used as a top-level request field, which is convenient if one
* wants to extract parameters from either the URL or HTTP template into the
* request fields and also want access to the raw HTTP body.
+ *
* Example:
+ *
* message GetResourceRequest {
* // A unique request id.
* string request_id = 1;
+ *
* // The raw HTTP body is bound to this field.
* google.api.HttpBody http_body = 2;
+ *
* }
+ *
* service ResourceService {
* rpc GetResource(GetResourceRequest)
* returns (google.api.HttpBody);
* rpc UpdateResource(google.api.HttpBody)
* returns (google.protobuf.Empty);
+ *
* }
+ *
* Example with streaming methods:
+ *
* service CaldavService {
* rpc GetCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
* rpc UpdateCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
+ *
* }
+ *
* Use of this type only changes how the request and response bodies are
* handled, all other features will continue to work unchanged.
*
@@ -78,11 +91,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HttpBody();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpBodyProto.internal_static_google_api_HttpBody_descriptor;
}
@@ -423,31 +431,44 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Message that represents an arbitrary HTTP body. It should only be used for
* payload formats that can't be represented as JSON, such as raw binary or
* an HTML page.
+ *
+ *
* This message can be used both in streaming and non-streaming API methods in
* the request as well as the response.
+ *
* It can be used as a top-level request field, which is convenient if one
* wants to extract parameters from either the URL or HTTP template into the
* request fields and also want access to the raw HTTP body.
+ *
* Example:
+ *
* message GetResourceRequest {
* // A unique request id.
* string request_id = 1;
+ *
* // The raw HTTP body is bound to this field.
* google.api.HttpBody http_body = 2;
+ *
* }
+ *
* service ResourceService {
* rpc GetResource(GetResourceRequest)
* returns (google.api.HttpBody);
* rpc UpdateResource(google.api.HttpBody)
* returns (google.protobuf.Empty);
+ *
* }
+ *
* Example with streaming methods:
+ *
* service CaldavService {
* rpc GetCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
* rpc UpdateCalendar(stream google.api.HttpBody)
* returns (stream google.api.HttpBody);
+ *
* }
+ *
* Use of this type only changes how the request and response bodies are
* handled, all other features will continue to work unchanged.
*
@@ -545,39 +566,6 @@ private void buildPartial0(com.google.api.HttpBody result) {
}
}
- @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.api.HttpBody) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
index 17900f27ac..2ddb68e8e0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java
@@ -28,6 +28,7 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -39,6 +40,7 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -50,6 +52,7 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -61,6 +64,7 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -72,6 +76,7 @@ public interface HttpOrBuilder
*
*
* A list of HTTP configuration rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -86,6 +91,7 @@ public interface HttpOrBuilder
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded.
+ *
* The default behavior is to not decode RFC 6570 reserved characters in multi
* segment matches.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
index 03212bbdab..1a30d9d387 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java
@@ -23,6 +23,7 @@
*
*
* # gRPC Transcoding
+ *
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
* more HTTP REST endpoints. It allows developers to build a single API service
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -31,17 +32,21 @@
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
* and use it for large scale production services.
+ *
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
* how different portions of the gRPC request message are mapped to the URL
* path, URL query parameters, and HTTP request body. It also controls how the
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
* typically specified as an `google.api.http` annotation on the gRPC method.
+ *
* Each mapping specifies a URL path template and an HTTP method. The path
* template may refer to one or more fields in the gRPC request message, as long
* as each field is a non-repeated field with a primitive (non-message) type.
* The path template controls how fields of the request message are mapped to
* the URL path.
+ *
* Example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -55,13 +60,17 @@
* message Message {
* string text = 1; // The resource content.
* }
+ *
* This enables an HTTP REST to gRPC mapping as below:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
+ *
* Any fields in the request message which are not bound by the path template
* automatically become HTTP query parameters if there is no HTTP request body.
* For example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -77,21 +86,26 @@
* int64 revision = 2; // Mapped to URL query parameter `revision`.
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
* }
+ *
* This enables a HTTP JSON to RPC mapping as below:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
* "foo"))`
+ *
* Note that fields which are mapped to URL query parameters must have a
* primitive type or a repeated primitive type or a non-repeated message type.
* In the case of a repeated type, the parameter can be repeated in the URL
* as `...?param=A¶m=B`. In the case of a message type, each field of the
* message is mapped to a separate parameter, such as
* `...?foo.a=A&foo.b=B&foo.c=C`.
+ *
* For HTTP methods that allow a request body, the `body` field
* specifies the mapping. Consider a REST update method on the
* message resource collection:
+ *
* service Messaging {
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -104,17 +118,21 @@
* string message_id = 1; // mapped to the URL
* Message message = 2; // mapped to the body
* }
+ *
* The following HTTP JSON to RPC mapping is enabled, where the
* representation of the JSON in the request body is determined by
* protos JSON encoding:
+ *
* HTTP | gRPC
* -----|-----
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
* "123456" message { text: "Hi!" })`
+ *
* The special name `*` can be used in the body mapping to define that
* every field not bound by the path template should be mapped to the
* request body. This enables the following alternative definition of
* the update method:
+ *
* service Messaging {
* rpc UpdateMessage(Message) returns (Message) {
* option (google.api.http) = {
@@ -127,18 +145,24 @@
* string message_id = 1;
* string text = 2;
* }
+ *
+ *
* The following HTTP JSON to RPC mapping is enabled:
+ *
* HTTP | gRPC
* -----|-----
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
* "123456" text: "Hi!")`
+ *
* Note that when using `*` in the body mapping, it is not possible to
* have HTTP parameters, as all fields not bound by the path end in
* the body. This makes this option more rarely used in practice when
* defining REST APIs. The common usage of `*` is in custom methods
* which don't use the URL at all for transferring data.
+ *
* It is possible to define multiple HTTP methods for one RPC by using
* the `additional_bindings` option. Example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -153,13 +177,17 @@
* string message_id = 1;
* string user_id = 2;
* }
+ *
* This enables the following two alternative HTTP JSON to RPC mappings:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
* "123456")`
+ *
* ## Rules for HTTP mapping
+ *
* 1. Leaf request fields (recursive expansion nested messages in the request
* message) are classified into three categories:
* - Fields referred by the path template. They are passed via the URL path.
@@ -176,23 +204,29 @@
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
* request body, all
* fields are passed via URL path and URL query parameters.
+ *
* ### Path template syntax
+ *
* Template = "/" Segments [ Verb ] ;
* Segments = Segment { "/" Segment } ;
* Segment = "*" | "**" | LITERAL | Variable ;
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
* FieldPath = IDENT { "." IDENT } ;
* Verb = ":" LITERAL ;
+ *
* The syntax `*` matches a single URL path segment. The syntax `**` matches
* zero or more URL path segments, which must be the last part of the URL path
* except the `Verb`.
+ *
* The syntax `Variable` matches part of the URL path as specified by its
* template. A variable template must not contain other variables. If a variable
* matches a single path segment, its template may be omitted, e.g. `{var}`
* is equivalent to `{var=*}`.
+ *
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
* contains any reserved character, such characters should be percent-encoded
* before the matching.
+ *
* If a variable contains exactly one path segment, such as `"{var}"` or
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -200,6 +234,7 @@
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{var}`.
+ *
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -208,11 +243,14 @@
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{+var}`.
+ *
* ## Using gRPC API Service Configuration
+ *
* gRPC API Service Configuration (service config) is a configuration language
* for configuring a gRPC service to become a user-facing product. The
* service config is simply the YAML representation of the `google.api.Service`
* proto message.
+ *
* As an alternative to annotating your proto file, you can configure gRPC
* transcoding in your service config YAML files. You do this by specifying a
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -220,16 +258,21 @@
* have a proto that is reused in multiple services. Note that any transcoding
* specified in the service config will override any matching transcoding
* configuration in the proto.
+ *
* Example:
+ *
* http:
* rules:
* # Selects a gRPC method and applies HttpRule to it.
* - selector: example.v1.Messaging.GetMessage
* get: /v1/messages/{message_id}/{sub.subfield}
+ *
* ## Special notes
+ *
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
* proto to JSON conversion must follow the [proto3
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
+ *
* While the single segment variable follows the semantics of
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -237,13 +280,17 @@
* does not expand special characters like `?` and `#`, which would lead
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
* for multi segment variables.
+ *
* The path variables **must not** refer to any repeated or mapped field,
* because client libraries are not capable of handling such variable expansion.
+ *
* The path variables **must not** capture the leading "/" character. The reason
* is that the most common use case "{var}" does not capture the leading "/"
* character. For consistency, all path variables must share the same behavior.
+ *
* Repeated message fields must not be mapped to URL query parameters, because
* no client library can support such complicated mapping.
+ *
* If an API needs to use a JSON array for request or response body, it can map
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
@@ -274,11 +321,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HttpRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor;
}
@@ -292,6 +334,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int patternCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object pattern_;
public enum PatternCase
@@ -359,6 +403,7 @@ public PatternCase getPatternCase() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -384,6 +429,7 @@ public java.lang.String getSelector() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -829,6 +875,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -856,6 +903,7 @@ public java.lang.String getBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -888,6 +936,7 @@ public com.google.protobuf.ByteString getBodyBytes() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -915,6 +964,7 @@ public java.lang.String getResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -1298,6 +1348,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* # gRPC Transcoding
+ *
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
* more HTTP REST endpoints. It allows developers to build a single API service
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
@@ -1306,17 +1357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
* and use it for large scale production services.
+ *
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
* how different portions of the gRPC request message are mapped to the URL
* path, URL query parameters, and HTTP request body. It also controls how the
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
* typically specified as an `google.api.http` annotation on the gRPC method.
+ *
* Each mapping specifies a URL path template and an HTTP method. The path
* template may refer to one or more fields in the gRPC request message, as long
* as each field is a non-repeated field with a primitive (non-message) type.
* The path template controls how fields of the request message are mapped to
* the URL path.
+ *
* Example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1330,13 +1385,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* message Message {
* string text = 1; // The resource content.
* }
+ *
* This enables an HTTP REST to gRPC mapping as below:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
+ *
* Any fields in the request message which are not bound by the path template
* automatically become HTTP query parameters if there is no HTTP request body.
* For example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1352,21 +1411,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* int64 revision = 2; // Mapped to URL query parameter `revision`.
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
* }
+ *
* This enables a HTTP JSON to RPC mapping as below:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
* "foo"))`
+ *
* Note that fields which are mapped to URL query parameters must have a
* primitive type or a repeated primitive type or a non-repeated message type.
* In the case of a repeated type, the parameter can be repeated in the URL
* as `...?param=A¶m=B`. In the case of a message type, each field of the
* message is mapped to a separate parameter, such as
* `...?foo.a=A&foo.b=B&foo.c=C`.
+ *
* For HTTP methods that allow a request body, the `body` field
* specifies the mapping. Consider a REST update method on the
* message resource collection:
+ *
* service Messaging {
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1379,17 +1443,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1; // mapped to the URL
* Message message = 2; // mapped to the body
* }
+ *
* The following HTTP JSON to RPC mapping is enabled, where the
* representation of the JSON in the request body is determined by
* protos JSON encoding:
+ *
* HTTP | gRPC
* -----|-----
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
* "123456" message { text: "Hi!" })`
+ *
* The special name `*` can be used in the body mapping to define that
* every field not bound by the path template should be mapped to the
* request body. This enables the following alternative definition of
* the update method:
+ *
* service Messaging {
* rpc UpdateMessage(Message) returns (Message) {
* option (google.api.http) = {
@@ -1402,18 +1470,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1;
* string text = 2;
* }
+ *
+ *
* The following HTTP JSON to RPC mapping is enabled:
+ *
* HTTP | gRPC
* -----|-----
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
* "123456" text: "Hi!")`
+ *
* Note that when using `*` in the body mapping, it is not possible to
* have HTTP parameters, as all fields not bound by the path end in
* the body. This makes this option more rarely used in practice when
* defining REST APIs. The common usage of `*` is in custom methods
* which don't use the URL at all for transferring data.
+ *
* It is possible to define multiple HTTP methods for one RPC by using
* the `additional_bindings` option. Example:
+ *
* service Messaging {
* rpc GetMessage(GetMessageRequest) returns (Message) {
* option (google.api.http) = {
@@ -1428,13 +1502,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* string message_id = 1;
* string user_id = 2;
* }
+ *
* This enables the following two alternative HTTP JSON to RPC mappings:
+ *
* HTTP | gRPC
* -----|-----
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
* "123456")`
+ *
* ## Rules for HTTP mapping
+ *
* 1. Leaf request fields (recursive expansion nested messages in the request
* message) are classified into three categories:
* - Fields referred by the path template. They are passed via the URL path.
@@ -1451,23 +1529,29 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
* request body, all
* fields are passed via URL path and URL query parameters.
+ *
* ### Path template syntax
+ *
* Template = "/" Segments [ Verb ] ;
* Segments = Segment { "/" Segment } ;
* Segment = "*" | "**" | LITERAL | Variable ;
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
* FieldPath = IDENT { "." IDENT } ;
* Verb = ":" LITERAL ;
+ *
* The syntax `*` matches a single URL path segment. The syntax `**` matches
* zero or more URL path segments, which must be the last part of the URL path
* except the `Verb`.
+ *
* The syntax `Variable` matches part of the URL path as specified by its
* template. A variable template must not contain other variables. If a variable
* matches a single path segment, its template may be omitted, e.g. `{var}`
* is equivalent to `{var=*}`.
+ *
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
* contains any reserved character, such characters should be percent-encoded
* before the matching.
+ *
* If a variable contains exactly one path segment, such as `"{var}"` or
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
@@ -1475,6 +1559,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{var}`.
+ *
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
@@ -1483,11 +1568,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [Discovery
* Document](https://developers.google.com/discovery/v1/reference/apis) as
* `{+var}`.
+ *
* ## Using gRPC API Service Configuration
+ *
* gRPC API Service Configuration (service config) is a configuration language
* for configuring a gRPC service to become a user-facing product. The
* service config is simply the YAML representation of the `google.api.Service`
* proto message.
+ *
* As an alternative to annotating your proto file, you can configure gRPC
* transcoding in your service config YAML files. You do this by specifying a
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
@@ -1495,16 +1583,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* have a proto that is reused in multiple services. Note that any transcoding
* specified in the service config will override any matching transcoding
* configuration in the proto.
+ *
* Example:
+ *
* http:
* rules:
* # Selects a gRPC method and applies HttpRule to it.
* - selector: example.v1.Messaging.GetMessage
* get: /v1/messages/{message_id}/{sub.subfield}
+ *
* ## Special notes
+ *
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
* proto to JSON conversion must follow the [proto3
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
+ *
* While the single segment variable follows the semantics of
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
@@ -1512,13 +1605,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* does not expand special characters like `?` and `#`, which would lead
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
* for multi segment variables.
+ *
* The path variables **must not** refer to any repeated or mapped field,
* because client libraries are not capable of handling such variable expansion.
+ *
* The path variables **must not** capture the leading "/" character. The reason
* is that the most common use case "{var}" does not capture the leading "/"
* character. For consistency, all path variables must share the same behavior.
+ *
* Repeated message fields must not be mapped to URL query parameters, because
* no client library can support such complicated mapping.
+ *
* If an API needs to use a JSON array for request or response body, it can map
* the request or response body to a repeated field. However, some gRPC
* Transcoding implementations may not support this feature.
@@ -1635,39 +1732,6 @@ private void buildPartialOneofs(com.google.api.HttpRule result) {
}
}
- @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.api.HttpRule) {
@@ -1904,6 +1968,7 @@ public Builder clearPattern() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1928,6 +1993,7 @@ public java.lang.String getSelector() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1952,6 +2018,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1975,6 +2042,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -1994,6 +2062,7 @@ public Builder clearSelector() {
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -2931,6 +3000,7 @@ public com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -2957,6 +3027,7 @@ public java.lang.String getBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -2983,6 +3054,7 @@ public com.google.protobuf.ByteString getBodyBytes() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3008,6 +3080,7 @@ public Builder setBody(java.lang.String value) {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3029,6 +3102,7 @@ public Builder clearBody() {
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -3057,6 +3131,7 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3083,6 +3158,7 @@ public java.lang.String getResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3109,6 +3185,7 @@ public com.google.protobuf.ByteString getResponseBodyBytes() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3134,6 +3211,7 @@ public Builder setResponseBody(java.lang.String value) {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -3155,6 +3233,7 @@ public Builder clearResponseBody() {
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
index 31d51732f2..56b7fa79c9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface HttpRuleOrBuilder
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface HttpRuleOrBuilder
*
*
* Selects a method to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -291,6 +293,7 @@ public interface HttpRuleOrBuilder
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -307,6 +310,7 @@ public interface HttpRuleOrBuilder
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
+ *
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
@@ -324,6 +328,7 @@ public interface HttpRuleOrBuilder
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -340,6 +345,7 @@ public interface HttpRuleOrBuilder
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used
* as the HTTP response body.
+ *
* NOTE: The referred field must be present at the top-level of the response
* message type.
*
@@ -411,5 +417,5 @@ public interface HttpRuleOrBuilder
*/
com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(int index);
- public com.google.api.HttpRule.PatternCase getPatternCase();
+ com.google.api.HttpRule.PatternCase getPatternCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
index 4bdbc32ad2..7654daf0d9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JavaSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_JavaSettings_descriptor;
}
@@ -88,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -119,7 +116,9 @@ public java.lang.String getLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -180,7 +179,9 @@ public int getServiceClassNamesCount() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -213,7 +214,9 @@ public java.util.Map getServiceClassNames()
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -237,7 +240,9 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -268,7 +273,9 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -636,39 +643,6 @@ private void buildPartial0(com.google.api.JavaSettings result) {
}
}
- @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.api.JavaSettings) {
@@ -771,7 +745,9 @@ public Builder mergeFrom(
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -801,7 +777,9 @@ public java.lang.String getLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -831,7 +809,9 @@ public com.google.protobuf.ByteString getLibraryPackageBytes() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -860,7 +840,9 @@ public Builder setLibraryPackage(java.lang.String value) {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -885,7 +867,9 @@ public Builder clearLibraryPackage() {
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -946,7 +930,9 @@ public int getServiceClassNamesCount() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -979,7 +965,9 @@ public java.util.Map getServiceClassNames()
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -1003,7 +991,9 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -1035,7 +1025,9 @@ public java.util.Map getServiceClassNamesMap
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -1073,7 +1065,9 @@ public Builder clearServiceClassNames() {
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -1106,7 +1100,9 @@ public java.util.Map getMutableServiceClassN
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -1137,7 +1133,9 @@ public Builder putServiceClassNames(java.lang.String key, java.lang.String value
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
index c6d326f4a3..72a860c07e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java
@@ -32,7 +32,9 @@ public interface JavaSettingsOrBuilder
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -52,7 +54,9 @@ public interface JavaSettingsOrBuilder
* who have already set the language_settings.java.package_name" field
* in gapic.yaml. API teams should use the protobuf java_package option
* where possible.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* library_package: com.google.cloud.pubsub.v1
@@ -74,7 +78,9 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -95,7 +101,9 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -119,7 +127,9 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -140,7 +150,9 @@ public interface JavaSettingsOrBuilder
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
@@ -165,7 +177,9 @@ java.lang.String getServiceClassNamesOrDefault(
* the language_settings.java.interface_names" field in gapic.yaml. API
* teams should otherwise use the service name as it appears in the
* protobuf.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* java_settings:
* service_class_names:
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
index 9e7968ed34..d81e325fed 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JwtLocation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_JwtLocation_descriptor;
}
@@ -65,6 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int inCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object in_;
public enum InCase
@@ -337,6 +334,7 @@ public com.google.protobuf.ByteString getCookieBytes() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -366,6 +364,7 @@ public java.lang.String getValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -676,39 +675,6 @@ private void buildPartialOneofs(com.google.api.JwtLocation result) {
result.in_ = this.in_;
}
- @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.api.JwtLocation) {
@@ -1251,6 +1217,7 @@ public Builder setCookieBytes(com.google.protobuf.ByteString value) {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1279,6 +1246,7 @@ public java.lang.String getValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1307,6 +1275,7 @@ public com.google.protobuf.ByteString getValuePrefixBytes() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1334,6 +1303,7 @@ public Builder setValuePrefix(java.lang.String value) {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -1357,6 +1327,7 @@ public Builder clearValuePrefix() {
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
index 167a5c86e6..cd6fff9f5b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java
@@ -143,6 +143,7 @@ public interface JwtLocationOrBuilder
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -161,6 +162,7 @@ public interface JwtLocationOrBuilder
* If not empty, the header value has to match (case sensitive) this prefix.
* If not matched, JWT will not be extracted. If matched, JWT will be
* extracted after the prefix is removed.
+ *
* For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
@@ -171,5 +173,5 @@ public interface JwtLocationOrBuilder
*/
com.google.protobuf.ByteString getValuePrefixBytes();
- public com.google.api.JwtLocation.InCase getInCase();
+ com.google.api.JwtLocation.InCase getInCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
index 503d6fc0d8..071ca4609a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LabelDescriptor();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LabelProto.internal_static_google_api_LabelDescriptor_descriptor;
}
@@ -619,39 +614,6 @@ private void buildPartial0(com.google.api.LabelDescriptor result) {
}
}
- @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.api.LabelDescriptor) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
index b6b3318518..ae0f97dfa3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java
@@ -23,6 +23,7 @@
*
*
* A description of a log type. Example in YAML format:
+ *
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
@@ -56,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LogDescriptor();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
}
@@ -508,6 +504,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* A description of a log type. Example in YAML format:
+ *
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
@@ -613,39 +610,6 @@ private void buildPartial0(com.google.api.LogDescriptor result) {
}
}
- @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.api.LogDescriptor) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
index 26cf4b48d7..3d0268a67d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java
@@ -23,10 +23,12 @@
*
*
* Logging configuration of the service.
+ *
* The following example shows how to configure logs to be sent to the
* producer and consumer projects. In the example, the `activity_history`
* log is sent to both the producer and consumer projects, whereas the
* `purchase_history` log is only sent to the producer project.
+ *
* monitored_resources:
* - type: library.googleapis.com/branch
* labels:
@@ -74,11 +76,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Logging();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LoggingProto.internal_static_google_api_Logging_descriptor;
}
@@ -210,7 +207,7 @@ private LoggingDestination(com.google.protobuf.GeneratedMessageV3.Builder> bui
private LoggingDestination() {
monitoredResource_ = "";
- logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -219,11 +216,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LoggingDestination();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.LoggingProto
.internal_static_google_api_Logging_LoggingDestination_descriptor;
@@ -297,7 +289,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
public static final int LOGS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList logs_;
+ private com.google.protobuf.LazyStringArrayList logs_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -587,8 +580,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
monitoredResource_ = "";
- logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -616,7 +608,6 @@ public com.google.api.Logging.LoggingDestination build() {
public com.google.api.Logging.LoggingDestination buildPartial() {
com.google.api.Logging.LoggingDestination result =
new com.google.api.Logging.LoggingDestination(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -624,54 +615,15 @@ public com.google.api.Logging.LoggingDestination buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.api.Logging.LoggingDestination result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- logs_ = logs_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.logs_ = logs_;
- }
-
private void buildPartial0(com.google.api.Logging.LoggingDestination result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.monitoredResource_ = monitoredResource_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ logs_.makeImmutable();
+ result.logs_ = logs_;
+ }
}
@java.lang.Override
@@ -694,7 +646,7 @@ public Builder mergeFrom(com.google.api.Logging.LoggingDestination other) {
if (!other.logs_.isEmpty()) {
if (logs_.isEmpty()) {
logs_ = other.logs_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureLogsIsMutable();
logs_.addAll(other.logs_);
@@ -875,14 +827,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList logs_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList logs_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureLogsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!logs_.isModifiable()) {
logs_ = new com.google.protobuf.LazyStringArrayList(logs_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -899,7 +851,8 @@ private void ensureLogsIsMutable() {
* @return A list containing the logs.
*/
public com.google.protobuf.ProtocolStringList getLogsList() {
- return logs_.getUnmodifiableView();
+ logs_.makeImmutable();
+ return logs_;
}
/**
*
@@ -976,6 +929,7 @@ public Builder setLogs(int index, java.lang.String value) {
}
ensureLogsIsMutable();
logs_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1000,6 +954,7 @@ public Builder addLogs(java.lang.String value) {
}
ensureLogsIsMutable();
logs_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1021,6 +976,7 @@ public Builder addLogs(java.lang.String value) {
public Builder addAllLogs(java.lang.Iterable values) {
ensureLogsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1039,8 +995,9 @@ public Builder addAllLogs(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearLogs() {
- logs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ logs_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1066,6 +1023,7 @@ public Builder addLogsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureLogsIsMutable();
logs_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1485,10 +1443,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Logging configuration of the service.
+ *
* The following example shows how to configure logs to be sent to the
* producer and consumer projects. In the example, the `activity_history`
* log is sent to both the producer and consumer projects, whereas the
* `purchase_history` log is only sent to the producer project.
+ *
* monitored_resources:
* - type: library.googleapis.com/branch
* labels:
@@ -1614,39 +1574,6 @@ private void buildPartial0(com.google.api.Logging result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Logging) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
index 40b1242c37..97e394223e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MethodSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_MethodSettings_descriptor;
}
@@ -229,11 +224,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LongRunning();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto
.internal_static_google_api_MethodSettings_LongRunning_descriptor;
@@ -748,41 +738,6 @@ private void buildPartial0(com.google.api.MethodSettings.LongRunning result) {
}
}
- @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.api.MethodSettings.LongRunning) {
@@ -1639,7 +1594,9 @@ public com.google.protobuf.ByteString getSelectorBytes() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1668,7 +1625,9 @@ public boolean hasLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1699,7 +1658,9 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -1978,39 +1939,6 @@ private void buildPartial0(com.google.api.MethodSettings result) {
}
}
- @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.api.MethodSettings) {
@@ -2212,7 +2140,9 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2240,7 +2170,9 @@ public boolean hasLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2274,7 +2206,9 @@ public com.google.api.MethodSettings.LongRunning getLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2310,7 +2244,9 @@ public Builder setLongRunning(com.google.api.MethodSettings.LongRunning value) {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2344,7 +2280,9 @@ public Builder setLongRunning(
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2383,7 +2321,9 @@ public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value)
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2416,7 +2356,9 @@ public Builder clearLongRunning() {
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2444,7 +2386,9 @@ public com.google.api.MethodSettings.LongRunning.Builder getLongRunningBuilder()
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -2476,7 +2420,9 @@ public com.google.api.MethodSettings.LongRunningOrBuilder getLongRunningOrBuilde
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
index 9bc4f14caa..bd505c8f47 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java
@@ -57,7 +57,9 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -83,7 +85,9 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
@@ -109,7 +113,9 @@ public interface MethodSettingsOrBuilder
* Describes settings to use for long-running operations when generating
* API methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto.
+ *
* Example of a YAML configuration::
+ *
* publishing:
* method_settings:
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
index 95d806a9e9..2215b4907f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Metric();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto.internal_static_google_api_Metric_descriptor;
}
@@ -512,39 +507,6 @@ private void buildPartial0(com.google.api.Metric result) {
}
}
- @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.api.Metric) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
index f39ceed755..62054e4be8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java
@@ -49,7 +49,7 @@ private MetricDescriptor() {
description_ = "";
displayName_ = "";
launchStage_ = 0;
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -58,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricDescriptor();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto.internal_static_google_api_MetricDescriptor_descriptor;
}
@@ -667,11 +662,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricDescriptorMetadata();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MetricProto
.internal_static_google_api_MetricDescriptor_MetricDescriptorMetadata_descriptor;
@@ -1135,41 +1125,6 @@ private void buildPartial0(com.google.api.MetricDescriptor.MetricDescriptorMetad
}
}
- @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.api.MetricDescriptor.MetricDescriptorMetadata) {
@@ -1907,6 +1862,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -1936,6 +1892,7 @@ public java.lang.String getType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -2139,22 +2096,28 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -2162,7 +2125,9 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -2171,6 +2136,7 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -2179,27 +2145,37 @@ public com.google.api.MetricDescriptor.ValueType getValueType() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -2244,22 +2220,28 @@ public java.lang.String getUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -2267,7 +2249,9 @@ public java.lang.String getUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -2276,6 +2260,7 @@ public java.lang.String getUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -2284,27 +2269,37 @@ public java.lang.String getUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -2538,7 +2533,8 @@ public com.google.api.LaunchStage getLaunchStage() {
public static final int MONITORED_RESOURCE_TYPES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList monitoredResourceTypes_;
+ private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -2944,8 +2940,7 @@ public Builder clear() {
metadataBuilder_ = null;
}
launchStage_ = 0;
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000400);
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -2989,11 +2984,6 @@ private void buildPartialRepeatedFields(com.google.api.MetricDescriptor result)
} else {
result.labels_ = labelsBuilder_.build();
}
- if (((bitField0_ & 0x00000400) != 0)) {
- monitoredResourceTypes_ = monitoredResourceTypes_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000400);
- }
- result.monitoredResourceTypes_ = monitoredResourceTypes_;
}
private void buildPartial0(com.google.api.MetricDescriptor result) {
@@ -3025,39 +3015,10 @@ private void buildPartial0(com.google.api.MetricDescriptor result) {
if (((from_bitField0_ & 0x00000200) != 0)) {
result.launchStage_ = launchStage_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ monitoredResourceTypes_.makeImmutable();
+ result.monitoredResourceTypes_ = monitoredResourceTypes_;
+ }
}
@java.lang.Override
@@ -3139,7 +3100,7 @@ public Builder mergeFrom(com.google.api.MetricDescriptor other) {
if (!other.monitoredResourceTypes_.isEmpty()) {
if (monitoredResourceTypes_.isEmpty()) {
monitoredResourceTypes_ = other.monitoredResourceTypes_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ |= 0x00000400;
} else {
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.addAll(other.monitoredResourceTypes_);
@@ -3379,6 +3340,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -3407,6 +3369,7 @@ public java.lang.String getType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -3435,6 +3398,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -3462,6 +3426,7 @@ public Builder setType(java.lang.String value) {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -3485,6 +3450,7 @@ public Builder clearType() {
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -4140,22 +4106,28 @@ public Builder clearValueType() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -4163,7 +4135,9 @@ public Builder clearValueType() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -4172,6 +4146,7 @@ public Builder clearValueType() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -4180,27 +4155,37 @@ public Builder clearValueType() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -4244,22 +4229,28 @@ public java.lang.String getUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -4267,7 +4258,9 @@ public java.lang.String getUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -4276,6 +4269,7 @@ public java.lang.String getUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -4284,27 +4278,37 @@ public java.lang.String getUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -4348,22 +4352,28 @@ public com.google.protobuf.ByteString getUnitBytes() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -4371,7 +4381,9 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -4380,6 +4392,7 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -4388,27 +4401,37 @@ public com.google.protobuf.ByteString getUnitBytes() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -4451,22 +4474,28 @@ public Builder setUnit(java.lang.String value) {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -4474,7 +4503,9 @@ public Builder setUnit(java.lang.String value) {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -4483,6 +4514,7 @@ public Builder setUnit(java.lang.String value) {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -4491,27 +4523,37 @@ public Builder setUnit(java.lang.String value) {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -4550,22 +4592,28 @@ public Builder clearUnit() {
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -4573,7 +4621,9 @@ public Builder clearUnit() {
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -4582,6 +4632,7 @@ public Builder clearUnit() {
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -4590,27 +4641,37 @@ public Builder clearUnit() {
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -5150,15 +5211,15 @@ public Builder clearLaunchStage() {
return this;
}
- private com.google.protobuf.LazyStringList monitoredResourceTypes_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList monitoredResourceTypes_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMonitoredResourceTypesIsMutable() {
- if (!((bitField0_ & 0x00000400) != 0)) {
+ if (!monitoredResourceTypes_.isModifiable()) {
monitoredResourceTypes_ =
new com.google.protobuf.LazyStringArrayList(monitoredResourceTypes_);
- bitField0_ |= 0x00000400;
}
+ bitField0_ |= 0x00000400;
}
/**
*
@@ -5177,7 +5238,8 @@ private void ensureMonitoredResourceTypesIsMutable() {
* @return A list containing the monitoredResourceTypes.
*/
public com.google.protobuf.ProtocolStringList getMonitoredResourceTypesList() {
- return monitoredResourceTypes_.getUnmodifiableView();
+ monitoredResourceTypes_.makeImmutable();
+ return monitoredResourceTypes_;
}
/**
*
@@ -5262,6 +5324,7 @@ public Builder setMonitoredResourceTypes(int index, java.lang.String value) {
}
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.set(index, value);
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -5288,6 +5351,7 @@ public Builder addMonitoredResourceTypes(java.lang.String value) {
}
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.add(value);
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -5311,6 +5375,7 @@ public Builder addMonitoredResourceTypes(java.lang.String value) {
public Builder addAllMonitoredResourceTypes(java.lang.Iterable values) {
ensureMonitoredResourceTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitoredResourceTypes_);
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -5331,8 +5396,9 @@ public Builder addAllMonitoredResourceTypes(java.lang.Iterable
* @return This builder for chaining.
*/
public Builder clearMonitoredResourceTypes() {
- monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ monitoredResourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
+ ;
onChanged();
return this;
}
@@ -5360,6 +5426,7 @@ public Builder addMonitoredResourceTypesBytes(com.google.protobuf.ByteString val
checkByteStringIsUtf8(value);
ensureMonitoredResourceTypesIsMutable();
monitoredResourceTypes_.add(value);
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
index e50bfaa62d..0f949c13b0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java
@@ -56,6 +56,7 @@ public interface MetricDescriptorOrBuilder
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -74,6 +75,7 @@ public interface MetricDescriptorOrBuilder
* URL-encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
+ *
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
@@ -222,22 +224,28 @@ public interface MetricDescriptorOrBuilder
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -245,7 +253,9 @@ public interface MetricDescriptorOrBuilder
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -254,6 +264,7 @@ public interface MetricDescriptorOrBuilder
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -262,27 +273,37 @@ public interface MetricDescriptorOrBuilder
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
@@ -316,22 +337,28 @@ public interface MetricDescriptorOrBuilder
* The units in which the metric value is reported. It is only applicable
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values.
+ *
* Different systems might scale the values to be more easily displayed (so a
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
* `kBy`, then the value of the metric is always in thousands of bytes, no
* matter how it might be displayed.
+ *
* If you want a custom metric to record the exact number of CPU-seconds used
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
* CPU-seconds, then the value is written as `12005`.
+ *
* Alternatively, if you want a custom metric to record data in a more
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
+ *
* The supported units are a subset of [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard:
+ *
* **Basic units (UNIT)**
+ *
* * `bit` bit
* * `By` byte
* * `s` second
@@ -339,7 +366,9 @@ public interface MetricDescriptorOrBuilder
* * `h` hour
* * `d` day
* * `1` dimensionless
+ *
* **Prefixes (PREFIX)**
+ *
* * `k` kilo (10^3)
* * `M` mega (10^6)
* * `G` giga (10^9)
@@ -348,6 +377,7 @@ public interface MetricDescriptorOrBuilder
* * `E` exa (10^18)
* * `Z` zetta (10^21)
* * `Y` yotta (10^24)
+ *
* * `m` milli (10^-3)
* * `u` micro (10^-6)
* * `n` nano (10^-9)
@@ -356,27 +386,37 @@ public interface MetricDescriptorOrBuilder
* * `a` atto (10^-18)
* * `z` zepto (10^-21)
* * `y` yocto (10^-24)
+ *
* * `Ki` kibi (2^10)
* * `Mi` mebi (2^20)
* * `Gi` gibi (2^30)
* * `Ti` tebi (2^40)
* * `Pi` pebi (2^50)
+ *
* **Grammar**
+ *
* The grammar also includes these connectors:
+ *
* * `/` division or ratio (as an infix operator). For examples,
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
* have `/s` in a metric `unit`; rates should always be computed at
* query time from the underlying cumulative or delta value).
* * `.` multiplication or composition (as an infix operator). For
* examples, `GBy.d` or `k{watt}.h`.
+ *
* The grammar for a unit is as follows:
+ *
* Expression = Component { "." Component } { "/" Component } ;
+ *
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
* | Annotation
* | "1"
* ;
+ *
* Annotation = "{" NAME "}" ;
+ *
* Notes:
+ *
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
* is used alone, then the unit is equivalent to `1`. For examples,
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
index 1d858e3f3c..81b1ffcaf1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MetricRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.QuotaProto.internal_static_google_api_MetricRule_descriptor;
}
@@ -85,6 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -110,6 +106,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -163,6 +160,7 @@ public int getMetricCostsCount() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -189,6 +187,7 @@ public java.util.Map getMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -206,6 +205,7 @@ public java.util.Map getMetricCostsMap() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -227,6 +227,7 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -522,39 +523,6 @@ private void buildPartial0(com.google.api.MetricRule result) {
}
}
- @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.api.MetricRule) {
@@ -643,6 +611,7 @@ public Builder mergeFrom(
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -667,6 +636,7 @@ public java.lang.String getSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -691,6 +661,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -714,6 +685,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -733,6 +705,7 @@ public Builder clearSelector() {
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -787,6 +760,7 @@ public int getMetricCostsCount() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -813,6 +787,7 @@ public java.util.Map getMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -830,6 +805,7 @@ public java.util.Map getMetricCostsMap() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -851,6 +827,7 @@ public long getMetricCostsOrDefault(java.lang.String key, long defaultValue) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -881,6 +858,7 @@ public Builder clearMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -907,6 +885,7 @@ public java.util.Map getMutableMetricCosts() {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -929,6 +908,7 @@ public Builder putMetricCosts(java.lang.String key, long value) {
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
index 4827435062..5aaac1d9eb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface MetricRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface MetricRuleOrBuilder
*
*
* Selects the methods to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -58,6 +60,7 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -72,6 +75,7 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -89,6 +93,7 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -103,6 +108,7 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
@@ -117,6 +123,7 @@ public interface MetricRuleOrBuilder
*
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric.
+ *
* The key of the map is the metric name, and the values are the amount
* increased for the metric against which the quota limits are defined.
* The value must not be negative.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
index 7798d6f43b..64cc3497ab 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java
@@ -33,6 +33,7 @@
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
* `"gce_instance"` has labels
* `"project_id"`, `"instance_id"` and `"zone"`:
+ *
* { "type": "gce_instance",
* "labels": { "project_id": "my-project",
* "instance_id": "12345678901234",
@@ -61,11 +62,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResource();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResource_descriptor;
@@ -453,6 +449,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
* `"gce_instance"` has labels
* `"project_id"`, `"instance_id"` and `"zone"`:
+ *
* { "type": "gce_instance",
* "labels": { "project_id": "my-project",
* "instance_id": "12345678901234",
@@ -557,39 +554,6 @@ private void buildPartial0(com.google.api.MonitoredResource result) {
}
}
- @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.api.MonitoredResource) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
index 3bb01b3c41..abe264e18a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java
@@ -28,6 +28,7 @@
* Google Compute Engine VM instances has a type of
* `"gce_instance"` and specifies the use of the labels `"instance_id"` and
* `"zone"` to identify particular VM instances.
+ *
* Different APIs can support different monitored resource types. APIs generally
* provide a `list` method that returns the monitored resource descriptors used
* by the API.
@@ -60,11 +61,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResourceDescriptor();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResourceDescriptor_descriptor;
@@ -643,6 +639,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Google Compute Engine VM instances has a type of
* `"gce_instance"` and specifies the use of the labels `"instance_id"` and
* `"zone"` to identify particular VM instances.
+ *
* Different APIs can support different monitored resource types. APIs generally
* provide a `list` method that returns the monitored resource descriptors used
* by the API.
@@ -758,39 +755,6 @@ private void buildPartial0(com.google.api.MonitoredResourceDescriptor result) {
}
}
- @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.api.MonitoredResourceDescriptor) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
index a32f62611c..b9277ee84b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoredResourceMetadata();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoredResourceProto
.internal_static_google_api_MonitoredResourceMetadata_descriptor;
@@ -93,6 +88,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -116,6 +112,7 @@ public boolean hasSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -139,6 +136,7 @@ public com.google.protobuf.Struct getSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -549,39 +547,6 @@ private void buildPartial0(com.google.api.MonitoredResourceMetadata result) {
}
}
- @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.api.MonitoredResourceMetadata) {
@@ -678,6 +643,7 @@ public Builder mergeFrom(
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -700,6 +666,7 @@ public boolean hasSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -728,6 +695,7 @@ public com.google.protobuf.Struct getSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -758,6 +726,7 @@ public Builder setSystemLabels(com.google.protobuf.Struct value) {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -785,6 +754,7 @@ public Builder setSystemLabels(com.google.protobuf.Struct.Builder builderForValu
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -818,6 +788,7 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -845,6 +816,7 @@ public Builder clearSystemLabels() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -867,6 +839,7 @@ public com.google.protobuf.Struct.Builder getSystemLabelsBuilder() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -893,6 +866,7 @@ public com.google.protobuf.StructOrBuilder getSystemLabelsOrBuilder() {
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
index 452635ab52..8ad34a06bf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java
@@ -33,6 +33,7 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -53,6 +54,7 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
@@ -73,6 +75,7 @@ public interface MonitoredResourceMetadataOrBuilder
* "security_group", "name", etc.
* System label values can be only strings, Boolean values, or a list of
* strings. For example:
+ *
* { "name": "my-test-instance",
* "security_group": ["a", "b", "c"],
* "spot_instance": false }
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
index 6f7d6a58ae..ce7f1db810 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java
@@ -23,12 +23,14 @@
*
*
* Monitoring configuration of the service.
+ *
* The example below shows how to configure monitored resources and metrics
* for monitoring. In the example, a monitored resource and two metrics are
* defined. The `library.googleapis.com/book/returned_count` metric is sent
* to both producer and consumer projects, whereas the
* `library.googleapis.com/book/num_overdue` metric is only sent to the
* consumer project.
+ *
* monitored_resources:
* - type: library.googleapis.com/Branch
* display_name: "Library Branch"
@@ -97,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Monitoring();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoringProto.internal_static_google_api_Monitoring_descriptor;
}
@@ -229,7 +226,7 @@ private MonitoringDestination(com.google.protobuf.GeneratedMessageV3.Builder>
private MonitoringDestination() {
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -238,11 +235,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MonitoringDestination();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.MonitoringProto
.internal_static_google_api_Monitoring_MonitoringDestination_descriptor;
@@ -316,7 +308,8 @@ public com.google.protobuf.ByteString getMonitoredResourceBytes() {
public static final int METRICS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList metrics_;
+ private com.google.protobuf.LazyStringArrayList metrics_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -602,8 +595,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
monitoredResource_ = "";
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -631,7 +623,6 @@ public com.google.api.Monitoring.MonitoringDestination build() {
public com.google.api.Monitoring.MonitoringDestination buildPartial() {
com.google.api.Monitoring.MonitoringDestination result =
new com.google.api.Monitoring.MonitoringDestination(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -639,55 +630,15 @@ public com.google.api.Monitoring.MonitoringDestination buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(
- com.google.api.Monitoring.MonitoringDestination result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- metrics_ = metrics_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.metrics_ = metrics_;
- }
-
private void buildPartial0(com.google.api.Monitoring.MonitoringDestination result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.monitoredResource_ = monitoredResource_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ metrics_.makeImmutable();
+ result.metrics_ = metrics_;
+ }
}
@java.lang.Override
@@ -711,7 +662,7 @@ public Builder mergeFrom(com.google.api.Monitoring.MonitoringDestination other)
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
@@ -892,14 +843,14 @@ public Builder setMonitoredResourceBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList metrics_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList metrics_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMetricsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!metrics_.isModifiable()) {
metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -915,7 +866,8 @@ private void ensureMetricsIsMutable() {
* @return A list containing the metrics.
*/
public com.google.protobuf.ProtocolStringList getMetricsList() {
- return metrics_.getUnmodifiableView();
+ metrics_.makeImmutable();
+ return metrics_;
}
/**
*
@@ -988,6 +940,7 @@ public Builder setMetrics(int index, java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1011,6 +964,7 @@ public Builder addMetrics(java.lang.String value) {
}
ensureMetricsIsMutable();
metrics_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1031,6 +985,7 @@ public Builder addMetrics(java.lang.String value) {
public Builder addAllMetrics(java.lang.Iterable values) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1048,8 +1003,9 @@ public Builder addAllMetrics(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearMetrics() {
- metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ metrics_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1074,6 +1030,7 @@ public Builder addMetricsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMetricsIsMutable();
metrics_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1515,12 +1472,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Monitoring configuration of the service.
+ *
* The example below shows how to configure monitored resources and metrics
* for monitoring. In the example, a monitored resource and two metrics are
* defined. The `library.googleapis.com/book/returned_count` metric is sent
* to both producer and consumer projects, whereas the
* `library.googleapis.com/book/num_overdue` metric is only sent to the
* consumer project.
+ *
* monitored_resources:
* - type: library.googleapis.com/Branch
* display_name: "Library Branch"
@@ -1667,39 +1626,6 @@ private void buildPartial0(com.google.api.Monitoring result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Monitoring) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
index 2bef3c0bf9..770d7847b8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NodeSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_NodeSettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.NodeSettings result) {
}
}
- @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.api.NodeSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
index be32817aa1..7f28f86b13 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java
@@ -26,13 +26,17 @@
* there are scopes defined for "Read-only access to Google Calendar" and
* "Access to Cloud Platform". Users can consent to a scope for an application,
* giving it permission to access that data on their behalf.
+ *
* OAuth scope specifications should be fairly coarse grained; a user will need
* to see and understand the text description of what your scope means.
+ *
* In most cases: use one or at most two OAuth scopes for an entire family of
* products. If your product has multiple APIs, you should probably be sharing
* the OAuth scope across all of those APIs.
+ *
* When you need finer grained OAuth consent screens: talk with your product
* management about how developers will use them in practice.
+ *
* Please note that even though each of the canonical scopes is enough for a
* request to be accepted and passed to the backend, a request can still fail
* due to the backend requiring additional scopes or permissions.
@@ -60,11 +64,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OAuthRequirements();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.AuthProto.internal_static_google_api_OAuthRequirements_descriptor;
}
@@ -87,7 +86,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -114,7 +115,9 @@ public java.lang.String getCanonicalScopes() {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -301,13 +304,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* there are scopes defined for "Read-only access to Google Calendar" and
* "Access to Cloud Platform". Users can consent to a scope for an application,
* giving it permission to access that data on their behalf.
+ *
* OAuth scope specifications should be fairly coarse grained; a user will need
* to see and understand the text description of what your scope means.
+ *
* In most cases: use one or at most two OAuth scopes for an entire family of
* products. If your product has multiple APIs, you should probably be sharing
* the OAuth scope across all of those APIs.
+ *
* When you need finer grained OAuth consent screens: talk with your product
* management about how developers will use them in practice.
+ *
* Please note that even though each of the canonical scopes is enough for a
* request to be accepted and passed to the backend, a request can still fail
* due to the backend requiring additional scopes or permissions.
@@ -384,39 +391,6 @@ private void buildPartial0(com.google.api.OAuthRequirements result) {
}
}
- @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.api.OAuthRequirements) {
@@ -492,7 +466,9 @@ public Builder mergeFrom(
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -518,7 +494,9 @@ public java.lang.String getCanonicalScopes() {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -544,7 +522,9 @@ public com.google.protobuf.ByteString getCanonicalScopesBytes() {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -569,7 +549,9 @@ public Builder setCanonicalScopes(java.lang.String value) {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -590,7 +572,9 @@ public Builder clearCanonicalScopes() {
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
index 27a92e367e..7415ca3162 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java
@@ -29,7 +29,9 @@ public interface OAuthRequirementsOrBuilder
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
@@ -45,7 +47,9 @@ public interface OAuthRequirementsOrBuilder
*
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted.
+ *
* Example:
+ *
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
index 4b65ff2c48..7d6d287a0c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Page();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.DocumentationProto.internal_static_google_api_Page_descriptor;
}
@@ -552,39 +547,6 @@ private void buildPartial0(com.google.api.Page result) {
}
}
- @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.api.Page) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
index 1dea477ba1..db2200da6e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PhpSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_PhpSettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.PhpSettings result) {
}
}
- @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.api.PhpSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
index 977f71fc47..00445968be 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java
@@ -28,7 +28,9 @@
* associated with a school, or a business, or a government agency, a business
* type property on the project may affect how a service responds to the client.
* This descriptor defines which properties are allowed to be set on a project.
+ *
* Example:
+ *
* project_properties:
* properties:
* - name: NO_WATERMARK
@@ -60,11 +62,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ProjectProperties();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConsumerProto.internal_static_google_api_ProjectProperties_descriptor;
}
@@ -317,7 +314,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* associated with a school, or a business, or a government agency, a business
* type property on the project may affect how a service responds to the client.
* This descriptor defines which properties are allowed to be set on a project.
+ *
* Example:
+ *
* project_properties:
* properties:
* - name: NO_WATERMARK
@@ -414,39 +413,6 @@ private void buildPartial0(com.google.api.ProjectProperties result) {
int from_bitField0_ = bitField0_;
}
- @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.api.ProjectProperties) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
index 9a84766c27..e383889920 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java
@@ -23,11 +23,13 @@
*
*
* Defines project properties.
+ *
* API services can define properties that can be assigned to consumer projects
* so that backends can perform response customization without having to make
* additional calls or maintain additional storage. For example, Maps API
* defines properties that controls map tile cache period, or whether to embed a
* watermark in a result.
+ *
* These values can be set via API producer console. Only API providers can
* define and set these properties.
*
@@ -56,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Property();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ConsumerProto.internal_static_google_api_Property_descriptor;
}
@@ -591,11 +588,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Defines project properties.
+ *
* API services can define properties that can be assigned to consumer projects
* so that backends can perform response customization without having to make
* additional calls or maintain additional storage. For example, Maps API
* defines properties that controls map tile cache period, or whether to embed a
* watermark in a result.
+ *
* These values can be set via API producer console. Only API providers can
* define and set these properties.
*
@@ -677,39 +676,6 @@ private void buildPartial0(com.google.api.Property result) {
}
}
- @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.api.Property) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
index 93bc20d91e..31233038c3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java
@@ -45,7 +45,7 @@ private Publishing() {
documentationUri_ = "";
apiShortName_ = "";
githubLabel_ = "";
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
docTagPrefix_ = "";
organization_ = 0;
librarySettings_ = java.util.Collections.emptyList();
@@ -58,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Publishing();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_Publishing_descriptor;
}
@@ -366,7 +361,8 @@ public com.google.protobuf.ByteString getGithubLabelBytes() {
public static final int CODEOWNER_GITHUB_TEAMS_FIELD_NUMBER = 105;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList codeownerGithubTeams_;
+ private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -960,8 +956,7 @@ public Builder clear() {
documentationUri_ = "";
apiShortName_ = "";
githubLabel_ = "";
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000020);
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
docTagPrefix_ = "";
organization_ = 0;
if (librarySettingsBuilder_ == null) {
@@ -1015,11 +1010,6 @@ private void buildPartialRepeatedFields(com.google.api.Publishing result) {
} else {
result.methodSettings_ = methodSettingsBuilder_.build();
}
- if (((bitField0_ & 0x00000020) != 0)) {
- codeownerGithubTeams_ = codeownerGithubTeams_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.codeownerGithubTeams_ = codeownerGithubTeams_;
if (librarySettingsBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
librarySettings_ = java.util.Collections.unmodifiableList(librarySettings_);
@@ -1045,6 +1035,10 @@ private void buildPartial0(com.google.api.Publishing result) {
if (((from_bitField0_ & 0x00000010) != 0)) {
result.githubLabel_ = githubLabel_;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ codeownerGithubTeams_.makeImmutable();
+ result.codeownerGithubTeams_ = codeownerGithubTeams_;
+ }
if (((from_bitField0_ & 0x00000040) != 0)) {
result.docTagPrefix_ = docTagPrefix_;
}
@@ -1056,39 +1050,6 @@ private void buildPartial0(com.google.api.Publishing result) {
}
}
- @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.api.Publishing) {
@@ -1151,7 +1112,7 @@ public Builder mergeFrom(com.google.api.Publishing other) {
if (!other.codeownerGithubTeams_.isEmpty()) {
if (codeownerGithubTeams_.isEmpty()) {
codeownerGithubTeams_ = other.codeownerGithubTeams_;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ |= 0x00000020;
} else {
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.addAll(other.codeownerGithubTeams_);
@@ -2130,14 +2091,14 @@ public Builder setGithubLabelBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList codeownerGithubTeams_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList codeownerGithubTeams_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCodeownerGithubTeamsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
+ if (!codeownerGithubTeams_.isModifiable()) {
codeownerGithubTeams_ = new com.google.protobuf.LazyStringArrayList(codeownerGithubTeams_);
- bitField0_ |= 0x00000020;
}
+ bitField0_ |= 0x00000020;
}
/**
*
@@ -2152,7 +2113,8 @@ private void ensureCodeownerGithubTeamsIsMutable() {
* @return A list containing the codeownerGithubTeams.
*/
public com.google.protobuf.ProtocolStringList getCodeownerGithubTeamsList() {
- return codeownerGithubTeams_.getUnmodifiableView();
+ codeownerGithubTeams_.makeImmutable();
+ return codeownerGithubTeams_;
}
/**
*
@@ -2221,6 +2183,7 @@ public Builder setCodeownerGithubTeams(int index, java.lang.String value) {
}
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.set(index, value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2243,6 +2206,7 @@ public Builder addCodeownerGithubTeams(java.lang.String value) {
}
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.add(value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2262,6 +2226,7 @@ public Builder addCodeownerGithubTeams(java.lang.String value) {
public Builder addAllCodeownerGithubTeams(java.lang.Iterable values) {
ensureCodeownerGithubTeamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, codeownerGithubTeams_);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
@@ -2278,8 +2243,9 @@ public Builder addAllCodeownerGithubTeams(java.lang.Iterable v
* @return This builder for chaining.
*/
public Builder clearCodeownerGithubTeams() {
- codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ codeownerGithubTeams_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
+ ;
onChanged();
return this;
}
@@ -2303,6 +2269,7 @@ public Builder addCodeownerGithubTeamsBytes(com.google.protobuf.ByteString value
checkByteStringIsUtf8(value);
ensureCodeownerGithubTeamsIsMutable();
codeownerGithubTeams_.add(value);
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
index fc9d3c3bda..ca31ed3cbe 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PythonSettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_PythonSettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.PythonSettings result) {
}
}
- @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.api.PythonSettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
index 7371ab54f7..e49a0ea1e0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java
@@ -24,20 +24,26 @@
*
* Quota configuration helps to achieve fairness and budgeting in service
* usage.
+ *
* The metric based quota configuration works this way:
* - The service configuration defines a set of metrics.
* - For API calls, the quota.metric_rules maps methods to metrics with
* corresponding costs.
* - The quota.limits defines limits on the metrics, which will be used for
* quota checks at runtime.
+ *
* An example quota configuration in yaml format:
+ *
* quota:
* limits:
+ *
* - name: apiWriteQpsPerProject
* metric: library.googleapis.com/write_calls
* unit: "1/min/{project}" # rate limit for consumer projects
* values:
* STANDARD: 10000
+ *
+ *
* (The metric rules bind all methods to the read_calls metric,
* except for the UpdateBook and DeleteBook methods. These two methods
* are mapped to the write_calls metric, with the UpdateBook method
@@ -52,12 +58,15 @@
* - selector: google.example.library.v1.LibraryService.DeleteBook
* metric_costs:
* library.googleapis.com/write_calls: 1
+ *
* Corresponding Metric definition:
+ *
* metrics:
* - name: library.googleapis.com/read_calls
* display_name: Read requests
* metric_kind: DELTA
* value_type: INT64
+ *
* - name: library.googleapis.com/write_calls
* display_name: Write requests
* metric_kind: DELTA
@@ -87,11 +96,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Quota();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.QuotaProto.internal_static_google_api_Quota_descriptor;
}
@@ -426,20 +430,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Quota configuration helps to achieve fairness and budgeting in service
* usage.
+ *
* The metric based quota configuration works this way:
* - The service configuration defines a set of metrics.
* - For API calls, the quota.metric_rules maps methods to metrics with
* corresponding costs.
* - The quota.limits defines limits on the metrics, which will be used for
* quota checks at runtime.
+ *
* An example quota configuration in yaml format:
+ *
* quota:
* limits:
+ *
* - name: apiWriteQpsPerProject
* metric: library.googleapis.com/write_calls
* unit: "1/min/{project}" # rate limit for consumer projects
* values:
* STANDARD: 10000
+ *
+ *
* (The metric rules bind all methods to the read_calls metric,
* except for the UpdateBook and DeleteBook methods. These two methods
* are mapped to the write_calls metric, with the UpdateBook method
@@ -454,12 +464,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* - selector: google.example.library.v1.LibraryService.DeleteBook
* metric_costs:
* library.googleapis.com/write_calls: 1
+ *
* Corresponding Metric definition:
+ *
* metrics:
* - name: library.googleapis.com/read_calls
* display_name: Read requests
* metric_kind: DELTA
* value_type: INT64
+ *
* - name: library.googleapis.com/write_calls
* display_name: Write requests
* metric_kind: DELTA
@@ -567,39 +580,6 @@ private void buildPartial0(com.google.api.Quota result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Quota) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
index add2026b1f..9c19169c63 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java
@@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new QuotaLimit();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.QuotaProto.internal_static_google_api_QuotaLimit_descriptor;
}
@@ -91,8 +86,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -117,8 +114,10 @@ public java.lang.String getName() {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -203,10 +202,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client
* application developer activates the service for his/her project.
+ *
* Specifying a value of 0 will block all requests. This can be used if you
* are provisioning quota to selected consumers and blocking others.
* Similarly, a value of -1 will indicate an unlimited quota. No other
* negative values are allowed.
+ *
* Used by group-based quotas only.
*
*
@@ -229,8 +230,10 @@ public long getDefaultLimit() {
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
+ *
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota.
+ *
* Used by group-based quotas only.
*
*
@@ -255,6 +258,7 @@ public long getMaxLimit() {
* This field can only be set on a limit with duration "1d", in a billable
* group; it is invalid on any other limit. If this field is not set, it
* defaults to 0, indicating that there is no free tier for this service.
+ *
* Used by group-based quotas only.
*
*
@@ -276,6 +280,7 @@ public long getFreeTier() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -300,6 +305,7 @@ public java.lang.String getDuration() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -386,8 +392,10 @@ public com.google.protobuf.ByteString getMetricBytes() {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -415,8 +423,10 @@ public java.lang.String getUnit() {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -982,39 +992,6 @@ private void buildPartial0(com.google.api.QuotaLimit result) {
}
}
- @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.api.QuotaLimit) {
@@ -1185,8 +1162,10 @@ public Builder mergeFrom(
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -1210,8 +1189,10 @@ public java.lang.String getName() {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -1235,8 +1216,10 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -1259,8 +1242,10 @@ public Builder setName(java.lang.String value) {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -1279,8 +1264,10 @@ public Builder clearName() {
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -1424,10 +1411,12 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client
* application developer activates the service for his/her project.
+ *
* Specifying a value of 0 will block all requests. This can be used if you
* are provisioning quota to selected consumers and blocking others.
* Similarly, a value of -1 will indicate an unlimited quota. No other
* negative values are allowed.
+ *
* Used by group-based quotas only.
*
*
@@ -1446,10 +1435,12 @@ public long getDefaultLimit() {
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client
* application developer activates the service for his/her project.
+ *
* Specifying a value of 0 will block all requests. This can be used if you
* are provisioning quota to selected consumers and blocking others.
* Similarly, a value of -1 will indicate an unlimited quota. No other
* negative values are allowed.
+ *
* Used by group-based quotas only.
*
*
@@ -1472,10 +1463,12 @@ public Builder setDefaultLimit(long value) {
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client
* application developer activates the service for his/her project.
+ *
* Specifying a value of 0 will block all requests. This can be used if you
* are provisioning quota to selected consumers and blocking others.
* Similarly, a value of -1 will indicate an unlimited quota. No other
* negative values are allowed.
+ *
* Used by group-based quotas only.
*
*
@@ -1499,8 +1492,10 @@ public Builder clearDefaultLimit() {
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
+ *
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota.
+ *
* Used by group-based quotas only.
*
*
@@ -1520,8 +1515,10 @@ public long getMaxLimit() {
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
+ *
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota.
+ *
* Used by group-based quotas only.
*
*
@@ -1545,8 +1542,10 @@ public Builder setMaxLimit(long value) {
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
+ *
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota.
+ *
* Used by group-based quotas only.
*
*
@@ -1572,6 +1571,7 @@ public Builder clearMaxLimit() {
* This field can only be set on a limit with duration "1d", in a billable
* group; it is invalid on any other limit. If this field is not set, it
* defaults to 0, indicating that there is no free tier for this service.
+ *
* Used by group-based quotas only.
*
*
@@ -1593,6 +1593,7 @@ public long getFreeTier() {
* This field can only be set on a limit with duration "1d", in a billable
* group; it is invalid on any other limit. If this field is not set, it
* defaults to 0, indicating that there is no free tier for this service.
+ *
* Used by group-based quotas only.
*
*
@@ -1618,6 +1619,7 @@ public Builder setFreeTier(long value) {
* This field can only be set on a limit with duration "1d", in a billable
* group; it is invalid on any other limit. If this field is not set, it
* defaults to 0, indicating that there is no free tier for this service.
+ *
* Used by group-based quotas only.
*
*
@@ -1638,6 +1640,7 @@ public Builder clearFreeTier() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -1661,6 +1664,7 @@ public java.lang.String getDuration() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -1684,6 +1688,7 @@ public com.google.protobuf.ByteString getDurationBytes() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -1706,6 +1711,7 @@ public Builder setDuration(java.lang.String value) {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -1724,6 +1730,7 @@ public Builder clearDuration() {
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -1867,8 +1874,10 @@ public Builder setMetricBytes(com.google.protobuf.ByteString value) {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -1895,8 +1904,10 @@ public java.lang.String getUnit() {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -1923,8 +1934,10 @@ public com.google.protobuf.ByteString getUnitBytes() {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -1950,8 +1963,10 @@ public Builder setUnit(java.lang.String value) {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -1973,8 +1988,10 @@ public Builder clearUnit() {
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java
index 5f0a4d43db..5a11650910 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java
@@ -28,8 +28,10 @@ public interface QuotaLimitOrBuilder
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -43,8 +45,10 @@ public interface QuotaLimitOrBuilder
*
*
* Name of the quota limit.
+ *
* The name must be provided, and it must be unique within the service. The
* name can only include alphanumeric characters as well as '-'.
+ *
* The maximum length of the limit name is 64 characters.
*
*
@@ -90,10 +94,12 @@ public interface QuotaLimitOrBuilder
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client
* application developer activates the service for his/her project.
+ *
* Specifying a value of 0 will block all requests. This can be used if you
* are provisioning quota to selected consumers and blocking others.
* Similarly, a value of -1 will indicate an unlimited quota. No other
* negative values are allowed.
+ *
* Used by group-based quotas only.
*
*
@@ -111,8 +117,10 @@ public interface QuotaLimitOrBuilder
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
+ *
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota.
+ *
* Used by group-based quotas only.
*
*
@@ -132,6 +140,7 @@ public interface QuotaLimitOrBuilder
* This field can only be set on a limit with duration "1d", in a billable
* group; it is invalid on any other limit. If this field is not set, it
* defaults to 0, indicating that there is no free tier for this service.
+ *
* Used by group-based quotas only.
*
*
@@ -146,6 +155,7 @@ public interface QuotaLimitOrBuilder
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -159,6 +169,7 @@ public interface QuotaLimitOrBuilder
*
*
* Duration of this limit in textual notation. Must be "100s" or "1d".
+ *
* Used by group-based quotas only.
*
*
@@ -204,8 +215,10 @@ public interface QuotaLimitOrBuilder
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
@@ -222,8 +235,10 @@ public interface QuotaLimitOrBuilder
* Specify the unit of the quota limit. It uses the same syntax as
* [Metric.unit][]. The supported unit kinds are determined by the quota
* backend system.
+ *
* Here are some examples:
* * "1/min/{project}" for quota per minute per project.
+ *
* Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
index 253ab1fda8..db10b7765e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java
@@ -23,10 +23,13 @@
*
*
* A simple descriptor of a resource type.
+ *
* ResourceDescriptor annotates a resource message (either by means of a
* protobuf annotation or use in the service config), and associates the
* resource's schema, the resource type, and the pattern of the resource name.
+ *
* Example:
+ *
* message Topic {
* // Indicates this message defines a resource schema.
* // Declares the resource type in the format of {service}/{kind}.
@@ -36,13 +39,18 @@
* pattern: "projects/{project}/topics/{topic}"
* };
* }
+ *
* The ResourceDescriptor Yaml config will look like:
+ *
* resources:
* - type: "pubsub.googleapis.com/Topic"
* pattern: "projects/{project}/topics/{topic}"
+ *
* Sometimes, resources have multiple patterns, typically because they can
* live under multiple parents.
+ *
* Example:
+ *
* message LogEntry {
* option (google.api.resource) = {
* type: "logging.googleapis.com/LogEntry"
@@ -52,7 +60,9 @@
* pattern: "billingAccounts/{billing_account}/logs/{log}"
* };
* }
+ *
* The ResourceDescriptor Yaml config will look like:
+ *
* resources:
* - type: 'logging.googleapis.com/LogEntry'
* pattern: "projects/{project}/logs/{log}"
@@ -75,7 +85,7 @@ private ResourceDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> bui
private ResourceDescriptor() {
type_ = "";
- pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
nameField_ = "";
history_ = 0;
plural_ = "";
@@ -89,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ResourceDescriptor();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ResourceProto.internal_static_google_api_ResourceDescriptor_descriptor;
}
@@ -297,9 +302,11 @@ public enum Style implements com.google.protobuf.ProtocolMessageEnum {
*
*
* This resource is intended to be "declarative-friendly".
+ *
* Declarative-friendly resources must be more strictly consistent, and
* setting this to true communicates to tools that this resource should
* adhere to declarative-friendly expectations.
+ *
* Note: This is used by the API linter (linter.aip.dev) to enable
* additional checks.
*
@@ -325,9 +332,11 @@ public enum Style implements com.google.protobuf.ProtocolMessageEnum {
*
*
* This resource is intended to be "declarative-friendly".
+ *
* Declarative-friendly resources must be more strictly consistent, and
* setting this to true communicates to tools that this resource should
* adhere to declarative-friendly expectations.
+ *
* Note: This is used by the API linter (linter.aip.dev) to enable
* additional checks.
*
@@ -428,7 +437,9 @@ private Style(int value) {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -458,7 +469,9 @@ public java.lang.String getType() {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -485,21 +498,27 @@ public com.google.protobuf.ByteString getTypeBytes() {
public static final int PATTERN_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList pattern_;
+ private com.google.protobuf.LazyStringArrayList pattern_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -519,14 +538,19 @@ public com.google.protobuf.ProtocolStringList getPatternList() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -546,14 +570,19 @@ public int getPatternCount() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -574,14 +603,19 @@ public java.lang.String getPattern(int index) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -657,7 +691,9 @@ public com.google.protobuf.ByteString getNameFieldBytes() {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -684,7 +720,9 @@ public int getHistoryValue() {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -722,6 +760,7 @@ public com.google.api.ResourceDescriptor.History getHistory() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -751,6 +790,7 @@ public java.lang.String getPlural() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -1173,10 +1213,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* A simple descriptor of a resource type.
+ *
* ResourceDescriptor annotates a resource message (either by means of a
* protobuf annotation or use in the service config), and associates the
* resource's schema, the resource type, and the pattern of the resource name.
+ *
* Example:
+ *
* message Topic {
* // Indicates this message defines a resource schema.
* // Declares the resource type in the format of {service}/{kind}.
@@ -1186,13 +1229,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* pattern: "projects/{project}/topics/{topic}"
* };
* }
+ *
* The ResourceDescriptor Yaml config will look like:
+ *
* resources:
* - type: "pubsub.googleapis.com/Topic"
* pattern: "projects/{project}/topics/{topic}"
+ *
* Sometimes, resources have multiple patterns, typically because they can
* live under multiple parents.
+ *
* Example:
+ *
* message LogEntry {
* option (google.api.resource) = {
* type: "logging.googleapis.com/LogEntry"
@@ -1202,7 +1250,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* pattern: "billingAccounts/{billing_account}/logs/{log}"
* };
* }
+ *
* The ResourceDescriptor Yaml config will look like:
+ *
* resources:
* - type: 'logging.googleapis.com/LogEntry'
* pattern: "projects/{project}/logs/{log}"
@@ -1243,8 +1293,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
- pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
nameField_ = "";
history_ = 0;
plural_ = "";
@@ -1285,11 +1334,6 @@ public com.google.api.ResourceDescriptor buildPartial() {
}
private void buildPartialRepeatedFields(com.google.api.ResourceDescriptor result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- pattern_ = pattern_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.pattern_ = pattern_;
if (((bitField0_ & 0x00000040) != 0)) {
style_ = java.util.Collections.unmodifiableList(style_);
bitField0_ = (bitField0_ & ~0x00000040);
@@ -1302,6 +1346,10 @@ private void buildPartial0(com.google.api.ResourceDescriptor result) {
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ pattern_.makeImmutable();
+ result.pattern_ = pattern_;
+ }
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nameField_ = nameField_;
}
@@ -1316,39 +1364,6 @@ private void buildPartial0(com.google.api.ResourceDescriptor result) {
}
}
- @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.api.ResourceDescriptor) {
@@ -1369,7 +1384,7 @@ public Builder mergeFrom(com.google.api.ResourceDescriptor other) {
if (!other.pattern_.isEmpty()) {
if (pattern_.isEmpty()) {
pattern_ = other.pattern_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensurePatternIsMutable();
pattern_.addAll(other.pattern_);
@@ -1513,7 +1528,9 @@ public Builder mergeFrom(
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -1542,7 +1559,9 @@ public java.lang.String getType() {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -1571,7 +1590,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -1599,7 +1620,9 @@ public Builder setType(java.lang.String value) {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -1623,7 +1646,9 @@ public Builder clearType() {
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -1646,14 +1671,14 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList pattern_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList pattern_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePatternIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!pattern_.isModifiable()) {
pattern_ = new com.google.protobuf.LazyStringArrayList(pattern_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -1661,14 +1686,19 @@ private void ensurePatternIsMutable() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1680,7 +1710,8 @@ private void ensurePatternIsMutable() {
* @return A list containing the pattern.
*/
public com.google.protobuf.ProtocolStringList getPatternList() {
- return pattern_.getUnmodifiableView();
+ pattern_.makeImmutable();
+ return pattern_;
}
/**
*
@@ -1688,14 +1719,19 @@ public com.google.protobuf.ProtocolStringList getPatternList() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1715,14 +1751,19 @@ public int getPatternCount() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1743,14 +1784,19 @@ public java.lang.String getPattern(int index) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1771,14 +1817,19 @@ public com.google.protobuf.ByteString getPatternBytes(int index) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1797,6 +1848,7 @@ public Builder setPattern(int index, java.lang.String value) {
}
ensurePatternIsMutable();
pattern_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1806,14 +1858,19 @@ public Builder setPattern(int index, java.lang.String value) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1831,6 +1888,7 @@ public Builder addPattern(java.lang.String value) {
}
ensurePatternIsMutable();
pattern_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1840,14 +1898,19 @@ public Builder addPattern(java.lang.String value) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1862,6 +1925,7 @@ public Builder addPattern(java.lang.String value) {
public Builder addAllPattern(java.lang.Iterable values) {
ensurePatternIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pattern_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1871,14 +1935,19 @@ public Builder addAllPattern(java.lang.Iterable values) {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1890,8 +1959,9 @@ public Builder addAllPattern(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearPattern() {
- pattern_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ pattern_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1901,14 +1971,19 @@ public Builder clearPattern() {
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -1927,6 +2002,7 @@ public Builder addPatternBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensurePatternIsMutable();
pattern_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2048,7 +2124,9 @@ public Builder setNameFieldBytes(com.google.protobuf.ByteString value) {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -2075,7 +2153,9 @@ public int getHistoryValue() {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -2105,7 +2185,9 @@ public Builder setHistoryValue(int value) {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -2134,7 +2216,9 @@ public com.google.api.ResourceDescriptor.History getHistory() {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -2167,7 +2251,9 @@ public Builder setHistory(com.google.api.ResourceDescriptor.History value) {
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -2202,6 +2288,7 @@ public Builder clearHistory() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -2230,6 +2317,7 @@ public java.lang.String getPlural() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -2258,6 +2346,7 @@ public com.google.protobuf.ByteString getPluralBytes() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -2285,6 +2374,7 @@ public Builder setPlural(java.lang.String value) {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -2308,6 +2398,7 @@ public Builder clearPlural() {
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java
index 3e9739257d..2c0099fcda 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java
@@ -30,7 +30,9 @@ public interface ResourceDescriptorOrBuilder
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -49,7 +51,9 @@ public interface ResourceDescriptorOrBuilder
* The resource type. It must be in the format of
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
* singular and must not include version numbers.
+ *
* Example: `storage.googleapis.com/Bucket`
+ *
* The value of the resource_type_kind must follow the regular expression
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
* should use PascalCase (UpperCamelCase). The maximum number of
@@ -68,14 +72,19 @@ public interface ResourceDescriptorOrBuilder
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -93,14 +102,19 @@ public interface ResourceDescriptorOrBuilder
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -118,14 +132,19 @@ public interface ResourceDescriptorOrBuilder
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -144,14 +163,19 @@ public interface ResourceDescriptorOrBuilder
*
* Optional. The relative resource name pattern associated with this resource
* type. The DNS prefix of the full resource name shouldn't be specified here.
+ *
* The path pattern must follow the syntax, which aligns with HTTP binding
* syntax:
+ *
* Template = Segment { "/" Segment } ;
* Segment = LITERAL | Variable ;
* Variable = "{" LITERAL "}" ;
+ *
* Examples:
+ *
* - "projects/{project}/topics/{topic}"
* - "projects/{project}/knowledgeBases/{knowledge_base}"
+ *
* The components in braces correspond to the IDs for each resource in the
* hierarchy. It is expected that, if multiple patterns are provided,
* the same component name (e.g. "project") refers to IDs of the same
@@ -197,7 +221,9 @@ public interface ResourceDescriptorOrBuilder
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -221,7 +247,9 @@ public interface ResourceDescriptorOrBuilder
*
*
* Optional. The historical or future-looking state of the resource pattern.
+ *
* Example:
+ *
* // The InspectTemplate message originally only supported resource
* // names with organization, and project was added later.
* message InspectTemplate {
@@ -250,6 +278,7 @@ public interface ResourceDescriptorOrBuilder
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
@@ -268,6 +297,7 @@ public interface ResourceDescriptorOrBuilder
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
* concept of the `plural` field in k8s CRD spec
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
+ *
* Note: The plural form is required even for singleton resources. See
* https://aip.dev/156
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
index fbf2c0127d..d72f23cbd7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ResourceReference();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ResourceProto.internal_static_google_api_ResourceReference_descriptor;
}
@@ -76,15 +71,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -113,15 +113,20 @@ public java.lang.String getType() {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -157,7 +162,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -188,7 +195,9 @@ public java.lang.String getChildType() {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -462,39 +471,6 @@ private void buildPartial0(com.google.api.ResourceReference result) {
}
}
- @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.api.ResourceReference) {
@@ -580,15 +556,20 @@ public Builder mergeFrom(
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -616,15 +597,20 @@ public java.lang.String getType() {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -652,15 +638,20 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -687,15 +678,20 @@ public Builder setType(java.lang.String value) {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -718,15 +714,20 @@ public Builder clearType() {
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -758,7 +759,9 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -788,7 +791,9 @@ public java.lang.String getChildType() {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -818,7 +823,9 @@ public com.google.protobuf.ByteString getChildTypeBytes() {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -847,7 +854,9 @@ public Builder setChildType(java.lang.String value) {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -872,7 +881,9 @@ public Builder clearChildType() {
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
index d7ad517359..b056273f7c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java
@@ -28,15 +28,20 @@ public interface ResourceReferenceOrBuilder
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -54,15 +59,20 @@ public interface ResourceReferenceOrBuilder
*
*
* The resource type that the annotated field references.
+ *
* Example:
+ *
* message Subscription {
* string topic = 2 [(google.api.resource_reference) = {
* type: "pubsub.googleapis.com/Topic"
* }];
* }
+ *
* Occasionally, a field may reference an arbitrary resource. In this case,
* APIs use the special value * in their resource reference.
+ *
* Example:
+ *
* message GetIamPolicyRequest {
* string resource = 2 [(google.api.resource_reference) = {
* type: "*"
@@ -83,7 +93,9 @@ public interface ResourceReferenceOrBuilder
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
@@ -103,7 +115,9 @@ public interface ResourceReferenceOrBuilder
* The resource type of a child collection that the annotated field
* references. This is useful for annotating the `parent` field that
* doesn't have a fixed resource type.
+ *
* Example:
+ *
* message ListLogEntriesRequest {
* string parent = 1 [(google.api.resource_reference) = {
* child_type: "logging.googleapis.com/LogEntry"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
index d5d05e0ab3..0c508233cd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RoutingParameter();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.RoutingProto.internal_static_google_api_RoutingParameter_descriptor;
}
@@ -134,7 +129,9 @@ public com.google.protobuf.ByteString getFieldBytes() {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -151,6 +148,7 @@ public com.google.protobuf.ByteString getFieldBytes() {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -158,18 +156,23 @@ public com.google.protobuf.ByteString getFieldBytes() {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -202,7 +205,9 @@ public java.lang.String getPathTemplate() {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -219,6 +224,7 @@ public java.lang.String getPathTemplate() {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -226,18 +232,23 @@ public java.lang.String getPathTemplate() {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -505,39 +516,6 @@ private void buildPartial0(com.google.api.RoutingParameter result) {
}
}
- @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.api.RoutingParameter) {
@@ -737,7 +715,9 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -754,6 +734,7 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -761,18 +742,23 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -804,7 +790,9 @@ public java.lang.String getPathTemplate() {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -821,6 +809,7 @@ public java.lang.String getPathTemplate() {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -828,18 +817,23 @@ public java.lang.String getPathTemplate() {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -871,7 +865,9 @@ public com.google.protobuf.ByteString getPathTemplateBytes() {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -888,6 +884,7 @@ public com.google.protobuf.ByteString getPathTemplateBytes() {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -895,18 +892,23 @@ public com.google.protobuf.ByteString getPathTemplateBytes() {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -937,7 +939,9 @@ public Builder setPathTemplate(java.lang.String value) {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -954,6 +958,7 @@ public Builder setPathTemplate(java.lang.String value) {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -961,18 +966,23 @@ public Builder setPathTemplate(java.lang.String value) {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -999,7 +1009,9 @@ public Builder clearPathTemplate() {
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -1016,6 +1028,7 @@ public Builder clearPathTemplate() {
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -1023,18 +1036,23 @@ public Builder clearPathTemplate() {
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java
index cb948dbd18..1d441400e9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java
@@ -61,7 +61,9 @@ public interface RoutingParameterOrBuilder
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -78,6 +80,7 @@ public interface RoutingParameterOrBuilder
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -85,18 +88,23 @@ public interface RoutingParameterOrBuilder
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
@@ -118,7 +126,9 @@ public interface RoutingParameterOrBuilder
* - the name of the single named segment will be used as a header name,
* - the match value of the segment will be used as a header value;
* if the match is NOT successful, nothing will be sent.
+ *
* Example:
+ *
* -- This is a field in the request message
* | that the header value will be extracted from.
* |
@@ -135,6 +145,7 @@ public interface RoutingParameterOrBuilder
* |
* The string in the field must match the whole pattern --
* before brackets, inside brackets, after brackets.
+ *
* When looking at this specific example, we can see that:
* - A key-value pair with the key `table_location`
* and the value matching `instances/*` should be added
@@ -142,18 +153,23 @@ public interface RoutingParameterOrBuilder
* - The value is extracted from the request message's `table_name` field
* if it matches the full pattern specified:
* `projects/*/instances/*/tables/*`.
+ *
* **NB:** If the `path_template` field is not provided, the key name is
* equal to the field name, and the whole field should be sent as a value.
* This makes the pattern for the field and the value functionally equivalent
* to `**`, and the configuration
+ *
* {
* field: "table_name"
* }
+ *
* is a functionally equivalent shorthand to:
+ *
* {
* field: "table_name"
* path_template: "{table_name=**}"
* }
+ *
* See Example 1 for more details.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
index 4b2708dd3a..2228983941 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java
@@ -25,8 +25,11 @@
* Specifies the routing information that should be sent along with the request
* in the form of routing header.
* **NOTE:** All service configuration rules follow the "last one wins" order.
+ *
* The examples below will apply to an RPC which has the following request type:
+ *
* Message Definition:
+ *
* message Request {
* // The name of the Table
* // Values can be of the following formats:
@@ -34,37 +37,51 @@
* // - `projects/<project>/instances/<instance>/tables/<table>`
* // - `region/<region>/zones/<zone>/tables/<table>`
* string table_name = 1;
+ *
* // This value specifies routing for replication.
* // It can be in the following formats:
* // - `profiles/<profile_id>`
* // - a legacy `profile_id` that can be any string
* string app_profile_id = 2;
* }
+ *
* Example message:
+ *
* {
* table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
* app_profile_id: profiles/prof_qux
* }
+ *
* The routing header consists of one or multiple key-value pairs. Every key
* and value must be percent-encoded, and joined together in the format of
* `key1=value1&key2=value2`.
* In the examples below I am skipping the percent-encoding for readablity.
+ *
* Example 1
+ *
* Extracting a field from the request to put into the routing header
* unchanged, with the key equal to the field name.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `app_profile_id`.
* routing_parameters {
* field: "app_profile_id"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: app_profile_id=profiles/prof_qux
+ *
* Example 2
+ *
* Extracting a field from the request to put into the routing header
* unchanged, with the key different from the field name.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `app_profile_id`, but name it `routing_id` in the header.
* routing_parameters {
@@ -72,16 +89,25 @@
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=profiles/prof_qux
+ *
* Example 3
+ *
* Extracting a field from the request to put into the routing
* header, while matching a path template syntax on the field's value.
+ *
* NB: it is more useful to send nothing than to send garbage for the purpose
* of dynamic routing, since garbage pollutes cache. Thus the matching.
+ *
* Sub-example 3a
+ *
* The field matches the template.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed (with project-based
* // syntax).
@@ -90,12 +116,18 @@
* path_template: "{table_name=projects/*/instances/*/**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
+ *
* Sub-example 3b
+ *
* The field does not match the template.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed (with region-based
* // syntax).
@@ -104,15 +136,22 @@
* path_template: "{table_name=regions/*/zones/*/**}"
* }
* };
+ *
* result:
+ *
* <no routing header will be sent>
+ *
* Sub-example 3c
+ *
* Multiple alternative conflictingly named path templates are
* specified. The one that matches is used to construct the header.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed, whether
* // using the region- or projects-based syntax.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{table_name=regions/*/zones/*/**}"
@@ -122,13 +161,19 @@
* path_template: "{table_name=projects/*/instances/*/**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
+ *
* Example 4
+ *
* Extracting a single routing header key-value pair by matching a
* template syntax on (a part of) a single request field.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take just the project id from the `table_name` field.
* routing_parameters {
@@ -136,17 +181,24 @@
* path_template: "{routing_id=projects/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=projects/proj_foo
+ *
* Example 5
+ *
* Extracting a single routing header key-value pair by matching
* several conflictingly named path templates on (parts of) a single request
* field. The last template to match "wins" the conflict.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // If the `table_name` does not have instances information,
* // take just the project id for routing.
* // Otherwise take project + instance.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{routing_id=projects/*}/**"
@@ -156,20 +208,29 @@
* path_template: "{routing_id=projects/*/instances/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* routing_id=projects/proj_foo/instances/instance_bar
+ *
* Example 6
+ *
* Extracting multiple routing header key-value pairs by matching
* several non-conflicting path templates on (parts of) a single request field.
+ *
* Sub-example 6a
+ *
* Make the templates strict, so that if the `table_name` does not
* have an instance information, nothing is sent.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing code needs two keys instead of one composite
* // but works only for the tables with the "project-instance" name
* // syntax.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/instances/*/**"
@@ -179,17 +240,24 @@
* path_template: "projects/*/{instance_id=instances/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&instance_id=instances/instance_bar
+ *
* Sub-example 6b
+ *
* Make the templates loose, so that if the `table_name` does not
* have an instance information, just the project id part is sent.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing code wants two keys instead of one composite
* // but will work with just the `project_id` for tables without
* // an instance in the `table_name`.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/**"
@@ -199,22 +267,30 @@
* path_template: "projects/*/{instance_id=instances/*}/**"
* }
* };
+ *
* result (is the same as 6a for our example message because it has the instance
* information):
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&instance_id=instances/instance_bar
+ *
* Example 7
+ *
* Extracting multiple routing header key-value pairs by matching
* several path templates on multiple request fields.
+ *
* NB: note that here there is no way to specify sending nothing if one of the
* fields does not match its template. E.g. if the `table_name` is in the wrong
* format, the `project_id` will not be sent, but the `routing_id` will be.
* The backend routing code has to be aware of that and be prepared to not
* receive a full complement of keys if it expects multiple.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing needs both `project_id` and `routing_id`
* // (from the `app_profile_id` field) for routing.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/**"
@@ -224,18 +300,25 @@
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&routing_id=profiles/prof_qux
+ *
* Example 8
+ *
* Extracting a single routing header key-value pair by matching
* several conflictingly named path templates on several request fields. The
* last template to match "wins" the conflict.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The `routing_id` can be a project id or a region id depending on
* // the table name format, but only if the `app_profile_id` is not set.
* // If `app_profile_id` is set it should be used instead.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{routing_id=projects/*}/**"
@@ -249,11 +332,17 @@
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=profiles/prof_qux
+ *
* Example 9
+ *
* Bringing it all together.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // For routing both `table_location` and a `routing_id` are needed.
* //
@@ -265,6 +354,7 @@
* // - If it's any other literal, send it as is.
* // If the `app_profile_id` is empty, and the `table_name` starts with
* // the project_id, send that instead.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "projects/*/{table_location=instances/*}/tables/*"
@@ -286,7 +376,9 @@
* path_template: "profiles/{routing_id=*}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_location=instances/instance_bar&routing_id=prof_qux
*
@@ -313,11 +405,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RoutingRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.RoutingProto.internal_static_google_api_RoutingRule_descriptor;
}
@@ -593,8 +680,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Specifies the routing information that should be sent along with the request
* in the form of routing header.
* **NOTE:** All service configuration rules follow the "last one wins" order.
+ *
* The examples below will apply to an RPC which has the following request type:
+ *
* Message Definition:
+ *
* message Request {
* // The name of the Table
* // Values can be of the following formats:
@@ -602,37 +692,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* // - `projects/<project>/instances/<instance>/tables/<table>`
* // - `region/<region>/zones/<zone>/tables/<table>`
* string table_name = 1;
+ *
* // This value specifies routing for replication.
* // It can be in the following formats:
* // - `profiles/<profile_id>`
* // - a legacy `profile_id` that can be any string
* string app_profile_id = 2;
* }
+ *
* Example message:
+ *
* {
* table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
* app_profile_id: profiles/prof_qux
* }
+ *
* The routing header consists of one or multiple key-value pairs. Every key
* and value must be percent-encoded, and joined together in the format of
* `key1=value1&key2=value2`.
* In the examples below I am skipping the percent-encoding for readablity.
+ *
* Example 1
+ *
* Extracting a field from the request to put into the routing header
* unchanged, with the key equal to the field name.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `app_profile_id`.
* routing_parameters {
* field: "app_profile_id"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: app_profile_id=profiles/prof_qux
+ *
* Example 2
+ *
* Extracting a field from the request to put into the routing header
* unchanged, with the key different from the field name.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `app_profile_id`, but name it `routing_id` in the header.
* routing_parameters {
@@ -640,16 +744,25 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=profiles/prof_qux
+ *
* Example 3
+ *
* Extracting a field from the request to put into the routing
* header, while matching a path template syntax on the field's value.
+ *
* NB: it is more useful to send nothing than to send garbage for the purpose
* of dynamic routing, since garbage pollutes cache. Thus the matching.
+ *
* Sub-example 3a
+ *
* The field matches the template.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed (with project-based
* // syntax).
@@ -658,12 +771,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{table_name=projects/*/instances/*/**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
+ *
* Sub-example 3b
+ *
* The field does not match the template.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed (with region-based
* // syntax).
@@ -672,15 +791,22 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{table_name=regions/*/zones/*/**}"
* }
* };
+ *
* result:
+ *
* <no routing header will be sent>
+ *
* Sub-example 3c
+ *
* Multiple alternative conflictingly named path templates are
* specified. The one that matches is used to construct the header.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take the `table_name`, if it's well-formed, whether
* // using the region- or projects-based syntax.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{table_name=regions/*/zones/*/**}"
@@ -690,13 +816,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{table_name=projects/*/instances/*/**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
+ *
* Example 4
+ *
* Extracting a single routing header key-value pair by matching a
* template syntax on (a part of) a single request field.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // Take just the project id from the `table_name` field.
* routing_parameters {
@@ -704,17 +836,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{routing_id=projects/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=projects/proj_foo
+ *
* Example 5
+ *
* Extracting a single routing header key-value pair by matching
* several conflictingly named path templates on (parts of) a single request
* field. The last template to match "wins" the conflict.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // If the `table_name` does not have instances information,
* // take just the project id for routing.
* // Otherwise take project + instance.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{routing_id=projects/*}/**"
@@ -724,20 +863,29 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{routing_id=projects/*/instances/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* routing_id=projects/proj_foo/instances/instance_bar
+ *
* Example 6
+ *
* Extracting multiple routing header key-value pairs by matching
* several non-conflicting path templates on (parts of) a single request field.
+ *
* Sub-example 6a
+ *
* Make the templates strict, so that if the `table_name` does not
* have an instance information, nothing is sent.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing code needs two keys instead of one composite
* // but works only for the tables with the "project-instance" name
* // syntax.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/instances/*/**"
@@ -747,17 +895,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "projects/*/{instance_id=instances/*}/**"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&instance_id=instances/instance_bar
+ *
* Sub-example 6b
+ *
* Make the templates loose, so that if the `table_name` does not
* have an instance information, just the project id part is sent.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing code wants two keys instead of one composite
* // but will work with just the `project_id` for tables without
* // an instance in the `table_name`.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/**"
@@ -767,22 +922,30 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "projects/*/{instance_id=instances/*}/**"
* }
* };
+ *
* result (is the same as 6a for our example message because it has the instance
* information):
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&instance_id=instances/instance_bar
+ *
* Example 7
+ *
* Extracting multiple routing header key-value pairs by matching
* several path templates on multiple request fields.
+ *
* NB: note that here there is no way to specify sending nothing if one of the
* fields does not match its template. E.g. if the `table_name` is in the wrong
* format, the `project_id` will not be sent, but the `routing_id` will be.
* The backend routing code has to be aware of that and be prepared to not
* receive a full complement of keys if it expects multiple.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The routing needs both `project_id` and `routing_id`
* // (from the `app_profile_id` field) for routing.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{project_id=projects/*}/**"
@@ -792,18 +955,25 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* project_id=projects/proj_foo&routing_id=profiles/prof_qux
+ *
* Example 8
+ *
* Extracting a single routing header key-value pair by matching
* several conflictingly named path templates on several request fields. The
* last template to match "wins" the conflict.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // The `routing_id` can be a project id or a region id depending on
* // the table name format, but only if the `app_profile_id` is not set.
* // If `app_profile_id` is set it should be used instead.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "{routing_id=projects/*}/**"
@@ -817,11 +987,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "{routing_id=**}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params: routing_id=profiles/prof_qux
+ *
* Example 9
+ *
* Bringing it all together.
+ *
* annotation:
+ *
* option (google.api.routing) = {
* // For routing both `table_location` and a `routing_id` are needed.
* //
@@ -833,6 +1009,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* // - If it's any other literal, send it as is.
* // If the `app_profile_id` is empty, and the `table_name` starts with
* // the project_id, send that instead.
+ *
* routing_parameters {
* field: "table_name"
* path_template: "projects/*/{table_location=instances/*}/tables/*"
@@ -854,7 +1031,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* path_template: "profiles/{routing_id=*}"
* }
* };
+ *
* result:
+ *
* x-goog-request-params:
* table_location=instances/instance_bar&routing_id=prof_qux
*
@@ -944,39 +1123,6 @@ private void buildPartial0(com.google.api.RoutingRule result) {
int from_bitField0_ = bitField0_;
}
- @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.api.RoutingRule) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java
index 68d515b3b6..1ae4a6e461 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RubySettings();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ClientProto.internal_static_google_api_RubySettings_descriptor;
}
@@ -350,39 +345,6 @@ private void buildPartial0(com.google.api.RubySettings result) {
}
}
- @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.api.RubySettings) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
index fac54578d0..ccf1f83883 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java
@@ -28,12 +28,15 @@
* aspects to sub-sections. Each sub-section is either a proto message or a
* repeated proto message that configures a specific aspect, such as auth.
* For more information, see each proto message definition.
+ *
* Example:
+ *
* type: google.api.Service
* name: calendar.googleapis.com
* title: Google Calendar API
* apis:
* - name: google.calendar.v3.Calendar
+ *
* visibility:
* rules:
* - selector: "google.calendar.v3.*"
@@ -42,6 +45,7 @@
* rules:
* - selector: "google.calendar.v3.*"
* address: calendar.example.com
+ *
* authentication:
* providers:
* - id: google_calendar_auth
@@ -85,11 +89,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Service();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.ServiceProto.internal_static_google_api_Service_descriptor;
}
@@ -423,6 +422,7 @@ public com.google.protobuf.ApiOrBuilder getApisOrBuilder(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -442,6 +442,7 @@ public java.util.List getTypesList() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -461,6 +462,7 @@ public java.util.List extends com.google.protobuf.TypeOrBuilder> getTypesOrBui
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -480,6 +482,7 @@ public int getTypesCount() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -499,6 +502,7 @@ public com.google.protobuf.Type getTypes(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -522,6 +526,7 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -540,6 +545,7 @@ public java.util.List getEnumsList() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -558,6 +564,7 @@ public java.util.List extends com.google.protobuf.EnumOrBuilder> getEnumsOrBui
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -576,6 +583,7 @@ public int getEnumsCount() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -594,6 +602,7 @@ public com.google.protobuf.Enum getEnums(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -1577,6 +1586,7 @@ public com.google.api.PublishingOrBuilder getPublishingOrBuilder() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -1594,6 +1604,7 @@ public boolean hasConfigVersion() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -1613,6 +1624,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -2108,12 +2120,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* aspects to sub-sections. Each sub-section is either a proto message or a
* repeated proto message that configures a specific aspect, such as auth.
* For more information, see each proto message definition.
+ *
* Example:
+ *
* type: google.api.Service
* name: calendar.googleapis.com
* title: Google Calendar API
* apis:
* - name: google.calendar.v3.Calendar
+ *
* visibility:
* rules:
* - selector: "google.calendar.v3.*"
@@ -2122,6 +2137,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* rules:
* - selector: "google.calendar.v3.*"
* address: calendar.example.com
+ *
* authentication:
* providers:
* - id: google_calendar_auth
@@ -2454,39 +2470,6 @@ private void buildPartial0(com.google.api.Service result) {
}
}
- @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.api.Service) {
@@ -3894,6 +3877,7 @@ private void ensureTypesIsMutable() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -3916,6 +3900,7 @@ public java.util.List getTypesList() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -3938,6 +3923,7 @@ public int getTypesCount() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -3960,6 +3946,7 @@ public com.google.protobuf.Type getTypes(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -3988,6 +3975,7 @@ public Builder setTypes(int index, com.google.protobuf.Type value) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4013,6 +4001,7 @@ public Builder setTypes(int index, com.google.protobuf.Type.Builder builderForVa
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4041,6 +4030,7 @@ public Builder addTypes(com.google.protobuf.Type value) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4069,6 +4059,7 @@ public Builder addTypes(int index, com.google.protobuf.Type value) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4094,6 +4085,7 @@ public Builder addTypes(com.google.protobuf.Type.Builder builderForValue) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4119,6 +4111,7 @@ public Builder addTypes(int index, com.google.protobuf.Type.Builder builderForVa
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4144,6 +4137,7 @@ public Builder addAllTypes(java.lang.Iterable extends com.google.protobuf.Type
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4169,6 +4163,7 @@ public Builder clearTypes() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4194,6 +4189,7 @@ public Builder removeTypes(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4212,6 +4208,7 @@ public com.google.protobuf.Type.Builder getTypesBuilder(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4234,6 +4231,7 @@ public com.google.protobuf.TypeOrBuilder getTypesOrBuilder(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4256,6 +4254,7 @@ public java.util.List extends com.google.protobuf.TypeOrBuilder> getTypesOrBui
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4274,6 +4273,7 @@ public com.google.protobuf.Type.Builder addTypesBuilder() {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4293,6 +4293,7 @@ public com.google.protobuf.Type.Builder addTypesBuilder(int index) {
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -4343,6 +4344,7 @@ private void ensureEnumsIsMutable() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4364,6 +4366,7 @@ public java.util.List getEnumsList() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4385,6 +4388,7 @@ public int getEnumsCount() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4406,6 +4410,7 @@ public com.google.protobuf.Enum getEnums(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4433,6 +4438,7 @@ public Builder setEnums(int index, com.google.protobuf.Enum value) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4457,6 +4463,7 @@ public Builder setEnums(int index, com.google.protobuf.Enum.Builder builderForVa
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4484,6 +4491,7 @@ public Builder addEnums(com.google.protobuf.Enum value) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4511,6 +4519,7 @@ public Builder addEnums(int index, com.google.protobuf.Enum value) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4535,6 +4544,7 @@ public Builder addEnums(com.google.protobuf.Enum.Builder builderForValue) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4559,6 +4569,7 @@ public Builder addEnums(int index, com.google.protobuf.Enum.Builder builderForVa
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4583,6 +4594,7 @@ public Builder addAllEnums(java.lang.Iterable extends com.google.protobuf.Enum
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4607,6 +4619,7 @@ public Builder clearEnums() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4631,6 +4644,7 @@ public Builder removeEnums(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4648,6 +4662,7 @@ public com.google.protobuf.Enum.Builder getEnumsBuilder(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4669,6 +4684,7 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4690,6 +4706,7 @@ public java.util.List extends com.google.protobuf.EnumOrBuilder> getEnumsOrBui
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4707,6 +4724,7 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder() {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -4725,6 +4743,7 @@ public com.google.protobuf.Enum.Builder addEnumsBuilder(int index) {
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -8718,6 +8737,7 @@ public com.google.api.PublishingOrBuilder getPublishingOrBuilder() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8734,6 +8754,7 @@ public boolean hasConfigVersion() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8756,6 +8777,7 @@ public com.google.protobuf.UInt32Value getConfigVersion() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8780,6 +8802,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value value) {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8801,6 +8824,7 @@ public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderF
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8828,6 +8852,7 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8849,6 +8874,7 @@ public Builder clearConfigVersion() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8865,6 +8891,7 @@ public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -8885,6 +8912,7 @@ public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() {
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
index 4bf479bf81..e390948dea 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java
@@ -217,6 +217,7 @@ public interface ServiceOrBuilder
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -233,6 +234,7 @@ public interface ServiceOrBuilder
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -249,6 +251,7 @@ public interface ServiceOrBuilder
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -265,6 +268,7 @@ public interface ServiceOrBuilder
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -281,6 +285,7 @@ public interface ServiceOrBuilder
* included. Messages which are not referenced but shall be included, such as
* types used by the `google.protobuf.Any` type, should be listed here by
* name by the configuration author. Example:
+ *
* types:
* - name: google.protobuf.Int32
*
@@ -297,6 +302,7 @@ public interface ServiceOrBuilder
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -312,6 +318,7 @@ public interface ServiceOrBuilder
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -327,6 +334,7 @@ public interface ServiceOrBuilder
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -342,6 +350,7 @@ public interface ServiceOrBuilder
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -357,6 +366,7 @@ public interface ServiceOrBuilder
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example:
+ *
* enums:
* - name: google.someapi.v1.SomeEnum
*
@@ -1091,6 +1101,7 @@ public interface ServiceOrBuilder
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -1105,6 +1116,7 @@ public interface ServiceOrBuilder
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
@@ -1119,6 +1131,7 @@ public interface ServiceOrBuilder
*
*
* Obsolete. Do not use.
+ *
* This field has no semantic meaning. The service config compiler always
* sets this field to `3`.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java
index eb2384b6e5..e918cfa384 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SourceInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.SourceInfoProto.internal_static_google_api_SourceInfo_descriptor;
}
@@ -385,39 +380,6 @@ private void buildPartial0(com.google.api.SourceInfo result) {
int from_bitField0_ = bitField0_;
}
- @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.api.SourceInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java
index 10cd4584bb..96701a9372 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java
@@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SystemParameter();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.SystemParameterProto
.internal_static_google_api_SystemParameter_descriptor;
@@ -491,39 +486,6 @@ private void buildPartial0(com.google.api.SystemParameter result) {
}
}
- @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.api.SystemParameter) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java
index ffdca924be..03efa923cb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SystemParameterRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.SystemParameterProto
.internal_static_google_api_SystemParameterRule_descriptor;
@@ -79,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -105,6 +101,7 @@ public java.lang.String getSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -486,39 +483,6 @@ private void buildPartial0(com.google.api.SystemParameterRule result) {
}
}
- @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.api.SystemParameterRule) {
@@ -633,6 +597,7 @@ public Builder mergeFrom(
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -658,6 +623,7 @@ public java.lang.String getSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -683,6 +649,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -707,6 +674,7 @@ public Builder setSelector(java.lang.String value) {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -727,6 +695,7 @@ public Builder clearSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java
index da5cd58b1e..c3145cdd04 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java
@@ -29,6 +29,7 @@ public interface SystemParameterRuleOrBuilder
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -44,6 +45,7 @@ public interface SystemParameterRuleOrBuilder
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
index 9d6e6d830b..1a9d626e17 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java
@@ -23,6 +23,7 @@
*
*
* ### System parameter configuration
+ *
* A system parameter is a special kind of parameter defined by the API
* system, not by an individual API. It is typically mapped to an HTTP header
* and/or a URL query parameter. This configuration specifies which methods
@@ -51,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SystemParameters();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.SystemParameterProto
.internal_static_google_api_SystemParameters_descriptor;
@@ -79,18 +75,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -99,6 +101,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -113,18 +116,24 @@ public java.util.List getRulesList() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -133,6 +142,7 @@ public java.util.List getRulesList() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -148,18 +158,24 @@ public java.util.List getRulesList() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -168,6 +184,7 @@ public java.util.List getRulesList() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -182,18 +199,24 @@ public int getRulesCount() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -202,6 +225,7 @@ public int getRulesCount() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -216,18 +240,24 @@ public com.google.api.SystemParameterRule getRules(int index) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -236,6 +266,7 @@ public com.google.api.SystemParameterRule getRules(int index) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -410,6 +441,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* ### System parameter configuration
+ *
* A system parameter is a special kind of parameter defined by the API
* system, not by an individual API. It is typically mapped to an HTTP header
* and/or a URL query parameter. This configuration specifies which methods
@@ -504,39 +536,6 @@ private void buildPartial0(com.google.api.SystemParameters result) {
int from_bitField0_ = bitField0_;
}
- @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.api.SystemParameters) {
@@ -655,18 +654,24 @@ private void ensureRulesIsMutable() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -675,6 +680,7 @@ private void ensureRulesIsMutable() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -692,18 +698,24 @@ public java.util.List getRulesList() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -712,6 +724,7 @@ public java.util.List getRulesList() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -729,18 +742,24 @@ public int getRulesCount() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -749,6 +768,7 @@ public int getRulesCount() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -766,18 +786,24 @@ public com.google.api.SystemParameterRule getRules(int index) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -786,6 +812,7 @@ public com.google.api.SystemParameterRule getRules(int index) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -809,18 +836,24 @@ public Builder setRules(int index, com.google.api.SystemParameterRule value) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -829,6 +862,7 @@ public Builder setRules(int index, com.google.api.SystemParameterRule value) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -849,18 +883,24 @@ public Builder setRules(int index, com.google.api.SystemParameterRule.Builder bu
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -869,6 +909,7 @@ public Builder setRules(int index, com.google.api.SystemParameterRule.Builder bu
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -892,18 +933,24 @@ public Builder addRules(com.google.api.SystemParameterRule value) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -912,6 +959,7 @@ public Builder addRules(com.google.api.SystemParameterRule value) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -935,18 +983,24 @@ public Builder addRules(int index, com.google.api.SystemParameterRule value) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -955,6 +1009,7 @@ public Builder addRules(int index, com.google.api.SystemParameterRule value) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -975,18 +1030,24 @@ public Builder addRules(com.google.api.SystemParameterRule.Builder builderForVal
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -995,6 +1056,7 @@ public Builder addRules(com.google.api.SystemParameterRule.Builder builderForVal
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1015,18 +1077,24 @@ public Builder addRules(int index, com.google.api.SystemParameterRule.Builder bu
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1035,6 +1103,7 @@ public Builder addRules(int index, com.google.api.SystemParameterRule.Builder bu
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1056,18 +1125,24 @@ public Builder addAllRules(
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1076,6 +1151,7 @@ public Builder addAllRules(
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1096,18 +1172,24 @@ public Builder clearRules() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1116,6 +1198,7 @@ public Builder clearRules() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1136,18 +1219,24 @@ public Builder removeRules(int index) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1156,6 +1245,7 @@ public Builder removeRules(int index) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1169,18 +1259,24 @@ public com.google.api.SystemParameterRule.Builder getRulesBuilder(int index) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1189,6 +1285,7 @@ public com.google.api.SystemParameterRule.Builder getRulesBuilder(int index) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1206,18 +1303,24 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1226,6 +1329,7 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1244,18 +1348,24 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1264,6 +1374,7 @@ public com.google.api.SystemParameterRuleOrBuilder getRulesOrBuilder(int index)
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1278,18 +1389,24 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder() {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1298,6 +1415,7 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder() {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1312,18 +1430,24 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder(int index) {
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -1332,6 +1456,7 @@ public com.google.api.SystemParameterRule.Builder addRulesBuilder(int index) {
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java
index a989804140..3781566f93 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java
@@ -28,18 +28,24 @@ public interface SystemParametersOrBuilder
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -48,6 +54,7 @@ public interface SystemParametersOrBuilder
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -59,18 +66,24 @@ public interface SystemParametersOrBuilder
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -79,6 +92,7 @@ public interface SystemParametersOrBuilder
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -90,18 +104,24 @@ public interface SystemParametersOrBuilder
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -110,6 +130,7 @@ public interface SystemParametersOrBuilder
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -121,18 +142,24 @@ public interface SystemParametersOrBuilder
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -141,6 +168,7 @@ public interface SystemParametersOrBuilder
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -152,18 +180,24 @@ public interface SystemParametersOrBuilder
*
*
* Define system parameters.
+ *
* The parameters defined here will override the default parameters
* implemented by the system. If this field is missing from the service
* config, default system parameters will be used. Default system parameters
* and names is implementation-dependent.
+ *
* Example: define api key for all methods
+ *
* system_parameters
* rules:
* - selector: "*"
* parameters:
* - name: api_key
* url_query_parameter: api_key
+ *
+ *
* Example: define 2 api key names for a specific method.
+ *
* system_parameters
* rules:
* - selector: "/ListShelves"
@@ -172,6 +206,7 @@ public interface SystemParametersOrBuilder
* http_header: Api-Key1
* - name: api_key
* http_header: Api-Key2
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java
index 1fcbcf7751..e68991b95f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java
@@ -38,7 +38,7 @@ private Usage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private Usage() {
- requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ requirements_ = com.google.protobuf.LazyStringArrayList.emptyList();
rules_ = java.util.Collections.emptyList();
producerNotificationChannel_ = "";
}
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Usage();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.UsageProto.internal_static_google_api_Usage_descriptor;
}
@@ -69,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int REQUIREMENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList requirements_;
+ private com.google.protobuf.LazyStringArrayList requirements_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -77,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -98,6 +95,7 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -119,6 +117,7 @@ public int getRequirementsCount() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -141,6 +140,7 @@ public java.lang.String getRequirements(int index) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -166,6 +166,7 @@ public com.google.protobuf.ByteString getRequirementsBytes(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -180,6 +181,7 @@ public java.util.List getRulesList() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -194,6 +196,7 @@ public java.util.List extends com.google.api.UsageRuleOrBuilder> getRulesOrBui
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -208,6 +211,7 @@ public int getRulesCount() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -222,6 +226,7 @@ public com.google.api.UsageRule getRules(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -242,6 +247,7 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -271,6 +277,7 @@ public java.lang.String getProducerNotificationChannel() {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -517,8 +524,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ requirements_ = com.google.protobuf.LazyStringArrayList.emptyList();
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
} else {
@@ -561,11 +567,6 @@ public com.google.api.Usage buildPartial() {
}
private void buildPartialRepeatedFields(com.google.api.Usage result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- requirements_ = requirements_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.requirements_ = requirements_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -579,44 +580,15 @@ private void buildPartialRepeatedFields(com.google.api.Usage result) {
private void buildPartial0(com.google.api.Usage result) {
int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ requirements_.makeImmutable();
+ result.requirements_ = requirements_;
+ }
if (((from_bitField0_ & 0x00000004) != 0)) {
result.producerNotificationChannel_ = producerNotificationChannel_;
}
}
- @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.api.Usage) {
@@ -632,7 +604,7 @@ public Builder mergeFrom(com.google.api.Usage other) {
if (!other.requirements_.isEmpty()) {
if (requirements_.isEmpty()) {
requirements_ = other.requirements_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureRequirementsIsMutable();
requirements_.addAll(other.requirements_);
@@ -741,14 +713,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList requirements_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList requirements_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRequirementsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!requirements_.isModifiable()) {
requirements_ = new com.google.protobuf.LazyStringArrayList(requirements_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -757,6 +729,7 @@ private void ensureRequirementsIsMutable() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -769,7 +742,8 @@ private void ensureRequirementsIsMutable() {
* @return A list containing the requirements.
*/
public com.google.protobuf.ProtocolStringList getRequirementsList() {
- return requirements_.getUnmodifiableView();
+ requirements_.makeImmutable();
+ return requirements_;
}
/**
*
@@ -778,6 +752,7 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -799,6 +774,7 @@ public int getRequirementsCount() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -821,6 +797,7 @@ public java.lang.String getRequirements(int index) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -843,6 +820,7 @@ public com.google.protobuf.ByteString getRequirementsBytes(int index) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -862,6 +840,7 @@ public Builder setRequirements(int index, java.lang.String value) {
}
ensureRequirementsIsMutable();
requirements_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -872,6 +851,7 @@ public Builder setRequirements(int index, java.lang.String value) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -890,6 +870,7 @@ public Builder addRequirements(java.lang.String value) {
}
ensureRequirementsIsMutable();
requirements_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -900,6 +881,7 @@ public Builder addRequirements(java.lang.String value) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -915,6 +897,7 @@ public Builder addRequirements(java.lang.String value) {
public Builder addAllRequirements(java.lang.Iterable values) {
ensureRequirementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requirements_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -925,6 +908,7 @@ public Builder addAllRequirements(java.lang.Iterable values) {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -937,8 +921,9 @@ public Builder addAllRequirements(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearRequirements() {
- requirements_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ requirements_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -949,6 +934,7 @@ public Builder clearRequirements() {
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -968,6 +954,7 @@ public Builder addRequirementsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureRequirementsIsMutable();
requirements_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -992,6 +979,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1009,6 +997,7 @@ public java.util.List getRulesList() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1026,6 +1015,7 @@ public int getRulesCount() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1043,6 +1033,7 @@ public com.google.api.UsageRule getRules(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1066,6 +1057,7 @@ public Builder setRules(int index, com.google.api.UsageRule value) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1086,6 +1078,7 @@ public Builder setRules(int index, com.google.api.UsageRule.Builder builderForVa
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1109,6 +1102,7 @@ public Builder addRules(com.google.api.UsageRule value) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1132,6 +1126,7 @@ public Builder addRules(int index, com.google.api.UsageRule value) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1152,6 +1147,7 @@ public Builder addRules(com.google.api.UsageRule.Builder builderForValue) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1172,6 +1168,7 @@ public Builder addRules(int index, com.google.api.UsageRule.Builder builderForVa
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1192,6 +1189,7 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.UsageRule
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1212,6 +1210,7 @@ public Builder clearRules() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1232,6 +1231,7 @@ public Builder removeRules(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1245,6 +1245,7 @@ public com.google.api.UsageRule.Builder getRulesBuilder(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1262,6 +1263,7 @@ public com.google.api.UsageRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1279,6 +1281,7 @@ public java.util.List extends com.google.api.UsageRuleOrBuilder> getRulesOrBui
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1292,6 +1295,7 @@ public com.google.api.UsageRule.Builder addRulesBuilder() {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1306,6 +1310,7 @@ public com.google.api.UsageRule.Builder addRulesBuilder(int index) {
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -1339,6 +1344,7 @@ public java.util.List getRulesBuilderList() {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1367,6 +1373,7 @@ public java.lang.String getProducerNotificationChannel() {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1395,6 +1402,7 @@ public com.google.protobuf.ByteString getProducerNotificationChannelBytes() {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1422,6 +1430,7 @@ public Builder setProducerNotificationChannel(java.lang.String value) {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -1445,6 +1454,7 @@ public Builder clearProducerNotificationChannel() {
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
index ff0c52dd41..d653c034c2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java
@@ -30,6 +30,7 @@ public interface UsageOrBuilder
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -49,6 +50,7 @@ public interface UsageOrBuilder
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -68,6 +70,7 @@ public interface UsageOrBuilder
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -88,6 +91,7 @@ public interface UsageOrBuilder
* Requirements that must be satisfied before a consumer project can use the
* service. Each requirement is of the form <service.name>/<requirement-id>;
* for example 'serviceusage.googleapis.com/billing-enabled'.
+ *
* For Google APIs, a Terms of Service requirement must be included here.
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
* Other Google APIs should include
@@ -107,6 +111,7 @@ public interface UsageOrBuilder
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -118,6 +123,7 @@ public interface UsageOrBuilder
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -129,6 +135,7 @@ public interface UsageOrBuilder
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -140,6 +147,7 @@ public interface UsageOrBuilder
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -151,6 +159,7 @@ public interface UsageOrBuilder
*
*
* A list of usage rules that apply to individual API methods.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -164,6 +173,7 @@ public interface UsageOrBuilder
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
@@ -182,6 +192,7 @@ public interface UsageOrBuilder
*
* The full resource name of a channel used for sending notifications to the
* service producer.
+ *
* Google Service Management currently only supports
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
index 8cd6f28d51..0b5159bde1 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java
@@ -23,19 +23,26 @@
*
*
* Usage configuration rules for the service.
+ *
* NOTE: Under development.
+ *
+ *
* Use this rule to configure unregistered calls for the service. Unregistered
* calls are calls that do not contain consumer project identity.
* (Example: calls that do not contain an API key).
* By default, API methods do not allow unregistered calls, and each method call
* must be identified by a consumer project identity. Use this rule to
* allow/disallow unregistered calls.
+ *
* Example of an API that wants to allow unregistered calls for entire service.
+ *
* usage:
* rules:
* - selector: "*"
* allow_unregistered_calls: true
+ *
* Example of a method that wants to allow unregistered calls.
+ *
* usage:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -64,11 +71,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UsageRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.UsageProto.internal_static_google_api_UsageRule_descriptor;
}
@@ -91,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -117,6 +120,7 @@ public java.lang.String getSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -358,19 +362,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Usage configuration rules for the service.
+ *
* NOTE: Under development.
+ *
+ *
* Use this rule to configure unregistered calls for the service. Unregistered
* calls are calls that do not contain consumer project identity.
* (Example: calls that do not contain an API key).
* By default, API methods do not allow unregistered calls, and each method call
* must be identified by a consumer project identity. Use this rule to
* allow/disallow unregistered calls.
+ *
* Example of an API that wants to allow unregistered calls for entire service.
+ *
* usage:
* rules:
* - selector: "*"
* allow_unregistered_calls: true
+ *
* Example of a method that wants to allow unregistered calls.
+ *
* usage:
* rules:
* - selector: "google.example.library.v1.LibraryService.CreateBook"
@@ -454,39 +465,6 @@ private void buildPartial0(com.google.api.UsageRule result) {
}
}
- @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.api.UsageRule) {
@@ -580,6 +558,7 @@ public Builder mergeFrom(
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -605,6 +584,7 @@ public java.lang.String getSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -630,6 +610,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -654,6 +635,7 @@ public Builder setSelector(java.lang.String value) {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -674,6 +656,7 @@ public Builder clearSelector() {
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
index c283341880..77caf516d2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java
@@ -29,6 +29,7 @@ public interface UsageRuleOrBuilder
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -44,6 +45,7 @@ public interface UsageRuleOrBuilder
*
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java
index e74061dbf2..3c7e0137f8 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java
@@ -26,18 +26,23 @@
* such as whether an application can call a visibility-restricted method.
* The restriction is expressed by applying visibility labels on service
* elements. The visibility labels are elsewhere linked to service consumers.
+ *
* A service can define multiple visibility labels, but a service consumer
* should be granted at most one visibility label. Multiple visibility
* labels for a single service consumer are not supported.
+ *
* If an element and all its parents have no visibility label, its visibility
* is unconditionally granted.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: PREVIEW
* - selector: google.calendar.Calendar.Delegate
* restriction: INTERNAL
+ *
* Here, all methods are publicly visible except for the restricted methods
* EnhancedSearch and Delegate.
*
@@ -64,11 +69,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Visibility();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.VisibilityProto.internal_static_google_api_Visibility_descriptor;
}
@@ -90,6 +90,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -104,6 +105,7 @@ public java.util.List getRulesList() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -118,6 +120,7 @@ public java.util.List extends com.google.api.VisibilityRuleOrBuilder> getRules
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -132,6 +135,7 @@ public int getRulesCount() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -146,6 +150,7 @@ public com.google.api.VisibilityRule getRules(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -323,18 +328,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* such as whether an application can call a visibility-restricted method.
* The restriction is expressed by applying visibility labels on service
* elements. The visibility labels are elsewhere linked to service consumers.
+ *
* A service can define multiple visibility labels, but a service consumer
* should be granted at most one visibility label. Multiple visibility
* labels for a single service consumer are not supported.
+ *
* If an element and all its parents have no visibility label, its visibility
* is unconditionally granted.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: PREVIEW
* - selector: google.calendar.Calendar.Delegate
* restriction: INTERNAL
+ *
* Here, all methods are publicly visible except for the restricted methods
* EnhancedSearch and Delegate.
*
@@ -424,39 +434,6 @@ private void buildPartial0(com.google.api.Visibility result) {
int from_bitField0_ = bitField0_;
}
- @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.api.Visibility) {
@@ -574,6 +551,7 @@ private void ensureRulesIsMutable() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -591,6 +569,7 @@ public java.util.List getRulesList() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -608,6 +587,7 @@ public int getRulesCount() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -625,6 +605,7 @@ public com.google.api.VisibilityRule getRules(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -648,6 +629,7 @@ public Builder setRules(int index, com.google.api.VisibilityRule value) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -668,6 +650,7 @@ public Builder setRules(int index, com.google.api.VisibilityRule.Builder builder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -691,6 +674,7 @@ public Builder addRules(com.google.api.VisibilityRule value) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -714,6 +698,7 @@ public Builder addRules(int index, com.google.api.VisibilityRule value) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -734,6 +719,7 @@ public Builder addRules(com.google.api.VisibilityRule.Builder builderForValue) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -754,6 +740,7 @@ public Builder addRules(int index, com.google.api.VisibilityRule.Builder builder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -774,6 +761,7 @@ public Builder addAllRules(java.lang.Iterable extends com.google.api.Visibilit
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -794,6 +782,7 @@ public Builder clearRules() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -814,6 +803,7 @@ public Builder removeRules(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -827,6 +817,7 @@ public com.google.api.VisibilityRule.Builder getRulesBuilder(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -844,6 +835,7 @@ public com.google.api.VisibilityRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -862,6 +854,7 @@ public com.google.api.VisibilityRuleOrBuilder getRulesOrBuilder(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -875,6 +868,7 @@ public com.google.api.VisibilityRule.Builder addRulesBuilder() {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -889,6 +883,7 @@ public com.google.api.VisibilityRule.Builder addRulesBuilder(int index) {
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java
index 40544aa4bb..658f91e87d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java
@@ -28,6 +28,7 @@ public interface VisibilityOrBuilder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -39,6 +40,7 @@ public interface VisibilityOrBuilder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -50,6 +52,7 @@ public interface VisibilityOrBuilder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -61,6 +64,7 @@ public interface VisibilityOrBuilder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
@@ -72,6 +76,7 @@ public interface VisibilityOrBuilder
*
*
* A list of visibility rules that apply to individual API elements.
+ *
* **NOTE:** All service configuration rules follow "last one wins" order.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java
index e86d808534..9b21ecb972 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VisibilityRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.api.VisibilityProto.internal_static_google_api_VisibilityRule_descriptor;
}
@@ -76,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -101,6 +97,7 @@ public java.lang.String getSelector() {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -132,13 +129,17 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -165,13 +166,17 @@ public java.lang.String getRestriction() {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -441,39 +446,6 @@ private void buildPartial0(com.google.api.VisibilityRule result) {
}
}
- @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.api.VisibilityRule) {
@@ -559,6 +531,7 @@ public Builder mergeFrom(
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -583,6 +556,7 @@ public java.lang.String getSelector() {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -607,6 +581,7 @@ public com.google.protobuf.ByteString getSelectorBytes() {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -630,6 +605,7 @@ public Builder setSelector(java.lang.String value) {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -649,6 +625,7 @@ public Builder clearSelector() {
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -676,13 +653,17 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -708,13 +689,17 @@ public java.lang.String getRestriction() {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -740,13 +725,17 @@ public com.google.protobuf.ByteString getRestrictionBytes() {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -771,13 +760,17 @@ public Builder setRestriction(java.lang.String value) {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -798,13 +791,17 @@ public Builder clearRestriction() {
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java
index 8321e03e4f..575ab96a82 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java
@@ -28,6 +28,7 @@ public interface VisibilityRuleOrBuilder
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -42,6 +43,7 @@ public interface VisibilityRuleOrBuilder
*
*
* Selects methods, messages, fields, enums, etc. to which this rule applies.
+ *
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
* details.
*
@@ -58,13 +60,17 @@ public interface VisibilityRuleOrBuilder
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
@@ -80,13 +86,17 @@ public interface VisibilityRuleOrBuilder
*
* A comma-separated list of visibility labels that apply to the `selector`.
* Any of the listed labels can be used to grant the visibility.
+ *
* If a rule has multiple labels, removing one of the labels but not all of
* them can break clients.
+ *
* Example:
+ *
* visibility:
* rules:
* - selector: google.calendar.Calendar.EnhancedSearch
* restriction: INTERNAL, PREVIEW
+ *
* Removing INTERNAL from this restriction will break clients that rely on
* this method and only had access to it through INTERNAL.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java
index 32b9812d7b..ecdf91f612 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditLog();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_AuditLog_descriptor;
@@ -133,6 +128,7 @@ public com.google.protobuf.ByteString getServiceNameBytes() {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -160,6 +156,7 @@ public java.lang.String getMethodName() {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -192,6 +189,7 @@ public com.google.protobuf.ByteString getMethodNameBytes() {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -219,6 +217,7 @@ public java.lang.String getResourceName() {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -1432,39 +1431,6 @@ private void buildPartial0(com.google.cloud.audit.AuditLog result) {
}
}
- @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.cloud.audit.AuditLog) {
@@ -1817,6 +1783,7 @@ public Builder setServiceNameBytes(com.google.protobuf.ByteString value) {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -1843,6 +1810,7 @@ public java.lang.String getMethodName() {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -1869,6 +1837,7 @@ public com.google.protobuf.ByteString getMethodNameBytes() {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -1894,6 +1863,7 @@ public Builder setMethodName(java.lang.String value) {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -1915,6 +1885,7 @@ public Builder clearMethodName() {
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -1943,6 +1914,7 @@ public Builder setMethodNameBytes(com.google.protobuf.ByteString value) {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -1969,6 +1941,7 @@ public java.lang.String getResourceName() {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -1995,6 +1968,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -2020,6 +1994,7 @@ public Builder setResourceName(java.lang.String value) {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -2041,6 +2016,7 @@ public Builder clearResourceName() {
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
index 6577487192..0c1f8bc18e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java
@@ -57,6 +57,7 @@ public interface AuditLogOrBuilder
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -73,6 +74,7 @@ public interface AuditLogOrBuilder
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
+ *
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
@@ -90,6 +92,7 @@ public interface AuditLogOrBuilder
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
@@ -106,6 +109,7 @@ public interface AuditLogOrBuilder
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
+ *
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
index 2269b3f77e..40add613b7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java
@@ -140,24 +140,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "uf.StructB\013\n\tAuthority\"d\n\023PolicyViolatio"
+ "nInfo\022M\n\031org_policy_violation_info\030\001 \001(\013"
+ "2*.google.cloud.audit.OrgPolicyViolation"
- + "Info\"\262\002\n\026OrgPolicyViolationInfo\022-\n\007paylo"
- + "ad\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\032"
- + "\n\rresource_type\030\002 \001(\tB\003\340A\001\022X\n\rresource_t"
- + "ags\030\003 \003(\0132<.google.cloud.audit.OrgPolicy"
- + "ViolationInfo.ResourceTagsEntryB\003\340A\001\022>\n\016"
- + "violation_info\030\004 \003(\0132!.google.cloud.audi"
- + "t.ViolationInfoB\003\340A\001\0323\n\021ResourceTagsEntr"
- + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227\002\n\rVi"
- + "olationInfo\022\027\n\nconstraint\030\001 \001(\tB\003\340A\001\022\032\n\r"
- + "error_message\030\002 \001(\tB\003\340A\001\022\032\n\rchecked_valu"
- + "e\030\003 \001(\tB\003\340A\001\022F\n\013policy_type\030\004 \001(\0162,.goog"
- + "le.cloud.audit.ViolationInfo.PolicyTypeB"
- + "\003\340A\001\"m\n\nPolicyType\022\033\n\027POLICY_TYPE_UNSPEC"
- + "IFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022\023\n\017LIST_"
- + "CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAINT\020\003Be\n\026c"
- + "om.google.cloud.auditB\rAuditLogProtoP\001Z7"
- + "google.golang.org/genproto/googleapis/cl"
- + "oud/audit;audit\370\001\001b\006proto3"
+ + "Info\"\266\002\n\026OrgPolicyViolationInfo\022.\n\007paylo"
+ + "ad\030\001 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022"
+ + "\033\n\rresource_type\030\002 \001(\tB\004\342A\001\001\022Y\n\rresource"
+ + "_tags\030\003 \003(\0132<.google.cloud.audit.OrgPoli"
+ + "cyViolationInfo.ResourceTagsEntryB\004\342A\001\001\022"
+ + "?\n\016violation_info\030\004 \003(\0132!.google.cloud.a"
+ + "udit.ViolationInfoB\004\342A\001\001\0323\n\021ResourceTags"
+ + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\002"
+ + "\n\rViolationInfo\022\030\n\nconstraint\030\001 \001(\tB\004\342A\001"
+ + "\001\022\033\n\rerror_message\030\002 \001(\tB\004\342A\001\001\022\033\n\rchecke"
+ + "d_value\030\003 \001(\tB\004\342A\001\001\022G\n\013policy_type\030\004 \001(\016"
+ + "2,.google.cloud.audit.ViolationInfo.Poli"
+ + "cyTypeB\004\342A\001\001\"m\n\nPolicyType\022\033\n\027POLICY_TYP"
+ + "E_UNSPECIFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022"
+ + "\023\n\017LIST_CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAIN"
+ + "T\020\003Be\n\026com.google.cloud.auditB\rAuditLogP"
+ + "rotoP\001Z7google.golang.org/genproto/googl"
+ + "eapis/cloud/audit;audit\370\001\001b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
index 01d8e1e744..c7d6932fbe 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java
@@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuthenticationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_AuthenticationInfo_descriptor;
@@ -255,6 +250,7 @@ public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -281,6 +277,7 @@ public java.lang.String getServiceAccountKeyName() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -798,39 +795,6 @@ private void buildPartial0(com.google.cloud.audit.AuthenticationInfo result) {
}
}
- @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.cloud.audit.AuthenticationInfo) {
@@ -1444,6 +1408,7 @@ public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -1469,6 +1434,7 @@ public java.lang.String getServiceAccountKeyName() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -1494,6 +1460,7 @@ public com.google.protobuf.ByteString getServiceAccountKeyNameBytes() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -1518,6 +1485,7 @@ public Builder setServiceAccountKeyName(java.lang.String value) {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -1538,6 +1506,7 @@ public Builder clearServiceAccountKeyName() {
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java
index 2dfe54d9ea..1ae5ab45d5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java
@@ -136,6 +136,7 @@ public interface AuthenticationInfoOrBuilder
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
@@ -151,6 +152,7 @@ public interface AuthenticationInfoOrBuilder
* The name of the service account key used to create or exchange
* credentials for authenticating the service account making the request.
* This is a scheme-less URI full resource name. For example:
+ *
* "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java
index faccc6595e..50cb43b5ab 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuthorizationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_AuthorizationInfo_descriptor;
@@ -78,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -105,6 +101,7 @@ public java.lang.String getResource() {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -205,6 +202,7 @@ public boolean getGranted() {
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -224,6 +222,7 @@ public boolean hasResourceAttributes() {
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -245,6 +244,7 @@ public com.google.rpc.context.AttributeContext.Resource getResourceAttributes()
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -550,39 +550,6 @@ private void buildPartial0(com.google.cloud.audit.AuthorizationInfo result) {
}
}
- @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.cloud.audit.AuthorizationInfo) {
@@ -688,6 +655,7 @@ public Builder mergeFrom(
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -714,6 +682,7 @@ public java.lang.String getResource() {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -740,6 +709,7 @@ public com.google.protobuf.ByteString getResourceBytes() {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -765,6 +735,7 @@ public Builder setResource(java.lang.String value) {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -786,6 +757,7 @@ public Builder clearResource() {
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -981,6 +953,7 @@ public Builder clearGranted() {
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -999,6 +972,7 @@ public boolean hasResourceAttributes() {
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1023,6 +997,7 @@ public com.google.rpc.context.AttributeContext.Resource getResourceAttributes()
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1049,6 +1024,7 @@ public Builder setResourceAttributes(com.google.rpc.context.AttributeContext.Res
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1073,6 +1049,7 @@ public Builder setResourceAttributes(
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1103,6 +1080,7 @@ public Builder mergeResourceAttributes(com.google.rpc.context.AttributeContext.R
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1126,6 +1104,7 @@ public Builder clearResourceAttributes() {
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1144,6 +1123,7 @@ public com.google.rpc.context.AttributeContext.Resource.Builder getResourceAttri
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -1167,6 +1147,7 @@ public com.google.rpc.context.AttributeContext.Resource.Builder getResourceAttri
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
index fe0764ec63..d07958d948 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java
@@ -29,6 +29,7 @@ public interface AuthorizationInfoOrBuilder
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -45,6 +46,7 @@ public interface AuthorizationInfoOrBuilder
*
* The resource being accessed, as a REST-style or cloud resource string.
* For example:
+ *
* bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID
* or
* projects/PROJECTID/datasets/DATASETID
@@ -101,6 +103,7 @@ public interface AuthorizationInfoOrBuilder
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -117,6 +120,7 @@ public interface AuthorizationInfoOrBuilder
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
@@ -133,6 +137,7 @@ public interface AuthorizationInfoOrBuilder
*
* Resource attributes used in IAM condition evaluation. This field contains
* resource attributes like resource type and resource name.
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.request_metadata.request_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
index ca555dfe16..4f5fc51e68 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OrgPolicyViolationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_OrgPolicyViolationInfo_descriptor;
@@ -219,6 +214,7 @@ public int getResourceTagsCount() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -247,6 +243,7 @@ public java.util.Map getResourceTags() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -266,6 +263,7 @@ public java.util.Map getResourceTagsMap() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -292,6 +290,7 @@ public java.util.Map getResourceTagsMap() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -728,39 +727,6 @@ private void buildPartial0(com.google.cloud.audit.OrgPolicyViolationInfo result)
}
}
- @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.cloud.audit.OrgPolicyViolationInfo) {
@@ -1235,6 +1201,7 @@ public int getResourceTagsCount() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1263,6 +1230,7 @@ public java.util.Map getResourceTags() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1282,6 +1250,7 @@ public java.util.Map getResourceTagsMap() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1308,6 +1277,7 @@ public java.util.Map getResourceTagsMap() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1340,6 +1310,7 @@ public Builder clearResourceTags() {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1368,6 +1339,7 @@ public java.util.Map getMutableResourceTags(
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -1394,6 +1366,7 @@ public Builder putResourceTags(java.lang.String key, java.lang.String value) {
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
index e05a56411b..0cb4a4412c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java
@@ -98,6 +98,7 @@ public interface OrgPolicyViolationInfoOrBuilder
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -114,6 +115,7 @@ public interface OrgPolicyViolationInfoOrBuilder
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -133,6 +135,7 @@ public interface OrgPolicyViolationInfoOrBuilder
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -149,6 +152,7 @@ public interface OrgPolicyViolationInfoOrBuilder
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
@@ -169,6 +173,7 @@ java.lang.String getResourceTagsOrDefault(
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
+ *
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
index d7e928e22b..adc1754af9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyViolationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_PolicyViolationInfo_descriptor;
@@ -369,39 +364,6 @@ private void buildPartial0(com.google.cloud.audit.PolicyViolationInfo result) {
}
}
- @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.cloud.audit.PolicyViolationInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
index 5a977fc9f0..2e196a6339 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RequestMetadata();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_RequestMetadata_descriptor;
@@ -151,6 +146,7 @@ public com.google.protobuf.ByteString getCallerIpBytes() {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -183,6 +179,7 @@ public java.lang.String getCallerSuppliedUserAgent() {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -222,6 +219,7 @@ public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -250,6 +248,7 @@ public java.lang.String getCallerNetwork() {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -279,6 +278,8 @@ public com.google.protobuf.ByteString getCallerNetworkBytes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -299,6 +300,8 @@ public boolean hasRequestAttributes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -321,6 +324,8 @@ public com.google.rpc.context.AttributeContext.Request getRequestAttributes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -713,39 +718,6 @@ private void buildPartial0(com.google.cloud.audit.RequestMetadata result) {
}
}
- @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.cloud.audit.RequestMetadata) {
@@ -1020,6 +992,7 @@ public Builder setCallerIpBytes(com.google.protobuf.ByteString value) {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -1051,6 +1024,7 @@ public java.lang.String getCallerSuppliedUserAgent() {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -1082,6 +1056,7 @@ public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -1112,6 +1087,7 @@ public Builder setCallerSuppliedUserAgent(java.lang.String value) {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -1138,6 +1114,7 @@ public Builder clearCallerSuppliedUserAgent() {
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -1173,6 +1150,7 @@ public Builder setCallerSuppliedUserAgentBytes(com.google.protobuf.ByteString va
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -1200,6 +1178,7 @@ public java.lang.String getCallerNetwork() {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -1227,6 +1206,7 @@ public com.google.protobuf.ByteString getCallerNetworkBytes() {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -1253,6 +1233,7 @@ public Builder setCallerNetwork(java.lang.String value) {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -1275,6 +1256,7 @@ public Builder clearCallerNetwork() {
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -1307,6 +1289,8 @@ public Builder setCallerNetworkBytes(com.google.protobuf.ByteString value) {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1326,6 +1310,8 @@ public boolean hasRequestAttributes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1351,6 +1337,8 @@ public com.google.rpc.context.AttributeContext.Request getRequestAttributes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1378,6 +1366,8 @@ public Builder setRequestAttributes(com.google.rpc.context.AttributeContext.Requ
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1403,6 +1393,8 @@ public Builder setRequestAttributes(
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1434,6 +1426,8 @@ public Builder mergeRequestAttributes(com.google.rpc.context.AttributeContext.Re
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1458,6 +1452,8 @@ public Builder clearRequestAttributes() {
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1477,6 +1473,8 @@ public com.google.rpc.context.AttributeContext.Request.Builder getRequestAttribu
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -1501,6 +1499,8 @@ public com.google.rpc.context.AttributeContext.Request.Builder getRequestAttribu
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java
index 593541486f..9bfaafe790 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java
@@ -75,6 +75,7 @@ public interface RequestMetadataOrBuilder
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -96,6 +97,7 @@ public interface RequestMetadataOrBuilder
* The user agent of the caller.
* This information is not authenticated and should be treated accordingly.
* For example:
+ *
* + `google-api-python-client/1.4.0`:
* The request was made by the Google API client for Python.
* + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
@@ -120,6 +122,7 @@ public interface RequestMetadataOrBuilder
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -137,6 +140,7 @@ public interface RequestMetadataOrBuilder
* (or project) as the accessed resource.
* See https://cloud.google.com/compute/docs/vpc/ for more information.
* This is a scheme-less URI full resource name. For example:
+ *
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
*
*
@@ -153,6 +157,8 @@ public interface RequestMetadataOrBuilder
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -170,6 +176,8 @@ public interface RequestMetadataOrBuilder
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
@@ -187,6 +195,8 @@ public interface RequestMetadataOrBuilder
* Request attributes used in IAM condition evaluation. This field contains
* request attributes like request time and access levels associated with
* the request.
+ *
+ *
* To get the whole view of the attributes used in IAM
* condition evaluation, the user must also look into
* `AuditLog.authentication_info.resource_attributes`.
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java
index 0c5b2caaa2..f8285e172d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java
@@ -38,8 +38,8 @@ private ResourceLocation(com.google.protobuf.GeneratedMessageV3.Builder> build
}
private ResourceLocation() {
- currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ResourceLocation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_ResourceLocation_descriptor;
@@ -71,7 +66,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int CURRENT_LOCATIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList currentLocations_;
+ private com.google.protobuf.LazyStringArrayList currentLocations_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -80,6 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -100,6 +97,7 @@ public com.google.protobuf.ProtocolStringList getCurrentLocationsList() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -120,6 +118,7 @@ public int getCurrentLocationsCount() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -141,6 +140,7 @@ public java.lang.String getCurrentLocations(int index) {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -158,7 +158,8 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) {
public static final int ORIGINAL_LOCATIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList originalLocations_;
+ private com.google.protobuf.LazyStringArrayList originalLocations_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -167,6 +168,7 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -187,6 +189,7 @@ public com.google.protobuf.ProtocolStringList getOriginalLocationsList() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -207,6 +210,7 @@ public int getOriginalLocationsCount() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -228,6 +232,7 @@ public java.lang.String getOriginalLocations(int index) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -462,10 +467,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -493,7 +496,6 @@ public com.google.cloud.audit.ResourceLocation build() {
public com.google.cloud.audit.ResourceLocation buildPartial() {
com.google.cloud.audit.ResourceLocation result =
new com.google.cloud.audit.ResourceLocation(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -501,54 +503,16 @@ public com.google.cloud.audit.ResourceLocation buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.cloud.audit.ResourceLocation result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- currentLocations_ = currentLocations_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.currentLocations_ = currentLocations_;
- if (((bitField0_ & 0x00000002) != 0)) {
- originalLocations_ = originalLocations_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.originalLocations_ = originalLocations_;
- }
-
private void buildPartial0(com.google.cloud.audit.ResourceLocation result) {
int from_bitField0_ = bitField0_;
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ currentLocations_.makeImmutable();
+ result.currentLocations_ = currentLocations_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ originalLocations_.makeImmutable();
+ result.originalLocations_ = originalLocations_;
+ }
}
@java.lang.Override
@@ -566,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.audit.ResourceLocation other) {
if (!other.currentLocations_.isEmpty()) {
if (currentLocations_.isEmpty()) {
currentLocations_ = other.currentLocations_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureCurrentLocationsIsMutable();
currentLocations_.addAll(other.currentLocations_);
@@ -576,7 +540,7 @@ public Builder mergeFrom(com.google.cloud.audit.ResourceLocation other) {
if (!other.originalLocations_.isEmpty()) {
if (originalLocations_.isEmpty()) {
originalLocations_ = other.originalLocations_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureOriginalLocationsIsMutable();
originalLocations_.addAll(other.originalLocations_);
@@ -642,14 +606,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList currentLocations_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList currentLocations_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCurrentLocationsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!currentLocations_.isModifiable()) {
currentLocations_ = new com.google.protobuf.LazyStringArrayList(currentLocations_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -659,6 +623,7 @@ private void ensureCurrentLocationsIsMutable() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -669,7 +634,8 @@ private void ensureCurrentLocationsIsMutable() {
* @return A list containing the currentLocations.
*/
public com.google.protobuf.ProtocolStringList getCurrentLocationsList() {
- return currentLocations_.getUnmodifiableView();
+ currentLocations_.makeImmutable();
+ return currentLocations_;
}
/**
*
@@ -679,6 +645,7 @@ public com.google.protobuf.ProtocolStringList getCurrentLocationsList() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -699,6 +666,7 @@ public int getCurrentLocationsCount() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -720,6 +688,7 @@ public java.lang.String getCurrentLocations(int index) {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -741,6 +710,7 @@ public com.google.protobuf.ByteString getCurrentLocationsBytes(int index) {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -758,6 +728,7 @@ public Builder setCurrentLocations(int index, java.lang.String value) {
}
ensureCurrentLocationsIsMutable();
currentLocations_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -769,6 +740,7 @@ public Builder setCurrentLocations(int index, java.lang.String value) {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -785,6 +757,7 @@ public Builder addCurrentLocations(java.lang.String value) {
}
ensureCurrentLocationsIsMutable();
currentLocations_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -796,6 +769,7 @@ public Builder addCurrentLocations(java.lang.String value) {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -809,6 +783,7 @@ public Builder addCurrentLocations(java.lang.String value) {
public Builder addAllCurrentLocations(java.lang.Iterable values) {
ensureCurrentLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, currentLocations_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -820,6 +795,7 @@ public Builder addAllCurrentLocations(java.lang.Iterable value
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -830,8 +806,9 @@ public Builder addAllCurrentLocations(java.lang.Iterable value
* @return This builder for chaining.
*/
public Builder clearCurrentLocations() {
- currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ currentLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -843,6 +820,7 @@ public Builder clearCurrentLocations() {
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -860,18 +838,19 @@ public Builder addCurrentLocationsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureCurrentLocationsIsMutable();
currentLocations_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList originalLocations_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList originalLocations_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureOriginalLocationsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!originalLocations_.isModifiable()) {
originalLocations_ = new com.google.protobuf.LazyStringArrayList(originalLocations_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -881,6 +860,7 @@ private void ensureOriginalLocationsIsMutable() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -891,7 +871,8 @@ private void ensureOriginalLocationsIsMutable() {
* @return A list containing the originalLocations.
*/
public com.google.protobuf.ProtocolStringList getOriginalLocationsList() {
- return originalLocations_.getUnmodifiableView();
+ originalLocations_.makeImmutable();
+ return originalLocations_;
}
/**
*
@@ -901,6 +882,7 @@ public com.google.protobuf.ProtocolStringList getOriginalLocationsList() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -921,6 +903,7 @@ public int getOriginalLocationsCount() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -942,6 +925,7 @@ public java.lang.String getOriginalLocations(int index) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -963,6 +947,7 @@ public com.google.protobuf.ByteString getOriginalLocationsBytes(int index) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -980,6 +965,7 @@ public Builder setOriginalLocations(int index, java.lang.String value) {
}
ensureOriginalLocationsIsMutable();
originalLocations_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -991,6 +977,7 @@ public Builder setOriginalLocations(int index, java.lang.String value) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -1007,6 +994,7 @@ public Builder addOriginalLocations(java.lang.String value) {
}
ensureOriginalLocationsIsMutable();
originalLocations_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1018,6 +1006,7 @@ public Builder addOriginalLocations(java.lang.String value) {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -1031,6 +1020,7 @@ public Builder addOriginalLocations(java.lang.String value) {
public Builder addAllOriginalLocations(java.lang.Iterable values) {
ensureOriginalLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, originalLocations_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1042,6 +1032,7 @@ public Builder addAllOriginalLocations(java.lang.Iterable valu
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -1052,8 +1043,9 @@ public Builder addAllOriginalLocations(java.lang.Iterable valu
* @return This builder for chaining.
*/
public Builder clearOriginalLocations() {
- originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ originalLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1065,6 +1057,7 @@ public Builder clearOriginalLocations() {
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -1082,6 +1075,7 @@ public Builder addOriginalLocationsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureOriginalLocationsIsMutable();
originalLocations_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java
index 2a0e76f4af..7849d69394 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java
@@ -31,6 +31,7 @@ public interface ResourceLocationOrBuilder
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -49,6 +50,7 @@ public interface ResourceLocationOrBuilder
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -67,6 +69,7 @@ public interface ResourceLocationOrBuilder
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -86,6 +89,7 @@ public interface ResourceLocationOrBuilder
* Requests to create or delete a location based resource must populate
* the 'current_locations' field and not the 'original_locations' field.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -106,6 +110,7 @@ public interface ResourceLocationOrBuilder
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -124,6 +129,7 @@ public interface ResourceLocationOrBuilder
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -142,6 +148,7 @@ public interface ResourceLocationOrBuilder
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
@@ -161,6 +168,7 @@ public interface ResourceLocationOrBuilder
* Requests that mutate the resource's location must populate both the
* 'original_locations' as well as the 'current_locations' fields.
* For example:
+ *
* "europe-west1-a"
* "us-east1"
* "nam3"
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java
index e0a88f5878..8fcdd8e180 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ServiceAccountDelegationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_ServiceAccountDelegationInfo_descriptor;
@@ -161,11 +156,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FirstPartyPrincipal();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor;
@@ -558,41 +548,6 @@ private void buildPartial0(
}
}
- @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
@@ -1100,11 +1055,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ThirdPartyPrincipal();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor;
@@ -1435,41 +1385,6 @@ private void buildPartial0(
}
}
- @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
@@ -1794,6 +1709,8 @@ public com.google.protobuf.Parser getParserForType() {
}
private int authorityCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object authority_;
public enum AuthorityCase
@@ -2326,39 +2243,6 @@ private void buildPartialOneofs(com.google.cloud.audit.ServiceAccountDelegationI
}
}
- @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.cloud.audit.ServiceAccountDelegationInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java
index 6dd5b65ce7..eaad80e169 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java
@@ -142,5 +142,5 @@ public interface ServiceAccountDelegationInfoOrBuilder
com.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder
getThirdPartyPrincipalOrBuilder();
- public com.google.cloud.audit.ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase();
+ com.google.cloud.audit.ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java
index 3311f42a98..826d358967 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ViolationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_ViolationInfo_descriptor;
@@ -723,39 +718,6 @@ private void buildPartial0(com.google.cloud.audit.ViolationInfo result) {
}
}
- @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.cloud.audit.ViolationInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java
index ccb3932003..a937d732cc 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetLocationRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.location.LocationsProto
.internal_static_google_cloud_location_GetLocationRequest_descriptor;
@@ -358,39 +353,6 @@ private void buildPartial0(com.google.cloud.location.GetLocationRequest result)
}
}
- @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.cloud.location.GetLocationRequest) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java
index 8f0385f283..7e22e7b460 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListLocationsRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.location.LocationsProto
.internal_static_google_cloud_location_ListLocationsRequest_descriptor;
@@ -519,39 +514,6 @@ private void buildPartial0(com.google.cloud.location.ListLocationsRequest result
}
}
- @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.cloud.location.ListLocationsRequest) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java
index 5367d42a46..cadb55c215 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListLocationsResponse();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.location.LocationsProto
.internal_static_google_cloud_location_ListLocationsResponse_descriptor;
@@ -462,39 +457,6 @@ private void buildPartial0(com.google.cloud.location.ListLocationsResponse resul
}
}
- @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.cloud.location.ListLocationsResponse) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java
index 936101f085..8901862270 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Location();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.location.LocationsProto
.internal_static_google_cloud_location_Location_descriptor;
@@ -268,6 +263,7 @@ public int getLabelsCount() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -291,6 +287,7 @@ public java.util.Map getLabels() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -305,6 +302,7 @@ public java.util.Map getLabelsMap() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -326,6 +324,7 @@ public java.util.Map getLabelsMap() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -719,39 +718,6 @@ private void buildPartial0(com.google.cloud.location.Location result) {
}
}
- @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.cloud.location.Location) {
@@ -1223,6 +1189,7 @@ public int getLabelsCount() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1246,6 +1213,7 @@ public java.util.Map getLabels() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1260,6 +1228,7 @@ public java.util.Map getLabelsMap() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1281,6 +1250,7 @@ public java.util.Map getLabelsMap() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1308,6 +1278,7 @@ public Builder clearLabels() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1331,6 +1302,7 @@ public java.util.Map getMutableLabels() {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -1352,6 +1324,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java
index 72eade68c2..4b358ed53d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java
@@ -107,6 +107,7 @@ public interface LocationOrBuilder
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -118,6 +119,7 @@ public interface LocationOrBuilder
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -132,6 +134,7 @@ public interface LocationOrBuilder
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -143,6 +146,7 @@ public interface LocationOrBuilder
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
@@ -158,6 +162,7 @@ java.lang.String getLabelsOrDefault(
*
*
* Cross-service attributes for the location. For example
+ *
* {"cloud.googleapis.com/region": "us-east1"}
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java
index c0eaf905ee..1e19140b74 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java
@@ -27,18 +27,26 @@
* its boundary. The latitude bounds must range between -90 to 90 degrees
* inclusive, and the longitude bounds must range between -180 to 180 degrees
* inclusive. Various cases include:
+ *
* - If `low` = `high`, the viewport consists of that single point.
+ *
* - If `low.longitude` > `high.longitude`, the longitude range is inverted
* (the viewport crosses the 180 degree longitude line).
+ *
* - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees,
* the viewport includes all longitudes.
+ *
* - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees,
* the longitude range is empty.
+ *
* - If `low.latitude` > `high.latitude`, the latitude range is empty.
+ *
* Both `low` and `high` must be populated, and the represented box cannot be
* empty (as specified by the definitions above). An empty viewport will result
* in an error.
+ *
* For example, this viewport fully encloses New York City:
+ *
* {
* "low": {
* "latitude": 40.477398,
@@ -71,11 +79,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Viewport();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.geo.type.ViewportProto.internal_static_google_geo_type_Viewport_descriptor;
}
@@ -366,18 +369,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* its boundary. The latitude bounds must range between -90 to 90 degrees
* inclusive, and the longitude bounds must range between -180 to 180 degrees
* inclusive. Various cases include:
+ *
* - If `low` = `high`, the viewport consists of that single point.
+ *
* - If `low.longitude` > `high.longitude`, the longitude range is inverted
* (the viewport crosses the 180 degree longitude line).
+ *
* - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees,
* the viewport includes all longitudes.
+ *
* - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees,
* the longitude range is empty.
+ *
* - If `low.latitude` > `high.latitude`, the latitude range is empty.
+ *
* Both `low` and `high` must be populated, and the represented box cannot be
* empty (as specified by the definitions above). An empty viewport will result
* in an error.
+ *
* For example, this viewport fully encloses New York City:
+ *
* {
* "low": {
* "latitude": 40.477398,
@@ -472,39 +483,6 @@ private void buildPartial0(com.google.geo.type.Viewport result) {
}
}
- @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.geo.type.Viewport) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java
index 37a52d34c9..b22db62e2a 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java
@@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HttpRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.logging.type.HttpRequestProto
.internal_static_google_logging_type_HttpRequest_descriptor;
@@ -1068,39 +1063,6 @@ private void buildPartial0(com.google.logging.type.HttpRequest result) {
}
}
- @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.logging.type.HttpRequest) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java
index 4ec7bfe118..7238de705c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java
@@ -26,10 +26,13 @@
* standard severity levels listed below. For your reference, the levels are
* assigned the listed numeric values. The effect of using numeric values other
* than those listed is undefined.
+ *
* You can filter for log entries by severity. For example, the following
* filter expression will match log entries with severities `INFO`, `NOTICE`,
* and `WARNING`:
+ *
* severity > DEBUG AND severity <= WARNING
+ *
* If you are writing log entries, you should map other severity encodings to
* one of these standard levels. For example, you might map all of Java's FINE,
* FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
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 455e6539e5..6868f36b0b 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
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CancelOperationRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_CancelOperationRequest_descriptor;
@@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.CancelOperationRequest result)
}
}
- @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.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 5d74c7f44c..8b4370dcff 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
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeleteOperationRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_DeleteOperationRequest_descriptor;
@@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.DeleteOperationRequest result)
}
}
- @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.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 c815fad8a1..b78572086b 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
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetOperationRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_GetOperationRequest_descriptor;
@@ -358,39 +353,6 @@ private void buildPartial0(com.google.longrunning.GetOperationRequest result) {
}
}
- @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.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 7da625be76..b8936085a2 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
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListOperationsRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_ListOperationsRequest_descriptor;
@@ -519,39 +514,6 @@ private void buildPartial0(com.google.longrunning.ListOperationsRequest result)
}
}
- @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.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 af082c12a4..e33b47c235 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
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListOperationsResponse();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_ListOperationsResponse_descriptor;
@@ -461,39 +456,6 @@ private void buildPartial0(com.google.longrunning.ListOperationsResponse result)
}
}
- @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.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 16832c02ce..a1c86193fe 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
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Operation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_Operation_descriptor;
@@ -68,6 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int resultCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object result_;
public enum ResultCase
@@ -699,39 +696,6 @@ private void buildPartialOneofs(com.google.longrunning.Operation result) {
}
}
- @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.longrunning.Operation) {
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 8e6dd32dd9..389f656706 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
@@ -23,7 +23,9 @@
*
*
* A message representing the message types used by a long-running operation.
+ *
* Example:
+ *
* rpc LongRunningRecognize(LongRunningRecognizeRequest)
* returns (google.longrunning.Operation) {
* option (google.longrunning.operation_info) = {
@@ -56,11 +58,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OperationInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_OperationInfo_descriptor;
@@ -87,8 +84,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -115,8 +114,10 @@ public java.lang.String getResponseType() {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -147,8 +148,10 @@ public com.google.protobuf.ByteString getResponseTypeBytes() {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -174,8 +177,10 @@ public java.lang.String getMetadataType() {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -367,7 +372,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* A message representing the message types used by a long-running operation.
+ *
* Example:
+ *
* rpc LongRunningRecognize(LongRunningRecognizeRequest)
* returns (google.longrunning.Operation) {
* option (google.longrunning.operation_info) = {
@@ -454,39 +461,6 @@ private void buildPartial0(com.google.longrunning.OperationInfo result) {
}
}
- @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.longrunning.OperationInfo) {
@@ -574,8 +548,10 @@ public Builder mergeFrom(
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -601,8 +577,10 @@ public java.lang.String getResponseType() {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -628,8 +606,10 @@ public com.google.protobuf.ByteString getResponseTypeBytes() {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -654,8 +634,10 @@ public Builder setResponseType(java.lang.String value) {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -676,8 +658,10 @@ public Builder clearResponseType() {
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -704,8 +688,10 @@ public Builder setResponseTypeBytes(com.google.protobuf.ByteString value) {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -730,8 +716,10 @@ public java.lang.String getMetadataType() {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -756,8 +744,10 @@ public com.google.protobuf.ByteString getMetadataTypeBytes() {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -781,8 +771,10 @@ public Builder setMetadataType(java.lang.String value) {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -802,8 +794,10 @@ public Builder clearMetadataType() {
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java
index 2e65c6e69c..e0d5a389f2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java
@@ -30,8 +30,10 @@ public interface OperationInfoOrBuilder
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -47,8 +49,10 @@ public interface OperationInfoOrBuilder
* Required. The message name of the primary return type for this
* long-running operation.
* This type will be used to deserialize the LRO's response.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -64,8 +68,10 @@ public interface OperationInfoOrBuilder
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
@@ -80,8 +86,10 @@ public interface OperationInfoOrBuilder
*
* Required. The message name of the metadata type for this long-running
* operation.
+ *
* If the response is in a different package from the rpc, a fully-qualified
* message name must be used (e.g. `google.protobuf.Struct`).
+ *
* Note: Altering this value constitutes a breaking change.
*
*
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 beb4b5e4d0..5ed218983d 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
@@ -202,5 +202,5 @@ public interface OperationOrBuilder
*/
com.google.protobuf.AnyOrBuilder getResponseOrBuilder();
- public com.google.longrunning.Operation.ResultCase getResultCase();
+ com.google.longrunning.Operation.ResultCase getResultCase();
}
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 781db90574..18dae2a6fb 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
@@ -37,6 +37,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
* Additional information regarding long-running operations.
* In particular, this specifies the types that are returned from
* long-running operations.
+ *
* Required for methods that return `google.longrunning.Operation`; invalid
* otherwise.
*
@@ -116,18 +117,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pe\030\002 \001(\t2\252\005\n\nOperations\022\224\001\n\016ListOperatio"
+ "ns\022).google.longrunning.ListOperationsRe"
+ "quest\032*.google.longrunning.ListOperation"
- + "sResponse\"+\202\323\344\223\002\027\022\025/v1/{name=operations}"
- + "\332A\013name,filter\022\177\n\014GetOperation\022\'.google."
+ + "sResponse\"+\332A\013name,filter\202\323\344\223\002\027\022\025/v1/{na"
+ + "me=operations}\022\177\n\014GetOperation\022\'.google."
+ "longrunning.GetOperationRequest\032\035.google"
- + ".longrunning.Operation\"\'\202\323\344\223\002\032\022\030/v1/{nam"
- + "e=operations/**}\332A\004name\022~\n\017DeleteOperati"
+ + ".longrunning.Operation\"\'\332A\004name\202\323\344\223\002\032\022\030/"
+ + "v1/{name=operations/**}\022~\n\017DeleteOperati"
+ "on\022*.google.longrunning.DeleteOperationR"
- + "equest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002\032*\030"
- + "/v1/{name=operations/**}\332A\004name\022\210\001\n\017Canc"
+ + "equest\032\026.google.protobuf.Empty\"\'\332A\004name\202"
+ + "\323\344\223\002\032*\030/v1/{name=operations/**}\022\210\001\n\017Canc"
+ "elOperation\022*.google.longrunning.CancelO"
+ "perationRequest\032\026.google.protobuf.Empty\""
- + "1\202\323\344\223\002$\"\037/v1/{name=operations/**}:cancel"
- + ":\001*\332A\004name\022Z\n\rWaitOperation\022(.google.lon"
+ + "1\332A\004name\202\323\344\223\002$\"\037/v1/{name=operations/**}"
+ + ":cancel:\001*\022Z\n\rWaitOperation\022(.google.lon"
+ "grunning.WaitOperationRequest\032\035.google.l"
+ "ongrunning.Operation\"\000\032\035\312A\032longrunning.g"
+ "oogleapis.com:Z\n\016operation_info\022\036.google"
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 69570f9b3c..006f0ed47d 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
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new WaitOperationRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.longrunning.OperationsProto
.internal_static_google_longrunning_WaitOperationRequest_descriptor;
@@ -432,39 +427,6 @@ private void buildPartial0(com.google.longrunning.WaitOperationRequest result) {
}
}
- @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.longrunning.WaitOperationRequest) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
index 417e4ab37f..cf63124ea9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BadRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_BadRequest_descriptor;
}
@@ -77,7 +72,9 @@ public interface FieldViolationOrBuilder
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -85,19 +82,25 @@ public interface FieldViolationOrBuilder
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -117,7 +120,9 @@ public interface FieldViolationOrBuilder
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -125,19 +130,25 @@ public interface FieldViolationOrBuilder
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -206,11 +217,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FieldViolation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_BadRequest_FieldViolation_descriptor;
@@ -237,7 +243,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -245,19 +253,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -288,7 +302,9 @@ public java.lang.String getField() {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -296,19 +312,25 @@ public java.lang.String getField() {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -639,41 +661,6 @@ private void buildPartial0(com.google.rpc.BadRequest.FieldViolation result) {
}
}
- @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.rpc.BadRequest.FieldViolation) {
@@ -761,7 +748,9 @@ public Builder mergeFrom(
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -769,19 +758,25 @@ public Builder mergeFrom(
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -811,7 +806,9 @@ public java.lang.String getField() {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -819,19 +816,25 @@ public java.lang.String getField() {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -861,7 +864,9 @@ public com.google.protobuf.ByteString getFieldBytes() {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -869,19 +874,25 @@ public com.google.protobuf.ByteString getFieldBytes() {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -910,7 +921,9 @@ public Builder setField(java.lang.String value) {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -918,19 +931,25 @@ public Builder setField(java.lang.String value) {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -955,7 +974,9 @@ public Builder clearField() {
* A path that leads to a field in the request body. The value will be a
* sequence of dot-separated identifiers that identify a protocol buffer
* field.
+ *
* Consider the following:
+ *
* message CreateContactRequest {
* message EmailAddress {
* enum Type {
@@ -963,19 +984,25 @@ public Builder clearField() {
* HOME = 1;
* WORK = 2;
* }
+ *
* optional string email = 1;
* repeated EmailType type = 2;
* }
+ *
* string full_name = 1;
* repeated EmailAddress email_addresses = 2;
* }
+ *
* In this example, in proto `field` could take one of the following values:
+ *
* * `full_name` for a violation in the `full_name` value
* * `email_addresses[1].email` for a violation in the `email` field of the
* first `email_addresses` message
* * `email_addresses[3].type[2]` for a violation in the second `type`
* value in the third `email_addresses` message.
+ *
* In JSON, the same values are represented as:
+ *
* * `fullName` for a violation in the `fullName` value
* * `emailAddresses[1].email` for a violation in the `email` field of the
* first `emailAddresses` message
@@ -1493,39 +1520,6 @@ private void buildPartial0(com.google.rpc.BadRequest result) {
int from_bitField0_ = bitField0_;
}
- @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.rpc.BadRequest) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java
index 4e9024417f..a762494b4c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java
@@ -23,6 +23,8 @@
*
*
* The canonical error codes for gRPC APIs.
+ *
+ *
* Sometimes multiple error codes may apply. Services should return
* the most specific error code that applies. For example, prefer
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
@@ -37,6 +39,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Not an error; returned on success.
+ *
* HTTP Mapping: 200 OK
*
*
@@ -48,6 +51,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The operation was cancelled, typically by the caller.
+ *
* HTTP Mapping: 499 Client Closed Request
*
*
@@ -63,6 +67,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* an error space that is not known in this address space. Also
* errors raised by APIs that do not return enough error information
* may be converted to this error.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
@@ -77,6 +82,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
* that are problematic regardless of the state of the system
* (e.g., a malformed file name).
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -92,6 +98,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* even if the operation has completed successfully. For example, a
* successful response from a server could have been delayed long
* enough for the deadline to expire.
+ *
* HTTP Mapping: 504 Gateway Timeout
*
*
@@ -103,11 +110,13 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Some requested entity (e.g., file or directory) was not found.
+ *
* Note to server developers: if a request is denied for an entire class
* of users, such as gradual feature rollout or undocumented allowlist,
* `NOT_FOUND` may be used. If a request is denied for some users within
* a class of users, such as user-based access control, `PERMISSION_DENIED`
* must be used.
+ *
* HTTP Mapping: 404 Not Found
*
*
@@ -120,6 +129,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The entity that a client attempted to create (e.g., file or directory)
* already exists.
+ *
* HTTP Mapping: 409 Conflict
*
*
@@ -138,6 +148,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* instead for those errors). This error code does not imply the
* request is valid or the requested entity exists or satisfies
* other pre-conditions.
+ *
* HTTP Mapping: 403 Forbidden
*
*
@@ -150,6 +161,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The request does not have valid authentication credentials for the
* operation.
+ *
* HTTP Mapping: 401 Unauthorized
*
*
@@ -162,6 +174,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* Some resource has been exhausted, perhaps a per-user quota, or
* perhaps the entire file system is out of space.
+ *
* HTTP Mapping: 429 Too Many Requests
*
*
@@ -176,6 +189,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* required for the operation's execution. For example, the directory
* to be deleted is non-empty, an rmdir operation is applied to
* a non-directory, etc.
+ *
* Service implementors can use the following guidelines to decide
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
@@ -187,6 +201,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless
* the files are deleted from the directory.
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -199,8 +214,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation was aborted, typically due to a concurrency issue such as
* a sequencer check failure or transaction abort.
+ *
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
+ *
* HTTP Mapping: 409 Conflict
*
*
@@ -213,17 +230,20 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation was attempted past the valid range. E.g., seeking or
* reading past end-of-file.
+ *
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
* be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an
* offset that is not in the range [0,2^32-1], but it will generate
* `OUT_OF_RANGE` if asked to read from an offset past the current
* file size.
+ *
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
* error) when it applies so that callers who are iterating through
* a space can easily look for an `OUT_OF_RANGE` error to detect when
* they are done.
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -236,6 +256,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation is not implemented or is not supported/enabled in this
* service.
+ *
* HTTP Mapping: 501 Not Implemented
*
*
@@ -249,6 +270,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* Internal errors. This means that some invariants expected by the
* underlying system have been broken. This error code is reserved
* for serious errors.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
@@ -263,8 +285,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* transient condition, which can be corrected by retrying with
* a backoff. Note that it is not always safe to retry
* non-idempotent operations.
+ *
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
+ *
* HTTP Mapping: 503 Service Unavailable
*
*
@@ -276,6 +300,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unrecoverable data loss or corruption.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
@@ -290,6 +315,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Not an error; returned on success.
+ *
* HTTP Mapping: 200 OK
*
*
@@ -301,6 +327,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* The operation was cancelled, typically by the caller.
+ *
* HTTP Mapping: 499 Client Closed Request
*
*
@@ -316,6 +343,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* an error space that is not known in this address space. Also
* errors raised by APIs that do not return enough error information
* may be converted to this error.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
@@ -330,6 +358,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
* that are problematic regardless of the state of the system
* (e.g., a malformed file name).
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -345,6 +374,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* even if the operation has completed successfully. For example, a
* successful response from a server could have been delayed long
* enough for the deadline to expire.
+ *
* HTTP Mapping: 504 Gateway Timeout
*
*
@@ -356,11 +386,13 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Some requested entity (e.g., file or directory) was not found.
+ *
* Note to server developers: if a request is denied for an entire class
* of users, such as gradual feature rollout or undocumented allowlist,
* `NOT_FOUND` may be used. If a request is denied for some users within
* a class of users, such as user-based access control, `PERMISSION_DENIED`
* must be used.
+ *
* HTTP Mapping: 404 Not Found
*
*
@@ -373,6 +405,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The entity that a client attempted to create (e.g., file or directory)
* already exists.
+ *
* HTTP Mapping: 409 Conflict
*
*
@@ -391,6 +424,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* instead for those errors). This error code does not imply the
* request is valid or the requested entity exists or satisfies
* other pre-conditions.
+ *
* HTTP Mapping: 403 Forbidden
*
*
@@ -403,6 +437,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The request does not have valid authentication credentials for the
* operation.
+ *
* HTTP Mapping: 401 Unauthorized
*
*
@@ -415,6 +450,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* Some resource has been exhausted, perhaps a per-user quota, or
* perhaps the entire file system is out of space.
+ *
* HTTP Mapping: 429 Too Many Requests
*
*
@@ -429,6 +465,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* required for the operation's execution. For example, the directory
* to be deleted is non-empty, an rmdir operation is applied to
* a non-directory, etc.
+ *
* Service implementors can use the following guidelines to decide
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
@@ -440,6 +477,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless
* the files are deleted from the directory.
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -452,8 +490,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation was aborted, typically due to a concurrency issue such as
* a sequencer check failure or transaction abort.
+ *
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
+ *
* HTTP Mapping: 409 Conflict
*
*
@@ -466,17 +506,20 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation was attempted past the valid range. E.g., seeking or
* reading past end-of-file.
+ *
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
* be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an
* offset that is not in the range [0,2^32-1], but it will generate
* `OUT_OF_RANGE` if asked to read from an offset past the current
* file size.
+ *
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
* error) when it applies so that callers who are iterating through
* a space can easily look for an `OUT_OF_RANGE` error to detect when
* they are done.
+ *
* HTTP Mapping: 400 Bad Request
*
*
@@ -489,6 +532,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
* The operation is not implemented or is not supported/enabled in this
* service.
+ *
* HTTP Mapping: 501 Not Implemented
*
*
@@ -502,6 +546,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* Internal errors. This means that some invariants expected by the
* underlying system have been broken. This error code is reserved
* for serious errors.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
@@ -516,8 +561,10 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
* transient condition, which can be corrected by retrying with
* a backoff. Note that it is not always safe to retry
* non-idempotent operations.
+ *
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
* `ABORTED`, and `UNAVAILABLE`.
+ *
* HTTP Mapping: 503 Service Unavailable
*
*
@@ -529,6 +576,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
*
*
* Unrecoverable data loss or corruption.
+ *
* HTTP Mapping: 500 Internal Server Error
*
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
index 278956d960..e441862e79 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java
@@ -38,7 +38,7 @@ private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private DebugInfo() {
- stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList();
detail_ = "";
}
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DebugInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
}
@@ -68,7 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int STACK_ENTRIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList stackEntries_;
+ private com.google.protobuf.LazyStringArrayList stackEntries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -389,8 +385,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList();
detail_ = "";
return this;
}
@@ -417,7 +412,6 @@ public com.google.rpc.DebugInfo build() {
@java.lang.Override
public com.google.rpc.DebugInfo buildPartial() {
com.google.rpc.DebugInfo result = new com.google.rpc.DebugInfo(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -425,54 +419,17 @@ public com.google.rpc.DebugInfo buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.rpc.DebugInfo result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- stackEntries_ = stackEntries_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.stackEntries_ = stackEntries_;
- }
-
private void buildPartial0(com.google.rpc.DebugInfo result) {
int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ stackEntries_.makeImmutable();
+ result.stackEntries_ = stackEntries_;
+ }
if (((from_bitField0_ & 0x00000002) != 0)) {
result.detail_ = detail_;
}
}
- @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.rpc.DebugInfo) {
@@ -488,7 +445,7 @@ public Builder mergeFrom(com.google.rpc.DebugInfo other) {
if (!other.stackEntries_.isEmpty()) {
if (stackEntries_.isEmpty()) {
stackEntries_ = other.stackEntries_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureStackEntriesIsMutable();
stackEntries_.addAll(other.stackEntries_);
@@ -558,14 +515,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList stackEntries_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList stackEntries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStackEntriesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!stackEntries_.isModifiable()) {
stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -579,7 +536,8 @@ private void ensureStackEntriesIsMutable() {
* @return A list containing the stackEntries.
*/
public com.google.protobuf.ProtocolStringList getStackEntriesList() {
- return stackEntries_.getUnmodifiableView();
+ stackEntries_.makeImmutable();
+ return stackEntries_;
}
/**
*
@@ -644,6 +602,7 @@ public Builder setStackEntries(int index, java.lang.String value) {
}
ensureStackEntriesIsMutable();
stackEntries_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -665,6 +624,7 @@ public Builder addStackEntries(java.lang.String value) {
}
ensureStackEntriesIsMutable();
stackEntries_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -683,6 +643,7 @@ public Builder addStackEntries(java.lang.String value) {
public Builder addAllStackEntries(java.lang.Iterable values) {
ensureStackEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackEntries_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -698,8 +659,9 @@ public Builder addAllStackEntries(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearStackEntries() {
- stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ stackEntries_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -722,6 +684,7 @@ public Builder addStackEntriesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureStackEntriesIsMutable();
stackEntries_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java
index b5c4a71be2..cbab12ccfd 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java
@@ -23,8 +23,10 @@
*
*
* Describes the cause of the error with structured details.
+ *
* Example of an error when contacting the "pubsub.googleapis.com" API when it
* is not enabled:
+ *
* { "reason": "API_DISABLED"
* "domain": "googleapis.com"
* "metadata": {
@@ -32,9 +34,12 @@
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates that the pubsub.googleapis.com API is not enabled.
+ *
* Example of an error that is returned when attempting to create a Spanner
* instance in a region that is out of stock:
+ *
* { "reason": "STOCKOUT"
* "domain": "spanner.googleapis.com",
* "metadata": {
@@ -66,11 +71,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ErrorInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ErrorInfo_descriptor;
}
@@ -245,6 +245,7 @@ public int getMetadataCount() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -273,6 +274,7 @@ public java.util.Map getMetadata() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -292,6 +294,7 @@ public java.util.Map getMetadataMap() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -318,6 +321,7 @@ public java.util.Map getMetadataMap() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -528,8 +532,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Describes the cause of the error with structured details.
+ *
* Example of an error when contacting the "pubsub.googleapis.com" API when it
* is not enabled:
+ *
* { "reason": "API_DISABLED"
* "domain": "googleapis.com"
* "metadata": {
@@ -537,9 +543,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* "service": "pubsub.googleapis.com"
* }
* }
+ *
* This response indicates that the pubsub.googleapis.com API is not enabled.
+ *
* Example of an error that is returned when attempting to create a Spanner
* instance in a region that is out of stock:
+ *
* { "reason": "STOCKOUT"
* "domain": "spanner.googleapis.com",
* "metadata": {
@@ -647,39 +656,6 @@ private void buildPartial0(com.google.rpc.ErrorInfo result) {
}
}
- @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.rpc.ErrorInfo) {
@@ -1061,6 +1037,7 @@ public int getMetadataCount() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1089,6 +1066,7 @@ public java.util.Map getMetadata() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1108,6 +1086,7 @@ public java.util.Map getMetadataMap() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1134,6 +1113,7 @@ public java.util.Map getMetadataMap() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1166,6 +1146,7 @@ public Builder clearMetadata() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1194,6 +1175,7 @@ public java.util.Map getMutableMetadata() {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -1220,6 +1202,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
index c563c2a587..f92f526b7f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java
@@ -96,6 +96,7 @@ public interface ErrorInfoOrBuilder
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -112,6 +113,7 @@ public interface ErrorInfoOrBuilder
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -131,6 +133,7 @@ public interface ErrorInfoOrBuilder
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -147,6 +150,7 @@ public interface ErrorInfoOrBuilder
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
@@ -167,6 +171,7 @@ java.lang.String getMetadataOrDefault(
*
*
* Additional structured details about this error.
+ *
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
* length. When identifying the current value of an exceeded limit, the units
* should be contained in the key, not the value. For example, rather than
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
index e9063f68b9..7f1ce9860f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java
@@ -23,6 +23,7 @@
*
*
* Provides links to documentation or for performing an out of band action.
+ *
* For example, if a quota check failed with an error indicating the calling
* project hasn't enabled the accessed service, this can contain a URL pointing
* directly to the right place in the developer console to flip the bit.
@@ -50,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Help();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
}
@@ -152,11 +148,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Link();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor;
}
@@ -521,41 +512,6 @@ private void buildPartial0(com.google.rpc.Help.Link result) {
}
}
- @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.rpc.Help.Link) {
@@ -1145,6 +1101,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Provides links to documentation or for performing an out of band action.
+ *
* For example, if a quota check failed with an error indicating the calling
* project hasn't enabled the accessed service, this can contain a URL pointing
* directly to the right place in the developer console to flip the bit.
@@ -1235,39 +1192,6 @@ private void buildPartial0(com.google.rpc.Help result) {
int from_bitField0_ = bitField0_;
}
- @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.rpc.Help) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
index b91c680d20..330854a8d7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LocalizedMessage();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_LocalizedMessage_descriptor;
}
@@ -423,39 +418,6 @@ private void buildPartial0(com.google.rpc.LocalizedMessage result) {
}
}
- @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.rpc.LocalizedMessage) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
index 06c6a00f15..30f84342e4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java
@@ -23,6 +23,7 @@
*
*
* Describes what preconditions have failed.
+ *
* For example, if an RPC failed because it required the Terms of Service to be
* acknowledged, it could list the terms of service violation in the
* PreconditionFailure message.
@@ -50,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PreconditionFailure();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_descriptor;
@@ -139,6 +135,7 @@ public interface ViolationOrBuilder
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -153,6 +150,7 @@ public interface ViolationOrBuilder
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -193,11 +191,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Violation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
@@ -333,6 +326,7 @@ public com.google.protobuf.ByteString getSubjectBytes() {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -358,6 +352,7 @@ public java.lang.String getDescription() {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -646,41 +641,6 @@ private void buildPartial0(com.google.rpc.PreconditionFailure.Violation result)
}
}
- @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.rpc.PreconditionFailure.Violation) {
@@ -1010,6 +970,7 @@ public Builder setSubjectBytes(com.google.protobuf.ByteString value) {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -1034,6 +995,7 @@ public java.lang.String getDescription() {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -1058,6 +1020,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -1081,6 +1044,7 @@ public Builder setDescription(java.lang.String value) {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -1100,6 +1064,7 @@ public Builder clearDescription() {
*
* A description of how the precondition failed. Developers can use this
* description to understand how to fix the failure.
+ *
* For example: "Terms of service not accepted".
*
*
@@ -1418,6 +1383,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Describes what preconditions have failed.
+ *
* For example, if an RPC failed because it required the Terms of Service to be
* acknowledged, it could list the terms of service violation in the
* PreconditionFailure message.
@@ -1512,39 +1478,6 @@ private void buildPartial0(com.google.rpc.PreconditionFailure result) {
int from_bitField0_ = bitField0_;
}
- @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.rpc.PreconditionFailure) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
index 5b9a09d8e5..5fcd0c555d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java
@@ -23,12 +23,14 @@
*
*
* Describes how a quota check failed.
+ *
* For example if a daily limit was exceeded for the calling project,
* a service could respond with a QuotaFailure detail containing the project
* id and the description of the quota limit that was exceeded. If the
* calling project hasn't enabled the service in the developer console, then
* a service could respond with the project id and set `service_disabled`
* to true.
+ *
* Also see RetryInfo and Help types for other details about handling a
* quota failure.
*
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new QuotaFailure();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_QuotaFailure_descriptor;
}
@@ -115,6 +112,7 @@ public interface ViolationOrBuilder
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -132,6 +130,7 @@ public interface ViolationOrBuilder
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -173,11 +172,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Violation();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto
.internal_static_google_rpc_QuotaFailure_Violation_descriptor;
@@ -260,6 +254,7 @@ public com.google.protobuf.ByteString getSubjectBytes() {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -288,6 +283,7 @@ public java.lang.String getDescription() {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -564,41 +560,6 @@ private void buildPartial0(com.google.rpc.QuotaFailure.Violation result) {
}
}
- @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.rpc.QuotaFailure.Violation) {
@@ -803,6 +764,7 @@ public Builder setSubjectBytes(com.google.protobuf.ByteString value) {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -830,6 +792,7 @@ public java.lang.String getDescription() {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -857,6 +820,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -883,6 +847,7 @@ public Builder setDescription(java.lang.String value) {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -905,6 +870,7 @@ public Builder clearDescription() {
* description to find more about the quota configuration in the service's
* public documentation, or find the relevant quota limit to adjust through
* developer console.
+ *
* For example: "Service disabled" or "Daily Limit for read operations
* exceeded".
*
@@ -1224,12 +1190,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Describes how a quota check failed.
+ *
* For example if a daily limit was exceeded for the calling project,
* a service could respond with a QuotaFailure detail containing the project
* id and the description of the quota limit that was exceeded. If the
* calling project hasn't enabled the service in the developer console, then
* a service could respond with the project id and set `service_disabled`
* to true.
+ *
* Also see RetryInfo and Help types for other details about handling a
* quota failure.
*
@@ -1320,39 +1288,6 @@ private void buildPartial0(com.google.rpc.QuotaFailure result) {
int from_bitField0_ = bitField0_;
}
- @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.rpc.QuotaFailure) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java
index 74a95775da..53d4e17221 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RequestInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RequestInfo_descriptor;
}
@@ -421,39 +416,6 @@ private void buildPartial0(com.google.rpc.RequestInfo result) {
}
}
- @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.rpc.RequestInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java
index ae4be5457a..faaaffad88 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ResourceInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_ResourceInfo_descriptor;
}
@@ -563,39 +558,6 @@ private void buildPartial0(com.google.rpc.ResourceInfo result) {
}
}
- @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.rpc.ResourceInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java
index 51e56791ad..8800a05806 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java
@@ -25,8 +25,10 @@
* Describes when the clients can retry a failed request. Clients could ignore
* the recommendation here or retry when this information is missing from error
* responses.
+ *
* It's always recommended that clients should use exponential backoff when
* retrying.
+ *
* Clients should wait until `retry_delay` amount of time has passed since
* receiving the error response before retrying. If retrying requests also
* fail, clients should use an exponential backoff scheme to gradually increase
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RetryInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_RetryInfo_descriptor;
}
@@ -287,8 +284,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Describes when the clients can retry a failed request. Clients could ignore
* the recommendation here or retry when this information is missing from error
* responses.
+ *
* It's always recommended that clients should use exponential backoff when
* retrying.
+ *
* Clients should wait until `retry_delay` amount of time has passed since
* receiving the error response before retrying. If retrying requests also
* fail, clients should use an exponential backoff scheme to gradually increase
@@ -371,39 +370,6 @@ private void buildPartial0(com.google.rpc.RetryInfo result) {
}
}
- @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.rpc.RetryInfo) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java
index 44168247e2..f4df267ef7 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java
@@ -26,6 +26,7 @@
* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
+ *
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
@@ -53,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Status();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor;
}
@@ -406,6 +402,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
+ *
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
@@ -503,39 +500,6 @@ private void buildPartial0(com.google.rpc.Status result) {
}
}
- @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.rpc.Status) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
index 1a0db34e7f..456b9e72e5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java
@@ -23,15 +23,19 @@
*
*
* This message defines the standard attribute vocabulary for Google APIs.
+ *
* An attribute is a piece of metadata that describes an activity on a network
* service. For example, the size of an HTTP request, or the status code of
* an HTTP response.
+ *
* Each attribute has a type and a name, which is logically defined as
* a proto message field in `AttributeContext`. The field type becomes the
* attribute type, and the field path becomes the attribute name. For example,
* the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+ *
* This message definition is guaranteed not to have any wire breaking change.
* So you can use it directly for passing attributes across different systems.
+ *
* NOTE: Different system may generate different subset of attributes. Please
* verify the system specification before relying on an attribute generated
* a system.
@@ -59,11 +63,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AttributeContext();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_descriptor;
@@ -272,11 +271,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Peer();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Peer_descriptor;
@@ -910,41 +904,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Peer result)
}
}
- @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.rpc.context.AttributeContext.Peer) {
@@ -1827,11 +1786,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Api();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Api_descriptor;
@@ -2346,41 +2300,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Api result) {
}
}
- @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.rpc.context.AttributeContext.Api) {
@@ -3046,12 +2965,14 @@ public interface AuthOrBuilder
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3069,12 +2990,14 @@ public interface AuthOrBuilder
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3092,12 +3015,14 @@ public interface AuthOrBuilder
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3116,12 +3041,14 @@ public interface AuthOrBuilder
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3172,6 +3099,7 @@ public interface AuthOrBuilder
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3179,6 +3107,7 @@ public interface AuthOrBuilder
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3196,6 +3125,7 @@ public interface AuthOrBuilder
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3203,6 +3133,7 @@ public interface AuthOrBuilder
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3220,6 +3151,7 @@ public interface AuthOrBuilder
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3227,6 +3159,7 @@ public interface AuthOrBuilder
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3243,6 +3176,7 @@ public interface AuthOrBuilder
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3260,6 +3194,7 @@ public interface AuthOrBuilder
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3277,6 +3212,7 @@ public interface AuthOrBuilder
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3295,6 +3231,7 @@ public interface AuthOrBuilder
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3329,9 +3266,9 @@ private Auth(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Auth() {
principal_ = "";
- audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ audiences_ = com.google.protobuf.LazyStringArrayList.emptyList();
presenter_ = "";
- accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -3340,11 +3277,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Auth();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Auth_descriptor;
@@ -3422,7 +3354,8 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
public static final int AUDIENCES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList audiences_;
+ private com.google.protobuf.LazyStringArrayList audiences_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -3431,12 +3364,14 @@ public com.google.protobuf.ByteString getPrincipalBytes() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3456,12 +3391,14 @@ public com.google.protobuf.ProtocolStringList getAudiencesList() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3481,12 +3418,14 @@ public int getAudiencesCount() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3507,12 +3446,14 @@ public java.lang.String getAudiences(int index) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -3593,6 +3534,7 @@ public com.google.protobuf.ByteString getPresenterBytes() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3600,6 +3542,7 @@ public com.google.protobuf.ByteString getPresenterBytes() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3620,6 +3563,7 @@ public boolean hasClaims() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3627,6 +3571,7 @@ public boolean hasClaims() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3647,6 +3592,7 @@ public com.google.protobuf.Struct getClaims() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -3654,6 +3600,7 @@ public com.google.protobuf.Struct getClaims() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -3668,7 +3615,8 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() {
public static final int ACCESS_LEVELS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList accessLevels_;
+ private com.google.protobuf.LazyStringArrayList accessLevels_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -3677,6 +3625,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3696,6 +3645,7 @@ public com.google.protobuf.ProtocolStringList getAccessLevelsList() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3715,6 +3665,7 @@ public int getAccessLevelsCount() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -3735,6 +3686,7 @@ public java.lang.String getAccessLevels(int index) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -4006,16 +3958,14 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
principal_ = "";
- audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ audiences_ = com.google.protobuf.LazyStringArrayList.emptyList();
presenter_ = "";
claims_ = null;
if (claimsBuilder_ != null) {
claimsBuilder_.dispose();
claimsBuilder_ = null;
}
- accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
+ accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -4043,7 +3993,6 @@ public com.google.rpc.context.AttributeContext.Auth build() {
public com.google.rpc.context.AttributeContext.Auth buildPartial() {
com.google.rpc.context.AttributeContext.Auth result =
new com.google.rpc.context.AttributeContext.Auth(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -4051,65 +4000,25 @@ public com.google.rpc.context.AttributeContext.Auth buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.rpc.context.AttributeContext.Auth result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- audiences_ = audiences_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.audiences_ = audiences_;
- if (((bitField0_ & 0x00000010) != 0)) {
- accessLevels_ = accessLevels_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.accessLevels_ = accessLevels_;
- }
-
private void buildPartial0(com.google.rpc.context.AttributeContext.Auth result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.principal_ = principal_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ audiences_.makeImmutable();
+ result.audiences_ = audiences_;
+ }
if (((from_bitField0_ & 0x00000004) != 0)) {
result.presenter_ = presenter_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.claims_ = claimsBuilder_ == null ? claims_ : claimsBuilder_.build();
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ accessLevels_.makeImmutable();
+ result.accessLevels_ = accessLevels_;
+ }
}
@java.lang.Override
@@ -4132,7 +4041,7 @@ public Builder mergeFrom(com.google.rpc.context.AttributeContext.Auth other) {
if (!other.audiences_.isEmpty()) {
if (audiences_.isEmpty()) {
audiences_ = other.audiences_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureAudiencesIsMutable();
audiences_.addAll(other.audiences_);
@@ -4150,7 +4059,7 @@ public Builder mergeFrom(com.google.rpc.context.AttributeContext.Auth other) {
if (!other.accessLevels_.isEmpty()) {
if (accessLevels_.isEmpty()) {
accessLevels_ = other.accessLevels_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ |= 0x00000010;
} else {
ensureAccessLevelsIsMutable();
accessLevels_.addAll(other.accessLevels_);
@@ -4360,14 +4269,14 @@ public Builder setPrincipalBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList audiences_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList audiences_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAudiencesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!audiences_.isModifiable()) {
audiences_ = new com.google.protobuf.LazyStringArrayList(audiences_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -4377,12 +4286,14 @@ private void ensureAudiencesIsMutable() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4392,7 +4303,8 @@ private void ensureAudiencesIsMutable() {
* @return A list containing the audiences.
*/
public com.google.protobuf.ProtocolStringList getAudiencesList() {
- return audiences_.getUnmodifiableView();
+ audiences_.makeImmutable();
+ return audiences_;
}
/**
*
@@ -4402,12 +4314,14 @@ public com.google.protobuf.ProtocolStringList getAudiencesList() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4427,12 +4341,14 @@ public int getAudiencesCount() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4453,12 +4369,14 @@ public java.lang.String getAudiences(int index) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4479,12 +4397,14 @@ public com.google.protobuf.ByteString getAudiencesBytes(int index) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4501,6 +4421,7 @@ public Builder setAudiences(int index, java.lang.String value) {
}
ensureAudiencesIsMutable();
audiences_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4512,12 +4433,14 @@ public Builder setAudiences(int index, java.lang.String value) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4533,6 +4456,7 @@ public Builder addAudiences(java.lang.String value) {
}
ensureAudiencesIsMutable();
audiences_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4544,12 +4468,14 @@ public Builder addAudiences(java.lang.String value) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4562,6 +4488,7 @@ public Builder addAudiences(java.lang.String value) {
public Builder addAllAudiences(java.lang.Iterable values) {
ensureAudiencesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4573,12 +4500,14 @@ public Builder addAllAudiences(java.lang.Iterable values) {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4588,8 +4517,9 @@ public Builder addAllAudiences(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearAudiences() {
- audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ audiences_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -4601,12 +4531,14 @@ public Builder clearAudiences() {
* the audience (`aud`) claim within a JWT. The audience
* value(s) depends on the `issuer`, but typically include one or more of
* the following pieces of information:
+ *
* * The services intended to receive the credential. For example,
* ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
* * A set of service-based scopes. For example,
* ["https://www.googleapis.com/auth/cloud-platform"].
* * The client id of an app, such as the Firebase project id for JWTs
* from Firebase Auth.
+ *
* Consult the documentation for the credential issuer to determine the
* information provided.
*
@@ -4623,6 +4555,7 @@ public Builder addAudiencesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAudiencesIsMutable();
audiences_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4762,6 +4695,7 @@ public Builder setPresenterBytes(com.google.protobuf.ByteString value) {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4769,6 +4703,7 @@ public Builder setPresenterBytes(com.google.protobuf.ByteString value) {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4788,6 +4723,7 @@ public boolean hasClaims() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4795,6 +4731,7 @@ public boolean hasClaims() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4818,6 +4755,7 @@ public com.google.protobuf.Struct getClaims() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4825,6 +4763,7 @@ public com.google.protobuf.Struct getClaims() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4852,6 +4791,7 @@ public Builder setClaims(com.google.protobuf.Struct value) {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4859,6 +4799,7 @@ public Builder setClaims(com.google.protobuf.Struct value) {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4883,6 +4824,7 @@ public Builder setClaims(com.google.protobuf.Struct.Builder builderForValue) {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4890,6 +4832,7 @@ public Builder setClaims(com.google.protobuf.Struct.Builder builderForValue) {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4920,6 +4863,7 @@ public Builder mergeClaims(com.google.protobuf.Struct value) {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4927,6 +4871,7 @@ public Builder mergeClaims(com.google.protobuf.Struct value) {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4951,6 +4896,7 @@ public Builder clearClaims() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4958,6 +4904,7 @@ public Builder clearClaims() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -4977,6 +4924,7 @@ public com.google.protobuf.Struct.Builder getClaimsBuilder() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -4984,6 +4932,7 @@ public com.google.protobuf.Struct.Builder getClaimsBuilder() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -5005,6 +4954,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() {
* `{key: value}` pairs for standard and private claims. The following
* is a subset of the standard required and optional claims that would
* typically be presented for a Google-based JWT:
+ *
* {'iss': 'accounts.google.com',
* 'sub': '113289723416554971153',
* 'aud': ['123456789012', 'pubsub.googleapis.com'],
@@ -5012,6 +4962,7 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() {
* 'email': 'jsmith@example.com',
* 'iat': 1353601026,
* 'exp': 1353604926}
+ *
* SAML assertions are similarly specified, but with an identity provider
* dependent structure.
*
@@ -5035,14 +4986,14 @@ public com.google.protobuf.StructOrBuilder getClaimsOrBuilder() {
return claimsBuilder_;
}
- private com.google.protobuf.LazyStringList accessLevels_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList accessLevels_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAccessLevelsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
+ if (!accessLevels_.isModifiable()) {
accessLevels_ = new com.google.protobuf.LazyStringArrayList(accessLevels_);
- bitField0_ |= 0x00000010;
}
+ bitField0_ |= 0x00000010;
}
/**
*
@@ -5052,6 +5003,7 @@ private void ensureAccessLevelsIsMutable() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5061,7 +5013,8 @@ private void ensureAccessLevelsIsMutable() {
* @return A list containing the accessLevels.
*/
public com.google.protobuf.ProtocolStringList getAccessLevelsList() {
- return accessLevels_.getUnmodifiableView();
+ accessLevels_.makeImmutable();
+ return accessLevels_;
}
/**
*
@@ -5071,6 +5024,7 @@ public com.google.protobuf.ProtocolStringList getAccessLevelsList() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5090,6 +5044,7 @@ public int getAccessLevelsCount() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5110,6 +5065,7 @@ public java.lang.String getAccessLevels(int index) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5130,6 +5086,7 @@ public com.google.protobuf.ByteString getAccessLevelsBytes(int index) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5146,6 +5103,7 @@ public Builder setAccessLevels(int index, java.lang.String value) {
}
ensureAccessLevelsIsMutable();
accessLevels_.set(index, value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5157,6 +5115,7 @@ public Builder setAccessLevels(int index, java.lang.String value) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5172,6 +5131,7 @@ public Builder addAccessLevels(java.lang.String value) {
}
ensureAccessLevelsIsMutable();
accessLevels_.add(value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5183,6 +5143,7 @@ public Builder addAccessLevels(java.lang.String value) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5195,6 +5156,7 @@ public Builder addAccessLevels(java.lang.String value) {
public Builder addAllAccessLevels(java.lang.Iterable values) {
ensureAccessLevelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessLevels_);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5206,6 +5168,7 @@ public Builder addAllAccessLevels(java.lang.Iterable values) {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5215,8 +5178,9 @@ public Builder addAllAccessLevels(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearAccessLevels() {
- accessLevels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ accessLevels_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
+ ;
onChanged();
return this;
}
@@ -5228,6 +5192,7 @@ public Builder clearAccessLevels() {
* accessed by authenticated requester. It is part of Secure GCP processing
* for the incoming request. An access level string has the format:
* "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
+ *
* Example:
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
*
@@ -5244,6 +5209,7 @@ public Builder addAccessLevelsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAccessLevelsIsMutable();
accessLevels_.add(value);
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -5726,11 +5692,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Request();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Request_descriptor;
@@ -6843,41 +6804,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Request resul
}
}
- @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.rpc.context.AttributeContext.Request) {
@@ -8833,11 +8759,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Response();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Response_descriptor;
@@ -9461,41 +9382,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Response resu
}
}
- @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.rpc.context.AttributeContext.Response) {
@@ -10393,12 +10279,14 @@ public interface ResourceOrBuilder
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -10414,12 +10302,14 @@ public interface ResourceOrBuilder
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -10435,6 +10325,7 @@ public interface ResourceOrBuilder
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -10450,6 +10341,7 @@ public interface ResourceOrBuilder
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -10563,6 +10455,7 @@ java.lang.String getLabelsOrDefault(
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -10576,6 +10469,7 @@ java.lang.String getLabelsOrDefault(
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -10592,6 +10486,7 @@ java.lang.String getLabelsOrDefault(
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -10605,6 +10500,7 @@ java.lang.String getLabelsOrDefault(
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -10622,6 +10518,7 @@ java.lang.String getAnnotationsOrDefault(
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -10807,6 +10704,7 @@ java.lang.String getAnnotationsOrDefault(
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -10825,6 +10723,7 @@ java.lang.String getAnnotationsOrDefault(
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -10874,11 +10773,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Resource();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AttributeContextProto
.internal_static_google_rpc_context_AttributeContext_Resource_descriptor;
@@ -10973,12 +10867,14 @@ public com.google.protobuf.ByteString getServiceBytes() {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -11005,12 +10901,14 @@ public java.lang.String getName() {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -11041,6 +10939,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -11067,6 +10966,7 @@ public java.lang.String getType() {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -11288,6 +11188,7 @@ public int getAnnotationsCount() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -11313,6 +11214,7 @@ public java.util.Map getAnnotations() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -11329,6 +11231,7 @@ public java.util.Map getAnnotationsMap() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -11352,6 +11255,7 @@ public java.util.Map getAnnotationsMap() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -11636,6 +11540,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -11665,6 +11570,7 @@ public java.lang.String getLocation() {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -12147,41 +12053,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Resource resu
}
}
- @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.rpc.context.AttributeContext.Resource) {
@@ -12496,12 +12367,14 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -12527,12 +12400,14 @@ public java.lang.String getName() {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -12558,12 +12433,14 @@ public com.google.protobuf.ByteString getNameBytes() {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -12588,12 +12465,14 @@ public Builder setName(java.lang.String value) {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -12614,12 +12493,14 @@ public Builder clearName() {
* The stable identifier (name) of a resource on the `service`. A resource
* can be logically identified as "//{resource.service}/{resource.name}".
* The differences between a resource name and a URI are:
+ *
* * Resource name is a logical identifier, independent of network
* protocol and API version. For example,
* `//pubsub.googleapis.com/projects/123/topics/news-feed`.
* * URI often includes protocol and version information, so it can
* be used directly by applications. For example,
* `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+ *
* See https://cloud.google.com/apis/design/resource_names for details.
*
*
@@ -12646,6 +12527,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -12671,6 +12553,7 @@ public java.lang.String getType() {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -12696,6 +12579,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -12720,6 +12604,7 @@ public Builder setType(java.lang.String value) {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -12740,6 +12625,7 @@ public Builder clearType() {
*
* The type of the resource. The syntax is platform-specific because
* different platforms define their resources differently.
+ *
* For Google APIs, the type format must be "{service}/{kind}", such as
* "pubsub.googleapis.com/Topic".
*
@@ -13091,6 +12977,7 @@ public int getAnnotationsCount() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13116,6 +13003,7 @@ public java.util.Map getAnnotations() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13132,6 +13020,7 @@ public java.util.Map getAnnotationsMap() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13155,6 +13044,7 @@ public java.util.Map getAnnotationsMap() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13184,6 +13074,7 @@ public Builder clearAnnotations() {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13209,6 +13100,7 @@ public java.util.Map getMutableAnnotations()
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -13232,6 +13124,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
* Annotations is an unstructured key-value map stored with a resource that
* may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
+ *
* More info: https://kubernetes.io/docs/user-guide/annotations
*
*
@@ -14058,6 +13951,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -14086,6 +13980,7 @@ public java.lang.String getLocation() {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -14114,6 +14009,7 @@ public com.google.protobuf.ByteString getLocationBytes() {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -14141,6 +14037,7 @@ public Builder setLocation(java.lang.String value) {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -14164,6 +14061,7 @@ public Builder clearLocation() {
* Immutable. The location of the resource. The location encoding is
* specific to the service provider, and new encoding may be introduced
* as the service evolves.
+ *
* For Google Cloud products, the encoding is what is used by Google Cloud
* APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
* semantics of `location` is identical to the
@@ -14953,15 +14851,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* This message defines the standard attribute vocabulary for Google APIs.
+ *
* An attribute is a piece of metadata that describes an activity on a network
* service. For example, the size of an HTTP request, or the status code of
* an HTTP response.
+ *
* Each attribute has a type and a name, which is logically defined as
* a proto message field in `AttributeContext`. The field type becomes the
* attribute type, and the field path becomes the attribute name. For example,
* the attribute `source.ip` maps to field `AttributeContext.source.ip`.
+ *
* This message definition is guaranteed not to have any wire breaking change.
* So you can use it directly for passing attributes across different systems.
+ *
* NOTE: Different system may generate different subset of attributes. Please
* verify the system specification before relying on an attribute generated
* a system.
@@ -15114,39 +15016,6 @@ private void buildPartial0(com.google.rpc.context.AttributeContext result) {
}
}
- @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.rpc.context.AttributeContext) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
index c1ad7785a7..694a0c5b93 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditContext();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.rpc.context.AuditContextProto
.internal_static_google_rpc_context_AuditContext_descriptor;
@@ -582,39 +577,6 @@ private void buildPartial0(com.google.rpc.context.AuditContext result) {
}
}
- @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.rpc.context.AuditContext) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
index 291b0ec150..e4d64a640c 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java
@@ -29,27 +29,34 @@
* can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
* method in iOS; and, with just a little work, it can be easily formatted into
* a CSS `rgba()` string in JavaScript.
+ *
* This reference page doesn't carry information about the absolute color
* space
* that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
* DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
* space.
+ *
* When color equality needs to be decided, implementations, unless
* documented otherwise, treat two colors as equal if all their red,
* green, blue, and alpha values each differ by at most 1e-5.
+ *
* Example (Java):
+ *
* import com.google.type.Color;
+ *
* // ...
* public static java.awt.Color fromProto(Color protocolor) {
* float alpha = protocolor.hasAlpha()
* ? protocolor.getAlpha().getValue()
* : 1.0;
+ *
* return new java.awt.Color(
* protocolor.getRed(),
* protocolor.getGreen(),
* protocolor.getBlue(),
* alpha);
* }
+ *
* public static Color toProto(java.awt.Color color) {
* float red = (float) color.getRed();
* float green = (float) color.getGreen();
@@ -72,7 +79,9 @@
* return resultBuilder.build();
* }
* // ...
+ *
* Example (iOS / Obj-C):
+ *
* // ...
* static UIColor* fromProto(Color* protocolor) {
* float red = [protocolor red];
@@ -85,6 +94,7 @@
* }
* return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
* }
+ *
* static Color* toProto(UIColor* color) {
* CGFloat red, green, blue, alpha;
* if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
@@ -101,8 +111,11 @@
* return result;
* }
* // ...
+ *
* Example (JavaScript):
+ *
* // ...
+ *
* var protoToCssColor = function(rgb_color) {
* var redFrac = rgb_color.red || 0.0;
* var greenFrac = rgb_color.green || 0.0;
@@ -110,13 +123,16 @@
* var red = Math.floor(redFrac * 255);
* var green = Math.floor(greenFrac * 255);
* var blue = Math.floor(blueFrac * 255);
+ *
* if (!('alpha' in rgb_color)) {
* return rgbToCssColor(red, green, blue);
* }
+ *
* var alphaFrac = rgb_color.alpha.value || 0.0;
* var rgbParams = [red, green, blue].join(',');
* return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
* };
+ *
* var rgbToCssColor = function(red, green, blue) {
* var rgbNumber = new Number((red << 16) | (green << 8) | blue);
* var hexString = rgbNumber.toString(16);
@@ -128,6 +144,7 @@
* resultBuilder.push(hexString);
* return resultBuilder.join('');
* };
+ *
* // ...
*
*
@@ -151,11 +168,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Color();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.ColorProto.internal_static_google_type_Color_descriptor;
}
@@ -230,7 +242,9 @@ public float getBlue() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -253,7 +267,9 @@ public boolean hasAlpha() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -276,7 +292,9 @@ public com.google.protobuf.FloatValue getAlpha() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -495,27 +513,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
* method in iOS; and, with just a little work, it can be easily formatted into
* a CSS `rgba()` string in JavaScript.
+ *
* This reference page doesn't carry information about the absolute color
* space
* that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
* DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
* space.
+ *
* When color equality needs to be decided, implementations, unless
* documented otherwise, treat two colors as equal if all their red,
* green, blue, and alpha values each differ by at most 1e-5.
+ *
* Example (Java):
+ *
* import com.google.type.Color;
+ *
* // ...
* public static java.awt.Color fromProto(Color protocolor) {
* float alpha = protocolor.hasAlpha()
* ? protocolor.getAlpha().getValue()
* : 1.0;
+ *
* return new java.awt.Color(
* protocolor.getRed(),
* protocolor.getGreen(),
* protocolor.getBlue(),
* alpha);
* }
+ *
* public static Color toProto(java.awt.Color color) {
* float red = (float) color.getRed();
* float green = (float) color.getGreen();
@@ -538,7 +563,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* return resultBuilder.build();
* }
* // ...
+ *
* Example (iOS / Obj-C):
+ *
* // ...
* static UIColor* fromProto(Color* protocolor) {
* float red = [protocolor red];
@@ -551,6 +578,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* }
* return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
* }
+ *
* static Color* toProto(UIColor* color) {
* CGFloat red, green, blue, alpha;
* if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
@@ -567,8 +595,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* return result;
* }
* // ...
+ *
* Example (JavaScript):
+ *
* // ...
+ *
* var protoToCssColor = function(rgb_color) {
* var redFrac = rgb_color.red || 0.0;
* var greenFrac = rgb_color.green || 0.0;
@@ -576,13 +607,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* var red = Math.floor(redFrac * 255);
* var green = Math.floor(greenFrac * 255);
* var blue = Math.floor(blueFrac * 255);
+ *
* if (!('alpha' in rgb_color)) {
* return rgbToCssColor(red, green, blue);
* }
+ *
* var alphaFrac = rgb_color.alpha.value || 0.0;
* var rgbParams = [red, green, blue].join(',');
* return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
* };
+ *
* var rgbToCssColor = function(red, green, blue) {
* var rgbNumber = new Number((red << 16) | (green << 8) | blue);
* var hexString = rgbNumber.toString(16);
@@ -594,6 +628,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* resultBuilder.push(hexString);
* return resultBuilder.join('');
* };
+ *
* // ...
*
*
@@ -682,39 +717,6 @@ private void buildPartial0(com.google.type.Color result) {
}
}
- @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.type.Color) {
@@ -979,7 +981,9 @@ public Builder clearBlue() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1001,7 +1005,9 @@ public boolean hasAlpha() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1027,7 +1033,9 @@ public com.google.protobuf.FloatValue getAlpha() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1057,7 +1065,9 @@ public Builder setAlpha(com.google.protobuf.FloatValue value) {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1084,7 +1094,9 @@ public Builder setAlpha(com.google.protobuf.FloatValue.Builder builderForValue)
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1117,7 +1129,9 @@ public Builder mergeAlpha(com.google.protobuf.FloatValue value) {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1144,7 +1158,9 @@ public Builder clearAlpha() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1166,7 +1182,9 @@ public com.google.protobuf.FloatValue.Builder getAlphaBuilder() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -1190,7 +1208,9 @@ public com.google.protobuf.FloatValueOrBuilder getAlphaOrBuilder() {
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
index f789a85df7..eb53a17bb9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java
@@ -68,7 +68,9 @@ public interface ColorOrBuilder
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -88,7 +90,9 @@ public interface ColorOrBuilder
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
@@ -108,7 +112,9 @@ public interface ColorOrBuilder
*
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation:
+ *
* `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
+ *
* This means that a value of 1.0 corresponds to a solid color, whereas
* a value of 0.0 corresponds to a completely transparent color. This
* uses a wrapper message rather than a simple float scalar so that it is
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
index bf46c6f021..8ba5148c55 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java
@@ -26,11 +26,13 @@
* day and time zone are either specified elsewhere or are insignificant. The
* date is relative to the Gregorian Calendar. This can represent one of the
* following:
+ *
* * A full date, with non-zero year, month, and day values
* * A month and day value, with a zero year, such as an anniversary
* * A year on its own, with zero month and day values
* * A year and month value, with a zero day, such as a credit card expiration
* date
+ *
* Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
* `google.protobuf.Timestamp`.
*
@@ -55,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Date();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.DateProto.internal_static_google_type_Date_descriptor;
}
@@ -313,11 +310,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* day and time zone are either specified elsewhere or are insignificant. The
* date is relative to the Gregorian Calendar. This can represent one of the
* following:
+ *
* * A full date, with non-zero year, month, and day values
* * A month and day value, with a zero year, such as an anniversary
* * A year on its own, with zero month and day values
* * A year and month value, with a zero day, such as a credit card expiration
* date
+ *
* Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
* `google.protobuf.Timestamp`.
*
@@ -399,39 +398,6 @@ private void buildPartial0(com.google.type.Date result) {
}
}
- @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.type.Date) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
index 295d91ad96..8ecc8ef24d 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java
@@ -23,21 +23,27 @@
*
*
* Represents civil time (or occasionally physical time).
+ *
* This type can represent a civil time in one of a few possible ways:
+ *
* * When utc_offset is set and time_zone is unset: a civil time on a calendar
* day with a particular offset from UTC.
* * When time_zone is set and utc_offset is unset: a civil time on a calendar
* day in a particular time zone.
* * When neither time_zone nor utc_offset is set: a civil time on a calendar
* day in local time.
+ *
* The date is relative to the Proleptic Gregorian Calendar.
+ *
* If year is 0, the DateTime is considered not to have a specific year. month
* and day must have valid, non-zero values.
+ *
* This type may also be used to represent a physical time if all the date and
* time fields are set and either case of the `time_offset` oneof is set.
* Consider using `Timestamp` message for physical time instead. If your use
* case also would like to store the user's timezone, that can be done in
* another field.
+ *
* This type is more flexible than some applications may want. Make sure to
* document and validate your application's limitations.
*
@@ -62,11 +68,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DateTime();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.DateTimeProto.internal_static_google_type_DateTime_descriptor;
}
@@ -80,6 +81,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int timeOffsetCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object timeOffset_;
public enum TimeOffsetCase
@@ -621,21 +624,27 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Represents civil time (or occasionally physical time).
+ *
* This type can represent a civil time in one of a few possible ways:
+ *
* * When utc_offset is set and time_zone is unset: a civil time on a calendar
* day with a particular offset from UTC.
* * When time_zone is set and utc_offset is unset: a civil time on a calendar
* day in a particular time zone.
* * When neither time_zone nor utc_offset is set: a civil time on a calendar
* day in local time.
+ *
* The date is relative to the Proleptic Gregorian Calendar.
+ *
* If year is 0, the DateTime is considered not to have a specific year. month
* and day must have valid, non-zero values.
+ *
* This type may also be used to represent a physical time if all the date and
* time fields are set and either case of the `time_offset` oneof is set.
* Consider using `Timestamp` message for physical time instead. If your use
* case also would like to store the user's timezone, that can be done in
* another field.
+ *
* This type is more flexible than some applications may want. Make sure to
* document and validate your application's limitations.
*
@@ -753,39 +762,6 @@ private void buildPartialOneofs(com.google.type.DateTime result) {
}
}
- @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.type.DateTime) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
index fb8329d59c..3d237dbb18 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java
@@ -196,5 +196,5 @@ public interface DateTimeOrBuilder
*/
com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder();
- public com.google.type.DateTime.TimeOffsetCase getTimeOffsetCase();
+ com.google.type.DateTime.TimeOffsetCase getTimeOffsetCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java
index 7cd61f76c7..3a7ce4b3fb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java
@@ -25,6 +25,7 @@
* A representation of a decimal value, such as 2.5. Clients may convert values
* into language-native decimal formats, such as Java's [BigDecimal][] or
* Python's [decimal.Decimal][].
+ *
* [BigDecimal]:
* https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
* [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
@@ -52,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Decimal();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.DecimalProto.internal_static_google_type_Decimal_descriptor;
}
@@ -78,47 +74,63 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -144,47 +156,63 @@ public java.lang.String getValue() {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -370,6 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A representation of a decimal value, such as 2.5. Clients may convert values
* into language-native decimal formats, such as Java's [BigDecimal][] or
* Python's [decimal.Decimal][].
+ *
* [BigDecimal]:
* https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
* [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
@@ -444,39 +473,6 @@ private void buildPartial0(com.google.type.Decimal result) {
}
}
- @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.type.Decimal) {
@@ -551,47 +547,63 @@ public Builder mergeFrom(
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -616,47 +628,63 @@ public java.lang.String getValue() {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -681,47 +709,63 @@ public com.google.protobuf.ByteString getValueBytes() {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -745,47 +789,63 @@ public Builder setValue(java.lang.String value) {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -805,47 +865,63 @@ public Builder clearValue() {
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
index 15e152ccc9..73e0329eb2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java
@@ -28,47 +28,63 @@ public interface DecimalOrBuilder
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
@@ -83,47 +99,63 @@ public interface DecimalOrBuilder
*
*
* The decimal value, as a string.
+ *
* The string representation consists of an optional sign, `+` (`U+002B`)
* or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
* ("the integer"), optionally followed by a fraction, optionally followed
* by an exponent.
+ *
* The fraction consists of a decimal point followed by zero or more decimal
* digits. The string must contain at least one digit in either the integer
* or the fraction. The number formed by the sign, the integer and the
* fraction is referred to as the significand.
+ *
* The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
* followed by one or more decimal digits.
+ *
* Services **should** normalize decimal values before storing them by:
+ *
* - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
* - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
* - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
* - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
+ *
* Services **may** perform additional normalization based on its own needs
* and the internal decimal implementation selected, such as shifting the
* decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
* Additionally, services **may** preserve trailing zeroes in the fraction
* to indicate increased precision, but are not required to do so.
+ *
* Note that only the `.` character is supported to divide the integer
* and the fraction; `,` **should not** be supported regardless of locale.
* Additionally, thousand separators **should not** be supported. If a
* service does support them, values **must** be normalized.
+ *
* The ENBF grammar is:
+ *
* DecimalString =
* [Sign] Significand [Exponent];
+ *
* Sign = '+' | '-';
+ *
* Significand =
* Digits ['.'] [Digits] | [Digits] '.' Digits;
+ *
* Exponent = ('e' | 'E') [Sign] Digits;
+ *
* Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
+ *
* Services **should** clearly document the range of supported values, the
* maximum supported precision (total number of digits), and, if applicable,
* the scale (number of digits after the decimal point), as well as how it
* behaves when receiving out-of-bounds values.
+ *
* Services **may** choose to accept values passed as input even when the
* value has a higher precision or scale than the service supports, and
* **should** round the value to fit the supported scale. Alternatively, the
* service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
* if precision would be lost.
+ *
* Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
* gRPC) if the service receives a value outside of the supported range.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java
index 24b8e6d689..d6692b298e 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java
@@ -25,22 +25,31 @@
* Represents a textual expression in the Common Expression Language (CEL)
* syntax. CEL is a C-like expression language. The syntax and semantics of CEL
* are documented at https://github.com/google/cel-spec.
+ *
* Example (Comparison):
+ *
* title: "Summary size limit"
* description: "Determines if a summary is less than 100 chars"
* expression: "document.summary.size() < 100"
+ *
* Example (Equality):
+ *
* title: "Requestor is owner"
* description: "Determines if requestor is the document owner"
* expression: "document.owner == request.auth.claims.email"
+ *
* Example (Logic):
+ *
* title: "Public documents"
* description: "Determine whether the document should be publicly visible"
* expression: "document.type != 'private' && document.type != 'internal'"
+ *
* Example (Data Manipulation):
+ *
* title: "Notification string"
* description: "Create a notification string with a timestamp."
* expression: "'New message received at ' + string(document.create_time)"
+ *
* The exact variables and functions that may be referenced within an expression
* are determined by the service that evaluates it. See the service
* documentation for additional information.
@@ -71,11 +80,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Expr();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.ExprProto.internal_static_google_type_Expr_descriptor;
}
@@ -493,22 +497,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Represents a textual expression in the Common Expression Language (CEL)
* syntax. CEL is a C-like expression language. The syntax and semantics of CEL
* are documented at https://github.com/google/cel-spec.
+ *
* Example (Comparison):
+ *
* title: "Summary size limit"
* description: "Determines if a summary is less than 100 chars"
* expression: "document.summary.size() < 100"
+ *
* Example (Equality):
+ *
* title: "Requestor is owner"
* description: "Determines if requestor is the document owner"
* expression: "document.owner == request.auth.claims.email"
+ *
* Example (Logic):
+ *
* title: "Public documents"
* description: "Determine whether the document should be publicly visible"
* expression: "document.type != 'private' && document.type != 'internal'"
+ *
* Example (Data Manipulation):
+ *
* title: "Notification string"
* description: "Create a notification string with a timestamp."
* expression: "'New message received at ' + string(document.create_time)"
+ *
* The exact variables and functions that may be referenced within an expression
* are determined by the service that evaluates it. See the service
* documentation for additional information.
@@ -595,39 +608,6 @@ private void buildPartial0(com.google.type.Expr result) {
}
}
- @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.type.Expr) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java
index b2cfd71e8d..fd1bb43a24 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Fraction();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.FractionProto.internal_static_google_type_Fraction_descriptor;
}
@@ -345,39 +340,6 @@ private void buildPartial0(com.google.type.Fraction result) {
}
}
- @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.type.Fraction) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java
index 3424d0d429..4eee93a5bf 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java
@@ -24,6 +24,7 @@
*
* Represents a time interval, encoded as a Timestamp start (inclusive) and a
* Timestamp end (exclusive).
+ *
* The start must be less than or equal to the end.
* When the start equals the end, the interval is empty (matches no time).
* When both start and end are unspecified, the interval matches any time.
@@ -49,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Interval();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.IntervalProto.internal_static_google_type_Interval_descriptor;
}
@@ -73,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -90,6 +87,7 @@ public boolean hasStartTime() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -107,6 +105,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -125,6 +124,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -142,6 +142,7 @@ public boolean hasEndTime() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -159,6 +160,7 @@ public com.google.protobuf.Timestamp getEndTime() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -352,6 +354,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Represents a time interval, encoded as a Timestamp start (inclusive) and a
* Timestamp end (exclusive).
+ *
* The start must be less than or equal to the end.
* When the start equals the end, the interval is empty (matches no time).
* When both start and end are unspecified, the interval matches any time.
@@ -438,39 +441,6 @@ private void buildPartial0(com.google.type.Interval result) {
}
}
- @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.type.Interval) {
@@ -557,6 +527,7 @@ public Builder mergeFrom(
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -573,6 +544,7 @@ public boolean hasStartTime() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -593,6 +565,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -617,6 +590,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -638,6 +612,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -665,6 +640,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -686,6 +662,7 @@ public Builder clearStartTime() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -702,6 +679,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -720,6 +698,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -754,6 +733,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -770,6 +750,7 @@ public boolean hasEndTime() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -790,6 +771,7 @@ public com.google.protobuf.Timestamp getEndTime() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -814,6 +796,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -835,6 +818,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -862,6 +846,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -883,6 +868,7 @@ public Builder clearEndTime() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -899,6 +885,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -917,6 +904,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java
index 3267b41792..0efe6bf8b5 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java
@@ -28,6 +28,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -42,6 +43,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -56,6 +58,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Inclusive start of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be the same
* or after the start.
*
@@ -69,6 +72,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -83,6 +87,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
@@ -97,6 +102,7 @@ public interface IntervalOrBuilder
*
*
* Optional. Exclusive end of the interval.
+ *
* If specified, a Timestamp matching this interval will have to be before the
* end.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java
index 2af3af9f69..e4fe01ccbb 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LatLng();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.LatLngProto.internal_static_google_type_LatLng_descriptor;
}
@@ -360,39 +355,6 @@ private void buildPartial0(com.google.type.LatLng result) {
}
}
- @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.type.LatLng) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
index d9175895a3..362fa0d001 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LocalizedText();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.LocalizedTextProto.internal_static_google_type_LocalizedText_descriptor;
}
@@ -126,6 +121,7 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -151,6 +147,7 @@ public java.lang.String getLanguageCode() {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -421,39 +418,6 @@ private void buildPartial0(com.google.type.LocalizedText result) {
}
}
- @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.type.LocalizedText) {
@@ -645,6 +609,7 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -669,6 +634,7 @@ public java.lang.String getLanguageCode() {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -693,6 +659,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -716,6 +683,7 @@ public Builder setLanguageCode(java.lang.String value) {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -735,6 +703,7 @@ public Builder clearLanguageCode() {
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
index c103886996..ff8778cea4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java
@@ -53,6 +53,7 @@ public interface LocalizedTextOrBuilder
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
@@ -67,6 +68,7 @@ public interface LocalizedTextOrBuilder
*
*
* The text's BCP-47 language code, such as "en-US" or "sr-Latn".
+ *
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java
index bf2afe6d29..d1f445544b 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Money();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.MoneyProto.internal_static_google_type_Money_descriptor;
}
@@ -416,39 +411,6 @@ private void buildPartial0(com.google.type.Money result) {
}
}
- @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.type.Money) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
index b4d9d9b595..d2d0dfbcb2 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java
@@ -23,15 +23,21 @@
*
*
* An object representing a phone number, suitable as an API wire format.
+ *
* This representation:
+ *
* - should not be used for locale-specific formatting of a phone number, such
* as "+1 (650) 253-0000 ext. 123"
+ *
* - is not designed for efficient storage
* - may not be suitable for dialing - specialized libraries (see references)
* should be used to parse the number for that purpose
+ *
* To do something meaningful with this number, such as format it for various
* use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first.
+ *
* For instance, in Java this would be:
+ *
* com.google.type.PhoneNumber wireProto =
* com.google.type.PhoneNumber.newBuilder().build();
* com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
@@ -39,6 +45,7 @@
* if (!wireProto.getExtension().isEmpty()) {
* phoneNumber.setExtension(wireProto.getExtension());
* }
+ *
* Reference(s):
* - https://github.com/google/libphonenumber
*
@@ -65,11 +72,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PhoneNumber();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.PhoneNumberProto.internal_static_google_type_PhoneNumber_descriptor;
}
@@ -94,6 +96,7 @@ public interface ShortCodeOrBuilder
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -109,6 +112,7 @@ public interface ShortCodeOrBuilder
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -154,6 +158,7 @@ public interface ShortCodeOrBuilder
* typically much shorter than regular phone numbers and can be used to
* address messages in MMS and SMS systems, as well as for abbreviated dialing
* (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
+ *
* Short codes are restricted to a region and are not internationally
* dialable, which means the same short code can exist in different regions,
* with different usage and pricing, even if those regions share the same
@@ -183,11 +188,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ShortCode();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.PhoneNumberProto
.internal_static_google_type_PhoneNumber_ShortCode_descriptor;
@@ -213,6 +213,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -239,6 +240,7 @@ public java.lang.String getRegionCode() {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -489,6 +491,7 @@ protected Builder newBuilderForType(
* typically much shorter than regular phone numbers and can be used to
* address messages in MMS and SMS systems, as well as for abbreviated dialing
* (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
+ *
* Short codes are restricted to a region and are not internationally
* dialable, which means the same short code can exist in different regions,
* with different usage and pricing, even if those regions share the same
@@ -574,41 +577,6 @@ private void buildPartial0(com.google.type.PhoneNumber.ShortCode result) {
}
}
- @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.type.PhoneNumber.ShortCode) {
@@ -695,6 +663,7 @@ public Builder mergeFrom(
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -720,6 +689,7 @@ public java.lang.String getRegionCode() {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -745,6 +715,7 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -769,6 +740,7 @@ public Builder setRegionCode(java.lang.String value) {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -789,6 +761,7 @@ public Builder clearRegionCode() {
*
* Required. The BCP-47 region code of the location where calls to this
* short code can be made, such as "US" and "BB".
+ *
* Reference(s):
* - http://www.unicode.org/reports/tr35/#unicode_region_subtag
*
@@ -985,6 +958,8 @@ public com.google.type.PhoneNumber.ShortCode getDefaultInstanceForType() {
}
private int kindCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
@@ -1042,9 +1017,11 @@ public KindCase getKindCase() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1068,9 +1045,11 @@ public boolean hasE164Number() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1107,9 +1086,11 @@ public java.lang.String getE164Number() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1143,6 +1124,7 @@ public com.google.protobuf.ByteString getE164NumberBytes() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1160,6 +1142,7 @@ public boolean hasShortCode() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1180,6 +1163,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1206,6 +1190,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -1236,6 +1221,7 @@ public java.lang.String getExtension() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -1458,15 +1444,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* An object representing a phone number, suitable as an API wire format.
+ *
* This representation:
+ *
* - should not be used for locale-specific formatting of a phone number, such
* as "+1 (650) 253-0000 ext. 123"
+ *
* - is not designed for efficient storage
* - may not be suitable for dialing - specialized libraries (see references)
* should be used to parse the number for that purpose
+ *
* To do something meaningful with this number, such as format it for various
* use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first.
+ *
* For instance, in Java this would be:
+ *
* com.google.type.PhoneNumber wireProto =
* com.google.type.PhoneNumber.newBuilder().build();
* com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
@@ -1474,6 +1466,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* if (!wireProto.getExtension().isEmpty()) {
* phoneNumber.setExtension(wireProto.getExtension());
* }
+ *
* Reference(s):
* - https://github.com/google/libphonenumber
*
@@ -1562,39 +1555,6 @@ private void buildPartialOneofs(com.google.type.PhoneNumber result) {
}
}
- @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.type.PhoneNumber) {
@@ -1718,9 +1678,11 @@ public Builder clearKind() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1745,9 +1707,11 @@ public boolean hasE164Number() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1785,9 +1749,11 @@ public java.lang.String getE164Number() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1825,9 +1791,11 @@ public com.google.protobuf.ByteString getE164NumberBytes() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1858,9 +1826,11 @@ public Builder setE164Number(java.lang.String value) {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1889,9 +1859,11 @@ public Builder clearE164Number() {
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -1924,6 +1896,7 @@ public Builder setE164NumberBytes(com.google.protobuf.ByteString value) {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1941,6 +1914,7 @@ public boolean hasShortCode() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1968,6 +1942,7 @@ public com.google.type.PhoneNumber.ShortCode getShortCode() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -1992,6 +1967,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode value) {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2013,6 +1989,7 @@ public Builder setShortCode(com.google.type.PhoneNumber.ShortCode.Builder builde
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2046,6 +2023,7 @@ public Builder mergeShortCode(com.google.type.PhoneNumber.ShortCode value) {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2073,6 +2051,7 @@ public Builder clearShortCode() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2087,6 +2066,7 @@ public com.google.type.PhoneNumber.ShortCode.Builder getShortCodeBuilder() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2109,6 +2089,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() {
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -2146,6 +2127,7 @@ public com.google.type.PhoneNumber.ShortCodeOrBuilder getShortCodeOrBuilder() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -2175,6 +2157,7 @@ public java.lang.String getExtension() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -2204,6 +2187,7 @@ public com.google.protobuf.ByteString getExtensionBytes() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -2232,6 +2216,7 @@ public Builder setExtension(java.lang.String value) {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -2256,6 +2241,7 @@ public Builder clearExtension() {
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
index 00bd363c71..a29bc63aa0 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java
@@ -33,9 +33,11 @@ public interface PhoneNumberOrBuilder
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -57,9 +59,11 @@ public interface PhoneNumberOrBuilder
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -81,9 +85,11 @@ public interface PhoneNumberOrBuilder
* additional spaces or formatting, e.g.:
* - correct: "+15552220123"
* - incorrect: "+1 (555) 222-01234 x123".
+ *
* The ITU E.164 format limits the latter to 12 digits, but in practice not
* all countries respect that, so we relax that restriction here.
* National-only numbers are not allowed.
+ *
* References:
* - https://www.itu.int/rec/T-REC-E.164-201011-I
* - https://en.wikipedia.org/wiki/E.164.
@@ -101,6 +107,7 @@ public interface PhoneNumberOrBuilder
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -115,6 +122,7 @@ public interface PhoneNumberOrBuilder
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -129,6 +137,7 @@ public interface PhoneNumberOrBuilder
*
*
* A short code.
+ *
* Reference(s):
* - https://en.wikipedia.org/wiki/Short_code
*
@@ -145,6 +154,7 @@ public interface PhoneNumberOrBuilder
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -164,6 +174,7 @@ public interface PhoneNumberOrBuilder
* recommendations, except for being defined as a series of numbers with a
* maximum length of 40 digits. Other than digits, some other dialing
* characters such as ',' (indicating a wait) or '#' may be stored here.
+ *
* Note that no regions currently use extensions with short codes, so this
* field is normally only set in conjunction with an E.164 number. It is held
* separately from the E.164 number to allow for short code extensions in the
@@ -176,5 +187,5 @@ public interface PhoneNumberOrBuilder
*/
com.google.protobuf.ByteString getExtensionBytes();
- public com.google.type.PhoneNumber.KindCase getKindCase();
+ com.google.type.PhoneNumber.KindCase getKindCase();
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
index bd83a5b3ba..02cfa4c0a3 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java
@@ -27,13 +27,16 @@
* Box or similar.
* It is not intended to model geographical locations (roads, towns,
* mountains).
+ *
* In typical usage an address would be created via user input or from importing
* existing data, depending on the type of process.
+ *
* Advice on address input / editing:
* - Use an i18n-ready address widget such as
* https://github.com/google/libaddressinput)
* - Users should not be presented with UI elements for input or editing of
* fields outside countries where that field is used.
+ *
* For more guidance on how to use this schema, please see:
* https://support.google.com/business/answer/6397478
*
@@ -58,8 +61,8 @@ private PostalAddress() {
administrativeArea_ = "";
locality_ = "";
sublocality_ = "";
- addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ recipients_ = com.google.protobuf.LazyStringArrayList.emptyList();
organization_ = "";
}
@@ -69,11 +72,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PostalAddress();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.PostalAddressProto.internal_static_google_type_PostalAddress_descriptor;
}
@@ -95,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision.
+ *
* All new revisions **must** be backward compatible with old revisions.
*
*
@@ -181,8 +180,10 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -213,8 +214,10 @@ public java.lang.String getLanguageCode() {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -527,12 +530,14 @@ public com.google.protobuf.ByteString getSublocalityBytes() {
public static final int ADDRESS_LINES_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList addressLines_;
+ private com.google.protobuf.LazyStringArrayList addressLines_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -541,12 +546,14 @@ public com.google.protobuf.ByteString getSublocalityBytes() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -565,6 +572,7 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -573,12 +581,14 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -597,6 +607,7 @@ public int getAddressLinesCount() {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -605,12 +616,14 @@ public int getAddressLinesCount() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -630,6 +643,7 @@ public java.lang.String getAddressLines(int index) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -638,12 +652,14 @@ public java.lang.String getAddressLines(int index) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -662,7 +678,8 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
public static final int RECIPIENTS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList recipients_;
+ private com.google.protobuf.LazyStringArrayList recipients_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -1051,13 +1068,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Box or similar.
* It is not intended to model geographical locations (roads, towns,
* mountains).
+ *
* In typical usage an address would be created via user input or from importing
* existing data, depending on the type of process.
+ *
* Advice on address input / editing:
* - Use an i18n-ready address widget such as
* https://github.com/google/libaddressinput)
* - Users should not be presented with UI elements for input or editing of
* fields outside countries where that field is used.
+ *
* For more guidance on how to use this schema, please see:
* https://support.google.com/business/answer/6397478
*
@@ -1101,10 +1121,8 @@ public Builder clear() {
administrativeArea_ = "";
locality_ = "";
sublocality_ = "";
- addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000100);
- recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000200);
+ addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ recipients_ = com.google.protobuf.LazyStringArrayList.emptyList();
organization_ = "";
return this;
}
@@ -1132,7 +1150,6 @@ public com.google.type.PostalAddress build() {
@java.lang.Override
public com.google.type.PostalAddress buildPartial() {
com.google.type.PostalAddress result = new com.google.type.PostalAddress(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -1140,19 +1157,6 @@ public com.google.type.PostalAddress buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.type.PostalAddress result) {
- if (((bitField0_ & 0x00000100) != 0)) {
- addressLines_ = addressLines_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000100);
- }
- result.addressLines_ = addressLines_;
- if (((bitField0_ & 0x00000200) != 0)) {
- recipients_ = recipients_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000200);
- }
- result.recipients_ = recipients_;
- }
-
private void buildPartial0(com.google.type.PostalAddress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -1179,44 +1183,19 @@ private void buildPartial0(com.google.type.PostalAddress result) {
if (((from_bitField0_ & 0x00000080) != 0)) {
result.sublocality_ = sublocality_;
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ addressLines_.makeImmutable();
+ result.addressLines_ = addressLines_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ recipients_.makeImmutable();
+ result.recipients_ = recipients_;
+ }
if (((from_bitField0_ & 0x00000400) != 0)) {
result.organization_ = organization_;
}
}
- @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.type.PostalAddress) {
@@ -1270,7 +1249,7 @@ public Builder mergeFrom(com.google.type.PostalAddress other) {
if (!other.addressLines_.isEmpty()) {
if (addressLines_.isEmpty()) {
addressLines_ = other.addressLines_;
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ |= 0x00000100;
} else {
ensureAddressLinesIsMutable();
addressLines_.addAll(other.addressLines_);
@@ -1280,7 +1259,7 @@ public Builder mergeFrom(com.google.type.PostalAddress other) {
if (!other.recipients_.isEmpty()) {
if (recipients_.isEmpty()) {
recipients_ = other.recipients_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ |= 0x00000200;
} else {
ensureRecipientsIsMutable();
recipients_.addAll(other.recipients_);
@@ -1412,6 +1391,7 @@ public Builder mergeFrom(
*
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision.
+ *
* All new revisions **must** be backward compatible with old revisions.
*
*
@@ -1429,6 +1409,7 @@ public int getRevision() {
*
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision.
+ *
* All new revisions **must** be backward compatible with old revisions.
*
*
@@ -1450,6 +1431,7 @@ public Builder setRevision(int value) {
*
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision.
+ *
* All new revisions **must** be backward compatible with old revisions.
*
*
@@ -1602,8 +1584,10 @@ public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -1633,8 +1617,10 @@ public java.lang.String getLanguageCode() {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -1664,8 +1650,10 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -1694,8 +1682,10 @@ public Builder setLanguageCode(java.lang.String value) {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -1720,8 +1710,10 @@ public Builder clearLanguageCode() {
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -2356,20 +2348,21 @@ public Builder setSublocalityBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList addressLines_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList addressLines_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAddressLinesIsMutable() {
- if (!((bitField0_ & 0x00000100) != 0)) {
+ if (!addressLines_.isModifiable()) {
addressLines_ = new com.google.protobuf.LazyStringArrayList(addressLines_);
- bitField0_ |= 0x00000100;
}
+ bitField0_ |= 0x00000100;
}
/**
*
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2378,12 +2371,14 @@ private void ensureAddressLinesIsMutable() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2395,13 +2390,15 @@ private void ensureAddressLinesIsMutable() {
* @return A list containing the addressLines.
*/
public com.google.protobuf.ProtocolStringList getAddressLinesList() {
- return addressLines_.getUnmodifiableView();
+ addressLines_.makeImmutable();
+ return addressLines_;
}
/**
*
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2410,12 +2407,14 @@ public com.google.protobuf.ProtocolStringList getAddressLinesList() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2434,6 +2433,7 @@ public int getAddressLinesCount() {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2442,12 +2442,14 @@ public int getAddressLinesCount() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2467,6 +2469,7 @@ public java.lang.String getAddressLines(int index) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2475,12 +2478,14 @@ public java.lang.String getAddressLines(int index) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2500,6 +2505,7 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2508,12 +2514,14 @@ public com.google.protobuf.ByteString getAddressLinesBytes(int index) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2532,6 +2540,7 @@ public Builder setAddressLines(int index, java.lang.String value) {
}
ensureAddressLinesIsMutable();
addressLines_.set(index, value);
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2540,6 +2549,7 @@ public Builder setAddressLines(int index, java.lang.String value) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2548,12 +2558,14 @@ public Builder setAddressLines(int index, java.lang.String value) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2571,6 +2583,7 @@ public Builder addAddressLines(java.lang.String value) {
}
ensureAddressLinesIsMutable();
addressLines_.add(value);
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2579,6 +2592,7 @@ public Builder addAddressLines(java.lang.String value) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2587,12 +2601,14 @@ public Builder addAddressLines(java.lang.String value) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2607,6 +2623,7 @@ public Builder addAddressLines(java.lang.String value) {
public Builder addAllAddressLines(java.lang.Iterable values) {
ensureAddressLinesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressLines_);
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2615,6 +2632,7 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2623,12 +2641,14 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2640,8 +2660,9 @@ public Builder addAllAddressLines(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearAddressLines() {
- addressLines_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ addressLines_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
+ ;
onChanged();
return this;
}
@@ -2650,6 +2671,7 @@ public Builder clearAddressLines() {
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -2658,12 +2680,14 @@ public Builder clearAddressLines() {
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -2682,18 +2706,19 @@ public Builder addAddressLinesBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAddressLinesIsMutable();
addressLines_.add(value);
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList recipients_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList recipients_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRecipientsIsMutable() {
- if (!((bitField0_ & 0x00000200) != 0)) {
+ if (!recipients_.isModifiable()) {
recipients_ = new com.google.protobuf.LazyStringArrayList(recipients_);
- bitField0_ |= 0x00000200;
}
+ bitField0_ |= 0x00000200;
}
/**
*
@@ -2709,7 +2734,8 @@ private void ensureRecipientsIsMutable() {
* @return A list containing the recipients.
*/
public com.google.protobuf.ProtocolStringList getRecipientsList() {
- return recipients_.getUnmodifiableView();
+ recipients_.makeImmutable();
+ return recipients_;
}
/**
*
@@ -2782,6 +2808,7 @@ public Builder setRecipients(int index, java.lang.String value) {
}
ensureRecipientsIsMutable();
recipients_.set(index, value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2805,6 +2832,7 @@ public Builder addRecipients(java.lang.String value) {
}
ensureRecipientsIsMutable();
recipients_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2825,6 +2853,7 @@ public Builder addRecipients(java.lang.String value) {
public Builder addAllRecipients(java.lang.Iterable values) {
ensureRecipientsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recipients_);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2842,8 +2871,9 @@ public Builder addAllRecipients(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearRecipients() {
- recipients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ recipients_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
+ ;
onChanged();
return this;
}
@@ -2868,6 +2898,7 @@ public Builder addRecipientsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureRecipientsIsMutable();
recipients_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
index a760feb104..e4822d0d4f 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java
@@ -29,6 +29,7 @@ public interface PostalAddressOrBuilder
*
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision.
+ *
* All new revisions **must** be backward compatible with old revisions.
*
*
@@ -82,8 +83,10 @@ public interface PostalAddressOrBuilder
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -103,8 +106,10 @@ public interface PostalAddressOrBuilder
* This can affect formatting in certain countries, but is not critical
* to the correctness of the data and will never affect any validation or
* other non-formatting related operations.
+ *
* If this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default).
+ *
* Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
*
@@ -278,6 +283,7 @@ public interface PostalAddressOrBuilder
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -286,12 +292,14 @@ public interface PostalAddressOrBuilder
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -308,6 +316,7 @@ public interface PostalAddressOrBuilder
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -316,12 +325,14 @@ public interface PostalAddressOrBuilder
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -338,6 +349,7 @@ public interface PostalAddressOrBuilder
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -346,12 +358,14 @@ public interface PostalAddressOrBuilder
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
@@ -369,6 +383,7 @@ public interface PostalAddressOrBuilder
*
*
* Unstructured address lines describing the lower levels of an address.
+ *
* Because values in address_lines do not have type information and may
* sometimes contain multiple values in a single field (e.g.
* "Austin, TX"), it is important that the line order is clear. The order of
@@ -377,12 +392,14 @@ public interface PostalAddressOrBuilder
* used to make it explicit (e.g. "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). This way, the most specific line of
* an address can be selected based on the language.
+ *
* The minimum permitted structural representation of an address consists
* of a region_code with all remaining information placed in the
* address_lines. It would be possible to format such an address very
* approximately without geocoding, but no semantic reasoning could be
* made about any of the address components until it was at least
* partially resolved.
+ *
* Creating an address only containing a region_code and address_lines, and
* then geocoding is the recommended way to handle completely unstructured
* addresses (as opposed to guessing which parts of the address should be
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
index 95157b0a23..b607d114ba 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java
@@ -25,41 +25,53 @@
* A quaternion is defined as the quotient of two directed lines in a
* three-dimensional space or equivalently as the quotient of two Euclidean
* vectors (https://en.wikipedia.org/wiki/Quaternion).
+ *
* Quaternions are often used in calculations involving three-dimensional
* rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
* as they provide greater mathematical robustness by avoiding the gimbal lock
* problems that can be encountered when using Euler angles
* (https://en.wikipedia.org/wiki/Gimbal_lock).
+ *
* Quaternions are generally represented in this form:
+ *
* w + xi + yj + zk
+ *
* where x, y, z, and w are real numbers, and i, j, and k are three imaginary
* numbers.
+ *
* Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
* those interested in the geometric properties of the quaternion in the 3D
* Cartesian space. Other texts often use alternative names or subscripts, such
* as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
* better suited for mathematical interpretations.
+ *
* To avoid any confusion, as well as to maintain compatibility with a large
* number of software libraries, the quaternions represented using the protocol
* buffer below *must* follow the Hamilton convention, which defines `ij = k`
* (i.e. a right-handed algebra), and therefore:
+ *
* i^2 = j^2 = k^2 = ijk = −1
* ij = −ji = k
* jk = −kj = i
* ki = −ik = j
+ *
* Please DO NOT use this to represent quaternions that follow the JPL
* convention, or any of the other quaternion flavors out there.
+ *
* Definitions:
+ *
* - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
* - Unit (or normalized) quaternion: a quaternion whose norm is 1.
* - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
* - Rotation quaternion: a unit quaternion used to represent rotation.
* - Orientation quaternion: a unit quaternion used to represent orientation.
+ *
* A quaternion can be normalized by dividing it by its norm. The resulting
* quaternion maintains the same direction, but has a norm of 1, i.e. it moves
* on the unit sphere. This is generally necessary for rotation and orientation
* quaternions, to avoid rounding errors:
* https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
+ *
* Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
* but normalization would be even more useful, e.g. for comparison purposes, if
* it would produce a unique representation. It is thus recommended that `w` be
@@ -87,11 +99,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Quaternion();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.QuaternionProto.internal_static_google_type_Quaternion_descriptor;
}
@@ -379,41 +386,53 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* A quaternion is defined as the quotient of two directed lines in a
* three-dimensional space or equivalently as the quotient of two Euclidean
* vectors (https://en.wikipedia.org/wiki/Quaternion).
+ *
* Quaternions are often used in calculations involving three-dimensional
* rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
* as they provide greater mathematical robustness by avoiding the gimbal lock
* problems that can be encountered when using Euler angles
* (https://en.wikipedia.org/wiki/Gimbal_lock).
+ *
* Quaternions are generally represented in this form:
+ *
* w + xi + yj + zk
+ *
* where x, y, z, and w are real numbers, and i, j, and k are three imaginary
* numbers.
+ *
* Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
* those interested in the geometric properties of the quaternion in the 3D
* Cartesian space. Other texts often use alternative names or subscripts, such
* as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
* better suited for mathematical interpretations.
+ *
* To avoid any confusion, as well as to maintain compatibility with a large
* number of software libraries, the quaternions represented using the protocol
* buffer below *must* follow the Hamilton convention, which defines `ij = k`
* (i.e. a right-handed algebra), and therefore:
+ *
* i^2 = j^2 = k^2 = ijk = −1
* ij = −ji = k
* jk = −kj = i
* ki = −ik = j
+ *
* Please DO NOT use this to represent quaternions that follow the JPL
* convention, or any of the other quaternion flavors out there.
+ *
* Definitions:
+ *
* - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
* - Unit (or normalized) quaternion: a quaternion whose norm is 1.
* - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
* - Rotation quaternion: a unit quaternion used to represent rotation.
* - Orientation quaternion: a unit quaternion used to represent orientation.
+ *
* A quaternion can be normalized by dividing it by its norm. The resulting
* quaternion maintains the same direction, but has a norm of 1, i.e. it moves
* on the unit sphere. This is generally necessary for rotation and orientation
* quaternions, to avoid rounding errors:
* https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
+ *
* Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
* but normalization would be even more useful, e.g. for comparison purposes, if
* it would produce a unique representation. It is thus recommended that `w` be
@@ -503,39 +522,6 @@ private void buildPartial0(com.google.type.Quaternion result) {
}
}
- @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.type.Quaternion) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
index 0a0e46f926..cddb42c5b9 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TimeOfDay();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
}
@@ -414,39 +409,6 @@ private void buildPartial0(com.google.type.TimeOfDay result) {
}
}
- @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.type.TimeOfDay) {
diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
index 372d9e7039..65b04f06c4 100644
--- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
+++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TimeZone();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.type.DateTimeProto.internal_static_google_type_TimeZone_descriptor;
}
@@ -415,39 +410,6 @@ private void buildPartial0(com.google.type.TimeZone result) {
}
}
- @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.type.TimeZone) {
diff --git a/java-core/.repo-metadata.json b/java-core/.repo-metadata.json
index 237bfe51ea..4f33b73b97 100644
--- a/java-core/.repo-metadata.json
+++ b/java-core/.repo-metadata.json
@@ -1,6 +1,6 @@
{
"api_shortname": "google-cloud-core",
- "client_documentation": "https://github.com/googleapis/gapic-generator-java/tree/main/java-core",
+ "client_documentation": "https://github.com/googleapis/sdk-platform-java/tree/main/java-core",
"name_pretty": "Google Cloud Core",
"release_level": "stable",
"language": "java",
diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml
index 5801446501..71410d6f0b 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.17.0
+ 2.18.0
pom
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../../gapic-generator-java-pom-parent
@@ -23,17 +23,17 @@
com.google.cloud
google-cloud-core
- 2.17.0
+ 2.18.0
com.google.cloud
google-cloud-core-grpc
- 2.17.0
+ 2.18.0
com.google.cloud
google-cloud-core-http
- 2.17.0
+ 2.18.0
diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml
index 180cee56e7..d92037201f 100644
--- a/java-core/google-cloud-core-grpc/pom.xml
+++ b/java-core/google-cloud-core-grpc/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core-grpc
- 2.17.0
+ 2.18.0
jar
Google Cloud Core gRPC
@@ -12,7 +12,7 @@
com.google.cloud
google-cloud-core-parent
- 2.17.0
+ 2.18.0
google-cloud-core-grpc
diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml
index ee6815a18c..8d159a928e 100644
--- a/java-core/google-cloud-core-http/pom.xml
+++ b/java-core/google-cloud-core-http/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core-http
- 2.17.0
+ 2.18.0
jar
Google Cloud Core HTTP
@@ -12,7 +12,7 @@
com.google.cloud
google-cloud-core-parent
- 2.17.0
+ 2.18.0
google-cloud-core-http
diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml
index 7e60d2067e..fef9194dfe 100644
--- a/java-core/google-cloud-core/pom.xml
+++ b/java-core/google-cloud-core/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core
- 2.17.0
+ 2.18.0
jar
Google Cloud Core
@@ -12,7 +12,7 @@
com.google.cloud
google-cloud-core-parent
- 2.17.0
+ 2.18.0
google-cloud-core
diff --git a/java-core/pom.xml b/java-core/pom.xml
index b2f02c08a8..0f34d37dee 100644
--- a/java-core/pom.xml
+++ b/java-core/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-core-parent
pom
- 2.17.0
+ 2.18.0
Google Cloud Core Parent
Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../gapic-generator-java-pom-parent
@@ -33,7 +33,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.9.0
+ 3.10.0
pom
import
diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml
index b24589fcb8..e93b138817 100644
--- a/java-iam/grpc-google-iam-v1/pom.xml
+++ b/java-iam/grpc-google-iam-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-iam-v1
- 1.13.0
+ 1.14.0
grpc-google-iam-v1
GRPC library for grpc-google-iam-v1
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml
index 2c6d769b44..c1c7bc00c7 100644
--- a/java-iam/grpc-google-iam-v2/pom.xml
+++ b/java-iam/grpc-google-iam-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-iam-v2
- 1.13.0
+ 1.14.0
grpc-google-iam-v2
GRPC library for proto-google-iam-v2
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml
index 7c8e1df198..0feb47a809 100644
--- a/java-iam/grpc-google-iam-v2beta/pom.xml
+++ b/java-iam/grpc-google-iam-v2beta/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-iam-v2beta
- 1.13.0
+ 1.14.0
grpc-google-iam-v2beta
GRPC library for proto-google-iam-v1
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/pom.xml b/java-iam/pom.xml
index 0290dfb610..c05b801c64 100644
--- a/java-iam/pom.xml
+++ b/java-iam/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-iam-parent
pom
- 1.13.0
+ 1.14.0
Google IAM Parent
Java idiomatic client for Google Cloud Platform services.
@@ -13,7 +13,7 @@
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../gapic-generator-java-pom-parent
@@ -81,44 +81,44 @@
com.google.api
gax-bom
- 2.27.0
+ 2.28.0
pom
import
com.google.api.grpc
proto-google-iam-v2
- 1.13.0
+ 1.14.0
com.google.api.grpc
grpc-google-iam-v2
- 1.13.0
+ 1.14.0
com.google.api.grpc
proto-google-common-protos
- 2.18.0
+ 2.19.0
com.google.api.grpc
proto-google-iam-v2beta
- 1.13.0
+ 1.14.0
com.google.api.grpc
grpc-google-iam-v1
- 1.13.0
+ 1.14.0
com.google.api.grpc
grpc-google-iam-v2beta
- 1.13.0
+ 1.14.0
com.google.api.grpc
proto-google-iam-v1
- 1.13.0
+ 1.14.0
javax.annotation
diff --git a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
index ca6f8c1981..f551ecf78f 100644
--- a/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v1/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
+
+ 7002
+ com/google/iam/v1/*Builder
+ * addRepeatedField(*)
+
+
+ 7002
+ com/google/iam/v1/*Builder
+ * clearField(*)
+
+
+ 7002
+ com/google/iam/v1/*Builder
+ * clearOneof(*)
+
+
+ 7002
+ com/google/iam/v1/*Builder
+ * clone()
+
+
+ 7002
+ com/google/iam/v1/*Builder
+ * setField(*)
+
+
+ 7002
+ com/google/iam/v1/*Builder
+ * setRepeatedField(*)
+
7012
com/google/iam/v1/*OrBuilder
diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml
index cc2db4fbe4..e5e7b3eff5 100644
--- a/java-iam/proto-google-iam-v1/pom.xml
+++ b/java-iam/proto-google-iam-v1/pom.xml
@@ -3,13 +3,13 @@
4.0.0
com.google.api.grpc
proto-google-iam-v1
- 1.13.0
+ 1.14.0
proto-google-iam-v1
PROTO library for proto-google-iam-v1
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
index 5414ae4c2c..3607c266a6 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java
@@ -26,11 +26,14 @@
* The configuration determines which permission types are logged, and what
* identities, if any, are exempted from logging.
* An AuditConfig must have one or more AuditLogConfigs.
+ *
* If there are AuditConfigs for both `allServices` and a specific service,
* the union of the two AuditConfigs is used for that service: the log_types
* specified in each AuditConfig are enabled, and the exempted_members in each
* AuditLogConfig are exempted.
+ *
* Example Policy with multiple AuditConfigs:
+ *
* {
* "audit_configs": [
* {
@@ -66,6 +69,7 @@
* }
* ]
* }
+ *
* For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
* logging. It also exempts jose@example.com from DATA_READ logging, and
* aliya@example.com from DATA_WRITE logging.
@@ -94,11 +98,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditConfig();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfig_descriptor;
}
@@ -414,11 +413,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* The configuration determines which permission types are logged, and what
* identities, if any, are exempted from logging.
* An AuditConfig must have one or more AuditLogConfigs.
+ *
* If there are AuditConfigs for both `allServices` and a specific service,
* the union of the two AuditConfigs is used for that service: the log_types
* specified in each AuditConfig are enabled, and the exempted_members in each
* AuditLogConfig are exempted.
+ *
* Example Policy with multiple AuditConfigs:
+ *
* {
* "audit_configs": [
* {
@@ -454,6 +456,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* }
* ]
* }
+ *
* For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
* logging. It also exempts jose@example.com from DATA_READ logging, and
* aliya@example.com from DATA_WRITE logging.
@@ -549,39 +552,6 @@ private void buildPartial0(com.google.iam.v1.AuditConfig result) {
}
}
- @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.AuditConfig) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java
index 9fc1f68b1d..b56b2552e6 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java
@@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditConfigDelta();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditConfigDelta_descriptor;
}
@@ -708,39 +703,6 @@ private void buildPartial0(com.google.iam.v1.AuditConfigDelta result) {
}
}
- @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.AuditConfigDelta) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java
index dbdb7e2c76..05f9e30d65 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java
@@ -24,6 +24,7 @@
*
* Provides the configuration for logging a type of permissions.
* Example:
+ *
* {
* "audit_log_configs": [
* {
@@ -37,6 +38,7 @@
* }
* ]
* }
+ *
* This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
* jose@example.com from DATA_READ logging.
*
@@ -55,7 +57,7 @@ private AuditLogConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder
private AuditLogConfig() {
logType_ = 0;
- exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -64,11 +66,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditLogConfig();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_AuditLogConfig_descriptor;
}
@@ -300,7 +297,8 @@ public com.google.iam.v1.AuditLogConfig.LogType getLogType() {
public static final int EXEMPTED_MEMBERS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList exemptedMembers_;
+ private com.google.protobuf.LazyStringArrayList exemptedMembers_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -551,6 +549,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Provides the configuration for logging a type of permissions.
* Example:
+ *
* {
* "audit_log_configs": [
* {
@@ -564,6 +563,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* }
* ]
* }
+ *
* This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
* jose@example.com from DATA_READ logging.
*
@@ -600,8 +600,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
logType_ = 0;
- exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -627,7 +626,6 @@ public com.google.iam.v1.AuditLogConfig build() {
@java.lang.Override
public com.google.iam.v1.AuditLogConfig buildPartial() {
com.google.iam.v1.AuditLogConfig result = new com.google.iam.v1.AuditLogConfig(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -635,52 +633,15 @@ public com.google.iam.v1.AuditLogConfig buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v1.AuditLogConfig result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- exemptedMembers_ = exemptedMembers_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.exemptedMembers_ = exemptedMembers_;
- }
-
private void buildPartial0(com.google.iam.v1.AuditLogConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.logType_ = logType_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ exemptedMembers_.makeImmutable();
+ result.exemptedMembers_ = exemptedMembers_;
+ }
}
@java.lang.Override
@@ -701,7 +662,7 @@ public Builder mergeFrom(com.google.iam.v1.AuditLogConfig other) {
if (!other.exemptedMembers_.isEmpty()) {
if (exemptedMembers_.isEmpty()) {
exemptedMembers_ = other.exemptedMembers_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureExemptedMembersIsMutable();
exemptedMembers_.addAll(other.exemptedMembers_);
@@ -856,14 +817,14 @@ public Builder clearLogType() {
return this;
}
- private com.google.protobuf.LazyStringList exemptedMembers_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList exemptedMembers_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExemptedMembersIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!exemptedMembers_.isModifiable()) {
exemptedMembers_ = new com.google.protobuf.LazyStringArrayList(exemptedMembers_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -880,7 +841,8 @@ private void ensureExemptedMembersIsMutable() {
* @return A list containing the exemptedMembers.
*/
public com.google.protobuf.ProtocolStringList getExemptedMembersList() {
- return exemptedMembers_.getUnmodifiableView();
+ exemptedMembers_.makeImmutable();
+ return exemptedMembers_;
}
/**
*
@@ -957,6 +919,7 @@ public Builder setExemptedMembers(int index, java.lang.String value) {
}
ensureExemptedMembersIsMutable();
exemptedMembers_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -981,6 +944,7 @@ public Builder addExemptedMembers(java.lang.String value) {
}
ensureExemptedMembersIsMutable();
exemptedMembers_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1002,6 +966,7 @@ public Builder addExemptedMembers(java.lang.String value) {
public Builder addAllExemptedMembers(java.lang.Iterable values) {
ensureExemptedMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptedMembers_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1020,8 +985,9 @@ public Builder addAllExemptedMembers(java.lang.Iterable values
* @return This builder for chaining.
*/
public Builder clearExemptedMembers() {
- exemptedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exemptedMembers_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1047,6 +1013,7 @@ public Builder addExemptedMembersBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureExemptedMembersIsMutable();
exemptedMembers_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java
index b24aa460af..3784bda197 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java
@@ -39,7 +39,7 @@ private Binding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Binding() {
role_ = "";
- members_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ members_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Binding();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Binding_descriptor;
}
@@ -121,28 +116,37 @@ public com.google.protobuf.ByteString getRoleBytes() {
public static final int MEMBERS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList members_;
+ private com.google.protobuf.LazyStringArrayList members_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -150,11 +154,14 @@ public com.google.protobuf.ByteString getRoleBytes() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -172,21 +179,29 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -194,11 +209,14 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -216,21 +234,29 @@ public int getMembersCount() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -238,11 +264,14 @@ public int getMembersCount() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -261,21 +290,29 @@ public java.lang.String getMembers(int index) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -283,11 +320,14 @@ public java.lang.String getMembers(int index) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -308,11 +348,14 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -331,11 +374,14 @@ public boolean hasCondition() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -354,11 +400,14 @@ public com.google.type.Expr getCondition() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -595,8 +644,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
role_ = "";
- members_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ members_ = com.google.protobuf.LazyStringArrayList.emptyList();
condition_ = null;
if (conditionBuilder_ != null) {
conditionBuilder_.dispose();
@@ -627,7 +675,6 @@ public com.google.iam.v1.Binding build() {
@java.lang.Override
public com.google.iam.v1.Binding buildPartial() {
com.google.iam.v1.Binding result = new com.google.iam.v1.Binding(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -635,57 +682,20 @@ public com.google.iam.v1.Binding buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v1.Binding result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- members_ = members_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.members_ = members_;
- }
-
private void buildPartial0(com.google.iam.v1.Binding result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.role_ = role_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ members_.makeImmutable();
+ result.members_ = members_;
+ }
if (((from_bitField0_ & 0x00000004) != 0)) {
result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
}
}
- @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.Binding) {
@@ -706,7 +716,7 @@ public Builder mergeFrom(com.google.iam.v1.Binding other) {
if (!other.members_.isEmpty()) {
if (members_.isEmpty()) {
members_ = other.members_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureMembersIsMutable();
members_.addAll(other.members_);
@@ -891,14 +901,14 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList members_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList members_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMembersIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!members_.isModifiable()) {
members_ = new com.google.protobuf.LazyStringArrayList(members_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -906,21 +916,29 @@ private void ensureMembersIsMutable() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -928,11 +946,14 @@ private void ensureMembersIsMutable() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -942,7 +963,8 @@ private void ensureMembersIsMutable() {
* @return A list containing the members.
*/
public com.google.protobuf.ProtocolStringList getMembersList() {
- return members_.getUnmodifiableView();
+ members_.makeImmutable();
+ return members_;
}
/**
*
@@ -950,21 +972,29 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -972,11 +1002,14 @@ public com.google.protobuf.ProtocolStringList getMembersList() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -994,21 +1027,29 @@ public int getMembersCount() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1016,11 +1057,14 @@ public int getMembersCount() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1039,21 +1083,29 @@ public java.lang.String getMembers(int index) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1061,11 +1113,14 @@ public java.lang.String getMembers(int index) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1084,21 +1139,29 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1106,11 +1169,14 @@ public com.google.protobuf.ByteString getMembersBytes(int index) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1127,6 +1193,7 @@ public Builder setMembers(int index, java.lang.String value) {
}
ensureMembersIsMutable();
members_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1136,21 +1203,29 @@ public Builder setMembers(int index, java.lang.String value) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1158,11 +1233,14 @@ public Builder setMembers(int index, java.lang.String value) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1178,6 +1256,7 @@ public Builder addMembers(java.lang.String value) {
}
ensureMembersIsMutable();
members_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1187,21 +1266,29 @@ public Builder addMembers(java.lang.String value) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1209,11 +1296,14 @@ public Builder addMembers(java.lang.String value) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1226,6 +1316,7 @@ public Builder addMembers(java.lang.String value) {
public Builder addAllMembers(java.lang.Iterable values) {
ensureMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1235,21 +1326,29 @@ public Builder addAllMembers(java.lang.Iterable values) {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1257,11 +1356,14 @@ public Builder addAllMembers(java.lang.Iterable values) {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1271,8 +1373,9 @@ public Builder addAllMembers(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearMembers() {
- members_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ members_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1282,21 +1385,29 @@ public Builder clearMembers() {
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -1304,11 +1415,14 @@ public Builder clearMembers() {
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -1325,6 +1439,7 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMembersIsMutable();
members_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1338,11 +1453,14 @@ public Builder addMembersBytes(com.google.protobuf.ByteString value) {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1360,11 +1478,14 @@ public boolean hasCondition() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1386,11 +1507,14 @@ public com.google.type.Expr getCondition() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1416,11 +1540,14 @@ public Builder setCondition(com.google.type.Expr value) {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1443,11 +1570,14 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1476,11 +1606,14 @@ public Builder mergeCondition(com.google.type.Expr value) {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1503,11 +1636,14 @@ public Builder clearCondition() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1525,11 +1661,14 @@ public com.google.type.Expr.Builder getConditionBuilder() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1549,11 +1688,14 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
index 340980bdfc..49334ca531 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BindingDelta();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_BindingDelta_descriptor;
}
@@ -701,39 +696,6 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) {
}
}
- @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.BindingDelta) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
index b5e660fa3a..db97e10030 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java
@@ -56,21 +56,29 @@ public interface BindingOrBuilder
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -78,11 +86,14 @@ public interface BindingOrBuilder
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -98,21 +109,29 @@ public interface BindingOrBuilder
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -120,11 +139,14 @@ public interface BindingOrBuilder
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -140,21 +162,29 @@ public interface BindingOrBuilder
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -162,11 +192,14 @@ public interface BindingOrBuilder
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -183,21 +216,29 @@ public interface BindingOrBuilder
*
* Specifies the principals requesting access for a Cloud Platform resource.
* `members` can have the following values:
+ *
* * `allUsers`: A special identifier that represents anyone who is
* on the internet; with or without a Google account.
+ *
* * `allAuthenticatedUsers`: A special identifier that represents anyone
* who is authenticated with a Google account or a service account.
+ *
* * `user:{emailid}`: An email address that represents a specific Google
* account. For example, `alice@example.com` .
+ *
+ *
* * `serviceAccount:{emailid}`: An email address that represents a service
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ *
* * `group:{emailid}`: An email address that represents a Google group.
* For example, `admins@example.com`.
+ *
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding.
+ *
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example,
@@ -205,11 +246,14 @@ public interface BindingOrBuilder
* If the service account is undeleted, this value reverts to
* `serviceAccount:{emailid}` and the undeleted service account retains the
* role in the binding.
+ *
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
* the group is recovered, this value reverts to `group:{emailid}` and the
* recovered group retains the role in the binding.
+ *
+ *
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
* users of that domain. For example, `google.com` or `example.com`.
*
@@ -226,11 +270,14 @@ public interface BindingOrBuilder
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -246,11 +293,14 @@ public interface BindingOrBuilder
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -266,11 +316,14 @@ public interface BindingOrBuilder
*
*
* The condition that is associated with this binding.
+ *
* If the condition evaluates to `true`, then this binding applies to the
* current request.
+ *
* If the condition evaluates to `false`, then this binding does not apply to
* the current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
index 532f56549c..7a3fb09423 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetIamPolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.IamPolicyProto
.internal_static_google_iam_v1_GetIamPolicyRequest_descriptor;
@@ -433,39 +428,6 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) {
}
}
- @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.GetIamPolicyRequest) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
index 9484d8801c..b4e03b62c7 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetPolicyOptions();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.OptionsProto.internal_static_google_iam_v1_GetPolicyOptions_descriptor;
}
@@ -72,15 +67,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Optional. The maximum policy version that will be used to format the
* policy.
+ *
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
* rejected.
+ *
* Requests for policies with any conditional role bindings must specify
* version 3. Policies with no conditional role bindings may specify any valid
* value or leave the field unset.
+ *
* The policy in the response might use the policy version that you specified,
* or it might use a lower policy version. For example, if you specify version
* 3, but the policy has no conditional role bindings, the response uses
* version 1.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -332,39 +331,6 @@ private void buildPartial0(com.google.iam.v1.GetPolicyOptions result) {
}
}
- @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.GetPolicyOptions) {
@@ -438,15 +404,19 @@ public Builder mergeFrom(
*
* Optional. The maximum policy version that will be used to format the
* policy.
+ *
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
* rejected.
+ *
* Requests for policies with any conditional role bindings must specify
* version 3. Policies with no conditional role bindings may specify any valid
* value or leave the field unset.
+ *
* The policy in the response might use the policy version that you specified,
* or it might use a lower policy version. For example, if you specify version
* 3, but the policy has no conditional role bindings, the response uses
* version 1.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -466,15 +436,19 @@ public int getRequestedPolicyVersion() {
*
* Optional. The maximum policy version that will be used to format the
* policy.
+ *
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
* rejected.
+ *
* Requests for policies with any conditional role bindings must specify
* version 3. Policies with no conditional role bindings may specify any valid
* value or leave the field unset.
+ *
* The policy in the response might use the policy version that you specified,
* or it might use a lower policy version. For example, if you specify version
* 3, but the policy has no conditional role bindings, the response uses
* version 1.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -498,15 +472,19 @@ public Builder setRequestedPolicyVersion(int value) {
*
* Optional. The maximum policy version that will be used to format the
* policy.
+ *
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
* rejected.
+ *
* Requests for policies with any conditional role bindings must specify
* version 3. Policies with no conditional role bindings may specify any valid
* value or leave the field unset.
+ *
* The policy in the response might use the policy version that you specified,
* or it might use a lower policy version. For example, if you specify version
* 3, but the policy has no conditional role bindings, the response uses
* version 1.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
index 1cd51a9971..e93425ad57 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java
@@ -29,15 +29,19 @@ public interface GetPolicyOptionsOrBuilder
*
* Optional. The maximum policy version that will be used to format the
* policy.
+ *
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
* rejected.
+ *
* Requests for policies with any conditional role bindings must specify
* version 3. Policies with no conditional role bindings may specify any valid
* value or leave the field unset.
+ *
* The policy in the response might use the policy version that you specified,
* or it might use a lower policy version. For example, if you specify version
* 3, but the policy has no conditional role bindings, the response uses
* version 1.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
index e1a3a44398..a61d0e275d 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java
@@ -58,31 +58,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_behavior.proto\032\031google/api/resource.pro"
+ "to\032\033google/iam/v1/options.proto\032\032google/"
+ "iam/v1/policy.proto\032 google/protobuf/fie"
- + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n"
- + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001"
- + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update"
- + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\""
- + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t"
- + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia"
- + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi"
- + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022"
- + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm"
- + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n"
- + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam."
- + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P"
- + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP"
- + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1"
- + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol"
- + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol"
- + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i"
- + "am.v1.TestIamPermissionsRequest\032).google"
- + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223"
- + "\002)\"$/v1/{resource=**}:testIamPermissions"
- + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\177\n\021c"
- + "om.google.iam.v1B\016IamPolicyProtoP\001Z)clou"
- + "d.google.com/go/iam/apiv1/iampb;iampb\370\001\001"
- + "\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Ia"
- + "m\\V1b\006proto3"
+ + "ld_mask.proto\"\221\001\n\023SetIamPolicyRequest\022\034\n"
+ + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 "
+ + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda"
+ + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas"
+ + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001"
+ + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google"
+ + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi"
+ + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003"
+ + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa"
+ + "mPermissionsResponse\022\023\n\013permissions\030\001 \003("
+ + "\t2\264\003\n\tIAMPolicy\022t\n\014SetIamPolicy\022\".google"
+ + ".iam.v1.SetIamPolicyRequest\032\025.google.iam"
+ + ".v1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se"
+ + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i"
+ + "am.v1.GetIamPolicyRequest\032\025.google.iam.v"
+ + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI"
+ + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo"
+ + "gle.iam.v1.TestIamPermissionsRequest\032).g"
+ + "oogle.iam.v1.TestIamPermissionsResponse\""
+ + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis"
+ + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com"
+ + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z"
+ + ")cloud.google.com/go/iam/apiv1/iampb;iam"
+ + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo"
+ + "ud\\Iam\\V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
index 7f658f2af0..07c896a20e 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java
@@ -24,11 +24,14 @@
*
* An Identity and Access Management (IAM) policy, which specifies access
* controls for Google Cloud resources.
+ *
+ *
* A `Policy` is a collection of `bindings`. A `binding` binds one or more
* `members`, or principals, to a single `role`. Principals can be user
* accounts, service accounts, Google groups, and domains (such as G Suite). A
* `role` is a named list of permissions; each `role` can be an IAM predefined
* role or a user-created custom role.
+ *
* For some types of Google Cloud resources, a `binding` can also specify a
* `condition`, which is a logical expression that allows access to a resource
* only if the expression evaluates to `true`. A condition can add constraints
@@ -36,7 +39,9 @@
* resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ *
* **JSON example:**
+ *
* {
* "bindings": [
* {
@@ -64,7 +69,9 @@
* "etag": "BwWWja0YfJA=",
* "version": 3
* }
+ *
* **YAML example:**
+ *
* bindings:
* - members:
* - user:mike@example.com
@@ -81,6 +88,7 @@
* expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
* etag: BwWWja0YfJA=
* version: 3
+ *
* For a description of IAM and its features, see the
* [IAM documentation](https://cloud.google.com/iam/docs/).
*
@@ -109,11 +117,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Policy();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_Policy_descriptor;
}
@@ -133,21 +136,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Specifies the format of the policy.
+ *
* Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
* are rejected.
+ *
* Any operation that affects conditional role bindings must specify version
* `3`. This requirement applies to the following operations:
+ *
* * Getting a policy that includes a conditional role binding
* * Adding a conditional role binding to a policy
* * Changing a conditional role binding in a policy
* * Removing any role binding, with or without a condition, from a policy
* that includes conditions
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
+ *
* If a policy does not include any conditions, operations on that policy may
* specify any valid version or leave the field unset.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -173,6 +182,7 @@ public int getVersion() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -194,6 +204,7 @@ public java.util.List getBindingsList() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -215,6 +226,7 @@ public java.util.List extends com.google.iam.v1.BindingOrBuilder> getBindingsO
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -236,6 +248,7 @@ public int getBindingsCount() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -257,6 +270,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -356,6 +370,7 @@ public com.google.iam.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index
* conditions: An `etag` is returned in the response to `getIamPolicy`, and
* systems are expected to put that etag in the request to `setIamPolicy` to
* ensure that their change will be applied to the same version of the policy.
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -565,11 +580,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* An Identity and Access Management (IAM) policy, which specifies access
* controls for Google Cloud resources.
+ *
+ *
* A `Policy` is a collection of `bindings`. A `binding` binds one or more
* `members`, or principals, to a single `role`. Principals can be user
* accounts, service accounts, Google groups, and domains (such as G Suite). A
* `role` is a named list of permissions; each `role` can be an IAM predefined
* role or a user-created custom role.
+ *
* For some types of Google Cloud resources, a `binding` can also specify a
* `condition`, which is a logical expression that allows access to a resource
* only if the expression evaluates to `true`. A condition can add constraints
@@ -577,7 +595,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ *
* **JSON example:**
+ *
* {
* "bindings": [
* {
@@ -605,7 +625,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* "etag": "BwWWja0YfJA=",
* "version": 3
* }
+ *
* **YAML example:**
+ *
* bindings:
* - members:
* - user:mike@example.com
@@ -622,6 +644,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
* etag: BwWWja0YfJA=
* version: 3
+ *
* For a description of IAM and its features, see the
* [IAM documentation](https://cloud.google.com/iam/docs/).
*
@@ -735,39 +758,6 @@ private void buildPartial0(com.google.iam.v1.Policy result) {
}
}
- @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.Policy) {
@@ -927,21 +917,27 @@ public Builder mergeFrom(
*
*
* Specifies the format of the policy.
+ *
* Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
* are rejected.
+ *
* Any operation that affects conditional role bindings must specify version
* `3`. This requirement applies to the following operations:
+ *
* * Getting a policy that includes a conditional role binding
* * Adding a conditional role binding to a policy
* * Changing a conditional role binding in a policy
* * Removing any role binding, with or without a condition, from a policy
* that includes conditions
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
+ *
* If a policy does not include any conditions, operations on that policy may
* specify any valid version or leave the field unset.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -960,21 +956,27 @@ public int getVersion() {
*
*
* Specifies the format of the policy.
+ *
* Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
* are rejected.
+ *
* Any operation that affects conditional role bindings must specify version
* `3`. This requirement applies to the following operations:
+ *
* * Getting a policy that includes a conditional role binding
* * Adding a conditional role binding to a policy
* * Changing a conditional role binding in a policy
* * Removing any role binding, with or without a condition, from a policy
* that includes conditions
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
+ *
* If a policy does not include any conditions, operations on that policy may
* specify any valid version or leave the field unset.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -997,21 +999,27 @@ public Builder setVersion(int value) {
*
*
* Specifies the format of the policy.
+ *
* Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
* are rejected.
+ *
* Any operation that affects conditional role bindings must specify version
* `3`. This requirement applies to the following operations:
+ *
* * Getting a policy that includes a conditional role binding
* * Adding a conditional role binding to a policy
* * Changing a conditional role binding in a policy
* * Removing any role binding, with or without a condition, from a policy
* that includes conditions
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
+ *
* If a policy does not include any conditions, operations on that policy may
* specify any valid version or leave the field unset.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -1050,6 +1058,7 @@ private void ensureBindingsIsMutable() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1074,6 +1083,7 @@ public java.util.List getBindingsList() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1098,6 +1108,7 @@ public int getBindingsCount() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1122,6 +1133,7 @@ public com.google.iam.v1.Binding getBindings(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1152,6 +1164,7 @@ public Builder setBindings(int index, com.google.iam.v1.Binding value) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1179,6 +1192,7 @@ public Builder setBindings(int index, com.google.iam.v1.Binding.Builder builderF
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1209,6 +1223,7 @@ public Builder addBindings(com.google.iam.v1.Binding value) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1239,6 +1254,7 @@ public Builder addBindings(int index, com.google.iam.v1.Binding value) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1266,6 +1282,7 @@ public Builder addBindings(com.google.iam.v1.Binding.Builder builderForValue) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1293,6 +1310,7 @@ public Builder addBindings(int index, com.google.iam.v1.Binding.Builder builderF
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1320,6 +1338,7 @@ public Builder addAllBindings(java.lang.Iterable extends com.google.iam.v1.Bin
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1347,6 +1366,7 @@ public Builder clearBindings() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1374,6 +1394,7 @@ public Builder removeBindings(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1394,6 +1415,7 @@ public com.google.iam.v1.Binding.Builder getBindingsBuilder(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1418,6 +1440,7 @@ public com.google.iam.v1.BindingOrBuilder getBindingsOrBuilder(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1442,6 +1465,7 @@ public java.util.List extends com.google.iam.v1.BindingOrBuilder> getBindingsO
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1462,6 +1486,7 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder() {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1483,6 +1508,7 @@ public com.google.iam.v1.Binding.Builder addBindingsBuilder(int index) {
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -1874,6 +1900,7 @@ public java.util.List getAuditConfigsBuil
* conditions: An `etag` is returned in the response to `getIamPolicy`, and
* systems are expected to put that etag in the request to `setIamPolicy` to
* ensure that their change will be applied to the same version of the policy.
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1899,6 +1926,7 @@ public com.google.protobuf.ByteString getEtag() {
* conditions: An `etag` is returned in the response to `getIamPolicy`, and
* systems are expected to put that etag in the request to `setIamPolicy` to
* ensure that their change will be applied to the same version of the policy.
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
@@ -1930,6 +1958,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) {
* conditions: An `etag` is returned in the response to `getIamPolicy`, and
* systems are expected to put that etag in the request to `setIamPolicy` to
* ensure that their change will be applied to the same version of the policy.
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
index 9ee92e988c..167801f546 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyDelta();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.PolicyProto.internal_static_google_iam_v1_PolicyDelta_descriptor;
}
@@ -488,39 +483,6 @@ private void buildPartial0(com.google.iam.v1.PolicyDelta result) {
int from_bitField0_ = bitField0_;
}
- @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.PolicyDelta) {
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
index 449c1d790c..2039d3792a 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java
@@ -28,21 +28,27 @@ public interface PolicyOrBuilder
*
*
* Specifies the format of the policy.
+ *
* Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
* are rejected.
+ *
* Any operation that affects conditional role bindings must specify version
* `3`. This requirement applies to the following operations:
+ *
* * Getting a policy that includes a conditional role binding
* * Adding a conditional role binding to a policy
* * Changing a conditional role binding in a policy
* * Removing any role binding, with or without a condition, from a policy
* that includes conditions
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
+ *
* If a policy does not include any conditions, operations on that policy may
* specify any valid version or leave the field unset.
+ *
* To learn which resources support conditions in their IAM policies, see the
* [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -61,6 +67,7 @@ public interface PolicyOrBuilder
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -79,6 +86,7 @@ public interface PolicyOrBuilder
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -97,6 +105,7 @@ public interface PolicyOrBuilder
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -115,6 +124,7 @@ public interface PolicyOrBuilder
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -133,6 +143,7 @@ public interface PolicyOrBuilder
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal.
+ *
* The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
* of these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
@@ -207,6 +218,7 @@ public interface PolicyOrBuilder
* conditions: An `etag` is returned in the response to `getIamPolicy`, and
* systems are expected to put that etag in the request to `setIamPolicy` to
* ensure that their change will be applied to the same version of the policy.
+ *
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
index 15561955bd..7790e2c1c3 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SetIamPolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.IamPolicyProto
.internal_static_google_iam_v1_SetIamPolicyRequest_descriptor;
@@ -188,6 +183,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -206,6 +202,7 @@ public boolean hasUpdateMask() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -224,6 +221,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -516,39 +514,6 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) {
}
}
- @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.SetIamPolicyRequest) {
@@ -974,6 +939,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -991,6 +957,7 @@ public boolean hasUpdateMask() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1014,6 +981,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1039,6 +1007,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1061,6 +1030,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1089,6 +1059,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1111,6 +1082,7 @@ public Builder clearUpdateMask() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1128,6 +1100,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -1149,6 +1122,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
index 48ab0dff5d..b7c42c8855 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java
@@ -105,6 +105,7 @@ public interface SetIamPolicyRequestOrBuilder
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -120,6 +121,7 @@ public interface SetIamPolicyRequestOrBuilder
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
@@ -135,6 +137,7 @@ public interface SetIamPolicyRequestOrBuilder
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used:
+ *
* `paths: "bindings, etag"`
*
*
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
index ee3530d94e..4393be5528 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java
@@ -39,7 +39,7 @@ private TestIamPermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder
private TestIamPermissionsRequest() {
resource_ = "";
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TestIamPermissionsRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.IamPolicyProto
.internal_static_google_iam_v1_TestIamPermissionsRequest_descriptor;
@@ -128,7 +123,8 @@ public com.google.protobuf.ByteString getResourceBytes() {
public static final int PERMISSIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList permissions_;
+ private com.google.protobuf.LazyStringArrayList permissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -415,8 +411,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
resource_ = "";
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -444,7 +439,6 @@ public com.google.iam.v1.TestIamPermissionsRequest build() {
public com.google.iam.v1.TestIamPermissionsRequest buildPartial() {
com.google.iam.v1.TestIamPermissionsRequest result =
new com.google.iam.v1.TestIamPermissionsRequest(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -452,52 +446,15 @@ public com.google.iam.v1.TestIamPermissionsRequest buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsRequest result) {
- if (((bitField0_ & 0x00000002) != 0)) {
- permissions_ = permissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.permissions_ = permissions_;
- }
-
private void buildPartial0(com.google.iam.v1.TestIamPermissionsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resource_ = resource_;
}
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ permissions_.makeImmutable();
+ result.permissions_ = permissions_;
+ }
}
@java.lang.Override
@@ -520,7 +477,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsRequest other) {
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
@@ -706,14 +663,14 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
return this;
}
- private com.google.protobuf.LazyStringList permissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList permissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!permissions_.isModifiable()) {
permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -730,7 +687,8 @@ private void ensurePermissionsIsMutable() {
* @return A list containing the permissions.
*/
public com.google.protobuf.ProtocolStringList getPermissionsList() {
- return permissions_.getUnmodifiableView();
+ permissions_.makeImmutable();
+ return permissions_;
}
/**
*
@@ -807,6 +765,7 @@ public Builder setPermissions(int index, java.lang.String value) {
}
ensurePermissionsIsMutable();
permissions_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -831,6 +790,7 @@ public Builder addPermissions(java.lang.String value) {
}
ensurePermissionsIsMutable();
permissions_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -852,6 +812,7 @@ public Builder addPermissions(java.lang.String value) {
public Builder addAllPermissions(java.lang.Iterable values) {
ensurePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -870,8 +831,9 @@ public Builder addAllPermissions(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearPermissions() {
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -897,6 +859,7 @@ public Builder addPermissionsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensurePermissionsIsMutable();
permissions_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java
index 25fb71590e..4eb8379bbd 100644
--- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java
+++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java
@@ -38,7 +38,7 @@ private TestIamPermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builde
}
private TestIamPermissionsResponse() {
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TestIamPermissionsResponse();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v1.IamPolicyProto
.internal_static_google_iam_v1_TestIamPermissionsResponse_descriptor;
@@ -70,7 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int PERMISSIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList permissions_;
+ private com.google.protobuf.LazyStringArrayList permissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -339,8 +335,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -368,7 +363,6 @@ public com.google.iam.v1.TestIamPermissionsResponse build() {
public com.google.iam.v1.TestIamPermissionsResponse buildPartial() {
com.google.iam.v1.TestIamPermissionsResponse result =
new com.google.iam.v1.TestIamPermissionsResponse(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -376,49 +370,12 @@ public com.google.iam.v1.TestIamPermissionsResponse buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v1.TestIamPermissionsResponse result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- permissions_ = permissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.permissions_ = permissions_;
- }
-
private void buildPartial0(com.google.iam.v1.TestIamPermissionsResponse result) {
int from_bitField0_ = bitField0_;
- }
-
- @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);
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ permissions_.makeImmutable();
+ result.permissions_ = permissions_;
+ }
}
@java.lang.Override
@@ -436,7 +393,7 @@ public Builder mergeFrom(com.google.iam.v1.TestIamPermissionsResponse other) {
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
@@ -495,14 +452,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList permissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList permissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!permissions_.isModifiable()) {
permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -517,7 +474,8 @@ private void ensurePermissionsIsMutable() {
* @return A list containing the permissions.
*/
public com.google.protobuf.ProtocolStringList getPermissionsList() {
- return permissions_.getUnmodifiableView();
+ permissions_.makeImmutable();
+ return permissions_;
}
/**
*
@@ -586,6 +544,7 @@ public Builder setPermissions(int index, java.lang.String value) {
}
ensurePermissionsIsMutable();
permissions_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -608,6 +567,7 @@ public Builder addPermissions(java.lang.String value) {
}
ensurePermissionsIsMutable();
permissions_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -627,6 +587,7 @@ public Builder addPermissions(java.lang.String value) {
public Builder addAllPermissions(java.lang.Iterable values) {
ensurePermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -643,8 +604,9 @@ public Builder addAllPermissions(java.lang.Iterable values) {
* @return This builder for chaining.
*/
public Builder clearPermissions() {
- permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ permissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -668,6 +630,7 @@ public Builder addPermissionsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensurePermissionsIsMutable();
permissions_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
diff --git a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
index f9346449b7..dca810c57f 100644
--- a/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
+
+ 7002
+ com/google/iam/v2/*Builder
+ * addRepeatedField(*)
+
+
+ 7002
+ com/google/iam/v2/*Builder
+ * clearField(*)
+
+
+ 7002
+ com/google/iam/v2/*Builder
+ * clearOneof(*)
+
+
+ 7002
+ com/google/iam/v2/*Builder
+ * clone()
+
+
+ 7002
+ com/google/iam/v2/*Builder
+ * setField(*)
+
+
+ 7002
+ com/google/iam/v2/*Builder
+ * setRepeatedField(*)
+
7012
com/google/iam/v2/*OrBuilder
diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml
index 1a21c62a64..105f00840b 100644
--- a/java-iam/proto-google-iam-v2/pom.xml
+++ b/java-iam/proto-google-iam-v2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-iam-v2
- 1.13.0
+ 1.14.0
proto-google-iam-v2
Proto library for proto-google-iam-v1
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java
index 6d67c52f34..038188c87f 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreatePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_CreatePolicyRequest_descriptor;
@@ -78,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -108,10 +106,13 @@ public java.lang.String getParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -509,39 +510,6 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) {
}
}
- @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.v2.CreatePolicyRequest) {
@@ -637,10 +605,13 @@ public Builder mergeFrom(
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -666,10 +637,13 @@ public java.lang.String getParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -695,10 +669,13 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -723,10 +700,13 @@ public Builder setParent(java.lang.String value) {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -747,10 +727,13 @@ public Builder clearParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java
index 3825ae18ff..750931920c 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java
@@ -29,10 +29,13 @@ public interface CreatePolicyRequestOrBuilder
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -48,10 +51,13 @@ public interface CreatePolicyRequestOrBuilder
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java
index a1fc39876b..0c0b229bf6 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeletePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_DeletePolicyRequest_descriptor;
@@ -78,9 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -107,9 +105,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -142,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -169,6 +171,7 @@ public java.lang.String getEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -441,39 +444,6 @@ private void buildPartial0(com.google.iam.v2.DeletePolicyRequest result) {
}
}
- @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.v2.DeletePolicyRequest) {
@@ -560,9 +530,12 @@ public Builder mergeFrom(
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -588,9 +561,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -616,9 +592,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -643,9 +622,12 @@ public Builder setName(java.lang.String value) {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -666,9 +648,12 @@ public Builder clearName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -697,6 +682,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -723,6 +709,7 @@ public java.lang.String getEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -749,6 +736,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -774,6 +762,7 @@ public Builder setEtag(java.lang.String value) {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -795,6 +784,7 @@ public Builder clearEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java
index 9bdd7fc3d3..16a7afe664 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java
@@ -29,9 +29,12 @@ public interface DeletePolicyRequestOrBuilder
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -47,9 +50,12 @@ public interface DeletePolicyRequestOrBuilder
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -67,6 +73,7 @@ public interface DeletePolicyRequestOrBuilder
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -83,6 +90,7 @@ public interface DeletePolicyRequestOrBuilder
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java
index 8fcf2a56fe..be4c9b2f25 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java
@@ -38,10 +38,10 @@ private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private DenyRule() {
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DenyRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.DenyRuleProto.internal_static_google_iam_v2_DenyRule_descriptor;
}
@@ -70,39 +65,48 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList deniedPrincipals_;
+ private com.google.protobuf.LazyStringArrayList deniedPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -122,32 +126,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -167,32 +179,40 @@ public int getDeniedPrincipalsCount() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -213,32 +233,40 @@ public java.lang.String getDeniedPrincipals(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -257,7 +285,8 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList exceptionPrincipals_;
+ private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -266,6 +295,7 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -286,6 +316,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -306,6 +337,7 @@ public int getExceptionPrincipalsCount() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -327,6 +359,7 @@ public java.lang.String getExceptionPrincipals(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -344,7 +377,8 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList deniedPermissions_;
+ private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -419,7 +453,8 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList exceptionPermissions_;
+ private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -428,6 +463,7 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -447,6 +483,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -466,6 +503,7 @@ public int getExceptionPermissionsCount() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -486,6 +524,7 @@ public java.lang.String getExceptionPermissions(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -508,8 +547,10 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -531,8 +572,10 @@ public boolean hasDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -554,8 +597,10 @@ public com.google.type.Expr getDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -833,14 +878,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
denialCondition_ = null;
if (denialConditionBuilder_ != null) {
denialConditionBuilder_.dispose();
@@ -871,7 +912,6 @@ public com.google.iam.v2.DenyRule build() {
@java.lang.Override
public com.google.iam.v2.DenyRule buildPartial() {
com.google.iam.v2.DenyRule result = new com.google.iam.v2.DenyRule(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -879,70 +919,30 @@ public com.google.iam.v2.DenyRule buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v2.DenyRule result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ private void buildPartial0(com.google.iam.v2.DenyRule result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ deniedPrincipals_.makeImmutable();
+ result.deniedPrincipals_ = deniedPrincipals_;
}
- result.deniedPrincipals_ = deniedPrincipals_;
- if (((bitField0_ & 0x00000002) != 0)) {
- exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ exceptionPrincipals_.makeImmutable();
+ result.exceptionPrincipals_ = exceptionPrincipals_;
}
- result.exceptionPrincipals_ = exceptionPrincipals_;
- if (((bitField0_ & 0x00000004) != 0)) {
- deniedPermissions_ = deniedPermissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ deniedPermissions_.makeImmutable();
+ result.deniedPermissions_ = deniedPermissions_;
}
- result.deniedPermissions_ = deniedPermissions_;
- if (((bitField0_ & 0x00000008) != 0)) {
- exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ exceptionPermissions_.makeImmutable();
+ result.exceptionPermissions_ = exceptionPermissions_;
}
- result.exceptionPermissions_ = exceptionPermissions_;
- }
-
- private void buildPartial0(com.google.iam.v2.DenyRule result) {
- int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.denialCondition_ =
denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build();
}
}
- @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.v2.DenyRule) {
@@ -958,7 +958,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) {
if (!other.deniedPrincipals_.isEmpty()) {
if (deniedPrincipals_.isEmpty()) {
deniedPrincipals_ = other.deniedPrincipals_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.addAll(other.deniedPrincipals_);
@@ -968,7 +968,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) {
if (!other.exceptionPrincipals_.isEmpty()) {
if (exceptionPrincipals_.isEmpty()) {
exceptionPrincipals_ = other.exceptionPrincipals_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.addAll(other.exceptionPrincipals_);
@@ -978,7 +978,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) {
if (!other.deniedPermissions_.isEmpty()) {
if (deniedPermissions_.isEmpty()) {
deniedPermissions_ = other.deniedPermissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ |= 0x00000004;
} else {
ensureDeniedPermissionsIsMutable();
deniedPermissions_.addAll(other.deniedPermissions_);
@@ -988,7 +988,7 @@ public Builder mergeFrom(com.google.iam.v2.DenyRule other) {
if (!other.exceptionPermissions_.isEmpty()) {
if (exceptionPermissions_.isEmpty()) {
exceptionPermissions_ = other.exceptionPermissions_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ |= 0x00000008;
} else {
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.addAll(other.exceptionPermissions_);
@@ -1077,14 +1077,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList deniedPrincipals_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList deniedPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDeniedPrincipalsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!deniedPrincipals_.isModifiable()) {
deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -1092,32 +1092,40 @@ private void ensureDeniedPrincipalsIsMutable() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1129,7 +1137,8 @@ private void ensureDeniedPrincipalsIsMutable() {
* @return A list containing the deniedPrincipals.
*/
public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
- return deniedPrincipals_.getUnmodifiableView();
+ deniedPrincipals_.makeImmutable();
+ return deniedPrincipals_;
}
/**
*
@@ -1137,32 +1146,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1182,32 +1199,40 @@ public int getDeniedPrincipalsCount() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1228,32 +1253,40 @@ public java.lang.String getDeniedPrincipals(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1274,32 +1307,40 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1318,6 +1359,7 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
}
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1327,32 +1369,40 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1370,6 +1420,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
}
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1379,32 +1430,40 @@ public Builder addDeniedPrincipals(java.lang.String value) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1419,6 +1478,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
public Builder addAllDeniedPrincipals(java.lang.Iterable values) {
ensureDeniedPrincipalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1428,32 +1488,40 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1465,8 +1533,9 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
* @return This builder for chaining.
*/
public Builder clearDeniedPrincipals() {
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -1476,32 +1545,40 @@ public Builder clearDeniedPrincipals() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1520,18 +1597,19 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList exceptionPrincipals_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExceptionPrincipalsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!exceptionPrincipals_.isModifiable()) {
exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -1541,6 +1619,7 @@ private void ensureExceptionPrincipalsIsMutable() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1551,7 +1630,8 @@ private void ensureExceptionPrincipalsIsMutable() {
* @return A list containing the exceptionPrincipals.
*/
public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
- return exceptionPrincipals_.getUnmodifiableView();
+ exceptionPrincipals_.makeImmutable();
+ return exceptionPrincipals_;
}
/**
*
@@ -1561,6 +1641,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1581,6 +1662,7 @@ public int getExceptionPrincipalsCount() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1602,6 +1684,7 @@ public java.lang.String getExceptionPrincipals(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1623,6 +1706,7 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1640,6 +1724,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
}
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1651,6 +1736,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1667,6 +1753,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
}
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1678,6 +1765,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1691,6 +1779,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
public Builder addAllExceptionPrincipals(java.lang.Iterable values) {
ensureExceptionPrincipalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1702,6 +1791,7 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1712,8 +1802,9 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
* @return This builder for chaining.
*/
public Builder clearExceptionPrincipals() {
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1725,6 +1816,7 @@ public Builder clearExceptionPrincipals() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1742,18 +1834,19 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value)
checkByteStringIsUtf8(value);
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList deniedPermissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDeniedPermissionsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!deniedPermissions_.isModifiable()) {
deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_);
- bitField0_ |= 0x00000004;
}
+ bitField0_ |= 0x00000004;
}
/**
*
@@ -1770,7 +1863,8 @@ private void ensureDeniedPermissionsIsMutable() {
* @return A list containing the deniedPermissions.
*/
public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
- return deniedPermissions_.getUnmodifiableView();
+ deniedPermissions_.makeImmutable();
+ return deniedPermissions_;
}
/**
*
@@ -1847,6 +1941,7 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
}
ensureDeniedPermissionsIsMutable();
deniedPermissions_.set(index, value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1871,6 +1966,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
}
ensureDeniedPermissionsIsMutable();
deniedPermissions_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1892,6 +1988,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
public Builder addAllDeniedPermissions(java.lang.Iterable values) {
ensureDeniedPermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1910,8 +2007,9 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
* @return This builder for chaining.
*/
public Builder clearDeniedPermissions() {
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
+ ;
onChanged();
return this;
}
@@ -1937,18 +2035,19 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureDeniedPermissionsIsMutable();
deniedPermissions_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList exceptionPermissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExceptionPermissionsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!exceptionPermissions_.isModifiable()) {
exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_);
- bitField0_ |= 0x00000008;
}
+ bitField0_ |= 0x00000008;
}
/**
*
@@ -1958,6 +2057,7 @@ private void ensureExceptionPermissionsIsMutable() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -1967,7 +2067,8 @@ private void ensureExceptionPermissionsIsMutable() {
* @return A list containing the exceptionPermissions.
*/
public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
- return exceptionPermissions_.getUnmodifiableView();
+ exceptionPermissions_.makeImmutable();
+ return exceptionPermissions_;
}
/**
*
@@ -1977,6 +2078,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -1996,6 +2098,7 @@ public int getExceptionPermissionsCount() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2016,6 +2119,7 @@ public java.lang.String getExceptionPermissions(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2036,6 +2140,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2052,6 +2157,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
}
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.set(index, value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2063,6 +2169,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2078,6 +2185,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
}
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2089,6 +2197,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2101,6 +2210,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
public Builder addAllExceptionPermissions(java.lang.Iterable values) {
ensureExceptionPermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2112,6 +2222,7 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2121,8 +2232,9 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
* @return This builder for chaining.
*/
public Builder clearExceptionPermissions() {
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
+ ;
onChanged();
return this;
}
@@ -2134,6 +2246,7 @@ public Builder clearExceptionPermissions() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2150,6 +2263,7 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
checkByteStringIsUtf8(value);
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2165,8 +2279,10 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2187,8 +2303,10 @@ public boolean hasDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2215,8 +2333,10 @@ public com.google.type.Expr getDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2245,8 +2365,10 @@ public Builder setDenialCondition(com.google.type.Expr value) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2272,8 +2394,10 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2305,8 +2429,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2332,8 +2458,10 @@ public Builder clearDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2354,8 +2482,10 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2380,8 +2510,10 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
index 1d35367fb8..cb8dd9758c 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java
@@ -29,32 +29,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -72,32 +80,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -115,32 +131,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -159,32 +183,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -206,6 +238,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -224,6 +257,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -242,6 +276,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -261,6 +296,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -344,6 +380,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -361,6 +398,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -378,6 +416,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -396,6 +435,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -414,8 +454,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -434,8 +476,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -454,8 +498,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
index 31ae9840b5..1f51e3a3e6 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetPolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_GetPolicyRequest_descriptor;
}
@@ -76,9 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -105,9 +103,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -366,39 +367,6 @@ private void buildPartial0(com.google.iam.v2.GetPolicyRequest result) {
}
}
- @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.v2.GetPolicyRequest) {
@@ -474,9 +442,12 @@ public Builder mergeFrom(
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -502,9 +473,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -530,9 +504,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -557,9 +534,12 @@ public Builder setName(java.lang.String value) {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -580,9 +560,12 @@ public Builder clearName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java
index 6f293a3267..4756f85ed0 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java
@@ -29,9 +29,12 @@ public interface GetPolicyRequestOrBuilder
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -47,9 +50,12 @@ public interface GetPolicyRequestOrBuilder
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java
index 42f23221d0..053058d820 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListPoliciesRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_ListPoliciesRequest_descriptor;
@@ -79,10 +74,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -110,10 +108,13 @@ public java.lang.String getParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -471,39 +472,6 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesRequest result) {
}
}
- @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.v2.ListPoliciesRequest) {
@@ -600,10 +568,13 @@ public Builder mergeFrom(
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -630,10 +601,13 @@ public java.lang.String getParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -660,10 +634,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -689,10 +666,13 @@ public Builder setParent(java.lang.String value) {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -714,10 +694,13 @@ public Builder clearParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java
index bfea871b46..45bde87af8 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java
@@ -30,10 +30,13 @@ public interface ListPoliciesRequestOrBuilder
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -50,10 +53,13 @@ public interface ListPoliciesRequestOrBuilder
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java
index 85d5cf7b5d..0003d236d0 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListPoliciesResponse();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_ListPoliciesResponse_descriptor;
@@ -461,39 +456,6 @@ private void buildPartial0(com.google.iam.v2.ListPoliciesResponse result) {
}
}
- @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.v2.ListPoliciesResponse) {
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java
index 2c6ad8972b..7b4e45d901 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java
@@ -53,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Policy();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_Policy_descriptor;
}
@@ -91,10 +86,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -122,10 +120,13 @@ public java.lang.String getName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -423,6 +424,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -450,6 +452,7 @@ public java.lang.String getEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -1183,39 +1186,6 @@ private void buildPartial0(com.google.iam.v2.Policy result) {
}
}
- @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.v2.Policy) {
@@ -1426,10 +1396,13 @@ public Builder mergeFrom(
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1456,10 +1429,13 @@ public java.lang.String getName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1486,10 +1462,13 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1515,10 +1494,13 @@ public Builder setName(java.lang.String value) {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1540,10 +1522,13 @@ public Builder clearName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -2074,6 +2059,7 @@ public Builder putAllAnnotations(java.util.Map
@@ -2100,6 +2086,7 @@ public java.lang.String getEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2126,6 +2113,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2151,6 +2139,7 @@ public Builder setEtag(java.lang.String value) {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2172,6 +2161,7 @@ public Builder clearEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java
index 15a04e7840..ba3e43f112 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyOperationMetadata();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_PolicyOperationMetadata_descriptor;
@@ -360,39 +355,6 @@ private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) {
}
}
- @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.v2.PolicyOperationMetadata) {
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java
index 44e15c3d3b..8e87db6374 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java
@@ -29,10 +29,13 @@ public interface PolicyOrBuilder
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -49,10 +52,13 @@ public interface PolicyOrBuilder
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -213,6 +219,7 @@ java.lang.String getAnnotationsOrDefault(
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -229,6 +236,7 @@ java.lang.String getAnnotationsOrDefault(
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java
index d7b59bfe2a..e8933f1a0c 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java
@@ -81,58 +81,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e/api/client.proto\032\037google/api/field_beh"
+ "avior.proto\032\030google/iam/v2/deny.proto\032#g"
+ "oogle/longrunning/operations.proto\032\037goog"
- + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021"
- + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k"
- + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013"
- + "annotations\030\005 \003(\0132&.google.iam.v2.Policy"
- + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat"
- + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp"
- + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot"
- + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013"
- + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul"
- + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m"
- + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati"
- + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
- + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog"
- + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001("
- + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare"
- + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
- + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010"
- + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque"
- + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq"
- + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001("
- + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_"
- + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic"
- + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D"
- + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n"
- + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad"
- + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob"
- + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici"
- + "es\022\".google.iam.v2.ListPoliciesRequest\032#"
- + ".google.iam.v2.ListPoliciesResponse\"*\202\323\344"
- + "\223\002\033\022\031/v2/{parent=policies/*/*}\332A\006parent\022"
- + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe"
- + "quest\032\025.google.iam.v2.Policy\"(\202\323\344\223\002\033\022\031/v"
- + "2/{name=policies/*/*/*}\332A\004name\022\272\001\n\014Creat"
- + "ePolicy\022\".google.iam.v2.CreatePolicyRequ"
- + "est\032\035.google.longrunning.Operation\"g\202\323\344\223"
- + "\002#\"\031/v2/{parent=policies/*/*}:\006policy\332A\027"
- + "parent,policy,policy_id\312A!\n\006Policy\022\027Poli"
- + "cyOperationMetadata\022\247\001\n\014UpdatePolicy\022\".g"
- + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl"
- + "e.longrunning.Operation\"T\202\323\344\223\002*\032 /v2/{po"
- + "licy.name=policies/*/*/*}:\006policy\312A!\n\006Po"
- + "licy\022\027PolicyOperationMetadata\022\237\001\n\014Delete"
- + "Policy\022\".google.iam.v2.DeletePolicyReque"
- + "st\032\035.google.longrunning.Operation\"L\202\323\344\223\002"
- + "\033*\031/v2/{name=policies/*/*/*}\332A\004name\312A!\n\006"
- + "Policy\022\027PolicyOperationMetadata\032F\312A\022iam."
- + "googleapis.com\322A.https://www.googleapis."
- + "com/auth/cloud-platformBy\n\021com.google.ia"
- + "m.v2B\013PolicyProtoP\001Z)cloud.google.com/go"
- + "/iam/apiv2/iampb;iampb\252\002\023Google.Cloud.Ia"
- + "m.V2\312\002\023Google\\Cloud\\Iam\\V2b\006proto3"
+ + "le/protobuf/timestamp.proto\"\311\003\n\006Policy\022\022"
+ + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n"
+ + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022"
+ + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol"
+ + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr"
+ + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest"
+ + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google."
+ + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030"
+ + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022"
+ + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul"
+ + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A"
+ + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+ + "\001(\t:\0028\001\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\013"
+ + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti"
+ + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022"
+ + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005"
+ + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp"
+ + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P"
+ + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol"
+ + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create"
+ + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p"
+ + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002"
+ + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque"
+ + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic"
+ + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001"
+ + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy"
+ + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032"
+ + ".google.protobuf.Timestamp2\320\006\n\010Policies\022"
+ + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol"
+ + "iciesRequest\032#.google.iam.v2.ListPolicie"
+ + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent="
+ + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam."
+ + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli"
+ + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/"
+ + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr"
+ + "eatePolicyRequest\032\035.google.longrunning.O"
+ + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe"
+ + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031"
+ + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up"
+ + "datePolicy\022\".google.iam.v2.UpdatePolicyR"
+ + "equest\032\035.google.longrunning.Operation\"T\312"
+ + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002"
+ + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol"
+ + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del"
+ + "etePolicyRequest\032\035.google.longrunning.Op"
+ + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet"
+ + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*"
+ + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w"
+ + "ww.googleapis.com/auth/cloud-platformBy\n"
+ + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud"
+ + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G"
+ + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java
index 9e842ab3f1..8de7d2eb9b 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto.internal_static_google_iam_v2_PolicyRule_descriptor;
}
@@ -65,6 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int kindCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
@@ -484,39 +481,6 @@ private void buildPartialOneofs(com.google.iam.v2.PolicyRule result) {
}
}
- @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.v2.PolicyRule) {
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java
index 712ec0723f..d3c32e76c7 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java
@@ -85,5 +85,5 @@ public interface PolicyRuleOrBuilder
*/
com.google.protobuf.ByteString getDescriptionBytes();
- public com.google.iam.v2.PolicyRule.KindCase getKindCase();
+ com.google.iam.v2.PolicyRule.KindCase getKindCase();
}
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java
index bc506e2671..cc7bdd8393 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UpdatePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2.PolicyProto
.internal_static_google_iam_v2_UpdatePolicyRequest_descriptor;
@@ -72,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -90,6 +86,7 @@ public boolean hasPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -108,6 +105,7 @@ public com.google.iam.v2.Policy getPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -367,39 +365,6 @@ private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) {
}
}
- @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.v2.UpdatePolicyRequest) {
@@ -477,6 +442,7 @@ public Builder mergeFrom(
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -494,6 +460,7 @@ public boolean hasPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -515,6 +482,7 @@ public com.google.iam.v2.Policy getPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -540,6 +508,7 @@ public Builder setPolicy(com.google.iam.v2.Policy value) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -562,6 +531,7 @@ public Builder setPolicy(com.google.iam.v2.Policy.Builder builderForValue) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -590,6 +560,7 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -612,6 +583,7 @@ public Builder clearPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -629,6 +601,7 @@ public com.google.iam.v2.Policy.Builder getPolicyBuilder() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -648,6 +621,7 @@ public com.google.iam.v2.PolicyOrBuilder getPolicyOrBuilder() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
index fa20ec03d5..3a26ee64ee 100644
--- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java
@@ -28,6 +28,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -43,6 +44,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -58,6 +60,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
index 136c027be8..7c7553c4b6 100644
--- a/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
+++ b/java-iam/proto-google-iam-v2beta/clirr-ignored-differences.xml
@@ -1,6 +1,36 @@
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * addRepeatedField(*)
+
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * clearField(*)
+
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * clearOneof(*)
+
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * clone()
+
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * setField(*)
+
+
+ 7002
+ com/google/iam/v2beta/*Builder
+ * setRepeatedField(*)
+
7012
com/google/iam/v2beta/*OrBuilder
diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml
index a303e1fe8f..399524f2df 100644
--- a/java-iam/proto-google-iam-v2beta/pom.xml
+++ b/java-iam/proto-google-iam-v2beta/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-iam-v2beta
- 1.13.0
+ 1.14.0
proto-google-iam-v2beta
Proto library for proto-google-iam-v1
com.google.cloud
google-iam-parent
- 1.13.0
+ 1.14.0
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
index 370189917a..65f5f6cda6 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CreatePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_CreatePolicyRequest_descriptor;
@@ -78,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -108,10 +106,13 @@ public java.lang.String getParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -511,39 +512,6 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) {
}
}
- @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.v2beta.CreatePolicyRequest) {
@@ -639,10 +607,13 @@ public Builder mergeFrom(
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -668,10 +639,13 @@ public java.lang.String getParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -697,10 +671,13 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -725,10 +702,13 @@ public Builder setParent(java.lang.String value) {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -749,10 +729,13 @@ public Builder clearParent() {
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java
index 24c4fc2fb6..51a7e57106 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java
@@ -29,10 +29,13 @@ public interface CreatePolicyRequestOrBuilder
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -48,10 +51,13 @@ public interface CreatePolicyRequestOrBuilder
*
* Required. The resource that the policy is attached to, along with the kind of policy
* to create. Format: `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java
index 9eae189aef..d9a1ca0ad5 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeletePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_DeletePolicyRequest_descriptor;
@@ -78,9 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -107,9 +105,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -142,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -169,6 +171,7 @@ public java.lang.String getEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -443,39 +446,6 @@ private void buildPartial0(com.google.iam.v2beta.DeletePolicyRequest result) {
}
}
- @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.v2beta.DeletePolicyRequest) {
@@ -562,9 +532,12 @@ public Builder mergeFrom(
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -590,9 +563,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -618,9 +594,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -645,9 +624,12 @@ public Builder setName(java.lang.String value) {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -668,9 +650,12 @@ public Builder clearName() {
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -699,6 +684,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -725,6 +711,7 @@ public java.lang.String getEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -751,6 +738,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -776,6 +764,7 @@ public Builder setEtag(java.lang.String value) {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -797,6 +786,7 @@ public Builder clearEtag() {
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java
index 1b19529885..101572706d 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java
@@ -29,9 +29,12 @@ public interface DeletePolicyRequestOrBuilder
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -47,9 +50,12 @@ public interface DeletePolicyRequestOrBuilder
*
* Required. The resource name of the policy to delete. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -67,6 +73,7 @@ public interface DeletePolicyRequestOrBuilder
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
@@ -83,6 +90,7 @@ public interface DeletePolicyRequestOrBuilder
* Optional. The expected `etag` of the policy to delete. If the value does not match
* the value that is stored in IAM, the request fails with a `409` error code
* and `ABORTED` status.
+ *
* If you omit this field, the policy is deleted regardless of its current
* `etag`.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java
index 2d2a3b6363..2763ff66f0 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java
@@ -38,10 +38,10 @@ private DenyRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private DenyRule() {
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DenyRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.DenyRuleProto
.internal_static_google_iam_v2beta_DenyRule_descriptor;
@@ -72,39 +67,48 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList deniedPrincipals_;
+ private com.google.protobuf.LazyStringArrayList deniedPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -124,32 +128,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -169,32 +181,40 @@ public int getDeniedPrincipalsCount() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -215,32 +235,40 @@ public java.lang.String getDeniedPrincipals(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -259,7 +287,8 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
public static final int EXCEPTION_PRINCIPALS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList exceptionPrincipals_;
+ private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -268,6 +297,7 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -288,6 +318,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -308,6 +339,7 @@ public int getExceptionPrincipalsCount() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -329,6 +361,7 @@ public java.lang.String getExceptionPrincipals(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -346,7 +379,8 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
public static final int DENIED_PERMISSIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList deniedPermissions_;
+ private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -421,7 +455,8 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
public static final int EXCEPTION_PERMISSIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringList exceptionPermissions_;
+ private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
@@ -430,6 +465,7 @@ public com.google.protobuf.ByteString getDeniedPermissionsBytes(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -449,6 +485,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -468,6 +505,7 @@ public int getExceptionPermissionsCount() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -488,6 +526,7 @@ public java.lang.String getExceptionPermissions(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -510,8 +549,10 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -533,8 +574,10 @@ public boolean hasDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -556,8 +599,10 @@ public com.google.type.Expr getDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -836,14 +881,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
public Builder clear() {
super.clear();
bitField0_ = 0;
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000008);
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
denialCondition_ = null;
if (denialConditionBuilder_ != null) {
denialConditionBuilder_.dispose();
@@ -875,7 +916,6 @@ public com.google.iam.v2beta.DenyRule build() {
@java.lang.Override
public com.google.iam.v2beta.DenyRule buildPartial() {
com.google.iam.v2beta.DenyRule result = new com.google.iam.v2beta.DenyRule(this);
- buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -883,70 +923,30 @@ public com.google.iam.v2beta.DenyRule buildPartial() {
return result;
}
- private void buildPartialRepeatedFields(com.google.iam.v2beta.DenyRule result) {
- if (((bitField0_ & 0x00000001) != 0)) {
- deniedPrincipals_ = deniedPrincipals_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ private void buildPartial0(com.google.iam.v2beta.DenyRule result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ deniedPrincipals_.makeImmutable();
+ result.deniedPrincipals_ = deniedPrincipals_;
}
- result.deniedPrincipals_ = deniedPrincipals_;
- if (((bitField0_ & 0x00000002) != 0)) {
- exceptionPrincipals_ = exceptionPrincipals_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ exceptionPrincipals_.makeImmutable();
+ result.exceptionPrincipals_ = exceptionPrincipals_;
}
- result.exceptionPrincipals_ = exceptionPrincipals_;
- if (((bitField0_ & 0x00000004) != 0)) {
- deniedPermissions_ = deniedPermissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ deniedPermissions_.makeImmutable();
+ result.deniedPermissions_ = deniedPermissions_;
}
- result.deniedPermissions_ = deniedPermissions_;
- if (((bitField0_ & 0x00000008) != 0)) {
- exceptionPermissions_ = exceptionPermissions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000008);
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ exceptionPermissions_.makeImmutable();
+ result.exceptionPermissions_ = exceptionPermissions_;
}
- result.exceptionPermissions_ = exceptionPermissions_;
- }
-
- private void buildPartial0(com.google.iam.v2beta.DenyRule result) {
- int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.denialCondition_ =
denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build();
}
}
- @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.v2beta.DenyRule) {
@@ -962,7 +962,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) {
if (!other.deniedPrincipals_.isEmpty()) {
if (deniedPrincipals_.isEmpty()) {
deniedPrincipals_ = other.deniedPrincipals_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.addAll(other.deniedPrincipals_);
@@ -972,7 +972,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) {
if (!other.exceptionPrincipals_.isEmpty()) {
if (exceptionPrincipals_.isEmpty()) {
exceptionPrincipals_ = other.exceptionPrincipals_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ |= 0x00000002;
} else {
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.addAll(other.exceptionPrincipals_);
@@ -982,7 +982,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) {
if (!other.deniedPermissions_.isEmpty()) {
if (deniedPermissions_.isEmpty()) {
deniedPermissions_ = other.deniedPermissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ |= 0x00000004;
} else {
ensureDeniedPermissionsIsMutable();
deniedPermissions_.addAll(other.deniedPermissions_);
@@ -992,7 +992,7 @@ public Builder mergeFrom(com.google.iam.v2beta.DenyRule other) {
if (!other.exceptionPermissions_.isEmpty()) {
if (exceptionPermissions_.isEmpty()) {
exceptionPermissions_ = other.exceptionPermissions_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ |= 0x00000008;
} else {
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.addAll(other.exceptionPermissions_);
@@ -1081,14 +1081,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList deniedPrincipals_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList deniedPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDeniedPrincipalsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!deniedPrincipals_.isModifiable()) {
deniedPrincipals_ = new com.google.protobuf.LazyStringArrayList(deniedPrincipals_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
*
@@ -1096,32 +1096,40 @@ private void ensureDeniedPrincipalsIsMutable() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1133,7 +1141,8 @@ private void ensureDeniedPrincipalsIsMutable() {
* @return A list containing the deniedPrincipals.
*/
public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
- return deniedPrincipals_.getUnmodifiableView();
+ deniedPrincipals_.makeImmutable();
+ return deniedPrincipals_;
}
/**
*
@@ -1141,32 +1150,40 @@ public com.google.protobuf.ProtocolStringList getDeniedPrincipalsList() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1186,32 +1203,40 @@ public int getDeniedPrincipalsCount() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1232,32 +1257,40 @@ public java.lang.String getDeniedPrincipals(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1278,32 +1311,40 @@ public com.google.protobuf.ByteString getDeniedPrincipalsBytes(int index) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1322,6 +1363,7 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
}
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1331,32 +1373,40 @@ public Builder setDeniedPrincipals(int index, java.lang.String value) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1374,6 +1424,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
}
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1383,32 +1434,40 @@ public Builder addDeniedPrincipals(java.lang.String value) {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1423,6 +1482,7 @@ public Builder addDeniedPrincipals(java.lang.String value) {
public Builder addAllDeniedPrincipals(java.lang.Iterable values) {
ensureDeniedPrincipalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPrincipals_);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1432,32 +1492,40 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1469,8 +1537,9 @@ public Builder addAllDeniedPrincipals(java.lang.Iterable value
* @return This builder for chaining.
*/
public Builder clearDeniedPrincipals() {
- deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
+ ;
onChanged();
return this;
}
@@ -1480,32 +1549,40 @@ public Builder clearDeniedPrincipals() {
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -1524,18 +1601,19 @@ public Builder addDeniedPrincipalsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureDeniedPrincipalsIsMutable();
deniedPrincipals_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList exceptionPrincipals_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList exceptionPrincipals_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExceptionPrincipalsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!exceptionPrincipals_.isModifiable()) {
exceptionPrincipals_ = new com.google.protobuf.LazyStringArrayList(exceptionPrincipals_);
- bitField0_ |= 0x00000002;
}
+ bitField0_ |= 0x00000002;
}
/**
*
@@ -1545,6 +1623,7 @@ private void ensureExceptionPrincipalsIsMutable() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1555,7 +1634,8 @@ private void ensureExceptionPrincipalsIsMutable() {
* @return A list containing the exceptionPrincipals.
*/
public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
- return exceptionPrincipals_.getUnmodifiableView();
+ exceptionPrincipals_.makeImmutable();
+ return exceptionPrincipals_;
}
/**
*
@@ -1565,6 +1645,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPrincipalsList() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1585,6 +1666,7 @@ public int getExceptionPrincipalsCount() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1606,6 +1688,7 @@ public java.lang.String getExceptionPrincipals(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1627,6 +1710,7 @@ public com.google.protobuf.ByteString getExceptionPrincipalsBytes(int index) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1644,6 +1728,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
}
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.set(index, value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1655,6 +1740,7 @@ public Builder setExceptionPrincipals(int index, java.lang.String value) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1671,6 +1757,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
}
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1682,6 +1769,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1695,6 +1783,7 @@ public Builder addExceptionPrincipals(java.lang.String value) {
public Builder addAllExceptionPrincipals(java.lang.Iterable values) {
ensureExceptionPrincipalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPrincipals_);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1706,6 +1795,7 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1716,8 +1806,9 @@ public Builder addAllExceptionPrincipals(java.lang.Iterable va
* @return This builder for chaining.
*/
public Builder clearExceptionPrincipals() {
- exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exceptionPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
+ ;
onChanged();
return this;
}
@@ -1729,6 +1820,7 @@ public Builder clearExceptionPrincipals() {
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -1746,18 +1838,19 @@ public Builder addExceptionPrincipalsBytes(com.google.protobuf.ByteString value)
checkByteStringIsUtf8(value);
ensureExceptionPrincipalsIsMutable();
exceptionPrincipals_.add(value);
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList deniedPermissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList deniedPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDeniedPermissionsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!deniedPermissions_.isModifiable()) {
deniedPermissions_ = new com.google.protobuf.LazyStringArrayList(deniedPermissions_);
- bitField0_ |= 0x00000004;
}
+ bitField0_ |= 0x00000004;
}
/**
*
@@ -1774,7 +1867,8 @@ private void ensureDeniedPermissionsIsMutable() {
* @return A list containing the deniedPermissions.
*/
public com.google.protobuf.ProtocolStringList getDeniedPermissionsList() {
- return deniedPermissions_.getUnmodifiableView();
+ deniedPermissions_.makeImmutable();
+ return deniedPermissions_;
}
/**
*
@@ -1851,6 +1945,7 @@ public Builder setDeniedPermissions(int index, java.lang.String value) {
}
ensureDeniedPermissionsIsMutable();
deniedPermissions_.set(index, value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1875,6 +1970,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
}
ensureDeniedPermissionsIsMutable();
deniedPermissions_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1896,6 +1992,7 @@ public Builder addDeniedPermissions(java.lang.String value) {
public Builder addAllDeniedPermissions(java.lang.Iterable values) {
ensureDeniedPermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deniedPermissions_);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1914,8 +2011,9 @@ public Builder addAllDeniedPermissions(java.lang.Iterable valu
* @return This builder for chaining.
*/
public Builder clearDeniedPermissions() {
- deniedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ deniedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
+ ;
onChanged();
return this;
}
@@ -1941,18 +2039,19 @@ public Builder addDeniedPermissionsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureDeniedPermissionsIsMutable();
deniedPermissions_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringList exceptionPermissions_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList exceptionPermissions_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExceptionPermissionsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
+ if (!exceptionPermissions_.isModifiable()) {
exceptionPermissions_ = new com.google.protobuf.LazyStringArrayList(exceptionPermissions_);
- bitField0_ |= 0x00000008;
}
+ bitField0_ |= 0x00000008;
}
/**
*
@@ -1962,6 +2061,7 @@ private void ensureExceptionPermissionsIsMutable() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -1971,7 +2071,8 @@ private void ensureExceptionPermissionsIsMutable() {
* @return A list containing the exceptionPermissions.
*/
public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
- return exceptionPermissions_.getUnmodifiableView();
+ exceptionPermissions_.makeImmutable();
+ return exceptionPermissions_;
}
/**
*
@@ -1981,6 +2082,7 @@ public com.google.protobuf.ProtocolStringList getExceptionPermissionsList() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2000,6 +2102,7 @@ public int getExceptionPermissionsCount() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2020,6 +2123,7 @@ public java.lang.String getExceptionPermissions(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2040,6 +2144,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2056,6 +2161,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
}
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.set(index, value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2067,6 +2173,7 @@ public Builder setExceptionPermissions(int index, java.lang.String value) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2082,6 +2189,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
}
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2093,6 +2201,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2105,6 +2214,7 @@ public Builder addExceptionPermissions(java.lang.String value) {
public Builder addAllExceptionPermissions(java.lang.Iterable values) {
ensureExceptionPermissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptionPermissions_);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2116,6 +2226,7 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2125,8 +2236,9 @@ public Builder addAllExceptionPermissions(java.lang.Iterable v
* @return This builder for chaining.
*/
public Builder clearExceptionPermissions() {
- exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ exceptionPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
+ ;
onChanged();
return this;
}
@@ -2138,6 +2250,7 @@ public Builder clearExceptionPermissions() {
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -2154,6 +2267,7 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
checkByteStringIsUtf8(value);
ensureExceptionPermissionsIsMutable();
exceptionPermissions_.add(value);
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2169,8 +2283,10 @@ public Builder addExceptionPermissionsBytes(com.google.protobuf.ByteString value
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2191,8 +2307,10 @@ public boolean hasDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2219,8 +2337,10 @@ public com.google.type.Expr getDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2249,8 +2369,10 @@ public Builder setDenialCondition(com.google.type.Expr value) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2276,8 +2398,10 @@ public Builder setDenialCondition(com.google.type.Expr.Builder builderForValue)
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2309,8 +2433,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2336,8 +2462,10 @@ public Builder clearDenialCondition() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2358,8 +2486,10 @@ public com.google.type.Expr.Builder getDenialConditionBuilder() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -2384,8 +2514,10 @@ public com.google.type.ExprOrBuilder getDenialConditionOrBuilder() {
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
index 30258206ce..28e0b45b8f 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java
@@ -29,32 +29,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -72,32 +80,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -115,32 +131,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -159,32 +183,40 @@ public interface DenyRuleOrBuilder
*
* The identities that are prevented from using one or more permissions on
* Google Cloud resources. This field can contain the following values:
+ *
* * `principalSet://goog/public:all`: A special identifier that represents
* any principal that is on the internet, even if they do not have a Google
* Account or are not logged in.
+ *
* * `principal://goog/subject/{email_id}`: A specific Google Account.
* Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
* example, `principal://goog/subject/alice@example.com`.
+ *
* * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
* Google Account that was deleted recently. For example,
* `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
* the Google Account is recovered, this identifier reverts to the standard
* identifier for a Google Account.
+ *
* * `principalSet://goog/group/{group_id}`: A Google group. For example,
* `principalSet://goog/group/admins@example.com`.
+ *
* * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
* that was deleted recently. For example,
* `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If
* the Google group is restored, this identifier reverts to the standard
* identifier for a Google group.
+ *
* * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
* A Google Cloud service account. For example,
* `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
+ *
* * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
* A Google Cloud service account that was deleted recently. For example,
* `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
* If the service account is undeleted, this identifier reverts to the
* standard identifier for a service account.
+ *
* * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
* principals associated with the specified Google Workspace or Cloud
* Identity customer ID. For example,
@@ -206,6 +238,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -224,6 +257,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -242,6 +276,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -261,6 +296,7 @@ public interface DenyRuleOrBuilder
* listed in the `denied_principals`. For example, you could add a Google
* group to the `denied_principals`, then exclude specific users who belong to
* that group.
+ *
* This field can contain the same values as the `denied_principals` field,
* excluding `principalSet://goog/public:all`, which represents all users on
* the internet.
@@ -344,6 +380,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -361,6 +398,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -378,6 +416,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -396,6 +435,7 @@ public interface DenyRuleOrBuilder
* permissions given by `denied_permissions`. If a permission appears in
* `denied_permissions` _and_ in `exception_permissions` then it will _not_ be
* denied.
+ *
* The excluded permissions can be specified using the same syntax as
* `denied_permissions`.
*
@@ -414,8 +454,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -434,8 +476,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
@@ -454,8 +498,10 @@ public interface DenyRuleOrBuilder
* The condition that determines whether this deny rule applies to a request.
* If the condition expression evaluates to `true`, then the deny rule is
* applied; otherwise, the deny rule is not applied.
+ *
* Each deny rule is evaluated independently. If this deny rule does not apply
* to a request, other deny rules might still apply.
+ *
* The condition can use CEL functions that evaluate
* [resource
* tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
index fbe4827adc..31ac088455 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GetPolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_GetPolicyRequest_descriptor;
@@ -77,9 +72,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -106,9 +104,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -369,39 +370,6 @@ private void buildPartial0(com.google.iam.v2beta.GetPolicyRequest result) {
}
}
- @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.v2beta.GetPolicyRequest) {
@@ -477,9 +445,12 @@ public Builder mergeFrom(
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -505,9 +476,12 @@ public java.lang.String getName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -533,9 +507,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -560,9 +537,12 @@ public Builder setName(java.lang.String value) {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -583,9 +563,12 @@ public Builder clearName() {
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java
index def786214b..589313315d 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java
@@ -29,9 +29,12 @@ public interface GetPolicyRequestOrBuilder
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -47,9 +50,12 @@ public interface GetPolicyRequestOrBuilder
*
* Required. The resource name of the policy to retrieve. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* Use the URL-encoded full resource name, which means that the forward-slash
* character, `/`, must be written as `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java
index 36db2f0ff0..24ce49a716 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListPoliciesRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_ListPoliciesRequest_descriptor;
@@ -79,10 +74,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -110,10 +108,13 @@ public java.lang.String getParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -473,39 +474,6 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesRequest result) {
}
}
- @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.v2beta.ListPoliciesRequest) {
@@ -602,10 +570,13 @@ public Builder mergeFrom(
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -632,10 +603,13 @@ public java.lang.String getParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -662,10 +636,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -691,10 +668,13 @@ public Builder setParent(java.lang.String value) {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -716,10 +696,13 @@ public Builder clearParent() {
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java
index 3090b50243..1370a31505 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java
@@ -30,10 +30,13 @@ public interface ListPoliciesRequestOrBuilder
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
@@ -50,10 +53,13 @@ public interface ListPoliciesRequestOrBuilder
* Required. The resource that the policy is attached to, along with the kind of policy
* to list. Format:
* `policies/{attachment_point}/denypolicies`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, you can use the alphanumeric or the numeric ID.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java
index 423bc3f3ff..388e703aa4 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListPoliciesResponse();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_ListPoliciesResponse_descriptor;
@@ -463,39 +458,6 @@ private void buildPartial0(com.google.iam.v2beta.ListPoliciesResponse result) {
}
}
- @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.v2beta.ListPoliciesResponse) {
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java
index 55ce515fb5..708315bd33 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Policy();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto.internal_static_google_iam_v2beta_Policy_descriptor;
}
@@ -91,10 +86,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -122,10 +120,13 @@ public java.lang.String getName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -423,6 +424,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -450,6 +452,7 @@ public java.lang.String getEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -1119,39 +1122,6 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) {
}
}
- @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.v2beta.Policy) {
@@ -1351,10 +1321,13 @@ public Builder mergeFrom(
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1381,10 +1354,13 @@ public java.lang.String getName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1411,10 +1387,13 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1440,10 +1419,13 @@ public Builder setName(java.lang.String value) {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1465,10 +1447,13 @@ public Builder clearName() {
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -1999,6 +1984,7 @@ public Builder putAllAnnotations(java.util.Map
@@ -2025,6 +2011,7 @@ public java.lang.String getEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2051,6 +2038,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2076,6 +2064,7 @@ public Builder setEtag(java.lang.String value) {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -2097,6 +2086,7 @@ public Builder clearEtag() {
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
index 7c1c6a9bb9..e64fe2d448 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyOperationMetadata();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_PolicyOperationMetadata_descriptor;
@@ -360,39 +355,6 @@ private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result)
}
}
- @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.v2beta.PolicyOperationMetadata) {
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java
index a1a4d2a7b2..2c6929cd7e 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java
@@ -29,10 +29,13 @@ public interface PolicyOrBuilder
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -49,10 +52,13 @@ public interface PolicyOrBuilder
*
* Immutable. The resource name of the `Policy`, which must be unique. Format:
* `policies/{attachment_point}/denypolicies/{policy_id}`
+ *
+ *
* The attachment point is identified by its URL-encoded full resource name,
* which means that the forward-slash character, `/`, must be written as
* `%2F`. For example,
* `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
+ *
* For organizations and folders, use the numeric ID in the full resource
* name. For projects, requests can use the alphanumeric or the numeric ID.
* Responses always contain the numeric ID.
@@ -213,6 +219,7 @@ java.lang.String getAnnotationsOrDefault(
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
@@ -229,6 +236,7 @@ java.lang.String getAnnotationsOrDefault(
* An opaque tag that identifies the current version of the `Policy`. IAM uses
* this value to help manage concurrent updates, so they do not cause one
* update to be overwritten by another.
+ *
* If this field is present in a [CreatePolicy][] request, the value is
* ignored.
*
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
index ac3be8e6d1..fab21840a2 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java
@@ -82,59 +82,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ield_behavior.proto\032\034google/iam/v2beta/d"
+ "eny.proto\032#google/longrunning/operations"
+ ".proto\032\037google/protobuf/timestamp.proto\""
- + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001"
- + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na"
- + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i"
- + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta"
- + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr"
- + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d"
- + "elete_time\030\t \001(\0132\032.google.protobuf.Times"
- + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2"
- + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k"
- + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul"
- + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta"
- + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind"
- + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB"
- + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 "
- + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030"
- + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next"
- + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n"
- + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022"
- + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g"
- + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i"
- + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy"
- + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";"
- + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002"
- + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe"
- + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro"
- + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol"
- + "icies\022&.google.iam.v2beta.ListPoliciesRe"
- + "quest\032\'.google.iam.v2beta.ListPoliciesRe"
- + "sponse\".\202\323\344\223\002\037\022\035/v2beta/{parent=policies"
- + "/*/*}\332A\006parent\022y\n\tGetPolicy\022#.google.iam"
- + ".v2beta.GetPolicyRequest\032\031.google.iam.v2"
- + "beta.Policy\",\202\323\344\223\002\037\022\035/v2beta/{name=polic"
- + "ies/*/*/*}\332A\004name\022\302\001\n\014CreatePolicy\022&.goo"
- + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo"
- + "gle.longrunning.Operation\"k\202\323\344\223\002\'\"\035/v2be"
- + "ta/{parent=policies/*/*}:\006policy\332A\027paren"
- + "t,policy,policy_id\312A!\n\006Policy\022\027PolicyOpe"
- + "rationMetadata\022\257\001\n\014UpdatePolicy\022&.google"
- + ".iam.v2beta.UpdatePolicyRequest\032\035.google"
- + ".longrunning.Operation\"X\202\323\344\223\002.\032$/v2beta/"
- + "{policy.name=policies/*/*/*}:\006policy\312A!\n"
- + "\006Policy\022\027PolicyOperationMetadata\022\247\001\n\014Del"
- + "etePolicy\022&.google.iam.v2beta.DeletePoli"
- + "cyRequest\032\035.google.longrunning.Operation"
- + "\"P\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/*}\332"
- + "A\004name\312A!\n\006Policy\022\027PolicyOperationMetada"
- + "ta\032F\312A\022iam.googleapis.com\322A.https://www."
- + "googleapis.com/auth/cloud-platformB\211\001\n\025c"
- + "om.google.iam.v2betaB\013PolicyProtoP\001Z-clo"
- + "ud.google.com/go/iam/apiv2beta/iampb;iam"
- + "pb\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Google\\Cl"
- + "oud\\Iam\\V2betab\006proto3"
+ + "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 "
+ + "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display"
+ + "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl"
+ + "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004"
+ + "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google"
+ + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time"
+ + "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
+ + "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf."
+ + "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google."
+ + "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol"
+ + "icyRule\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam."
+ + "v2beta.DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006"
+ + "\n\004kind\"R\n\023ListPoliciesRequest\022\024\n\006parent\030"
+ + "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t"
+ + "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po"
+ + "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022"
+ + "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq"
+ + "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy"
+ + "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030"
+ + "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021"
+ + "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest"
+ + "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol"
+ + "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name"
+ + "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli"
+ + "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013"
+ + "2\032.google.protobuf.Timestamp2\200\007\n\010Policie"
+ + "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L"
+ + "istPoliciesRequest\032\'.google.iam.v2beta.L"
+ + "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v"
+ + "2beta/{parent=policies/*/*}\022y\n\tGetPolicy"
+ + "\022#.google.iam.v2beta.GetPolicyRequest\032\031."
+ + "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022"
+ + "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat"
+ + "ePolicy\022&.google.iam.v2beta.CreatePolicy"
+ + "Request\032\035.google.longrunning.Operation\"k"
+ + "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p"
+ + "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p"
+ + "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo"
+ + "licy\022&.google.iam.v2beta.UpdatePolicyReq"
+ + "uest\032\035.google.longrunning.Operation\"X\312A!"
+ + "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032"
+ + "$/v2beta/{policy.name=policies/*/*/*}:\006p"
+ + "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be"
+ + "ta.DeletePolicyRequest\032\035.google.longrunn"
+ + "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat"
+ + "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name="
+ + "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A"
+ + ".https://www.googleapis.com/auth/cloud-p"
+ + "latformB\211\001\n\025com.google.iam.v2betaB\013Polic"
+ + "yProtoP\001Z-cloud.google.com/go/iam/apiv2b"
+ + "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet"
+ + "a\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
index 8da3bc2c5e..c326c9b44e 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PolicyRule();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_PolicyRule_descriptor;
@@ -67,6 +62,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
private int kindCase_ = 0;
+
+ @SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
@@ -489,39 +486,6 @@ private void buildPartialOneofs(com.google.iam.v2beta.PolicyRule result) {
}
}
- @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.v2beta.PolicyRule) {
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java
index 1c71f86bff..f6463abdbb 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java
@@ -85,5 +85,5 @@ public interface PolicyRuleOrBuilder
*/
com.google.protobuf.ByteString getDescriptionBytes();
- public com.google.iam.v2beta.PolicyRule.KindCase getKindCase();
+ com.google.iam.v2beta.PolicyRule.KindCase getKindCase();
}
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java
index 97a01efac9..ef0b3c287f 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UpdatePolicyRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.iam.v2beta.PolicyProto
.internal_static_google_iam_v2beta_UpdatePolicyRequest_descriptor;
@@ -72,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -90,6 +86,7 @@ public boolean hasPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -108,6 +105,7 @@ public com.google.iam.v2beta.Policy getPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -369,39 +367,6 @@ private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) {
}
}
- @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.v2beta.UpdatePolicyRequest) {
@@ -479,6 +444,7 @@ public Builder mergeFrom(
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -496,6 +462,7 @@ public boolean hasPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -517,6 +484,7 @@ public com.google.iam.v2beta.Policy getPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -542,6 +510,7 @@ public Builder setPolicy(com.google.iam.v2beta.Policy value) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -564,6 +533,7 @@ public Builder setPolicy(com.google.iam.v2beta.Policy.Builder builderForValue) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -592,6 +562,7 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -614,6 +585,7 @@ public Builder clearPolicy() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -631,6 +603,7 @@ public com.google.iam.v2beta.Policy.Builder getPolicyBuilder() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -650,6 +623,7 @@ public com.google.iam.v2beta.PolicyOrBuilder getPolicyOrBuilder() {
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
index ffbd2892e1..231607713a 100644
--- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
+++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java
@@ -28,6 +28,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -43,6 +44,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
@@ -58,6 +60,7 @@ public interface UpdatePolicyRequestOrBuilder
*
*
* Required. The policy to update.
+ *
* To prevent conflicting updates, the `etag` value must match the value that
* is stored in IAM. If the `etag` values do not match, the request fails with
* a `409` error code and `ABORTED` status.
diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml
index 0bf0558d90..e5aed6bf61 100644
--- a/java-shared-dependencies/dependency-convergence-check/pom.xml
+++ b/java-shared-dependencies/dependency-convergence-check/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
shared-dependencies-dependency-convergence-test
- 3.9.0
+ 3.10.0
Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies
An dependency convergence test case for the shared dependencies BOM. A failure of this test case means
diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml
index 849b1395c7..57e59d3260 100644
--- a/java-shared-dependencies/first-party-dependencies/pom.xml
+++ b/java-shared-dependencies/first-party-dependencies/pom.xml
@@ -6,7 +6,7 @@
com.google.cloud
first-party-dependencies
pom
- 3.9.0
+ 3.10.0
Google Cloud First-party Shared Dependencies
Shared first-party dependencies for Google Cloud Java libraries.
@@ -35,7 +35,7 @@
com.google.api
gapic-generator-java-bom
- 2.19.0
+ 2.20.0
pom
import
@@ -52,7 +52,7 @@
com.google.cloud
google-cloud-core-bom
- 2.17.0
+ 2.18.0
pom
import
@@ -83,13 +83,13 @@
com.google.cloud
google-cloud-core
- 2.17.0
+ 2.18.0
test-jar
com.google.cloud
google-cloud-core
- 2.17.0
+ 2.18.0
tests
diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml
index e7ca4cc3c3..695a6cc631 100644
--- a/java-shared-dependencies/pom.xml
+++ b/java-shared-dependencies/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-shared-dependencies
pom
- 3.9.0
+ 3.10.0
first-party-dependencies
third-party-dependencies
@@ -17,7 +17,7 @@
com.google.api
gapic-generator-java-pom-parent
- 2.19.0
+ 2.20.0
../gapic-generator-java-pom-parent
@@ -31,14 +31,14 @@
com.google.cloud
first-party-dependencies
- 3.9.0
+ 3.10.0
pom
import
com.google.cloud
third-party-dependencies
- 3.9.0
+ 3.10.0
pom
import
diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml
index 6e5af001d8..c2808c7b94 100644
--- a/java-shared-dependencies/third-party-dependencies/pom.xml
+++ b/java-shared-dependencies/third-party-dependencies/pom.xml
@@ -6,7 +6,7 @@
com.google.cloud
third-party-dependencies
pom
- 3.9.0
+ 3.10.0
Google Cloud Third-party Shared Dependencies
Shared third-party dependencies for Google Cloud Java libraries.
diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml
index 4e09d38b71..3952404b34 100644
--- a/java-shared-dependencies/upper-bound-check/pom.xml
+++ b/java-shared-dependencies/upper-bound-check/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
shared-dependencies-upper-bound-test
pom
- 3.9.0
+ 3.10.0
Upper bound test for Google Cloud Shared Dependencies
An upper bound test case for the shared dependencies BOM. A failure of this test case means
@@ -30,7 +30,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.9.0
+ 3.10.0
pom
import
diff --git a/showcase/README.md b/showcase/README.md
index 01f12161c7..a246a0416e 100644
--- a/showcase/README.md
+++ b/showcase/README.md
@@ -16,7 +16,7 @@ versions is not guaranteed. If changing the version of the server, it may also b
update to a compatible client version in `./WORKSPACE`.
```shell
-$ GAPIC_SHOWCASE_VERSION=0.27.0
+$ GAPIC_SHOWCASE_VERSION=0.28.0
$ go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$GAPIC_SHOWCASE_VERSION"
$ PATH=$PATH:`go env GOPATH`/bin
$ gapic-showcase --help
diff --git a/showcase/gapic-showcase/pom.xml b/showcase/gapic-showcase/pom.xml
index d6876b9c25..8663ade568 100644
--- a/showcase/gapic-showcase/pom.xml
+++ b/showcase/gapic-showcase/pom.xml
@@ -19,7 +19,7 @@
- 0.27.0
+ 0.28.0
diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java
new file mode 100644
index 0000000000..8adcda635f
--- /dev/null
+++ b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java
@@ -0,0 +1,168 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class StreamingSequenceName implements ResourceName {
+ private static final PathTemplate STREAMING_SEQUENCE =
+ PathTemplate.createWithoutUrlEncoding("streamingSequences/{streaming_sequence}");
+ private volatile Map fieldValuesMap;
+ private final String streamingSequence;
+
+ @Deprecated
+ protected StreamingSequenceName() {
+ streamingSequence = null;
+ }
+
+ private StreamingSequenceName(Builder builder) {
+ streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence());
+ }
+
+ public String getStreamingSequence() {
+ return streamingSequence;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ public static StreamingSequenceName of(String streamingSequence) {
+ return newBuilder().setStreamingSequence(streamingSequence).build();
+ }
+
+ public static String format(String streamingSequence) {
+ return newBuilder().setStreamingSequence(streamingSequence).build().toString();
+ }
+
+ public static StreamingSequenceName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ STREAMING_SEQUENCE.validatedMatch(
+ formattedString, "StreamingSequenceName.parse: formattedString not in valid format");
+ return of(matchMap.get("streaming_sequence"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList<>(values.size());
+ for (StreamingSequenceName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return STREAMING_SEQUENCE.matches(formattedString);
+ }
+
+ @Override
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ if (streamingSequence != null) {
+ fieldMapBuilder.put("streaming_sequence", streamingSequence);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null || getClass() == o.getClass()) {
+ StreamingSequenceName that = ((StreamingSequenceName) o);
+ return Objects.equals(this.streamingSequence, that.streamingSequence);
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= Objects.hashCode(streamingSequence);
+ return h;
+ }
+
+ /** Builder for streamingSequences/{streaming_sequence}. */
+ public static class Builder {
+ private String streamingSequence;
+
+ protected Builder() {}
+
+ public String getStreamingSequence() {
+ return streamingSequence;
+ }
+
+ public Builder setStreamingSequence(String streamingSequence) {
+ this.streamingSequence = streamingSequence;
+ return this;
+ }
+
+ private Builder(StreamingSequenceName streamingSequenceName) {
+ this.streamingSequence = streamingSequenceName.streamingSequence;
+ }
+
+ public StreamingSequenceName build() {
+ return new StreamingSequenceName(this);
+ }
+ }
+}
diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java
new file mode 100644
index 0000000000..106c07e1f9
--- /dev/null
+++ b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class StreamingSequenceReportName implements ResourceName {
+ private static final PathTemplate STREAMING_SEQUENCE =
+ PathTemplate.createWithoutUrlEncoding(
+ "streamingSequences/{streaming_sequence}/streamingSequenceReport");
+ private volatile Map fieldValuesMap;
+ private final String streamingSequence;
+
+ @Deprecated
+ protected StreamingSequenceReportName() {
+ streamingSequence = null;
+ }
+
+ private StreamingSequenceReportName(Builder builder) {
+ streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence());
+ }
+
+ public String getStreamingSequence() {
+ return streamingSequence;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ public static StreamingSequenceReportName of(String streamingSequence) {
+ return newBuilder().setStreamingSequence(streamingSequence).build();
+ }
+
+ public static String format(String streamingSequence) {
+ return newBuilder().setStreamingSequence(streamingSequence).build().toString();
+ }
+
+ public static StreamingSequenceReportName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ STREAMING_SEQUENCE.validatedMatch(
+ formattedString,
+ "StreamingSequenceReportName.parse: formattedString not in valid format");
+ return of(matchMap.get("streaming_sequence"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList<>(values.size());
+ for (StreamingSequenceReportName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return STREAMING_SEQUENCE.matches(formattedString);
+ }
+
+ @Override
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ if (streamingSequence != null) {
+ fieldMapBuilder.put("streaming_sequence", streamingSequence);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null || getClass() == o.getClass()) {
+ StreamingSequenceReportName that = ((StreamingSequenceReportName) o);
+ return Objects.equals(this.streamingSequence, that.streamingSequence);
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= Objects.hashCode(streamingSequence);
+ return h;
+ }
+
+ /** Builder for streamingSequences/{streaming_sequence}/streamingSequenceReport. */
+ public static class Builder {
+ private String streamingSequence;
+
+ protected Builder() {}
+
+ public String getStreamingSequence() {
+ return streamingSequence;
+ }
+
+ public Builder setStreamingSequence(String streamingSequence) {
+ this.streamingSequence = streamingSequence;
+ return this;
+ }
+
+ private Builder(StreamingSequenceReportName streamingSequenceReportName) {
+ this.streamingSequence = streamingSequenceReportName.streamingSequence;
+ }
+
+ public StreamingSequenceReportName build() {
+ return new StreamingSequenceReportName(this);
+ }
+ }
+}
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java
index 80c5f6d6b4..3b1c549c3e 100644
--- a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java
@@ -18,6 +18,7 @@
// [START localhost7469_v1beta1_generated_Echo_Expand_async]
import com.google.api.gax.rpc.ServerStream;
+import com.google.protobuf.Duration;
import com.google.rpc.Status;
import com.google.showcase.v1beta1.EchoClient;
import com.google.showcase.v1beta1.EchoResponse;
@@ -40,6 +41,7 @@ public static void asyncExpand() throws Exception {
ExpandRequest.newBuilder()
.setContent("content951530617")
.setError(Status.newBuilder().build())
+ .setStreamWaitTime(Duration.newBuilder().build())
.build();
ServerStream stream = echoClient.expandCallable().call(request);
for (EchoResponse response : stream) {
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java
new file mode 100644
index 0000000000..23b2a7e142
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async]
+import com.google.api.gax.rpc.ServerStream;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequenceName;
+
+public class AsyncAttemptStreamingSequence {
+
+ public static void main(String[] args) throws Exception {
+ asyncAttemptStreamingSequence();
+ }
+
+ public static void asyncAttemptStreamingSequence() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ AttemptStreamingSequenceRequest request =
+ AttemptStreamingSequenceRequest.newBuilder()
+ .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ .build();
+ ServerStream stream =
+ sequenceServiceClient.attemptStreamingSequenceCallable().call(request);
+ for (AttemptStreamingSequenceResponse response : stream) {
+ // Do something when a response is received.
+ }
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java
new file mode 100644
index 0000000000..4fd0acff60
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequence;
+
+public class AsyncCreateStreamingSequence {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateStreamingSequence();
+ }
+
+ public static void asyncCreateStreamingSequence() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ CreateStreamingSequenceRequest request =
+ CreateStreamingSequenceRequest.newBuilder()
+ .setStreamingSequence(StreamingSequence.newBuilder().build())
+ .build();
+ ApiFuture future =
+ sequenceServiceClient.createStreamingSequenceCallable().futureCall(request);
+ // Do something.
+ StreamingSequence response = future.get();
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java
new file mode 100644
index 0000000000..48fa25cbbd
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync]
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequence;
+
+public class SyncCreateStreamingSequence {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateStreamingSequence();
+ }
+
+ public static void syncCreateStreamingSequence() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ CreateStreamingSequenceRequest request =
+ CreateStreamingSequenceRequest.newBuilder()
+ .setStreamingSequence(StreamingSequence.newBuilder().build())
+ .build();
+ StreamingSequence response = sequenceServiceClient.createStreamingSequence(request);
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java
new file mode 100644
index 0000000000..ac87b6eb41
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync]
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequence;
+
+public class SyncCreateStreamingSequenceStreamingsequence {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateStreamingSequenceStreamingsequence();
+ }
+
+ public static void syncCreateStreamingSequenceStreamingsequence() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+ StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence);
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java
new file mode 100644
index 0000000000..710e38524d
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async]
+import com.google.api.core.ApiFuture;
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
+import com.google.showcase.v1beta1.StreamingSequenceReportName;
+
+public class AsyncGetStreamingSequenceReport {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetStreamingSequenceReport();
+ }
+
+ public static void asyncGetStreamingSequenceReport() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ GetStreamingSequenceReportRequest request =
+ GetStreamingSequenceReportRequest.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .build();
+ ApiFuture future =
+ sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request);
+ // Do something.
+ StreamingSequenceReport response = future.get();
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java
new file mode 100644
index 0000000000..1a3a3b9377
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync]
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
+import com.google.showcase.v1beta1.StreamingSequenceReportName;
+
+public class SyncGetStreamingSequenceReport {
+
+ public static void main(String[] args) throws Exception {
+ syncGetStreamingSequenceReport();
+ }
+
+ public static void syncGetStreamingSequenceReport() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ GetStreamingSequenceReportRequest request =
+ GetStreamingSequenceReportRequest.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .build();
+ StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request);
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java
new file mode 100644
index 0000000000..5a5952e9e6
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync]
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
+import com.google.showcase.v1beta1.StreamingSequenceReportName;
+
+public class SyncGetStreamingSequenceReportStreamingsequencereportname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetStreamingSequenceReportStreamingsequencereportname();
+ }
+
+ public static void syncGetStreamingSequenceReportStreamingsequencereportname() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+ StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync]
diff --git a/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java
new file mode 100644
index 0000000000..a869686aaa
--- /dev/null
+++ b/showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 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.
+ */
+
+package com.google.showcase.v1beta1.samples;
+
+// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync]
+import com.google.showcase.v1beta1.SequenceServiceClient;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
+import com.google.showcase.v1beta1.StreamingSequenceReportName;
+
+public class SyncGetStreamingSequenceReportString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetStreamingSequenceReportString();
+ }
+
+ public static void syncGetStreamingSequenceReportString() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString();
+ StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+ }
+ }
+}
+// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync]
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java
index db436f4b78..70decdf855 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java
@@ -293,6 +293,7 @@ public final UnaryCallable echoCallable() {
* ExpandRequest.newBuilder()
* .setContent("content951530617")
* .setError(Status.newBuilder().build())
+ * .setStreamWaitTime(Duration.newBuilder().build())
* .build();
* ServerStream stream = echoClient.expandCallable().call(request);
* for (EchoResponse response : stream) {
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java
index 58b9d96d7b..c49de63088 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java
@@ -24,6 +24,7 @@
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -259,6 +260,90 @@ public final UnaryCallable createSequenceCallab
return stub.createSequenceCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+ * StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence);
+ * }
+ * }
+ *
+ * @param streamingSequence
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StreamingSequence createStreamingSequence(StreamingSequence streamingSequence) {
+ CreateStreamingSequenceRequest request =
+ CreateStreamingSequenceRequest.newBuilder().setStreamingSequence(streamingSequence).build();
+ return createStreamingSequence(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * CreateStreamingSequenceRequest request =
+ * CreateStreamingSequenceRequest.newBuilder()
+ * .setStreamingSequence(StreamingSequence.newBuilder().build())
+ * .build();
+ * StreamingSequence response = sequenceServiceClient.createStreamingSequence(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StreamingSequence createStreamingSequence(CreateStreamingSequenceRequest request) {
+ return createStreamingSequenceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * CreateStreamingSequenceRequest request =
+ * CreateStreamingSequenceRequest.newBuilder()
+ * .setStreamingSequence(StreamingSequence.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * sequenceServiceClient.createStreamingSequenceCallable().futureCall(request);
+ * // Do something.
+ * StreamingSequence response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createStreamingSequenceCallable() {
+ return stub.createStreamingSequenceCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Retrieves a sequence.
@@ -370,6 +455,121 @@ public final UnaryCallable getSequence
return stub.getSequenceReportCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+ * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+ * }
+ * }
+ *
+ * @param name
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StreamingSequenceReport getStreamingSequenceReport(
+ StreamingSequenceReportName name) {
+ GetStreamingSequenceReportRequest request =
+ GetStreamingSequenceReportRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getStreamingSequenceReport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString();
+ * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
+ * }
+ * }
+ *
+ * @param name
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StreamingSequenceReport getStreamingSequenceReport(String name) {
+ GetStreamingSequenceReportRequest request =
+ GetStreamingSequenceReportRequest.newBuilder().setName(name).build();
+ return getStreamingSequenceReport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * GetStreamingSequenceReportRequest request =
+ * GetStreamingSequenceReportRequest.newBuilder()
+ * .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ * .build();
+ * StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StreamingSequenceReport getStreamingSequenceReport(
+ GetStreamingSequenceReportRequest request) {
+ return getStreamingSequenceReportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * GetStreamingSequenceReportRequest request =
+ * GetStreamingSequenceReportRequest.newBuilder()
+ * .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ * .build();
+ * ApiFuture future =
+ * sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request);
+ * // Do something.
+ * StreamingSequenceReport response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getStreamingSequenceReportCallable() {
+ return stub.getStreamingSequenceReportCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Attempts a sequence.
@@ -478,6 +678,37 @@ public final UnaryCallable attemptSequenceCallabl
return stub.attemptSequenceCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Attempts a streaming sequence.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
+ * AttemptStreamingSequenceRequest request =
+ * AttemptStreamingSequenceRequest.newBuilder()
+ * .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ * .build();
+ * ServerStream stream =
+ * sequenceServiceClient.attemptStreamingSequenceCallable().call(request);
+ * for (AttemptStreamingSequenceResponse response : stream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ */
+ public final ServerStreamingCallable<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceCallable() {
+ return stub.attemptStreamingSequenceCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java
index 484bd124e7..083da1863c 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java
@@ -28,6 +28,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
@@ -87,16 +88,35 @@ public UnaryCallSettings createSequenceSettings
return ((SequenceServiceStubSettings) getStubSettings()).createSequenceSettings();
}
+ /** Returns the object with the settings used for calls to createStreamingSequence. */
+ public UnaryCallSettings
+ createStreamingSequenceSettings() {
+ return ((SequenceServiceStubSettings) getStubSettings()).createStreamingSequenceSettings();
+ }
+
/** Returns the object with the settings used for calls to getSequenceReport. */
public UnaryCallSettings getSequenceReportSettings() {
return ((SequenceServiceStubSettings) getStubSettings()).getSequenceReportSettings();
}
+ /** Returns the object with the settings used for calls to getStreamingSequenceReport. */
+ public UnaryCallSettings
+ getStreamingSequenceReportSettings() {
+ return ((SequenceServiceStubSettings) getStubSettings()).getStreamingSequenceReportSettings();
+ }
+
/** Returns the object with the settings used for calls to attemptSequence. */
public UnaryCallSettings attemptSequenceSettings() {
return ((SequenceServiceStubSettings) getStubSettings()).attemptSequenceSettings();
}
+ /** Returns the object with the settings used for calls to attemptStreamingSequence. */
+ public ServerStreamingCallSettings<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings() {
+ return ((SequenceServiceStubSettings) getStubSettings()).attemptStreamingSequenceSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -228,17 +248,36 @@ public UnaryCallSettings.Builder createSequence
return getStubSettingsBuilder().createSequenceSettings();
}
+ /** Returns the builder for the settings used for calls to createStreamingSequence. */
+ public UnaryCallSettings.Builder
+ createStreamingSequenceSettings() {
+ return getStubSettingsBuilder().createStreamingSequenceSettings();
+ }
+
/** Returns the builder for the settings used for calls to getSequenceReport. */
public UnaryCallSettings.Builder
getSequenceReportSettings() {
return getStubSettingsBuilder().getSequenceReportSettings();
}
+ /** Returns the builder for the settings used for calls to getStreamingSequenceReport. */
+ public UnaryCallSettings.Builder
+ getStreamingSequenceReportSettings() {
+ return getStubSettingsBuilder().getStreamingSequenceReportSettings();
+ }
+
/** Returns the builder for the settings used for calls to attemptSequence. */
public UnaryCallSettings.Builder attemptSequenceSettings() {
return getStubSettingsBuilder().attemptSequenceSettings();
}
+ /** Returns the builder for the settings used for calls to attemptStreamingSequence. */
+ public ServerStreamingCallSettings.Builder<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings() {
+ return getStubSettingsBuilder().attemptStreamingSequenceSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json
index 5dca2e3fd9..b79bfb905f 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json
@@ -187,15 +187,24 @@
"AttemptSequence": {
"methods": ["attemptSequence", "attemptSequence", "attemptSequence", "attemptSequenceCallable"]
},
+ "AttemptStreamingSequence": {
+ "methods": ["attemptStreamingSequenceCallable"]
+ },
"CreateSequence": {
"methods": ["createSequence", "createSequence", "createSequenceCallable"]
},
+ "CreateStreamingSequence": {
+ "methods": ["createStreamingSequence", "createStreamingSequence", "createStreamingSequenceCallable"]
+ },
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"GetSequenceReport": {
"methods": ["getSequenceReport", "getSequenceReport", "getSequenceReport", "getSequenceReportCallable"]
},
+ "GetStreamingSequenceReport": {
+ "methods": ["getStreamingSequenceReport", "getStreamingSequenceReport", "getStreamingSequenceReport", "getStreamingSequenceReportCallable"]
+ },
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
}
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java
index 411d9ab420..24c4d58065 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java
@@ -24,6 +24,7 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -33,10 +34,16 @@
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import com.google.showcase.v1beta1.AttemptSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
import com.google.showcase.v1beta1.CreateSequenceRequest;
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
import com.google.showcase.v1beta1.GetSequenceReportRequest;
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
import com.google.showcase.v1beta1.Sequence;
import com.google.showcase.v1beta1.SequenceReport;
+import com.google.showcase.v1beta1.StreamingSequence;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
@@ -63,6 +70,16 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Sequence.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ createStreamingSequenceMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.showcase.v1beta1.SequenceService/CreateStreamingSequence")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateStreamingSequenceRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(StreamingSequence.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
getSequenceReportMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -73,6 +90,18 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(SequenceReport.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ getStreamingSequenceReportMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.showcase.v1beta1.SequenceService/GetStreamingSequenceReport")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetStreamingSequenceReportRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(StreamingSequenceReport.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
attemptSequenceMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -83,6 +112,19 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName("google.showcase.v1beta1.SequenceService/AttemptStreamingSequence")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(AttemptStreamingSequenceRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(AttemptStreamingSequenceResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -103,8 +145,15 @@ public class GrpcSequenceServiceStub extends SequenceServiceStub {
.build();
private final UnaryCallable createSequenceCallable;
+ private final UnaryCallable
+ createStreamingSequenceCallable;
private final UnaryCallable getSequenceReportCallable;
+ private final UnaryCallable
+ getStreamingSequenceReportCallable;
private final UnaryCallable attemptSequenceCallable;
+ private final ServerStreamingCallable<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -158,6 +207,11 @@ protected GrpcSequenceServiceStub(
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createSequenceMethodDescriptor)
.build();
+ GrpcCallSettings
+ createStreamingSequenceTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createStreamingSequenceMethodDescriptor)
+ .build();
GrpcCallSettings getSequenceReportTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getSequenceReportMethodDescriptor)
@@ -168,6 +222,18 @@ protected GrpcSequenceServiceStub(
return params.build();
})
.build();
+ GrpcCallSettings
+ getStreamingSequenceReportTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(getStreamingSequenceReportMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
GrpcCallSettings attemptSequenceTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(attemptSequenceMethodDescriptor)
@@ -178,6 +244,18 @@ protected GrpcSequenceServiceStub(
return params.build();
})
.build();
+ GrpcCallSettings
+ attemptStreamingSequenceTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(attemptStreamingSequenceMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -202,14 +280,29 @@ protected GrpcSequenceServiceStub(
this.createSequenceCallable =
callableFactory.createUnaryCallable(
createSequenceTransportSettings, settings.createSequenceSettings(), clientContext);
+ this.createStreamingSequenceCallable =
+ callableFactory.createUnaryCallable(
+ createStreamingSequenceTransportSettings,
+ settings.createStreamingSequenceSettings(),
+ clientContext);
this.getSequenceReportCallable =
callableFactory.createUnaryCallable(
getSequenceReportTransportSettings,
settings.getSequenceReportSettings(),
clientContext);
+ this.getStreamingSequenceReportCallable =
+ callableFactory.createUnaryCallable(
+ getStreamingSequenceReportTransportSettings,
+ settings.getStreamingSequenceReportSettings(),
+ clientContext);
this.attemptSequenceCallable =
callableFactory.createUnaryCallable(
attemptSequenceTransportSettings, settings.attemptSequenceSettings(), clientContext);
+ this.attemptStreamingSequenceCallable =
+ callableFactory.createServerStreamingCallable(
+ attemptStreamingSequenceTransportSettings,
+ settings.attemptStreamingSequenceSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -233,16 +326,34 @@ public UnaryCallable createSequenceCallable() {
return createSequenceCallable;
}
+ @Override
+ public UnaryCallable
+ createStreamingSequenceCallable() {
+ return createStreamingSequenceCallable;
+ }
+
@Override
public UnaryCallable getSequenceReportCallable() {
return getSequenceReportCallable;
}
+ @Override
+ public UnaryCallable
+ getStreamingSequenceReportCallable() {
+ return getStreamingSequenceReportCallable;
+ }
+
@Override
public UnaryCallable attemptSequenceCallable() {
return attemptSequenceCallable;
}
+ @Override
+ public ServerStreamingCallable
+ attemptStreamingSequenceCallable() {
+ return attemptStreamingSequenceCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java
index 44f5f0e2bb..86e488d457 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java
@@ -29,6 +29,7 @@
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -37,10 +38,16 @@
import com.google.protobuf.Empty;
import com.google.protobuf.TypeRegistry;
import com.google.showcase.v1beta1.AttemptSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
import com.google.showcase.v1beta1.CreateSequenceRequest;
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
import com.google.showcase.v1beta1.GetSequenceReportRequest;
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
import com.google.showcase.v1beta1.Sequence;
import com.google.showcase.v1beta1.SequenceReport;
+import com.google.showcase.v1beta1.StreamingSequence;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
@@ -95,6 +102,42 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ createStreamingSequenceMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.showcase.v1beta1.SequenceService/CreateStreamingSequence")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1beta1/streamingSequences",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody(
+ "streamingSequence", request.getStreamingSequence(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(StreamingSequence.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
getSequenceReportMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -128,6 +171,42 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub {
.build())
.build();
+ private static final ApiMethodDescriptor<
+ GetStreamingSequenceReportRequest, StreamingSequenceReport>
+ getStreamingSequenceReportMethodDescriptor =
+ ApiMethodDescriptor
+ .newBuilder()
+ .setFullMethodName(
+ "google.showcase.v1beta1.SequenceService/GetStreamingSequenceReport")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1beta1/{name=streamingSequences/*/streamingSequenceReport}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(StreamingSequenceReport.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
attemptSequenceMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -164,6 +243,44 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub {
.build())
.build();
+ private static final ApiMethodDescriptor<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceMethodDescriptor =
+ ApiMethodDescriptor
+ .newBuilder()
+ .setFullMethodName("google.showcase.v1beta1.SequenceService/AttemptStreamingSequence")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1beta1/{name=streamingSequences/*}:stream",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearName().build(), false))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(AttemptStreamingSequenceResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -231,8 +348,15 @@ public class HttpJsonSequenceServiceStub extends SequenceServiceStub {
.build();
private final UnaryCallable createSequenceCallable;
+ private final UnaryCallable
+ createStreamingSequenceCallable;
private final UnaryCallable getSequenceReportCallable;
+ private final UnaryCallable
+ getStreamingSequenceReportCallable;
private final UnaryCallable attemptSequenceCallable;
+ private final ServerStreamingCallable<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -285,17 +409,37 @@ protected HttpJsonSequenceServiceStub(
.setMethodDescriptor(createSequenceMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
+ HttpJsonCallSettings
+ createStreamingSequenceTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(createStreamingSequenceMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .build();
HttpJsonCallSettings
getSequenceReportTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getSequenceReportMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
+ HttpJsonCallSettings
+ getStreamingSequenceReportTransportSettings =
+ HttpJsonCallSettings
+ .newBuilder()
+ .setMethodDescriptor(getStreamingSequenceReportMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .build();
HttpJsonCallSettings attemptSequenceTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(attemptSequenceMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
+ HttpJsonCallSettings
+ attemptStreamingSequenceTransportSettings =
+ HttpJsonCallSettings
+ .newBuilder()
+ .setMethodDescriptor(attemptStreamingSequenceMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -311,14 +455,29 @@ protected HttpJsonSequenceServiceStub(
this.createSequenceCallable =
callableFactory.createUnaryCallable(
createSequenceTransportSettings, settings.createSequenceSettings(), clientContext);
+ this.createStreamingSequenceCallable =
+ callableFactory.createUnaryCallable(
+ createStreamingSequenceTransportSettings,
+ settings.createStreamingSequenceSettings(),
+ clientContext);
this.getSequenceReportCallable =
callableFactory.createUnaryCallable(
getSequenceReportTransportSettings,
settings.getSequenceReportSettings(),
clientContext);
+ this.getStreamingSequenceReportCallable =
+ callableFactory.createUnaryCallable(
+ getStreamingSequenceReportTransportSettings,
+ settings.getStreamingSequenceReportSettings(),
+ clientContext);
this.attemptSequenceCallable =
callableFactory.createUnaryCallable(
attemptSequenceTransportSettings, settings.attemptSequenceSettings(), clientContext);
+ this.attemptStreamingSequenceCallable =
+ callableFactory.createServerStreamingCallable(
+ attemptStreamingSequenceTransportSettings,
+ settings.attemptStreamingSequenceSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -337,8 +496,11 @@ protected HttpJsonSequenceServiceStub(
public static List getMethodDescriptors() {
List methodDescriptors = new ArrayList<>();
methodDescriptors.add(createSequenceMethodDescriptor);
+ methodDescriptors.add(createStreamingSequenceMethodDescriptor);
methodDescriptors.add(getSequenceReportMethodDescriptor);
+ methodDescriptors.add(getStreamingSequenceReportMethodDescriptor);
methodDescriptors.add(attemptSequenceMethodDescriptor);
+ methodDescriptors.add(attemptStreamingSequenceMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
return methodDescriptors;
@@ -349,16 +511,34 @@ public UnaryCallable createSequenceCallable() {
return createSequenceCallable;
}
+ @Override
+ public UnaryCallable
+ createStreamingSequenceCallable() {
+ return createStreamingSequenceCallable;
+ }
+
@Override
public UnaryCallable getSequenceReportCallable() {
return getSequenceReportCallable;
}
+ @Override
+ public UnaryCallable
+ getStreamingSequenceReportCallable() {
+ return getStreamingSequenceReportCallable;
+ }
+
@Override
public UnaryCallable attemptSequenceCallable() {
return attemptSequenceCallable;
}
+ @Override
+ public ServerStreamingCallable
+ attemptStreamingSequenceCallable() {
+ return attemptStreamingSequenceCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java
index ddc3d06cb4..45c67ac0d6 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java
@@ -20,6 +20,7 @@
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
@@ -27,10 +28,16 @@
import com.google.cloud.location.Location;
import com.google.protobuf.Empty;
import com.google.showcase.v1beta1.AttemptSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
import com.google.showcase.v1beta1.CreateSequenceRequest;
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
import com.google.showcase.v1beta1.GetSequenceReportRequest;
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
import com.google.showcase.v1beta1.Sequence;
import com.google.showcase.v1beta1.SequenceReport;
+import com.google.showcase.v1beta1.StreamingSequence;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -47,14 +54,30 @@ public UnaryCallable createSequenceCallable() {
throw new UnsupportedOperationException("Not implemented: createSequenceCallable()");
}
+ public UnaryCallable
+ createStreamingSequenceCallable() {
+ throw new UnsupportedOperationException("Not implemented: createStreamingSequenceCallable()");
+ }
+
public UnaryCallable getSequenceReportCallable() {
throw new UnsupportedOperationException("Not implemented: getSequenceReportCallable()");
}
+ public UnaryCallable
+ getStreamingSequenceReportCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: getStreamingSequenceReportCallable()");
+ }
+
public UnaryCallable attemptSequenceCallable() {
throw new UnsupportedOperationException("Not implemented: attemptSequenceCallable()");
}
+ public ServerStreamingCallable
+ attemptStreamingSequenceCallable() {
+ throw new UnsupportedOperationException("Not implemented: attemptStreamingSequenceCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java
index 67f42ebd0c..cb794357a3 100644
--- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java
+++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java
@@ -38,6 +38,7 @@
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.PagedListDescriptor;
import com.google.api.gax.rpc.PagedListResponseFactory;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.StatusCode;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
@@ -53,10 +54,16 @@
import com.google.common.collect.Lists;
import com.google.protobuf.Empty;
import com.google.showcase.v1beta1.AttemptSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
+import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
import com.google.showcase.v1beta1.CreateSequenceRequest;
+import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
import com.google.showcase.v1beta1.GetSequenceReportRequest;
+import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
import com.google.showcase.v1beta1.Sequence;
import com.google.showcase.v1beta1.SequenceReport;
+import com.google.showcase.v1beta1.StreamingSequence;
+import com.google.showcase.v1beta1.StreamingSequenceReport;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
@@ -107,9 +114,16 @@ public class SequenceServiceStubSettings extends StubSettingsbuilder().build();
private final UnaryCallSettings createSequenceSettings;
+ private final UnaryCallSettings
+ createStreamingSequenceSettings;
private final UnaryCallSettings
getSequenceReportSettings;
+ private final UnaryCallSettings
+ getStreamingSequenceReportSettings;
private final UnaryCallSettings attemptSequenceSettings;
+ private final ServerStreamingCallSettings<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -173,16 +187,35 @@ public UnaryCallSettings createSequenceSettings
return createSequenceSettings;
}
+ /** Returns the object with the settings used for calls to createStreamingSequence. */
+ public UnaryCallSettings
+ createStreamingSequenceSettings() {
+ return createStreamingSequenceSettings;
+ }
+
/** Returns the object with the settings used for calls to getSequenceReport. */
public UnaryCallSettings getSequenceReportSettings() {
return getSequenceReportSettings;
}
+ /** Returns the object with the settings used for calls to getStreamingSequenceReport. */
+ public UnaryCallSettings
+ getStreamingSequenceReportSettings() {
+ return getStreamingSequenceReportSettings;
+ }
+
/** Returns the object with the settings used for calls to attemptSequence. */
public UnaryCallSettings attemptSequenceSettings() {
return attemptSequenceSettings;
}
+ /** Returns the object with the settings used for calls to attemptStreamingSequence. */
+ public ServerStreamingCallSettings<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings() {
+ return attemptStreamingSequenceSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -301,8 +334,12 @@ protected SequenceServiceStubSettings(Builder settingsBuilder) throws IOExceptio
super(settingsBuilder);
createSequenceSettings = settingsBuilder.createSequenceSettings().build();
+ createStreamingSequenceSettings = settingsBuilder.createStreamingSequenceSettings().build();
getSequenceReportSettings = settingsBuilder.getSequenceReportSettings().build();
+ getStreamingSequenceReportSettings =
+ settingsBuilder.getStreamingSequenceReportSettings().build();
attemptSequenceSettings = settingsBuilder.attemptSequenceSettings().build();
+ attemptStreamingSequenceSettings = settingsBuilder.attemptStreamingSequenceSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -311,9 +348,17 @@ protected SequenceServiceStubSettings(Builder settingsBuilder) throws IOExceptio
public static class Builder extends StubSettings.Builder {
private final ImmutableList> unaryMethodSettingsBuilders;
private final UnaryCallSettings.Builder createSequenceSettings;
+ private final UnaryCallSettings.Builder
+ createStreamingSequenceSettings;
private final UnaryCallSettings.Builder
getSequenceReportSettings;
+ private final UnaryCallSettings.Builder<
+ GetStreamingSequenceReportRequest, StreamingSequenceReport>
+ getStreamingSequenceReportSettings;
private final UnaryCallSettings.Builder attemptSequenceSettings;
+ private final ServerStreamingCallSettings.Builder<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -369,15 +414,20 @@ protected Builder(ClientContext clientContext) {
super(clientContext);
createSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createStreamingSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
getSequenceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getStreamingSequenceReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
attemptSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ attemptStreamingSequenceSettings = ServerStreamingCallSettings.newBuilder();
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
createSequenceSettings,
+ createStreamingSequenceSettings,
getSequenceReportSettings,
+ getStreamingSequenceReportSettings,
attemptSequenceSettings,
listLocationsSettings,
getLocationSettings);
@@ -388,15 +438,20 @@ protected Builder(SequenceServiceStubSettings settings) {
super(settings);
createSequenceSettings = settings.createSequenceSettings.toBuilder();
+ createStreamingSequenceSettings = settings.createStreamingSequenceSettings.toBuilder();
getSequenceReportSettings = settings.getSequenceReportSettings.toBuilder();
+ getStreamingSequenceReportSettings = settings.getStreamingSequenceReportSettings.toBuilder();
attemptSequenceSettings = settings.attemptSequenceSettings.toBuilder();
+ attemptStreamingSequenceSettings = settings.attemptStreamingSequenceSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
createSequenceSettings,
+ createStreamingSequenceSettings,
getSequenceReportSettings,
+ getStreamingSequenceReportSettings,
attemptSequenceSettings,
listLocationsSettings,
getLocationSettings);
@@ -434,16 +489,31 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+ builder
+ .createStreamingSequenceSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
builder
.getSequenceReportSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+ builder
+ .getStreamingSequenceReportSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
builder
.attemptSequenceSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+ builder
+ .attemptStreamingSequenceSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
@@ -477,17 +547,36 @@ public UnaryCallSettings.Builder createSequence
return createSequenceSettings;
}
+ /** Returns the builder for the settings used for calls to createStreamingSequence. */
+ public UnaryCallSettings.Builder
+ createStreamingSequenceSettings() {
+ return createStreamingSequenceSettings;
+ }
+
/** Returns the builder for the settings used for calls to getSequenceReport. */
public UnaryCallSettings.Builder
getSequenceReportSettings() {
return getSequenceReportSettings;
}
+ /** Returns the builder for the settings used for calls to getStreamingSequenceReport. */
+ public UnaryCallSettings.Builder
+ getStreamingSequenceReportSettings() {
+ return getStreamingSequenceReportSettings;
+ }
+
/** Returns the builder for the settings used for calls to attemptSequence. */
public UnaryCallSettings.Builder attemptSequenceSettings() {
return attemptSequenceSettings;
}
+ /** Returns the builder for the settings used for calls to attemptStreamingSequence. */
+ public ServerStreamingCallSettings.Builder<
+ AttemptStreamingSequenceRequest, AttemptStreamingSequenceResponse>
+ attemptStreamingSequenceSettings() {
+ return attemptStreamingSequenceSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java
index 5720a2c807..c36512bbab 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java
+++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/EchoClientTest.java
@@ -166,6 +166,7 @@ public void expandTest() throws Exception {
ExpandRequest.newBuilder()
.setContent("content951530617")
.setError(Status.newBuilder().build())
+ .setStreamWaitTime(Duration.newBuilder().build())
.build();
MockStreamObserver responseObserver = new MockStreamObserver<>();
@@ -186,6 +187,7 @@ public void expandExceptionTest() throws Exception {
ExpandRequest.newBuilder()
.setContent("content951530617")
.setError(Status.newBuilder().build())
+ .setStreamWaitTime(Duration.newBuilder().build())
.build();
MockStreamObserver responseObserver = new MockStreamObserver<>();
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java
index a529856c95..718d5419b0 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java
+++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/MockSequenceServiceImpl.java
@@ -80,6 +80,27 @@ public void createSequence(
}
}
+ @Override
+ public void createStreamingSequence(
+ CreateStreamingSequenceRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof StreamingSequence) {
+ requests.add(request);
+ responseObserver.onNext(((StreamingSequence) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method CreateStreamingSequence, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ StreamingSequence.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void getSequenceReport(
GetSequenceReportRequest request, StreamObserver responseObserver) {
@@ -101,6 +122,28 @@ public void getSequenceReport(
}
}
+ @Override
+ public void getStreamingSequenceReport(
+ GetStreamingSequenceReportRequest request,
+ StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof StreamingSequenceReport) {
+ requests.add(request);
+ responseObserver.onNext(((StreamingSequenceReport) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GetStreamingSequenceReport, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ StreamingSequenceReport.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void attemptSequence(
AttemptSequenceRequest request, StreamObserver responseObserver) {
@@ -121,4 +164,26 @@ public void attemptSequence(
Exception.class.getName())));
}
}
+
+ @Override
+ public void attemptStreamingSequence(
+ AttemptStreamingSequenceRequest request,
+ StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof AttemptStreamingSequenceResponse) {
+ requests.add(request);
+ responseObserver.onNext(((AttemptStreamingSequenceResponse) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method AttemptStreamingSequence, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ AttemptStreamingSequenceResponse.class.getName(),
+ Exception.class.getName())));
+ }
+ }
}
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java
index 3b956caaab..3551e72112 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java
+++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientHttpJsonTest.java
@@ -128,6 +128,52 @@ public void createSequenceExceptionTest() throws Exception {
}
}
+ @Test
+ public void createStreamingSequenceTest() throws Exception {
+ StreamingSequence expectedResponse =
+ StreamingSequence.newBuilder()
+ .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ .setContent("content951530617")
+ .addAllResponses(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+
+ StreamingSequence actualResponse = client.createStreamingSequence(streamingSequence);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void createStreamingSequenceExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+ client.createStreamingSequence(streamingSequence);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void getSequenceReportTest() throws Exception {
SequenceReport expectedResponse =
@@ -218,6 +264,96 @@ public void getSequenceReportExceptionTest2() throws Exception {
}
}
+ @Test
+ public void getStreamingSequenceReportTest() throws Exception {
+ StreamingSequenceReport expectedResponse =
+ StreamingSequenceReport.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .addAllAttempts(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+
+ StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getStreamingSequenceReportExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+ client.getStreamingSequenceReport(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getStreamingSequenceReportTest2() throws Exception {
+ StreamingSequenceReport expectedResponse =
+ StreamingSequenceReport.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .addAllAttempts(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ String name = "streamingSequences/streamingSequence-962/streamingSequenceReport";
+
+ StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void getStreamingSequenceReportExceptionTest2() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ String name = "streamingSequences/streamingSequence-962/streamingSequenceReport";
+ client.getStreamingSequenceReport(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void attemptSequenceTest() throws Exception {
Empty expectedResponse = Empty.newBuilder().build();
@@ -298,6 +434,17 @@ public void attemptSequenceExceptionTest2() throws Exception {
}
}
+ @Test
+ public void attemptStreamingSequenceTest() throws Exception {}
+
+ @Test
+ public void attemptStreamingSequenceExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+ }
+
@Test
public void listLocationsTest() throws Exception {
Location responsesElement = Location.newBuilder().build();
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java
index 609a3fa3f3..2111e0b260 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java
+++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/SequenceServiceClientTest.java
@@ -23,8 +23,11 @@
import com.google.api.gax.grpc.testing.LocalChannelProvider;
import com.google.api.gax.grpc.testing.MockGrpcService;
import com.google.api.gax.grpc.testing.MockServiceHelper;
+import com.google.api.gax.grpc.testing.MockStreamObserver;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StatusCode;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -40,6 +43,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
+import java.util.concurrent.ExecutionException;
import javax.annotation.Generated;
import org.junit.After;
import org.junit.AfterClass;
@@ -128,6 +132,47 @@ public void createSequenceExceptionTest() throws Exception {
}
}
+ @Test
+ public void createStreamingSequenceTest() throws Exception {
+ StreamingSequence expectedResponse =
+ StreamingSequence.newBuilder()
+ .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ .setContent("content951530617")
+ .addAllResponses(new ArrayList())
+ .build();
+ mockSequenceService.addResponse(expectedResponse);
+
+ StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+
+ StreamingSequence actualResponse = client.createStreamingSequence(streamingSequence);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockSequenceService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateStreamingSequenceRequest actualRequest =
+ ((CreateStreamingSequenceRequest) actualRequests.get(0));
+
+ Assert.assertEquals(streamingSequence, actualRequest.getStreamingSequence());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createStreamingSequenceExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockSequenceService.addException(exception);
+
+ try {
+ StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
+ client.createStreamingSequence(streamingSequence);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void getSequenceReportTest() throws Exception {
SequenceReport expectedResponse =
@@ -206,6 +251,86 @@ public void getSequenceReportExceptionTest2() throws Exception {
}
}
+ @Test
+ public void getStreamingSequenceReportTest() throws Exception {
+ StreamingSequenceReport expectedResponse =
+ StreamingSequenceReport.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .addAllAttempts(new ArrayList())
+ .build();
+ mockSequenceService.addResponse(expectedResponse);
+
+ StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+
+ StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockSequenceService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetStreamingSequenceReportRequest actualRequest =
+ ((GetStreamingSequenceReportRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getStreamingSequenceReportExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockSequenceService.addException(exception);
+
+ try {
+ StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
+ client.getStreamingSequenceReport(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getStreamingSequenceReportTest2() throws Exception {
+ StreamingSequenceReport expectedResponse =
+ StreamingSequenceReport.newBuilder()
+ .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
+ .addAllAttempts(new ArrayList())
+ .build();
+ mockSequenceService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ StreamingSequenceReport actualResponse = client.getStreamingSequenceReport(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockSequenceService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetStreamingSequenceReportRequest actualRequest =
+ ((GetStreamingSequenceReportRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getStreamingSequenceReportExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockSequenceService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.getStreamingSequenceReport(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void attemptSequenceTest() throws Exception {
Empty expectedResponse = Empty.newBuilder().build();
@@ -274,6 +399,54 @@ public void attemptSequenceExceptionTest2() throws Exception {
}
}
+ @Test
+ public void attemptStreamingSequenceTest() throws Exception {
+ AttemptStreamingSequenceResponse expectedResponse =
+ AttemptStreamingSequenceResponse.newBuilder().setContent("content951530617").build();
+ mockSequenceService.addResponse(expectedResponse);
+ AttemptStreamingSequenceRequest request =
+ AttemptStreamingSequenceRequest.newBuilder()
+ .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ .build();
+
+ MockStreamObserver responseObserver =
+ new MockStreamObserver<>();
+
+ ServerStreamingCallable
+ callable = client.attemptStreamingSequenceCallable();
+ callable.serverStreamingCall(request, responseObserver);
+
+ List actualResponses = responseObserver.future().get();
+ Assert.assertEquals(1, actualResponses.size());
+ Assert.assertEquals(expectedResponse, actualResponses.get(0));
+ }
+
+ @Test
+ public void attemptStreamingSequenceExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockSequenceService.addException(exception);
+ AttemptStreamingSequenceRequest request =
+ AttemptStreamingSequenceRequest.newBuilder()
+ .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
+ .build();
+
+ MockStreamObserver responseObserver =
+ new MockStreamObserver<>();
+
+ ServerStreamingCallable
+ callable = client.attemptStreamingSequenceCallable();
+ callable.serverStreamingCall(request, responseObserver);
+
+ try {
+ List actualResponses = responseObserver.future().get();
+ Assert.fail("No exception thrown");
+ } catch (ExecutionException e) {
+ Assert.assertTrue(e.getCause() instanceof InvalidArgumentException);
+ InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+ Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+ }
+ }
+
@Test
public void listLocationsTest() throws Exception {
Location responsesElement = Location.newBuilder().build();
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java
index e8d22c2756..da78f07afa 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java
+++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITServerSideStreaming.java
@@ -19,22 +19,28 @@
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertThrows;
+import com.google.api.gax.core.NoCredentialsProvider;
import com.google.api.gax.rpc.CancelledException;
import com.google.api.gax.rpc.ServerStream;
import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.WatchdogTimeoutException;
import com.google.common.collect.ImmutableList;
import com.google.rpc.Status;
import com.google.showcase.v1beta1.EchoClient;
import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.EchoSettings;
import com.google.showcase.v1beta1.ExpandRequest;
import com.google.showcase.v1beta1.it.util.TestClientInitializer;
+import io.grpc.ManagedChannelBuilder;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.stream.Collectors;
import org.junit.After;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
+import org.threeten.bp.Duration;
public class ITServerSideStreaming {
@@ -104,6 +110,49 @@ public void testGrpc_serverError_receiveErrorAfterLastWordInStream() {
assertThat(cancelledException.getStatusCode().getCode()).isEqualTo(StatusCode.Code.CANCELLED);
}
+ @Test
+ public void testGrpc_serverWaitTimeout_watchdogCancelsStream() throws Exception {
+ EchoSettings.Builder settings =
+ EchoSettings.newBuilder()
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .setTransportChannelProvider(
+ EchoSettings.defaultGrpcTransportProviderBuilder()
+ .setChannelConfigurator(ManagedChannelBuilder::usePlaintext)
+ .build());
+
+ settings
+ .expandSettings()
+ .setIdleTimeout(Duration.ofMillis(100))
+ .setWaitTimeout(Duration.ofMillis(100));
+
+ settings.getStubSettingsBuilder().setStreamWatchdogCheckInterval(Duration.ofMillis(50));
+
+ EchoClient echoClient = EchoClient.create(settings.build());
+
+ String content = "The rain in Spain stays mainly on the plain!";
+ ServerStream responseStream =
+ echoClient
+ .expandCallable()
+ .call(
+ ExpandRequest.newBuilder()
+ .setContent(content)
+ // Configure server interval for returning the next response
+ .setStreamWaitTime(
+ com.google.protobuf.Duration.newBuilder().setSeconds(1).build())
+ .build());
+ ArrayList responses = new ArrayList<>();
+ try {
+ for (EchoResponse response : responseStream) {
+ responses.add(response.getContent());
+ }
+ Assert.fail("No exception was thrown");
+ } catch (WatchdogTimeoutException e) {
+ assertThat(e).hasMessageThat().contains("Canceled due to timeout waiting for next response");
+ } finally {
+ echoClient.close();
+ }
+ }
+
@Test
public void testHttpJson_receiveStreamedContent() {
String content = "The rain in Spain stays mainly on the plain!";
diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java
index a891daf387..acb83bf8c5 100644
--- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java
+++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceServiceGrpc.java
@@ -46,6 +46,37 @@ com.google.showcase.v1beta1.Sequence> getCreateSequenceMethod() {
return getCreateSequenceMethod;
}
+ private static volatile io.grpc.MethodDescriptor getCreateStreamingSequenceMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateStreamingSequence",
+ requestType = com.google.showcase.v1beta1.CreateStreamingSequenceRequest.class,
+ responseType = com.google.showcase.v1beta1.StreamingSequence.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateStreamingSequenceMethod() {
+ io.grpc.MethodDescriptor getCreateStreamingSequenceMethod;
+ if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) {
+ synchronized (SequenceServiceGrpc.class) {
+ if ((getCreateStreamingSequenceMethod = SequenceServiceGrpc.getCreateStreamingSequenceMethod) == null) {
+ SequenceServiceGrpc.getCreateStreamingSequenceMethod = getCreateStreamingSequenceMethod =
+ io.grpc.MethodDescriptor.