diff --git a/showcase/gapic-showcase/pom.xml b/showcase/gapic-showcase/pom.xml index 543229da11..6d8bbb3e38 100644 --- a/showcase/gapic-showcase/pom.xml +++ b/showcase/gapic-showcase/pom.xml @@ -19,7 +19,7 @@ - 0.28.2 + 0.29.0 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 687f28376b..c93226be71 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 @@ -280,6 +280,73 @@ public final UnaryCallable echoCallable() { return stub.echoCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method returns error details in a repeated "google.protobuf.Any" field. This method + * showcases handling errors thus encoded, particularly over REST transport. Note that GAPICs only + * allow the type "google.protobuf.Any" for field paths ending in "error.details", and, at + * run-time, the actual types for these fields must be one of the types in + * google/rpc/error_details.proto. + * + *

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 (EchoClient echoClient = EchoClient.create()) {
+   *   EchoErrorDetailsRequest request =
+   *       EchoErrorDetailsRequest.newBuilder()
+   *           .setSingleDetailText("singleDetailText1774380934")
+   *           .addAllMultiDetailText(new ArrayList())
+   *           .build();
+   *   EchoErrorDetailsResponse response = echoClient.echoErrorDetails(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 EchoErrorDetailsResponse echoErrorDetails(EchoErrorDetailsRequest request) { + return echoErrorDetailsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method returns error details in a repeated "google.protobuf.Any" field. This method + * showcases handling errors thus encoded, particularly over REST transport. Note that GAPICs only + * allow the type "google.protobuf.Any" for field paths ending in "error.details", and, at + * run-time, the actual types for these fields must be one of the types in + * google/rpc/error_details.proto. + * + *

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 (EchoClient echoClient = EchoClient.create()) {
+   *   EchoErrorDetailsRequest request =
+   *       EchoErrorDetailsRequest.newBuilder()
+   *           .setSingleDetailText("singleDetailText1774380934")
+   *           .addAllMultiDetailText(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       echoClient.echoErrorDetailsCallable().futureCall(request);
+   *   // Do something.
+   *   EchoErrorDetailsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + echoErrorDetailsCallable() { + return stub.echoErrorDetailsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * This method splits the given content into words and will pass each word back through the diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 7725d2cdd2..388995f9bb 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -96,6 +96,12 @@ public UnaryCallSettings echoSettings() { return ((EchoStubSettings) getStubSettings()).echoSettings(); } + /** Returns the object with the settings used for calls to echoErrorDetails. */ + public UnaryCallSettings + echoErrorDetailsSettings() { + return ((EchoStubSettings) getStubSettings()).echoErrorDetailsSettings(); + } + /** Returns the object with the settings used for calls to expand. */ public ServerStreamingCallSettings expandSettings() { return ((EchoStubSettings) getStubSettings()).expandSettings(); @@ -291,6 +297,12 @@ public UnaryCallSettings.Builder echoSettings() { return getStubSettingsBuilder().echoSettings(); } + /** Returns the builder for the settings used for calls to echoErrorDetails. */ + public UnaryCallSettings.Builder + echoErrorDetailsSettings() { + return getStubSettingsBuilder().echoErrorDetailsSettings(); + } + /** Returns the builder for the settings used for calls to expand. */ public ServerStreamingCallSettings.Builder expandSettings() { return getStubSettingsBuilder().expandSettings(); 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 ab56a9a453..3185e04cd4 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 @@ -699,6 +699,7 @@ public final UnaryCallable attemptSequenceCallabl * AttemptStreamingSequenceRequest request = * AttemptStreamingSequenceRequest.newBuilder() * .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString()) + * .setLastFailIndex(2006482362) * .build(); * ServerStream stream = * sequenceServiceClient.attemptStreamingSequenceCallable().call(request); 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 3d10c53f8d..8f8ce59b7a 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 @@ -76,6 +76,9 @@ "Echo": { "methods": ["echo", "echoCallable"] }, + "EchoErrorDetails": { + "methods": ["echoErrorDetails", "echoErrorDetailsCallable"] + }, "Expand": { "methods": ["expandCallable"] }, diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java index a2aca8c1a0..82fc32563a 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java @@ -40,6 +40,8 @@ import com.google.longrunning.stub.OperationsStub; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.ExpandRequest; @@ -74,6 +76,11 @@ public UnaryCallable echoCallable() { throw new UnsupportedOperationException("Not implemented: echoCallable()"); } + public UnaryCallable + echoErrorDetailsCallable() { + throw new UnsupportedOperationException("Not implemented: echoErrorDetailsCallable()"); + } + public ServerStreamingCallable expandCallable() { throw new UnsupportedOperationException("Not implemented: expandCallable()"); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index 8e1d7bb5e2..e42911a8d6 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -67,6 +67,8 @@ import com.google.longrunning.Operation; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.ExpandRequest; @@ -129,6 +131,8 @@ public class EchoStubSettings extends StubSettings { ImmutableList.builder().build(); private final UnaryCallSettings echoSettings; + private final UnaryCallSettings + echoErrorDetailsSettings; private final ServerStreamingCallSettings expandSettings; private final StreamingCallSettings collectSettings; private final StreamingCallSettings chatSettings; @@ -330,6 +334,12 @@ public UnaryCallSettings echoSettings() { return echoSettings; } + /** Returns the object with the settings used for calls to echoErrorDetails. */ + public UnaryCallSettings + echoErrorDetailsSettings() { + return echoErrorDetailsSettings; + } + /** Returns the object with the settings used for calls to expand. */ public ServerStreamingCallSettings expandSettings() { return expandSettings; @@ -511,6 +521,7 @@ protected EchoStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); echoSettings = settingsBuilder.echoSettings().build(); + echoErrorDetailsSettings = settingsBuilder.echoErrorDetailsSettings().build(); expandSettings = settingsBuilder.expandSettings().build(); collectSettings = settingsBuilder.collectSettings().build(); chatSettings = settingsBuilder.chatSettings().build(); @@ -531,6 +542,8 @@ protected EchoStubSettings(Builder settingsBuilder) throws IOException { public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder echoSettings; + private final UnaryCallSettings.Builder + echoErrorDetailsSettings; private final ServerStreamingCallSettings.Builder expandSettings; private final StreamingCallSettings.Builder collectSettings; private final StreamingCallSettings.Builder chatSettings; @@ -607,6 +620,7 @@ protected Builder(ClientContext clientContext) { super(clientContext); echoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + echoErrorDetailsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); expandSettings = ServerStreamingCallSettings.newBuilder(); collectSettings = StreamingCallSettings.newBuilder(); chatSettings = StreamingCallSettings.newBuilder(); @@ -626,6 +640,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( echoSettings, + echoErrorDetailsSettings, pagedExpandSettings, pagedExpandLegacySettings, pagedExpandLegacyMappedSettings, @@ -643,6 +658,7 @@ protected Builder(EchoStubSettings settings) { super(settings); echoSettings = settings.echoSettings.toBuilder(); + echoErrorDetailsSettings = settings.echoErrorDetailsSettings.toBuilder(); expandSettings = settings.expandSettings.toBuilder(); collectSettings = settings.collectSettings.toBuilder(); chatSettings = settings.chatSettings.toBuilder(); @@ -661,6 +677,7 @@ protected Builder(EchoStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( echoSettings, + echoErrorDetailsSettings, pagedExpandSettings, pagedExpandLegacySettings, pagedExpandLegacyMappedSettings, @@ -705,6 +722,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .echoErrorDetailsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .expandSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -806,6 +828,12 @@ public UnaryCallSettings.Builder echoSettings() { return echoSettings; } + /** Returns the builder for the settings used for calls to echoErrorDetails. */ + public UnaryCallSettings.Builder + echoErrorDetailsSettings() { + return echoErrorDetailsSettings; + } + /** Returns the builder for the settings used for calls to expand. */ public ServerStreamingCallSettings.Builder expandSettings() { return expandSettings; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java index fdaf681056..ebdcb34c32 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java @@ -46,6 +46,8 @@ import com.google.longrunning.stub.GrpcOperationsStub; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.ExpandRequest; @@ -80,6 +82,17 @@ public class GrpcEchoStub extends EchoStub { .setResponseMarshaller(ProtoUtils.marshaller(EchoResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + echoErrorDetailsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.showcase.v1beta1.Echo/EchoErrorDetails") + .setRequestMarshaller( + ProtoUtils.marshaller(EchoErrorDetailsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EchoErrorDetailsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor expandMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.SERVER_STREAMING) @@ -198,6 +211,8 @@ public class GrpcEchoStub extends EchoStub { .build(); private final UnaryCallable echoCallable; + private final UnaryCallable + echoErrorDetailsCallable; private final ServerStreamingCallable expandCallable; private final ClientStreamingCallable collectCallable; private final BidiStreamingCallable chatCallable; @@ -291,6 +306,11 @@ protected GrpcEchoStub( return builder.build(); }) .build(); + GrpcCallSettings + echoErrorDetailsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(echoErrorDetailsMethodDescriptor) + .build(); GrpcCallSettings expandTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(expandMethodDescriptor) @@ -380,6 +400,9 @@ protected GrpcEchoStub( this.echoCallable = callableFactory.createUnaryCallable( echoTransportSettings, settings.echoSettings(), clientContext); + this.echoErrorDetailsCallable = + callableFactory.createUnaryCallable( + echoErrorDetailsTransportSettings, settings.echoErrorDetailsSettings(), clientContext); this.expandCallable = callableFactory.createServerStreamingCallable( expandTransportSettings, settings.expandSettings(), clientContext); @@ -453,6 +476,12 @@ public UnaryCallable echoCallable() { return echoCallable; } + @Override + public UnaryCallable + echoErrorDetailsCallable() { + return echoErrorDetailsCallable; + } + @Override public ServerStreamingCallable expandCallable() { return expandCallable; diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java index fd39bf8711..1116e8a9b2 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java @@ -56,6 +56,8 @@ import com.google.protobuf.TypeRegistry; import com.google.showcase.v1beta1.BlockRequest; import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoErrorDetailsRequest; +import com.google.showcase.v1beta1.EchoErrorDetailsResponse; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.ExpandRequest; @@ -121,6 +123,41 @@ public class HttpJsonEchoStub extends EchoStub { .build()) .build(); + private static final ApiMethodDescriptor + echoErrorDetailsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.showcase.v1beta1.Echo/EchoErrorDetails") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/echo:error-details", + 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("*", request.toBuilder().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EchoErrorDetailsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor expandMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.showcase.v1beta1.Echo/Expand") @@ -511,6 +548,8 @@ public class HttpJsonEchoStub extends EchoStub { .build(); private final UnaryCallable echoCallable; + private final UnaryCallable + echoErrorDetailsCallable; private final ServerStreamingCallable expandCallable; private final UnaryCallable pagedExpandCallable; private final UnaryCallable @@ -622,6 +661,12 @@ protected HttpJsonEchoStub( return builder.build(); }) .build(); + HttpJsonCallSettings + echoErrorDetailsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(echoErrorDetailsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings expandTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(expandMethodDescriptor) @@ -715,6 +760,9 @@ protected HttpJsonEchoStub( this.echoCallable = callableFactory.createUnaryCallable( echoTransportSettings, settings.echoSettings(), clientContext); + this.echoErrorDetailsCallable = + callableFactory.createUnaryCallable( + echoErrorDetailsTransportSettings, settings.echoErrorDetailsSettings(), clientContext); this.expandCallable = callableFactory.createServerStreamingCallable( expandTransportSettings, settings.expandSettings(), clientContext); @@ -780,6 +828,7 @@ protected HttpJsonEchoStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(echoMethodDescriptor); + methodDescriptors.add(echoErrorDetailsMethodDescriptor); methodDescriptors.add(expandMethodDescriptor); methodDescriptors.add(pagedExpandMethodDescriptor); methodDescriptors.add(pagedExpandLegacyMethodDescriptor); @@ -803,6 +852,12 @@ public UnaryCallable echoCallable() { return echoCallable; } + @Override + public UnaryCallable + echoErrorDetailsCallable() { + return echoErrorDetailsCallable; + } + @Override public ServerStreamingCallable expandCallable() { return expandCallable; diff --git a/showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json b/showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json index b51c44da00..417da67b50 100644 --- a/showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json +++ b/showcase/gapic-showcase/src/main/resources/META-INF/native-image/com.google.showcase.v1beta1/reflect-config.json @@ -2411,6 +2411,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse$MultipleDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse$MultipleDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse$SingleDetail", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.EchoErrorDetailsResponse$SingleDetail$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.showcase.v1beta1.EchoRequest", "queryAllDeclaredConstructors": true, @@ -2483,6 +2555,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.showcase.v1beta1.ErrorWithMultipleDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.ErrorWithMultipleDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.ErrorWithSingleDetail", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.showcase.v1beta1.ErrorWithSingleDetail$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.showcase.v1beta1.ExpandRequest", "queryAllDeclaredConstructors": true, diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java index 168eafd37e..907089a5e7 100644 --- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java +++ b/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java @@ -8,7 +8,7 @@ * side streaming, client side streaming, and bidirectional streaming. This * service also exposes methods that explicitly implement server delay, and * paginated calls. Set the 'showcase-trailer' metadata key on any method - * to have the values echoed in the response trailers. Set the + * to have the values echoed in the response trailers. Set the * 'x-goog-request-params' metadata key on any method to have the values * echoed in the response headers. * @@ -55,6 +55,37 @@ com.google.showcase.v1beta1.EchoResponse> getEchoMethod() { return getEchoMethod; } + private static volatile io.grpc.MethodDescriptor getEchoErrorDetailsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EchoErrorDetails", + requestType = com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, + responseType = com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEchoErrorDetailsMethod() { + io.grpc.MethodDescriptor getEchoErrorDetailsMethod; + if ((getEchoErrorDetailsMethod = EchoGrpc.getEchoErrorDetailsMethod) == null) { + synchronized (EchoGrpc.class) { + if ((getEchoErrorDetailsMethod = EchoGrpc.getEchoErrorDetailsMethod) == null) { + EchoGrpc.getEchoErrorDetailsMethod = getEchoErrorDetailsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EchoErrorDetails")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EchoMethodDescriptorSupplier("EchoErrorDetails")) + .build(); + } + } + } + return getEchoErrorDetailsMethod; + } + private static volatile io.grpc.MethodDescriptor getExpandMethod; @@ -353,7 +384,7 @@ public EchoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO * side streaming, client side streaming, and bidirectional streaming. This * service also exposes methods that explicitly implement server delay, and * paginated calls. Set the 'showcase-trailer' metadata key on any method - * to have the values echoed in the response trailers. Set the + * to have the values echoed in the response trailers. Set the * 'x-goog-request-params' metadata key on any method to have the values * echoed in the response headers. * @@ -370,6 +401,21 @@ default void echo(com.google.showcase.v1beta1.EchoRequest request, io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEchoMethod(), responseObserver); } + /** + *
+     * This method returns error details in a repeated "google.protobuf.Any"
+     * field. This method showcases handling errors thus encoded, particularly
+     * over REST transport. Note that GAPICs only allow the type
+     * "google.protobuf.Any" for field paths ending in "error.details", and, at
+     * run-time, the actual types for these fields must be one of the types in
+     * google/rpc/error_details.proto.
+     * 
+ */ + default void echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEchoErrorDetailsMethod(), responseObserver); + } + /** *
      * This method splits the given content into words and will pass each word back
@@ -473,7 +519,7 @@ default void block(com.google.showcase.v1beta1.BlockRequest request,
    * side streaming, client side streaming, and bidirectional streaming. This
    * service also exposes methods that explicitly implement server delay, and
    * paginated calls. Set the 'showcase-trailer' metadata key on any method
-   * to have the values echoed in the response trailers. Set the 
+   * to have the values echoed in the response trailers. Set the
    * 'x-goog-request-params' metadata key on any method to have the values
    * echoed in the response headers.
    * 
@@ -493,7 +539,7 @@ public static abstract class EchoImplBase * side streaming, client side streaming, and bidirectional streaming. This * service also exposes methods that explicitly implement server delay, and * paginated calls. Set the 'showcase-trailer' metadata key on any method - * to have the values echoed in the response trailers. Set the + * to have the values echoed in the response trailers. Set the * 'x-goog-request-params' metadata key on any method to have the values * echoed in the response headers. * @@ -522,6 +568,22 @@ public void echo(com.google.showcase.v1beta1.EchoRequest request, getChannel().newCall(getEchoMethod(), getCallOptions()), request, responseObserver); } + /** + *
+     * This method returns error details in a repeated "google.protobuf.Any"
+     * field. This method showcases handling errors thus encoded, particularly
+     * over REST transport. Note that GAPICs only allow the type
+     * "google.protobuf.Any" for field paths ending in "error.details", and, at
+     * run-time, the actual types for these fields must be one of the types in
+     * google/rpc/error_details.proto.
+     * 
+ */ + public void echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEchoErrorDetailsMethod(), getCallOptions()), request, responseObserver); + } + /** *
      * This method splits the given content into words and will pass each word back
@@ -633,7 +695,7 @@ public void block(com.google.showcase.v1beta1.BlockRequest request,
    * side streaming, client side streaming, and bidirectional streaming. This
    * service also exposes methods that explicitly implement server delay, and
    * paginated calls. Set the 'showcase-trailer' metadata key on any method
-   * to have the values echoed in the response trailers. Set the 
+   * to have the values echoed in the response trailers. Set the
    * 'x-goog-request-params' metadata key on any method to have the values
    * echoed in the response headers.
    * 
@@ -661,6 +723,21 @@ public com.google.showcase.v1beta1.EchoResponse echo(com.google.showcase.v1beta1 getChannel(), getEchoMethod(), getCallOptions(), request); } + /** + *
+     * This method returns error details in a repeated "google.protobuf.Any"
+     * field. This method showcases handling errors thus encoded, particularly
+     * over REST transport. Note that GAPICs only allow the type
+     * "google.protobuf.Any" for field paths ending in "error.details", and, at
+     * run-time, the actual types for these fields must be one of the types in
+     * google/rpc/error_details.proto.
+     * 
+ */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse echoErrorDetails(com.google.showcase.v1beta1.EchoErrorDetailsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEchoErrorDetailsMethod(), getCallOptions(), request); + } + /** *
      * This method splits the given content into words and will pass each word back
@@ -741,7 +818,7 @@ public com.google.showcase.v1beta1.BlockResponse block(com.google.showcase.v1bet
    * side streaming, client side streaming, and bidirectional streaming. This
    * service also exposes methods that explicitly implement server delay, and
    * paginated calls. Set the 'showcase-trailer' metadata key on any method
-   * to have the values echoed in the response trailers. Set the 
+   * to have the values echoed in the response trailers. Set the
    * 'x-goog-request-params' metadata key on any method to have the values
    * echoed in the response headers.
    * 
@@ -770,6 +847,22 @@ public com.google.common.util.concurrent.ListenableFuture + * This method returns error details in a repeated "google.protobuf.Any" + * field. This method showcases handling errors thus encoded, particularly + * over REST transport. Note that GAPICs only allow the type + * "google.protobuf.Any" for field paths ending in "error.details", and, at + * run-time, the actual types for these fields must be one of the types in + * google/rpc/error_details.proto. + * + */ + public com.google.common.util.concurrent.ListenableFuture echoErrorDetails( + com.google.showcase.v1beta1.EchoErrorDetailsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEchoErrorDetailsMethod(), getCallOptions()), request); + } + /** *
      * This is similar to the Expand method but instead of returning a stream of
@@ -837,14 +930,15 @@ public com.google.common.util.concurrent.ListenableFuture implements
       io.grpc.stub.ServerCalls.UnaryMethod,
@@ -867,6 +961,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
           serviceImpl.echo((com.google.showcase.v1beta1.EchoRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
+        case METHODID_ECHO_ERROR_DETAILS:
+          serviceImpl.echoErrorDetails((com.google.showcase.v1beta1.EchoErrorDetailsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
+          break;
         case METHODID_EXPAND:
           serviceImpl.expand((com.google.showcase.v1beta1.ExpandRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
@@ -922,6 +1020,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
               com.google.showcase.v1beta1.EchoRequest,
               com.google.showcase.v1beta1.EchoResponse>(
                 service, METHODID_ECHO)))
+        .addMethod(
+          getEchoErrorDetailsMethod(),
+          io.grpc.stub.ServerCalls.asyncUnaryCall(
+            new MethodHandlers<
+              com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+              com.google.showcase.v1beta1.EchoErrorDetailsResponse>(
+                service, METHODID_ECHO_ERROR_DETAILS)))
         .addMethod(
           getExpandMethod(),
           io.grpc.stub.ServerCalls.asyncServerStreamingCall(
@@ -1027,6 +1132,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
           serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
               .setSchemaDescriptor(new EchoFileDescriptorSupplier())
               .addMethod(getEchoMethod())
+              .addMethod(getEchoErrorDetailsMethod())
               .addMethod(getExpandMethod())
               .addMethod(getCollectMethod())
               .addMethod(getChatMethod())
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java
index 35f369a561..49d88f13f5 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequest.java
@@ -79,6 +79,23 @@ public java.lang.String getName() {
     }
   }
 
+  public static final int LAST_FAIL_INDEX_FIELD_NUMBER = 2;
+  private int lastFailIndex_ = 0;
+  /**
+   * 
+   * used to send the index of the last failed message
+   * in the string "content" of an AttemptStreamingSequenceResponse
+   * needed for stream resumption logic testing
+   * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The lastFailIndex. + */ + @java.lang.Override + public int getLastFailIndex() { + return lastFailIndex_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -96,6 +113,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (lastFailIndex_ != 0) { + output.writeInt32(2, lastFailIndex_); + } getUnknownFields().writeTo(output); } @@ -108,6 +128,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (lastFailIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, lastFailIndex_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -125,6 +149,8 @@ public boolean equals(final java.lang.Object obj) { if (!getName() .equals(other.getName())) return false; + if (getLastFailIndex() + != other.getLastFailIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -138,6 +164,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + LAST_FAIL_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getLastFailIndex(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -270,6 +298,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + lastFailIndex_ = 0; return this; } @@ -306,6 +335,9 @@ private void buildPartial0(com.google.showcase.v1beta1.AttemptStreamingSequenceR if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastFailIndex_ = lastFailIndex_; + } } @java.lang.Override @@ -357,6 +389,9 @@ public Builder mergeFrom(com.google.showcase.v1beta1.AttemptStreamingSequenceReq bitField0_ |= 0x00000001; onChanged(); } + if (other.getLastFailIndex() != 0) { + setLastFailIndex(other.getLastFailIndex()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -388,6 +423,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: { + lastFailIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -476,6 +516,56 @@ public Builder setNameBytes( onChanged(); return this; } + + private int lastFailIndex_ ; + /** + *
+     * used to send the index of the last failed message
+     * in the string "content" of an AttemptStreamingSequenceResponse
+     * needed for stream resumption logic testing
+     * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The lastFailIndex. + */ + @java.lang.Override + public int getLastFailIndex() { + return lastFailIndex_; + } + /** + *
+     * used to send the index of the last failed message
+     * in the string "content" of an AttemptStreamingSequenceResponse
+     * needed for stream resumption logic testing
+     * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The lastFailIndex to set. + * @return This builder for chaining. + */ + public Builder setLastFailIndex(int value) { + + lastFailIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * used to send the index of the last failed message
+     * in the string "content" of an AttemptStreamingSequenceResponse
+     * needed for stream resumption logic testing
+     * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearLastFailIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + lastFailIndex_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java index 01ebeaf343..467b394741 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptStreamingSequenceRequestOrBuilder.java @@ -19,4 +19,16 @@ public interface AttemptStreamingSequenceRequestOrBuilder extends */ com.google.protobuf.ByteString getNameBytes(); + + /** + *
+   * used to send the index of the last failed message
+   * in the string "content" of an AttemptStreamingSequenceResponse
+   * needed for stream resumption logic testing
+   * 
+ * + * int32 last_fail_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The lastFailIndex. + */ + int getLastFailIndex(); } diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java new file mode 100644 index 0000000000..151444eafe --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequest.java @@ -0,0 +1,839 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +/** + *
+ * The request message used for the EchoErrorDetails method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsRequest} + */ +public final class EchoErrorDetailsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsRequest) + EchoErrorDetailsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use EchoErrorDetailsRequest.newBuilder() to construct. + private EchoErrorDetailsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EchoErrorDetailsRequest() { + singleDetailText_ = ""; + multiDetailText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EchoErrorDetailsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); + } + + public static final int SINGLE_DETAIL_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object singleDetailText_ = ""; + /** + *
+   * Content to return in a singular `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * string single_detail_text = 1; + * @return The singleDetailText. + */ + @java.lang.Override + public java.lang.String getSingleDetailText() { + java.lang.Object ref = singleDetailText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + singleDetailText_ = s; + return s; + } + } + /** + *
+   * Content to return in a singular `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * string single_detail_text = 1; + * @return The bytes for singleDetailText. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSingleDetailTextBytes() { + java.lang.Object ref = singleDetailText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleDetailText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTI_DETAIL_TEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList multiDetailText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @return A list containing the multiDetailText. + */ + public com.google.protobuf.ProtocolStringList + getMultiDetailTextList() { + return multiDetailText_; + } + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @return The count of multiDetailText. + */ + public int getMultiDetailTextCount() { + return multiDetailText_.size(); + } + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the element to return. + * @return The multiDetailText at the given index. + */ + public java.lang.String getMultiDetailText(int index) { + return multiDetailText_.get(index); + } + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the value to return. + * @return The bytes of the multiDetailText at the given index. + */ + public com.google.protobuf.ByteString + getMultiDetailTextBytes(int index) { + return multiDetailText_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleDetailText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleDetailText_); + } + for (int i = 0; i < multiDetailText_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, multiDetailText_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleDetailText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleDetailText_); + } + { + int dataSize = 0; + for (int i = 0; i < multiDetailText_.size(); i++) { + dataSize += computeStringSizeNoTag(multiDetailText_.getRaw(i)); + } + size += dataSize; + size += 1 * getMultiDetailTextList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsRequest)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoErrorDetailsRequest other = (com.google.showcase.v1beta1.EchoErrorDetailsRequest) obj; + + if (!getSingleDetailText() + .equals(other.getSingleDetailText())) return false; + if (!getMultiDetailTextList() + .equals(other.getMultiDetailTextList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SINGLE_DETAIL_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSingleDetailText().hashCode(); + if (getMultiDetailTextCount() > 0) { + hash = (37 * hash) + MULTI_DETAIL_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getMultiDetailTextList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The request message used for the EchoErrorDetails method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsRequest) + com.google.showcase.v1beta1.EchoErrorDetailsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsRequest.class, com.google.showcase.v1beta1.EchoErrorDetailsRequest.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoErrorDetailsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + singleDetailText_ = ""; + multiDetailText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsRequest getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsRequest build() { + com.google.showcase.v1beta1.EchoErrorDetailsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsRequest buildPartial() { + com.google.showcase.v1beta1.EchoErrorDetailsRequest result = new com.google.showcase.v1beta1.EchoErrorDetailsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.singleDetailText_ = singleDetailText_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + multiDetailText_.makeImmutable(); + result.multiDetailText_ = multiDetailText_; + } + } + + @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.showcase.v1beta1.EchoErrorDetailsRequest) { + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsRequest other) { + if (other == com.google.showcase.v1beta1.EchoErrorDetailsRequest.getDefaultInstance()) return this; + if (!other.getSingleDetailText().isEmpty()) { + singleDetailText_ = other.singleDetailText_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.multiDetailText_.isEmpty()) { + if (multiDetailText_.isEmpty()) { + multiDetailText_ = other.multiDetailText_; + bitField0_ |= 0x00000002; + } else { + ensureMultiDetailTextIsMutable(); + multiDetailText_.addAll(other.multiDetailText_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + singleDetailText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMultiDetailTextIsMutable(); + multiDetailText_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object singleDetailText_ = ""; + /** + *
+     * Content to return in a singular `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * string single_detail_text = 1; + * @return The singleDetailText. + */ + public java.lang.String getSingleDetailText() { + java.lang.Object ref = singleDetailText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + singleDetailText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Content to return in a singular `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * string single_detail_text = 1; + * @return The bytes for singleDetailText. + */ + public com.google.protobuf.ByteString + getSingleDetailTextBytes() { + java.lang.Object ref = singleDetailText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleDetailText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Content to return in a singular `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * string single_detail_text = 1; + * @param value The singleDetailText to set. + * @return This builder for chaining. + */ + public Builder setSingleDetailText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + singleDetailText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Content to return in a singular `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * string single_detail_text = 1; + * @return This builder for chaining. + */ + public Builder clearSingleDetailText() { + singleDetailText_ = getDefaultInstance().getSingleDetailText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Content to return in a singular `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * string single_detail_text = 1; + * @param value The bytes for singleDetailText to set. + * @return This builder for chaining. + */ + public Builder setSingleDetailTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + singleDetailText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList multiDetailText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMultiDetailTextIsMutable() { + if (!multiDetailText_.isModifiable()) { + multiDetailText_ = new com.google.protobuf.LazyStringArrayList(multiDetailText_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @return A list containing the multiDetailText. + */ + public com.google.protobuf.ProtocolStringList + getMultiDetailTextList() { + multiDetailText_.makeImmutable(); + return multiDetailText_; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @return The count of multiDetailText. + */ + public int getMultiDetailTextCount() { + return multiDetailText_.size(); + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the element to return. + * @return The multiDetailText at the given index. + */ + public java.lang.String getMultiDetailText(int index) { + return multiDetailText_.get(index); + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the value to return. + * @return The bytes of the multiDetailText at the given index. + */ + public com.google.protobuf.ByteString + getMultiDetailTextBytes(int index) { + return multiDetailText_.getByteString(index); + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index to set the value at. + * @param value The multiDetailText to set. + * @return This builder for chaining. + */ + public Builder setMultiDetailText( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureMultiDetailTextIsMutable(); + multiDetailText_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param value The multiDetailText to add. + * @return This builder for chaining. + */ + public Builder addMultiDetailText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureMultiDetailTextIsMutable(); + multiDetailText_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param values The multiDetailText to add. + * @return This builder for chaining. + */ + public Builder addAllMultiDetailText( + java.lang.Iterable values) { + ensureMultiDetailTextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, multiDetailText_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @return This builder for chaining. + */ + public Builder clearMultiDetailText() { + multiDetailText_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+     * Content to return in a repeated `*.error.details` field of type
+     * `google.protobuf.Any`
+     * 
+ * + * repeated string multi_detail_text = 2; + * @param value The bytes of the multiDetailText to add. + * @return This builder for chaining. + */ + public Builder addMultiDetailTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureMultiDetailTextIsMutable(); + multiDetailText_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsRequest) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsRequest) + private static final com.google.showcase.v1beta1.EchoErrorDetailsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsRequest(); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoErrorDetailsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java new file mode 100644 index 0000000000..dacc7949e7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsRequestOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +public interface EchoErrorDetailsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Content to return in a singular `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * string single_detail_text = 1; + * @return The singleDetailText. + */ + java.lang.String getSingleDetailText(); + /** + *
+   * Content to return in a singular `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * string single_detail_text = 1; + * @return The bytes for singleDetailText. + */ + com.google.protobuf.ByteString + getSingleDetailTextBytes(); + + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @return A list containing the multiDetailText. + */ + java.util.List + getMultiDetailTextList(); + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @return The count of multiDetailText. + */ + int getMultiDetailTextCount(); + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the element to return. + * @return The multiDetailText at the given index. + */ + java.lang.String getMultiDetailText(int index); + /** + *
+   * Content to return in a repeated `*.error.details` field of type
+   * `google.protobuf.Any`
+   * 
+ * + * repeated string multi_detail_text = 2; + * @param index The index of the value to return. + * @return The bytes of the multiDetailText at the given index. + */ + com.google.protobuf.ByteString + getMultiDetailTextBytes(int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java new file mode 100644 index 0000000000..b6ddb00134 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponse.java @@ -0,0 +1,2016 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +/** + *
+ * The response message used for the EchoErrorDetails method.
+ * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse} + */ +public final class EchoErrorDetailsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse) + EchoErrorDetailsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use EchoErrorDetailsResponse.newBuilder() to construct. + private EchoErrorDetailsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EchoErrorDetailsResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EchoErrorDetailsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); + } + + public interface SingleDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return The error. + */ + com.google.showcase.v1beta1.ErrorWithSingleDetail getError(); + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder(); + } + /** + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} + */ + public static final class SingleDetail extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) + SingleDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleDetail.newBuilder() to construct. + private SingleDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SingleDetail() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SingleDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); + } + + private int bitField0_; + public static final int ERROR_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.ErrorWithSingleDetail error_; + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return The error. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getErrorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail build() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail buildPartial() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) { + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other) { + if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.showcase.v1beta1.ErrorWithSingleDetail error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> errorBuilder_; + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + * @return The error. + */ + public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public Builder setError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public Builder setError( + com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public Builder mergeError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + error_ != null && + error_ != com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000001); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder getErrorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance() : error_; + } + } + /** + * .google.showcase.v1beta1.ErrorWithSingleDetail error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithSingleDetail, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder, com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) + private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MultipleDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return The error. + */ + com.google.showcase.v1beta1.ErrorWithMultipleDetails getError(); + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder(); + } + /** + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} + */ + public static final class MultipleDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) + MultipleDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultipleDetails.newBuilder() to construct. + private MultipleDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MultipleDetails() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MultipleDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); + } + + private int bitField0_; + public static final int ERROR_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_; + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return The error. + */ + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getErrorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails build() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails buildPartial() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) { + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other) { + if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> errorBuilder_; + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + * @return The error. + */ + public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public Builder setError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public Builder setError( + com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public Builder mergeError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + error_ != null && + error_ != com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000001); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder getErrorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance() : error_; + } + } + /** + * .google.showcase.v1beta1.ErrorWithMultipleDetails error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.ErrorWithMultipleDetails, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder, com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) + private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultipleDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int SINGLE_DETAIL_FIELD_NUMBER = 1; + private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_; + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return Whether the singleDetail field is set. + */ + @java.lang.Override + public boolean hasSingleDetail() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return The singleDetail. + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() { + return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder() { + return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + } + + public static final int MULTIPLE_DETAILS_FIELD_NUMBER = 2; + private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_; + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return Whether the multipleDetails field is set. + */ + @java.lang.Override + public boolean hasMultipleDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return The multipleDetails. + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails() { + return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder() { + return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSingleDetail()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMultipleDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSingleDetail()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMultipleDetails()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.EchoErrorDetailsResponse)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.EchoErrorDetailsResponse other = (com.google.showcase.v1beta1.EchoErrorDetailsResponse) obj; + + if (hasSingleDetail() != other.hasSingleDetail()) return false; + if (hasSingleDetail()) { + if (!getSingleDetail() + .equals(other.getSingleDetail())) return false; + } + if (hasMultipleDetails() != other.hasMultipleDetails()) return false; + if (hasMultipleDetails()) { + if (!getMultipleDetails() + .equals(other.getMultipleDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSingleDetail()) { + hash = (37 * hash) + SINGLE_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getSingleDetail().hashCode(); + } + if (hasMultipleDetails()) { + hash = (37 * hash) + MULTIPLE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getMultipleDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.EchoErrorDetailsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The response message used for the EchoErrorDetails method.
+   * 
+ * + * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse) + com.google.showcase.v1beta1.EchoErrorDetailsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.class, com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSingleDetailFieldBuilder(); + getMultipleDetailsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + singleDetail_ = null; + if (singleDetailBuilder_ != null) { + singleDetailBuilder_.dispose(); + singleDetailBuilder_ = null; + } + multipleDetails_ = null; + if (multipleDetailsBuilder_ != null) { + multipleDetailsBuilder_.dispose(); + multipleDetailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstanceForType() { + return com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse build() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse buildPartial() { + com.google.showcase.v1beta1.EchoErrorDetailsResponse result = new com.google.showcase.v1beta1.EchoErrorDetailsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.EchoErrorDetailsResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.singleDetail_ = singleDetailBuilder_ == null + ? singleDetail_ + : singleDetailBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.multipleDetails_ = multipleDetailsBuilder_ == null + ? multipleDetails_ + : multipleDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_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.showcase.v1beta1.EchoErrorDetailsResponse) { + return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse other) { + if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance()) return this; + if (other.hasSingleDetail()) { + mergeSingleDetail(other.getSingleDetail()); + } + if (other.hasMultipleDetails()) { + mergeMultipleDetails(other.getMultipleDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSingleDetailFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMultipleDetailsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> singleDetailBuilder_; + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return Whether the singleDetail field is set. + */ + public boolean hasSingleDetail() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return The singleDetail. + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() { + if (singleDetailBuilder_ == null) { + return singleDetail_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + } else { + return singleDetailBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public Builder setSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { + if (singleDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + singleDetail_ = value; + } else { + singleDetailBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public Builder setSingleDetail( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder builderForValue) { + if (singleDetailBuilder_ == null) { + singleDetail_ = builderForValue.build(); + } else { + singleDetailBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public Builder mergeSingleDetail(com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) { + if (singleDetailBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + singleDetail_ != null && + singleDetail_ != com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()) { + getSingleDetailBuilder().mergeFrom(value); + } else { + singleDetail_ = value; + } + } else { + singleDetailBuilder_.mergeFrom(value); + } + if (singleDetail_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public Builder clearSingleDetail() { + bitField0_ = (bitField0_ & ~0x00000001); + singleDetail_ = null; + if (singleDetailBuilder_ != null) { + singleDetailBuilder_.dispose(); + singleDetailBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder getSingleDetailBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSingleDetailFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder() { + if (singleDetailBuilder_ != null) { + return singleDetailBuilder_.getMessageOrBuilder(); + } else { + return singleDetail_ == null ? + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance() : singleDetail_; + } + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder> + getSingleDetailFieldBuilder() { + if (singleDetailBuilder_ == null) { + singleDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>( + getSingleDetail(), + getParentForChildren(), + isClean()); + singleDetail_ = null; + } + return singleDetailBuilder_; + } + + private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> multipleDetailsBuilder_; + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return Whether the multipleDetails field is set. + */ + public boolean hasMultipleDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return The multipleDetails. + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails() { + if (multipleDetailsBuilder_ == null) { + return multipleDetails_ == null ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + } else { + return multipleDetailsBuilder_.getMessage(); + } + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public Builder setMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { + if (multipleDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multipleDetails_ = value; + } else { + multipleDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public Builder setMultipleDetails( + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder builderForValue) { + if (multipleDetailsBuilder_ == null) { + multipleDetails_ = builderForValue.build(); + } else { + multipleDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public Builder mergeMultipleDetails(com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) { + if (multipleDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + multipleDetails_ != null && + multipleDetails_ != com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance()) { + getMultipleDetailsBuilder().mergeFrom(value); + } else { + multipleDetails_ = value; + } + } else { + multipleDetailsBuilder_.mergeFrom(value); + } + if (multipleDetails_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public Builder clearMultipleDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + multipleDetails_ = null; + if (multipleDetailsBuilder_ != null) { + multipleDetailsBuilder_.dispose(); + multipleDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder getMultipleDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMultipleDetailsFieldBuilder().getBuilder(); + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder() { + if (multipleDetailsBuilder_ != null) { + return multipleDetailsBuilder_.getMessageOrBuilder(); + } else { + return multipleDetails_ == null ? + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance() : multipleDetails_; + } + } + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder> + getMultipleDetailsFieldBuilder() { + if (multipleDetailsBuilder_ == null) { + multipleDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder, com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>( + getMultipleDetails(), + getParentForChildren(), + isClean()); + multipleDetails_ = null; + } + return multipleDetailsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.EchoErrorDetailsResponse) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse) + private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse(); + } + + public static com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EchoErrorDetailsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java new file mode 100644 index 0000000000..34999c75cf --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoErrorDetailsResponseOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +public interface EchoErrorDetailsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return Whether the singleDetail field is set. + */ + boolean hasSingleDetail(); + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + * @return The singleDetail. + */ + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail(); + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1; + */ + com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder getSingleDetailOrBuilder(); + + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return Whether the multipleDetails field is set. + */ + boolean hasMultipleDetails(); + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + * @return The multipleDetails. + */ + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails(); + /** + * .google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2; + */ + com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder getMultipleDetailsOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java index ed2664d231..09e89ab50d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -25,6 +25,36 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_showcase_v1beta1_EchoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_showcase_v1beta1_ExpandRequest_descriptor; static final @@ -99,90 +129,109 @@ public static void registerAllExtensions( "/annotations.proto\032\027google/api/client.pr" + "oto\032\037google/api/field_behavior.proto\032\030go" + "ogle/api/routing.proto\032#google/longrunni" + - "ng/operations.proto\032\036google/protobuf/dur" + - "ation.proto\032\037google/protobuf/timestamp.p" + - "roto\032\027google/rpc/status.proto\"\254\001\n\013EchoRe" + - "quest\022\021\n\007content\030\001 \001(\tH\000\022#\n\005error\030\002 \001(\0132" + - "\022.google.rpc.StatusH\000\0223\n\010severity\030\003 \001(\0162" + - "!.google.showcase.v1beta1.Severity\022\016\n\006he" + - "ader\030\004 \001(\t\022\024\n\014other_header\030\005 \001(\tB\n\n\010resp" + - "onse\"T\n\014EchoResponse\022\017\n\007content\030\001 \001(\t\0223\n" + - "\010severity\030\002 \001(\0162!.google.showcase.v1beta" + - "1.Severity\"x\n\rExpandRequest\022\017\n\007content\030\001" + - " \001(\t\022!\n\005error\030\002 \001(\0132\022.google.rpc.Status\022" + - "3\n\020stream_wait_time\030\003 \001(\0132\031.google.proto" + - "buf.Duration\"R\n\022PagedExpandRequest\022\025\n\007co" + - "ntent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + - "page_token\030\003 \001(\t\"Z\n\030PagedExpandLegacyReq" + - "uest\022\025\n\007content\030\001 \001(\tB\004\342A\001\002\022\023\n\013max_resul" + - "ts\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExp" + - "andResponse\0228\n\tresponses\030\001 \003(\0132%.google." + - "showcase.v1beta1.EchoResponse\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\"(\n\027PagedExpandResponseLis" + - "t\022\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMa" + - "ppedResponse\022`\n\014alphabetized\030\001 \003(\0132J.goo" + - "gle.showcase.v1beta1.PagedExpandLegacyMa" + - "ppedResponse.AlphabetizedEntry\022\027\n\017next_p" + - "age_token\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003" + - "key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.showca" + - "se.v1beta1.PagedExpandResponseList:\0028\001\"\331" + - "\001\n\013WaitRequest\022.\n\010end_time\030\001 \001(\0132\032.googl" + - "e.protobuf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.go" + - "ogle.protobuf.DurationH\000\022#\n\005error\030\002 \001(\0132" + - "\022.google.rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%" + - ".google.showcase.v1beta1.WaitResponseH\001B" + - "\005\n\003endB\n\n\010response\"\037\n\014WaitResponse\022\017\n\007co" + - "ntent\030\001 \001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030" + - "\001 \001(\0132\032.google.protobuf.Timestamp\"\255\001\n\014Bl" + - "ockRequest\0221\n\016response_delay\030\001 \001(\0132\031.goo" + - "gle.protobuf.Duration\022#\n\005error\030\002 \001(\0132\022.g" + - "oogle.rpc.StatusH\000\0229\n\007success\030\003 \001(\0132&.go" + - "ogle.showcase.v1beta1.BlockResponseH\000B\n\n" + - "\010response\" \n\rBlockResponse\022\017\n\007content\030\001 " + - "\001(\t*D\n\010Severity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECE" + - "SSARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\377\013\n\004Ec" + - "ho\022\224\003\n\004Echo\022$.google.showcase.v1beta1.Ec" + - "hoRequest\032%.google.showcase.v1beta1.Echo" + - "Response\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*" + - "\212\323\344\223\002\232\002\022\010\n\006header\022\031\n\006header\022\017{routing_id" + - "=**}\022+\n\006header\022!{table_name=regions/*/zo" + - "nes/*/**}\022\"\n\006header\022\030{super_id=projects/" + - "*}/**\0220\n\006header\022&{table_name=projects/*/" + - "instances/*/**}\0221\n\006header\022\'projects/*/{i" + - "nstance_id=instances/*}/**\022\030\n\014other_head" + - "er\022\010{baz=**}\022#\n\014other_header\022\023{qux=proje" + - "cts/*}/**\022\212\001\n\006Expand\022&.google.showcase.v" + - "1beta1.ExpandRequest\032%.google.showcase.v" + - "1beta1.EchoResponse\"/\332A\rcontent,error\202\323\344" + - "\223\002\031\"\024/v1beta1/echo:expand:\001*0\001\022z\n\007Collec" + - "t\022$.google.showcase.v1beta1.EchoRequest\032" + - "%.google.showcase.v1beta1.EchoResponse\" " + - "\202\323\344\223\002\032\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Ch" + - "at\022$.google.showcase.v1beta1.EchoRequest" + - "\032%.google.showcase.v1beta1.EchoResponse(" + - "\0010\001\022\216\001\n\013PagedExpand\022+.google.showcase.v1" + - "beta1.PagedExpandRequest\032,.google.showca" + - "se.v1beta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031" + - "/v1beta1/echo:pagedExpand:\001*\022\240\001\n\021PagedEx" + - "pandLegacy\0221.google.showcase.v1beta1.Pag" + - "edExpandLegacyRequest\032,.google.showcase." + - "v1beta1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1" + - "beta1/echo:pagedExpandLegacy:\001*\022\262\001\n\027Page" + - "dExpandLegacyMapped\022+.google.showcase.v1" + - "beta1.PagedExpandRequest\0328.google.showca" + - "se.v1beta1.PagedExpandLegacyMappedRespon" + - "se\"0\202\323\344\223\002*\"%/v1beta1/echo:pagedExpandLeg" + - "acyMapped:\001*\022\211\001\n\004Wait\022$.google.showcase." + - "v1beta1.WaitRequest\032\035.google.longrunning" + - ".Operation\"<\312A\034\n\014WaitResponse\022\014WaitMetad" + - "ata\202\323\344\223\002\027\"\022/v1beta1/echo:wait:\001*\022v\n\005Bloc" + - "k\022%.google.showcase.v1beta1.BlockRequest" + - "\032&.google.showcase.v1beta1.BlockResponse" + - "\"\036\202\323\344\223\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016loc" + - "alhost:7469Bq\n\033com.google.showcase.v1bet" + - "a1P\001Z4github.com/googleapis/gapic-showca" + - "se/server/genproto\352\002\031Google::Showcase::V" + - "1beta1b\006proto3" + "ng/operations.proto\032\031google/protobuf/any" + + ".proto\032\036google/protobuf/duration.proto\032\037" + + "google/protobuf/timestamp.proto\032\027google/" + + "rpc/status.proto\"\254\001\n\013EchoRequest\022\021\n\007cont" + + "ent\030\001 \001(\tH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc." + + "StatusH\000\0223\n\010severity\030\003 \001(\0162!.google.show" + + "case.v1beta1.Severity\022\016\n\006header\030\004 \001(\t\022\024\n" + + "\014other_header\030\005 \001(\tB\n\n\010response\"T\n\014EchoR" + + "esponse\022\017\n\007content\030\001 \001(\t\0223\n\010severity\030\002 \001" + + "(\0162!.google.showcase.v1beta1.Severity\"P\n" + + "\027EchoErrorDetailsRequest\022\032\n\022single_detai" + + "l_text\030\001 \001(\t\022\031\n\021multi_detail_text\030\002 \003(\t\"" + + "\362\002\n\030EchoErrorDetailsResponse\022U\n\rsingle_d" + + "etail\030\001 \001(\0132>.google.showcase.v1beta1.Ec" + + "hoErrorDetailsResponse.SingleDetail\022[\n\020m" + + "ultiple_details\030\002 \001(\0132A.google.showcase." + + "v1beta1.EchoErrorDetailsResponse.Multipl" + + "eDetails\032M\n\014SingleDetail\022=\n\005error\030\001 \001(\0132" + + "..google.showcase.v1beta1.ErrorWithSingl" + + "eDetail\032S\n\017MultipleDetails\022@\n\005error\030\001 \001(" + + "\01321.google.showcase.v1beta1.ErrorWithMul" + + "tipleDetails\">\n\025ErrorWithSingleDetail\022%\n" + + "\007details\030\001 \001(\0132\024.google.protobuf.Any\"A\n\030" + + "ErrorWithMultipleDetails\022%\n\007details\030\001 \003(" + + "\0132\024.google.protobuf.Any\"x\n\rExpandRequest" + + "\022\017\n\007content\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + + "e.rpc.Status\0223\n\020stream_wait_time\030\003 \001(\0132\031" + + ".google.protobuf.Duration\"R\n\022PagedExpand" + + "Request\022\025\n\007content\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"Z\n\030PagedEx" + + "pandLegacyRequest\022\025\n\007content\030\001 \001(\tB\004\342A\001\002" + + "\022\023\n\013max_results\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"h\n\023PagedExpandResponse\0228\n\tresponses\030\001 " + + "\003(\0132%.google.showcase.v1beta1.EchoRespon" + + "se\022\027\n\017next_page_token\030\002 \001(\t\"(\n\027PagedExpa" + + "ndResponseList\022\r\n\005words\030\001 \003(\t\"\203\002\n\037PagedE" + + "xpandLegacyMappedResponse\022`\n\014alphabetize" + + "d\030\001 \003(\0132J.google.showcase.v1beta1.PagedE" + + "xpandLegacyMappedResponse.AlphabetizedEn" + + "try\022\027\n\017next_page_token\030\002 \001(\t\032e\n\021Alphabet" + + "izedEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320." + + "google.showcase.v1beta1.PagedExpandRespo" + + "nseList:\0028\001\"\331\001\n\013WaitRequest\022.\n\010end_time\030" + + "\001 \001(\0132\032.google.protobuf.TimestampH\000\022(\n\003t" + + "tl\030\004 \001(\0132\031.google.protobuf.DurationH\000\022#\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusH\001\0228\n\007su" + + "ccess\030\003 \001(\0132%.google.showcase.v1beta1.Wa" + + "itResponseH\001B\005\n\003endB\n\n\010response\"\037\n\014WaitR" + + "esponse\022\017\n\007content\030\001 \001(\t\"<\n\014WaitMetadata" + + "\022,\n\010end_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\"\255\001\n\014BlockRequest\0221\n\016response_dela" + + "y\030\001 \001(\0132\031.google.protobuf.Duration\022#\n\005er" + + "ror\030\002 \001(\0132\022.google.rpc.StatusH\000\0229\n\007succe" + + "ss\030\003 \001(\0132&.google.showcase.v1beta1.Block" + + "ResponseH\000B\n\n\010response\" \n\rBlockResponse\022" + + "\017\n\007content\030\001 \001(\t*D\n\010Severity\022\017\n\013UNNECESS" + + "ARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n\006URGENT\020\002\022\014\n\010CRIT" + + "ICAL\020\0032\241\r\n\004Echo\022\224\003\n\004Echo\022$.google.showca" + + "se.v1beta1.EchoRequest\032%.google.showcase" + + ".v1beta1.EchoResponse\"\276\002\202\323\344\223\002\027\"\022/v1beta1" + + "/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n\006header\022\031\n\006header" + + "\022\017{routing_id=**}\022+\n\006header\022!{table_name" + + "=regions/*/zones/*/**}\022\"\n\006header\022\030{super" + + "_id=projects/*}/**\0220\n\006header\022&{table_nam" + + "e=projects/*/instances/*/**}\0221\n\006header\022\'" + + "projects/*/{instance_id=instances/*}/**\022" + + "\030\n\014other_header\022\010{baz=**}\022#\n\014other_heade" + + "r\022\023{qux=projects/*}/**\022\237\001\n\020EchoErrorDeta" + + "ils\0220.google.showcase.v1beta1.EchoErrorD" + + "etailsRequest\0321.google.showcase.v1beta1." + + "EchoErrorDetailsResponse\"&\202\323\344\223\002 \"\033/v1bet" + + "a1/echo:error-details:\001*\022\212\001\n\006Expand\022&.go" + + "ogle.showcase.v1beta1.ExpandRequest\032%.go" + + "ogle.showcase.v1beta1.EchoResponse\"/\332A\rc" + + "ontent,error\202\323\344\223\002\031\"\024/v1beta1/echo:expand" + + ":\001*0\001\022z\n\007Collect\022$.google.showcase.v1bet" + + "a1.EchoRequest\032%.google.showcase.v1beta1" + + ".EchoResponse\" \202\323\344\223\002\032\"\025/v1beta1/echo:col" + + "lect:\001*(\001\022W\n\004Chat\022$.google.showcase.v1be" + + "ta1.EchoRequest\032%.google.showcase.v1beta" + + "1.EchoResponse(\0010\001\022\216\001\n\013PagedExpand\022+.goo" + + "gle.showcase.v1beta1.PagedExpandRequest\032" + + ",.google.showcase.v1beta1.PagedExpandRes" + + "ponse\"$\202\323\344\223\002\036\"\031/v1beta1/echo:pagedExpand" + + ":\001*\022\240\001\n\021PagedExpandLegacy\0221.google.showc" + + "ase.v1beta1.PagedExpandLegacyRequest\032,.g" + + "oogle.showcase.v1beta1.PagedExpandRespon" + + "se\"*\202\323\344\223\002$\"\037/v1beta1/echo:pagedExpandLeg" + + "acy:\001*\022\262\001\n\027PagedExpandLegacyMapped\022+.goo" + + "gle.showcase.v1beta1.PagedExpandRequest\032" + + "8.google.showcase.v1beta1.PagedExpandLeg" + + "acyMappedResponse\"0\202\323\344\223\002*\"%/v1beta1/echo" + + ":pagedExpandLegacyMapped:\001*\022\211\001\n\004Wait\022$.g" + + "oogle.showcase.v1beta1.WaitRequest\032\035.goo" + + "gle.longrunning.Operation\"<\312A\034\n\014WaitResp" + + "onse\022\014WaitMetadata\202\323\344\223\002\027\"\022/v1beta1/echo:" + + "wait:\001*\022v\n\005Block\022%.google.showcase.v1bet" + + "a1.BlockRequest\032&.google.showcase.v1beta" + + "1.BlockResponse\"\036\202\323\344\223\002\030\"\023/v1beta1/echo:b" + + "lock:\001*\032\021\312A\016localhost:7469Bq\n\033com.google" + + ".showcase.v1beta1P\001Z4github.com/googleap" + + "is/gapic-showcase/server/genproto\352\002\031Goog" + + "le::Showcase::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -192,6 +241,7 @@ public static void registerAllExtensions( com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.RoutingProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -208,38 +258,74 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_EchoResponse_descriptor, new java.lang.String[] { "Content", "Severity", }); - internal_static_google_showcase_v1beta1_ExpandRequest_descriptor = + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsRequest_descriptor, + new java.lang.String[] { "SingleDetailText", "MultiDetailText", }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor, + new java.lang.String[] { "SingleDetail", "MultipleDetails", }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor = + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor, + new java.lang.String[] { "Error", }); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor = + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor.getNestedTypes().get(1); + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor, + new java.lang.String[] { "Error", }); + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor, + new java.lang.String[] { "Details", }); + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor, + new java.lang.String[] { "Details", }); + internal_static_google_showcase_v1beta1_ExpandRequest_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_showcase_v1beta1_ExpandRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_ExpandRequest_descriptor, new java.lang.String[] { "Content", "Error", "StreamWaitTime", }); internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(7); internal_static_google_showcase_v1beta1_PagedExpandRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_PagedExpandRequest_descriptor, new java.lang.String[] { "Content", "PageSize", "PageToken", }); internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(8); internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_PagedExpandLegacyRequest_descriptor, new java.lang.String[] { "Content", "MaxResults", "PageToken", }); internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(9); internal_static_google_showcase_v1beta1_PagedExpandResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_PagedExpandResponse_descriptor, new java.lang.String[] { "Responses", "NextPageToken", }); internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(10); internal_static_google_showcase_v1beta1_PagedExpandResponseList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_PagedExpandResponseList_descriptor, new java.lang.String[] { "Words", }); internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(11); internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_descriptor, @@ -251,31 +337,31 @@ public static void registerAllExtensions( internal_static_google_showcase_v1beta1_PagedExpandLegacyMappedResponse_AlphabetizedEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_showcase_v1beta1_WaitRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_showcase_v1beta1_WaitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_WaitRequest_descriptor, new java.lang.String[] { "EndTime", "Ttl", "Error", "Success", "End", "Response", }); internal_static_google_showcase_v1beta1_WaitResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_showcase_v1beta1_WaitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_WaitResponse_descriptor, new java.lang.String[] { "Content", }); internal_static_google_showcase_v1beta1_WaitMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_showcase_v1beta1_WaitMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_WaitMetadata_descriptor, new java.lang.String[] { "EndTime", }); internal_static_google_showcase_v1beta1_BlockRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(15); internal_static_google_showcase_v1beta1_BlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_BlockRequest_descriptor, new java.lang.String[] { "ResponseDelay", "Error", "Success", "Response", }); internal_static_google_showcase_v1beta1_BlockResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_showcase_v1beta1_BlockResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_showcase_v1beta1_BlockResponse_descriptor, @@ -295,6 +381,7 @@ public static void registerAllExtensions( com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.RoutingProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java new file mode 100644 index 0000000000..e0d9e0bda7 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetails.java @@ -0,0 +1,760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} + */ +public final class ErrorWithMultipleDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ErrorWithMultipleDetails) + ErrorWithMultipleDetailsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ErrorWithMultipleDetails.newBuilder() to construct. + private ErrorWithMultipleDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorWithMultipleDetails() { + details_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorWithMultipleDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); + } + + public static final int DETAILS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List details_; + /** + * repeated .google.protobuf.Any details = 1; + */ + @java.lang.Override + public java.util.List getDetailsList() { + return details_; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + @java.lang.Override + public java.util.List + getDetailsOrBuilderList() { + return details_; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + @java.lang.Override + public int getDetailsCount() { + return details_.size(); + } + /** + * repeated .google.protobuf.Any details = 1; + */ + @java.lang.Override + public com.google.protobuf.Any getDetails(int index) { + return details_.get(index); + } + /** + * repeated .google.protobuf.Any details = 1; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( + int index) { + return details_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(1, details_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, details_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ErrorWithMultipleDetails)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ErrorWithMultipleDetails other = (com.google.showcase.v1beta1.ErrorWithMultipleDetails) obj; + + if (!getDetailsList() + .equals(other.getDetailsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.ErrorWithMultipleDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.ErrorWithMultipleDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ErrorWithMultipleDetails) + com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ErrorWithMultipleDetails.class, com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ErrorWithMultipleDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + } else { + details_ = null; + detailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithMultipleDetails_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetails getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetails build() { + com.google.showcase.v1beta1.ErrorWithMultipleDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetails buildPartial() { + com.google.showcase.v1beta1.ErrorWithMultipleDetails result = new com.google.showcase.v1beta1.ErrorWithMultipleDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.showcase.v1beta1.ErrorWithMultipleDetails result) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.showcase.v1beta1.ErrorWithMultipleDetails 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.showcase.v1beta1.ErrorWithMultipleDetails) { + return mergeFrom((com.google.showcase.v1beta1.ErrorWithMultipleDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ErrorWithMultipleDetails other) { + if (other == com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()) return this; + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDetailsFieldBuilder() : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Any m = + input.readMessage( + com.google.protobuf.Any.parser(), + extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List details_ = + java.util.Collections.emptyList(); + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + + /** + * repeated .google.protobuf.Any details = 1; + */ + public java.util.List getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public com.google.protobuf.Any getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder setDetails( + int index, com.google.protobuf.Any value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder setDetails( + int index, com.google.protobuf.Any.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder addDetails(com.google.protobuf.Any value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder addDetails( + int index, com.google.protobuf.Any value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder addDetails( + com.google.protobuf.Any.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder addDetails( + int index, com.google.protobuf.Any.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder addAllDetails( + java.lang.Iterable values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public com.google.protobuf.Any.Builder getDetailsBuilder( + int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( + int index) { + if (detailsBuilder_ == null) { + return details_.get(index); } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public java.util.List + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public com.google.protobuf.Any.Builder addDetailsBuilder() { + return getDetailsFieldBuilder().addBuilder( + com.google.protobuf.Any.getDefaultInstance()); + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public com.google.protobuf.Any.Builder addDetailsBuilder( + int index) { + return getDetailsFieldBuilder().addBuilder( + index, com.google.protobuf.Any.getDefaultInstance()); + } + /** + * repeated .google.protobuf.Any details = 1; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + details_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + details_ = null; + } + return detailsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ErrorWithMultipleDetails) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ErrorWithMultipleDetails) + private static final com.google.showcase.v1beta1.ErrorWithMultipleDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ErrorWithMultipleDetails(); + } + + public static com.google.showcase.v1beta1.ErrorWithMultipleDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorWithMultipleDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithMultipleDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java new file mode 100644 index 0000000000..daca9accea --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithMultipleDetailsOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +public interface ErrorWithMultipleDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithMultipleDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .google.protobuf.Any details = 1; + */ + java.util.List + getDetailsList(); + /** + * repeated .google.protobuf.Any details = 1; + */ + com.google.protobuf.Any getDetails(int index); + /** + * repeated .google.protobuf.Any details = 1; + */ + int getDetailsCount(); + /** + * repeated .google.protobuf.Any details = 1; + */ + java.util.List + getDetailsOrBuilderList(); + /** + * repeated .google.protobuf.Any details = 1; + */ + com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( + int index); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java new file mode 100644 index 0000000000..7f510db055 --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetail.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +/** + * Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} + */ +public final class ErrorWithSingleDetail extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.ErrorWithSingleDetail) + ErrorWithSingleDetailOrBuilder { +private static final long serialVersionUID = 0L; + // Use ErrorWithSingleDetail.newBuilder() to construct. + private ErrorWithSingleDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorWithSingleDetail() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorWithSingleDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ErrorWithSingleDetail.class, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); + } + + private int bitField0_; + public static final int DETAILS_FIELD_NUMBER = 1; + private com.google.protobuf.Any details_; + /** + * .google.protobuf.Any details = 1; + * @return Whether the details field is set. + */ + @java.lang.Override + public boolean hasDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Any details = 1; + * @return The details. + */ + @java.lang.Override + public com.google.protobuf.Any getDetails() { + return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; + } + /** + * .google.protobuf.Any details = 1; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() { + return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDetails()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.showcase.v1beta1.ErrorWithSingleDetail)) { + return super.equals(obj); + } + com.google.showcase.v1beta1.ErrorWithSingleDetail other = (com.google.showcase.v1beta1.ErrorWithSingleDetail) obj; + + if (hasDetails() != other.hasDetails()) return false; + if (hasDetails()) { + if (!getDetails() + .equals(other.getDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDetails()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.showcase.v1beta1.ErrorWithSingleDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.showcase.v1beta1.ErrorWithSingleDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.showcase.v1beta1.ErrorWithSingleDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.ErrorWithSingleDetail) + com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.showcase.v1beta1.ErrorWithSingleDetail.class, com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder.class); + } + + // Construct using com.google.showcase.v1beta1.ErrorWithSingleDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.showcase.v1beta1.EchoOuterClass.internal_static_google_showcase_v1beta1_ErrorWithSingleDetail_descriptor; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetail getDefaultInstanceForType() { + return com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetail build() { + com.google.showcase.v1beta1.ErrorWithSingleDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetail buildPartial() { + com.google.showcase.v1beta1.ErrorWithSingleDetail result = new com.google.showcase.v1beta1.ErrorWithSingleDetail(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.showcase.v1beta1.ErrorWithSingleDetail result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.details_ = detailsBuilder_ == null + ? details_ + : detailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_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.showcase.v1beta1.ErrorWithSingleDetail) { + return mergeFrom((com.google.showcase.v1beta1.ErrorWithSingleDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.showcase.v1beta1.ErrorWithSingleDetail other) { + if (other == com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()) return this; + if (other.hasDetails()) { + mergeDetails(other.getDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDetailsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Any details_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; + /** + * .google.protobuf.Any details = 1; + * @return Whether the details field is set. + */ + public boolean hasDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Any details = 1; + * @return The details. + */ + public com.google.protobuf.Any getDetails() { + if (detailsBuilder_ == null) { + return details_ == null ? com.google.protobuf.Any.getDefaultInstance() : details_; + } else { + return detailsBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Any details = 1; + */ + public Builder setDetails(com.google.protobuf.Any value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + } else { + detailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Any details = 1; + */ + public Builder setDetails( + com.google.protobuf.Any.Builder builderForValue) { + if (detailsBuilder_ == null) { + details_ = builderForValue.build(); + } else { + detailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Any details = 1; + */ + public Builder mergeDetails(com.google.protobuf.Any value) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + details_ != null && + details_ != com.google.protobuf.Any.getDefaultInstance()) { + getDetailsBuilder().mergeFrom(value); + } else { + details_ = value; + } + } else { + detailsBuilder_.mergeFrom(value); + } + if (details_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Any details = 1; + */ + public Builder clearDetails() { + bitField0_ = (bitField0_ & ~0x00000001); + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Any details = 1; + */ + public com.google.protobuf.Any.Builder getDetailsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDetailsFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Any details = 1; + */ + public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilder(); + } else { + return details_ == null ? + com.google.protobuf.Any.getDefaultInstance() : details_; + } + } + /** + * .google.protobuf.Any details = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getDetails(), + getParentForChildren(), + isClean()); + details_ = null; + } + return detailsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.ErrorWithSingleDetail) + } + + // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.ErrorWithSingleDetail) + private static final com.google.showcase.v1beta1.ErrorWithSingleDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.showcase.v1beta1.ErrorWithSingleDetail(); + } + + public static com.google.showcase.v1beta1.ErrorWithSingleDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorWithSingleDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.showcase.v1beta1.ErrorWithSingleDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java new file mode 100644 index 0000000000..a7f2e2971c --- /dev/null +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ErrorWithSingleDetailOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: schema/google/showcase/v1beta1/echo.proto + +// Protobuf Java Version: 3.25.0 +package com.google.showcase.v1beta1; + +public interface ErrorWithSingleDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.ErrorWithSingleDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Any details = 1; + * @return Whether the details field is set. + */ + boolean hasDetails(); + /** + * .google.protobuf.Any details = 1; + * @return The details. + */ + com.google.protobuf.Any getDetails(); + /** + * .google.protobuf.Any details = 1; + */ + com.google.protobuf.AnyOrBuilder getDetailsOrBuilder(); +} diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java index a25ee2a05f..bf3d0dd688 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java @@ -121,76 +121,77 @@ public static void registerAllExtensions( "tobuf.Duration\022\026\n\016response_index\030\003 \001(\005:W" + "\352AT\n)showcase.googleapis.com/StreamingSe" + "quence\022\'streamingSequences/{streaming_se" + - "quence}\"\351\003\n\027StreamingSequenceReport\022\022\n\004n" + + "quence}\"\323\003\n\027StreamingSequenceReport\022\022\n\004n" + "ame\030\001 \001(\tB\004\342A\001\003\022J\n\010attempts\030\002 \003(\01328.goog" + "le.showcase.v1beta1.StreamingSequenceRep" + - "ort.Attempt\032\366\001\n\007Attempt\022\026\n\016attempt_numbe" + + "ort.Attempt\032\340\001\n\007Attempt\022\026\n\016attempt_numbe" + "r\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.goog" + "le.protobuf.Timestamp\0221\n\rresponse_time\030\003" + " \001(\0132\032.google.protobuf.Timestamp\0220\n\ratte" + "mpt_delay\030\004 \001(\0132\031.google.protobuf.Durati" + - "on\022\"\n\006status\030\005 \001(\0132\022.google.rpc.Status\022\024" + - "\n\014content_sent\030\006 \001(\t:u\352Ar\n/showcase.goog" + - "leapis.com/StreamingSequenceReport\022?stre" + - "amingSequences/{streaming_sequence}/stre" + - "amingSequenceReport\"\234\003\n\016SequenceReport\022\022" + - "\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\010attempts\030\002 \003(\0132/.g" + - "oogle.showcase.v1beta1.SequenceReport.At" + - "tempt\032\340\001\n\007Attempt\022\026\n\016attempt_number\030\001 \001(" + - "\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.google.pro" + - "tobuf.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032" + - ".google.protobuf.Timestamp\0220\n\rattempt_de" + - "lay\030\004 \001(\0132\031.google.protobuf.Duration\022\"\n\006" + - "status\030\005 \001(\0132\022.google.rpc.Status:P\352AM\n&s" + - "howcase.googleapis.com/SequenceReport\022#s" + - "equences/{sequence}/sequenceReport\"L\n\025Cr" + - "eateSequenceRequest\0223\n\010sequence\030\001 \001(\0132!." + - "google.showcase.v1beta1.Sequence\"h\n\036Crea" + - "teStreamingSequenceRequest\022F\n\022streaming_" + - "sequence\030\001 \001(\0132*.google.showcase.v1beta1" + - ".StreamingSequence\"Q\n\026AttemptSequenceReq" + - "uest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n showcase.go" + - "ogleapis.com/Sequence\"c\n\037AttemptStreamin" + - "gSequenceRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + - ")showcase.googleapis.com/StreamingSequen" + - "ce\"3\n AttemptStreamingSequenceResponse\022\017" + - "\n\007content\030\001 \001(\t\"Y\n\030GetSequenceReportRequ" + - "est\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&showcase.goo" + - "gleapis.com/SequenceReport\"k\n!GetStreami" + - "ngSequenceReportRequest\022F\n\004name\030\001 \001(\tB8\342" + - "A\001\002\372A1\n/showcase.googleapis.com/Streamin" + - "gSequenceReport2\360\010\n\017SequenceService\022\224\001\n\016" + - "CreateSequence\022..google.showcase.v1beta1" + - ".CreateSequenceRequest\032!.google.showcase" + - ".v1beta1.Sequence\"/\332A\010sequence\202\323\344\223\002\036\"\022/v" + - "1beta1/sequences:\010sequence\022\314\001\n\027CreateStr" + - "eamingSequence\0227.google.showcase.v1beta1" + - ".CreateStreamingSequenceRequest\032*.google" + - ".showcase.v1beta1.StreamingSequence\"L\332A\022" + - "streaming_sequence\202\323\344\223\0021\"\033/v1beta1/strea" + - "mingSequences:\022streaming_sequence\022\252\001\n\021Ge" + - "tSequenceReport\0221.google.showcase.v1beta" + - "1.GetSequenceReportRequest\032\'.google.show" + - "case.v1beta1.SequenceReport\"9\332A\004name\202\323\344\223" + - "\002,\022*/v1beta1/{name=sequences/*/sequenceR" + - "eport}\022\327\001\n\032GetStreamingSequenceReport\022:." + - "google.showcase.v1beta1.GetStreamingSequ" + - "enceReportRequest\0320.google.showcase.v1be" + - "ta1.StreamingSequenceReport\"K\332A\004name\202\323\344\223" + - "\002>\022\022.google.rpc.Status status = 5; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); - - /** - * string content_sent = 6; - * @return The contentSent. - */ - java.lang.String getContentSent(); - /** - * string content_sent = 6; - * @return The bytes for contentSent. - */ - com.google.protobuf.ByteString - getContentSentBytes(); } /** *
@@ -198,7 +186,6 @@ private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
     private Attempt() {
-      contentSent_ = "";
     }
 
     @java.lang.Override
@@ -395,45 +382,6 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
       return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
     }
 
-    public static final int CONTENT_SENT_FIELD_NUMBER = 6;
-    @SuppressWarnings("serial")
-    private volatile java.lang.Object contentSent_ = "";
-    /**
-     * string content_sent = 6;
-     * @return The contentSent.
-     */
-    @java.lang.Override
-    public java.lang.String getContentSent() {
-      java.lang.Object ref = contentSent_;
-      if (ref instanceof java.lang.String) {
-        return (java.lang.String) ref;
-      } else {
-        com.google.protobuf.ByteString bs = 
-            (com.google.protobuf.ByteString) ref;
-        java.lang.String s = bs.toStringUtf8();
-        contentSent_ = s;
-        return s;
-      }
-    }
-    /**
-     * string content_sent = 6;
-     * @return The bytes for contentSent.
-     */
-    @java.lang.Override
-    public com.google.protobuf.ByteString
-        getContentSentBytes() {
-      java.lang.Object ref = contentSent_;
-      if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        contentSent_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
-    }
-
     private byte memoizedIsInitialized = -1;
     @java.lang.Override
     public final boolean isInitialized() {
@@ -463,9 +411,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (((bitField0_ & 0x00000008) != 0)) {
         output.writeMessage(5, getStatus());
       }
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentSent_)) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, contentSent_);
-      }
       getUnknownFields().writeTo(output);
     }
 
@@ -495,9 +440,6 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(5, getStatus());
       }
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentSent_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contentSent_);
-      }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
       return size;
@@ -535,8 +477,6 @@ public boolean equals(final java.lang.Object obj) {
         if (!getStatus()
             .equals(other.getStatus())) return false;
       }
-      if (!getContentSent()
-          .equals(other.getContentSent())) return false;
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
@@ -566,8 +506,6 @@ public int hashCode() {
         hash = (37 * hash) + STATUS_FIELD_NUMBER;
         hash = (53 * hash) + getStatus().hashCode();
       }
-      hash = (37 * hash) + CONTENT_SENT_FIELD_NUMBER;
-      hash = (53 * hash) + getContentSent().hashCode();
       hash = (29 * hash) + getUnknownFields().hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -733,7 +671,6 @@ public Builder clear() {
           statusBuilder_.dispose();
           statusBuilder_ = null;
         }
-        contentSent_ = "";
         return this;
       }
 
@@ -795,9 +732,6 @@ private void buildPartial0(com.google.showcase.v1beta1.StreamingSequenceReport.A
               : statusBuilder_.build();
           to_bitField0_ |= 0x00000008;
         }
-        if (((from_bitField0_ & 0x00000020) != 0)) {
-          result.contentSent_ = contentSent_;
-        }
         result.bitField0_ |= to_bitField0_;
       }
 
@@ -860,11 +794,6 @@ public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport.Att
         if (other.hasStatus()) {
           mergeStatus(other.getStatus());
         }
-        if (!other.getContentSent().isEmpty()) {
-          contentSent_ = other.contentSent_;
-          bitField0_ |= 0x00000020;
-          onChanged();
-        }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -924,11 +853,6 @@ public Builder mergeFrom(
                 bitField0_ |= 0x00000010;
                 break;
               } // case 42
-              case 50: {
-                contentSent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
               default: {
                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                   done = true; // was an endgroup tag
@@ -1635,78 +1559,6 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
         }
         return statusBuilder_;
       }
-
-      private java.lang.Object contentSent_ = "";
-      /**
-       * string content_sent = 6;
-       * @return The contentSent.
-       */
-      public java.lang.String getContentSent() {
-        java.lang.Object ref = contentSent_;
-        if (!(ref instanceof java.lang.String)) {
-          com.google.protobuf.ByteString bs =
-              (com.google.protobuf.ByteString) ref;
-          java.lang.String s = bs.toStringUtf8();
-          contentSent_ = s;
-          return s;
-        } else {
-          return (java.lang.String) ref;
-        }
-      }
-      /**
-       * string content_sent = 6;
-       * @return The bytes for contentSent.
-       */
-      public com.google.protobuf.ByteString
-          getContentSentBytes() {
-        java.lang.Object ref = contentSent_;
-        if (ref instanceof String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          contentSent_ = b;
-          return b;
-        } else {
-          return (com.google.protobuf.ByteString) ref;
-        }
-      }
-      /**
-       * string content_sent = 6;
-       * @param value The contentSent to set.
-       * @return This builder for chaining.
-       */
-      public Builder setContentSent(
-          java.lang.String value) {
-        if (value == null) { throw new NullPointerException(); }
-        contentSent_ = value;
-        bitField0_ |= 0x00000020;
-        onChanged();
-        return this;
-      }
-      /**
-       * string content_sent = 6;
-       * @return This builder for chaining.
-       */
-      public Builder clearContentSent() {
-        contentSent_ = getDefaultInstance().getContentSent();
-        bitField0_ = (bitField0_ & ~0x00000020);
-        onChanged();
-        return this;
-      }
-      /**
-       * string content_sent = 6;
-       * @param value The bytes for contentSent to set.
-       * @return This builder for chaining.
-       */
-      public Builder setContentSentBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) { throw new NullPointerException(); }
-        checkByteStringIsUtf8(value);
-        contentSent_ = value;
-        bitField0_ |= 0x00000020;
-        onChanged();
-        return this;
-      }
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto b/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto
index 3f79b44571..101b37c25f 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/echo.proto
@@ -19,6 +19,7 @@ import "google/api/client.proto";
 import "google/api/field_behavior.proto";
 import "google/api/routing.proto";
 import "google/longrunning/operations.proto";
+import "google/protobuf/any.proto";
 import "google/protobuf/duration.proto";
 import "google/protobuf/timestamp.proto";
 import "google/rpc/status.proto";
@@ -34,7 +35,7 @@ option ruby_package = "Google::Showcase::V1beta1";
 // side streaming, client side streaming, and bidirectional streaming. This
 // service also exposes methods that explicitly implement server delay, and
 // paginated calls. Set the 'showcase-trailer' metadata key on any method
-// to have the values echoed in the response trailers. Set the 
+// to have the values echoed in the response trailers. Set the
 // 'x-goog-request-params' metadata key on any method to have the values
 // echoed in the response headers.
 service Echo {
@@ -83,6 +84,19 @@ service Echo {
     };
   }
 
+  // This method returns error details in a repeated "google.protobuf.Any"
+  // field. This method showcases handling errors thus encoded, particularly
+  // over REST transport. Note that GAPICs only allow the type
+  // "google.protobuf.Any" for field paths ending in "error.details", and, at
+  // run-time, the actual types for these fields must be one of the types in
+  // google/rpc/error_details.proto.
+  rpc EchoErrorDetails(EchoErrorDetailsRequest) returns (EchoErrorDetailsResponse) {
+    option (google.api.http) = {
+      post: "/v1beta1/echo:error-details"
+      body: "*"
+    };
+  }
+
   // This method splits the given content into words and will pass each word back
   // through the stream. This method showcases server-side streaming RPCs.
   rpc Expand(ExpandRequest) returns (stream EchoResponse) {
@@ -206,6 +220,40 @@ message EchoResponse {
   Severity severity = 2;
 }
 
+// The request message used for the EchoErrorDetails method.
+message EchoErrorDetailsRequest {
+  // Content to return in a singular `*.error.details` field of type
+  // `google.protobuf.Any`
+  string single_detail_text = 1;
+
+  // Content to return in a repeated `*.error.details` field of type
+  // `google.protobuf.Any`
+  repeated string multi_detail_text = 2;
+}
+
+// The response message used for the EchoErrorDetails method.
+message EchoErrorDetailsResponse {
+
+  message SingleDetail {
+    ErrorWithSingleDetail error = 1;
+  }
+
+  message MultipleDetails {
+    ErrorWithMultipleDetails error = 1;
+  }
+
+  SingleDetail single_detail = 1;
+  MultipleDetails multiple_details = 2;
+}
+
+message ErrorWithSingleDetail {
+  google.protobuf.Any details = 1;
+}
+
+message ErrorWithMultipleDetails {
+  repeated google.protobuf.Any details = 1;
+}
+
 // The request message for the Expand method.
 message ExpandRequest {
   // The content that will be split into words and returned on the stream.
diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto b/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto
index 6c6a0c1a41..4c2a6bbe07 100644
--- a/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto
+++ b/showcase/proto-gapic-showcase-v1beta1/src/main/proto/schema/google/showcase/v1beta1/sequence.proto
@@ -166,7 +166,6 @@ message StreamingSequenceReport {
     // The status returned to the attempt.
     google.rpc.Status status = 5;
 
-    string content_sent = 6;
   }
 
   // The set of RPC attempts received by the server for a Sequence.
@@ -218,6 +217,7 @@ message AttemptSequenceRequest {
     (google.api.resource_reference).type = "showcase.googleapis.com/Sequence",
     (google.api.field_behavior) = REQUIRED
   ];
+
 }
 
 message AttemptStreamingSequenceRequest {
@@ -225,7 +225,13 @@ message AttemptStreamingSequenceRequest {
     (google.api.resource_reference).type = "showcase.googleapis.com/StreamingSequence",
     (google.api.field_behavior) = REQUIRED
   ];
-
+  
+  // used to send the index of the last failed message
+  // in the string "content" of an AttemptStreamingSequenceResponse
+  // needed for stream resumption logic testing
+  int32 last_fail_index = 2 [
+    (google.api.field_behavior) = OPTIONAL
+  ];
 }
 
 // The response message for the Echo methods.