query = TestUtils.parseQuery(contentString);
+ String assertion = query.get("assertion");
+ JsonWebSignature signature = JsonWebSignature.parse(JSON_FACTORY, assertion);
+ String foundTargetAudience = (String) signature.getPayload().get("api_audience");
+ return foundTargetAudience;
+ }
}
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
similarity index 78%
rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
index 175beb61d6..ffb1e04132 100644
--- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
+++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
@@ -17,15 +17,15 @@
package com.google.showcase.v1beta1.it.util;
import com.google.api.client.http.HttpTransport;
-import com.google.auth.oauth2.MockTokenServerTransport;
import com.google.auth.oauth2.MockTokenServerTransportFactory;
public class InterceptingMockTokenServerTransportFactory extends MockTokenServerTransportFactory {
- public InterceptingMockTokenServerTransport transport = new InterceptingMockTokenServerTransport();
+ public InterceptingMockTokenServerTransport transport =
+ new InterceptingMockTokenServerTransport();
- @Override
- public HttpTransport create() {
- return transport;
- }
+ @Override
+ public HttpTransport create() {
+ return transport;
+ }
}
diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java
similarity index 100%
rename from showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java
rename to java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java
diff --git a/showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json b/java-showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json
similarity index 100%
rename from showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json
rename to java-showcase/gapic-showcase/src/test/resources/META-INF/native-image/resource-config.json
diff --git a/showcase/gapic-showcase/src/test/resources/compliance_suite.json b/java-showcase/gapic-showcase/src/test/resources/compliance_suite.json
similarity index 100%
rename from showcase/gapic-showcase/src/test/resources/compliance_suite.json
rename to java-showcase/gapic-showcase/src/test/resources/compliance_suite.json
diff --git a/showcase/gapic-showcase/src/test/resources/fake_cert.pem b/java-showcase/gapic-showcase/src/test/resources/fake_cert.pem
similarity index 100%
rename from showcase/gapic-showcase/src/test/resources/fake_cert.pem
rename to java-showcase/gapic-showcase/src/test/resources/fake_cert.pem
diff --git a/showcase/gapic-showcase/src/test/resources/test_gdch_credential.json b/java-showcase/gapic-showcase/src/test/resources/test_gdch_credential.json
similarity index 100%
rename from showcase/gapic-showcase/src/test/resources/test_gdch_credential.json
rename to java-showcase/gapic-showcase/src/test/resources/test_gdch_credential.json
diff --git a/showcase/grpc-gapic-showcase-v1beta1/pom.xml b/java-showcase/grpc-gapic-showcase-v1beta1/pom.xml
similarity index 100%
rename from showcase/grpc-gapic-showcase-v1beta1/pom.xml
rename to java-showcase/grpc-gapic-showcase-v1beta1/pom.xml
diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java
similarity index 53%
rename from showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java
rename to java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java
index 501e88c27e..3de54af640 100644
--- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java
+++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ComplianceGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.google.showcase.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
+ *
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -20,376 +37,490 @@ private ComplianceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Compliance";
// Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getRepeatDataBodyMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataBody",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataBodyMethod() {
- io.grpc.MethodDescriptor getRepeatDataBodyMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyMethod;
if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getRepeatDataBodyMethod = ComplianceGrpc.getRepeatDataBodyMethod) == null) {
- ComplianceGrpc.getRepeatDataBodyMethod = getRepeatDataBodyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBody"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBody"))
- .build();
+ ComplianceGrpc.getRepeatDataBodyMethod =
+ getRepeatDataBodyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBody"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBody"))
+ .build();
}
}
}
return getRepeatDataBodyMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyInfo",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod() {
- io.grpc.MethodDescriptor getRepeatDataBodyInfoMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyInfoMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyInfoMethod;
if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getRepeatDataBodyInfoMethod = ComplianceGrpc.getRepeatDataBodyInfoMethod) == null) {
- ComplianceGrpc.getRepeatDataBodyInfoMethod = getRepeatDataBodyInfoMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyInfo"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyInfo"))
- .build();
+ ComplianceGrpc.getRepeatDataBodyInfoMethod =
+ getRepeatDataBodyInfoMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyInfo"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataBodyInfo"))
+ .build();
}
}
}
return getRepeatDataBodyInfoMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataQueryMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataQueryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataQuery",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataQueryMethod() {
- io.grpc.MethodDescriptor getRepeatDataQueryMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataQueryMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataQueryMethod;
if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getRepeatDataQueryMethod = ComplianceGrpc.getRepeatDataQueryMethod) == null) {
- ComplianceGrpc.getRepeatDataQueryMethod = getRepeatDataQueryMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataQuery"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataQuery"))
- .build();
+ ComplianceGrpc.getRepeatDataQueryMethod =
+ getRepeatDataQueryMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataQuery"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataQuery"))
+ .build();
}
}
}
return getRepeatDataQueryMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataSimplePathMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataSimplePathMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataSimplePath",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataSimplePathMethod() {
- io.grpc.MethodDescriptor getRepeatDataSimplePathMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataSimplePathMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataSimplePathMethod;
if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) {
synchronized (ComplianceGrpc.class) {
- if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod) == null) {
- ComplianceGrpc.getRepeatDataSimplePathMethod = getRepeatDataSimplePathMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataSimplePath"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataSimplePath"))
- .build();
+ if ((getRepeatDataSimplePathMethod = ComplianceGrpc.getRepeatDataSimplePathMethod)
+ == null) {
+ ComplianceGrpc.getRepeatDataSimplePathMethod =
+ getRepeatDataSimplePathMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "RepeatDataSimplePath"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataSimplePath"))
+ .build();
}
}
}
return getRepeatDataSimplePathMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataPathResourceMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathResourceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathResource",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataPathResourceMethod() {
- io.grpc.MethodDescriptor getRepeatDataPathResourceMethod;
- if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathResourceMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathResourceMethod;
+ if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod)
+ == null) {
synchronized (ComplianceGrpc.class) {
- if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod) == null) {
- ComplianceGrpc.getRepeatDataPathResourceMethod = getRepeatDataPathResourceMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathResource"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathResource"))
- .build();
+ if ((getRepeatDataPathResourceMethod = ComplianceGrpc.getRepeatDataPathResourceMethod)
+ == null) {
+ ComplianceGrpc.getRepeatDataPathResourceMethod =
+ getRepeatDataPathResourceMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "RepeatDataPathResource"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataPathResource"))
+ .build();
}
}
}
return getRepeatDataPathResourceMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathTrailingResourceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataPathTrailingResource",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod() {
- io.grpc.MethodDescriptor getRepeatDataPathTrailingResourceMethod;
- if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) {
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathTrailingResourceMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataPathTrailingResourceMethod;
+ if ((getRepeatDataPathTrailingResourceMethod =
+ ComplianceGrpc.getRepeatDataPathTrailingResourceMethod)
+ == null) {
synchronized (ComplianceGrpc.class) {
- if ((getRepeatDataPathTrailingResourceMethod = ComplianceGrpc.getRepeatDataPathTrailingResourceMethod) == null) {
- ComplianceGrpc.getRepeatDataPathTrailingResourceMethod = getRepeatDataPathTrailingResourceMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataPathTrailingResource"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataPathTrailingResource"))
- .build();
+ if ((getRepeatDataPathTrailingResourceMethod =
+ ComplianceGrpc.getRepeatDataPathTrailingResourceMethod)
+ == null) {
+ ComplianceGrpc.getRepeatDataPathTrailingResourceMethod =
+ getRepeatDataPathTrailingResourceMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "RepeatDataPathTrailingResource"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataPathTrailingResource"))
+ .build();
}
}
}
return getRepeatDataPathTrailingResourceMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPutMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPutMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPut",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataBodyPutMethod() {
- io.grpc.MethodDescriptor getRepeatDataBodyPutMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPutMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPutMethod;
if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getRepeatDataBodyPutMethod = ComplianceGrpc.getRepeatDataBodyPutMethod) == null) {
- ComplianceGrpc.getRepeatDataBodyPutMethod = getRepeatDataBodyPutMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPut"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPut"))
- .build();
+ ComplianceGrpc.getRepeatDataBodyPutMethod =
+ getRepeatDataBodyPutMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPut"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataBodyPut"))
+ .build();
}
}
}
return getRepeatDataBodyPutMethod;
}
- private static volatile io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPatchMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RepeatDataBodyPatch",
requestType = com.google.showcase.v1beta1.RepeatRequest.class,
responseType = com.google.showcase.v1beta1.RepeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod() {
- io.grpc.MethodDescriptor getRepeatDataBodyPatchMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPatchMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.RepeatRequest, com.google.showcase.v1beta1.RepeatResponse>
+ getRepeatDataBodyPatchMethod;
if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getRepeatDataBodyPatchMethod = ComplianceGrpc.getRepeatDataBodyPatchMethod) == null) {
- ComplianceGrpc.getRepeatDataBodyPatchMethod = getRepeatDataBodyPatchMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPatch"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("RepeatDataBodyPatch"))
- .build();
+ ComplianceGrpc.getRepeatDataBodyPatchMethod =
+ getRepeatDataBodyPatchMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "RepeatDataBodyPatch"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.RepeatResponse.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new ComplianceMethodDescriptorSupplier("RepeatDataBodyPatch"))
+ .build();
}
}
}
return getRepeatDataBodyPatchMethod;
}
- private static volatile io.grpc.MethodDescriptor getGetEnumMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+ getGetEnumMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEnum",
requestType = com.google.showcase.v1beta1.EnumRequest.class,
responseType = com.google.showcase.v1beta1.EnumResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getGetEnumMethod() {
- io.grpc.MethodDescriptor getGetEnumMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+ getGetEnumMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumRequest, com.google.showcase.v1beta1.EnumResponse>
+ getGetEnumMethod;
if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getGetEnumMethod = ComplianceGrpc.getGetEnumMethod) == null) {
- ComplianceGrpc.getGetEnumMethod = getGetEnumMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnum"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("GetEnum"))
- .build();
+ ComplianceGrpc.getGetEnumMethod =
+ getGetEnumMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnum"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EnumRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("GetEnum"))
+ .build();
}
}
}
return getGetEnumMethod;
}
- private static volatile io.grpc.MethodDescriptor getVerifyEnumMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+ getVerifyEnumMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "VerifyEnum",
requestType = com.google.showcase.v1beta1.EnumResponse.class,
responseType = com.google.showcase.v1beta1.EnumResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getVerifyEnumMethod() {
- io.grpc.MethodDescriptor getVerifyEnumMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+ getVerifyEnumMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EnumResponse, com.google.showcase.v1beta1.EnumResponse>
+ getVerifyEnumMethod;
if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) {
synchronized (ComplianceGrpc.class) {
if ((getVerifyEnumMethod = ComplianceGrpc.getVerifyEnumMethod) == null) {
- ComplianceGrpc.getVerifyEnumMethod = getVerifyEnumMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyEnum"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
- .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("VerifyEnum"))
- .build();
+ ComplianceGrpc.getVerifyEnumMethod =
+ getVerifyEnumMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyEnum"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EnumResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ComplianceMethodDescriptorSupplier("VerifyEnum"))
+ .build();
}
}
}
return getVerifyEnumMethod;
}
- /**
- * Creates a new async stub that supports all call types for the service
- */
+ /** Creates a new async stub that supports all call types for the service */
public static ComplianceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public ComplianceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new ComplianceStub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ComplianceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ComplianceStub(channel, callOptions);
+ }
+ };
return ComplianceStub.newStub(factory, channel);
}
- /**
- * Creates a new blocking-style stub that supports all types of calls on the service
- */
- public static ComplianceBlockingV2Stub newBlockingV2Stub(
- io.grpc.Channel channel) {
+ /** Creates a new blocking-style stub that supports all types of calls on the service */
+ public static ComplianceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public ComplianceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new ComplianceBlockingV2Stub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ComplianceBlockingV2Stub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ComplianceBlockingV2Stub(channel, callOptions);
+ }
+ };
return ComplianceBlockingV2Stub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
- public static ComplianceBlockingStub newBlockingStub(
- io.grpc.Channel channel) {
+ public static ComplianceBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public ComplianceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new ComplianceBlockingStub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ComplianceBlockingStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ComplianceBlockingStub(channel, callOptions);
+ }
+ };
return ComplianceBlockingStub.newStub(factory, channel);
}
- /**
- * Creates a new ListenableFuture-style stub that supports unary calls on the service
- */
- public static ComplianceFutureStub newFutureStub(
- io.grpc.Channel channel) {
+ /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+ public static ComplianceFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new ComplianceFutureStub(channel, callOptions);
- }
- };
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ComplianceFutureStub newStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ComplianceFutureStub(channel, callOptions);
+ }
+ };
return ComplianceFutureStub.newStub(factory, channel);
}
/**
+ *
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -399,92 +530,126 @@ public ComplianceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
public interface AsyncService {
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the entire request object in the REST body.
*
*/
- default void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataBody(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataBodyMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the a message-type field in the REST body. Per AIP-127, only
* top-level, non-repeated fields can be sent this way.
*
*/
- default void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataBodyInfo(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyInfoMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataBodyInfoMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending all request fields as query parameters.
*
*/
- default void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataQuery(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataQueryMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataQueryMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending some parameters as "simple" path variables (i.e., of the form
* "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
*
*/
- default void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataSimplePath(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataSimplePathMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataSimplePathMethod(), responseObserver);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a path resource.
*
*/
- default void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataPathResource(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathResourceMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataPathResourceMethod(), responseObserver);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a trailing resource.
*
*/
- default void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataPathTrailingResource(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataPathTrailingResourceMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataPathTrailingResourceMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PUT method.
*
*/
- default void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataBodyPut(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPutMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataBodyPutMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PATCH method.
*
*/
- default void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request,
+ default void repeatDataBodyPatch(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRepeatDataBodyPatchMethod(), responseObserver);
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getRepeatDataBodyPatchMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
* .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -493,12 +658,15 @@ default void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest reque
* VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
*
*/
- default void getEnum(com.google.showcase.v1beta1.EnumRequest request,
+ default void getEnum(
+ com.google.showcase.v1beta1.EnumRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnumMethod(), responseObserver);
}
/**
+ *
+ *
*
* This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
* verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -507,7 +675,8 @@ default void getEnum(com.google.showcase.v1beta1.EnumRequest request,
* although they are not guaranteed to be the same across separate Showcase server runs.
*
*/
- default void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
+ default void verifyEnum(
+ com.google.showcase.v1beta1.EnumResponse request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyEnumMethod(), responseObserver);
}
@@ -515,136 +684,177 @@ default void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
/**
* Base class for the server implementation of the service Compliance.
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
* correctly.
*
*/
- public static abstract class ComplianceImplBase
- implements io.grpc.BindableService, AsyncService {
+ public abstract static class ComplianceImplBase implements io.grpc.BindableService, AsyncService {
- @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+ @java.lang.Override
+ public final io.grpc.ServerServiceDefinition bindService() {
return ComplianceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Compliance.
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
* correctly.
*
*/
- public static final class ComplianceStub
- extends io.grpc.stub.AbstractAsyncStub {
- private ComplianceStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ public static final class ComplianceStub extends io.grpc.stub.AbstractAsyncStub {
+ private ComplianceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
- protected ComplianceStub build(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ protected ComplianceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ComplianceStub(channel, callOptions);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the entire request object in the REST body.
*
*/
- public void repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataBody(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the a message-type field in the REST body. Per AIP-127, only
* top-level, non-repeated fields can be sent this way.
*
*/
- public void repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataBodyInfo(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending all request fields as query parameters.
*
*/
- public void repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataQuery(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending some parameters as "simple" path variables (i.e., of the form
* "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
*
*/
- public void repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataSimplePath(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a path resource.
*
*/
- public void repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataPathResource(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a trailing resource.
*
*/
- public void repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataPathTrailingResource(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PUT method.
*
*/
- public void repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataBodyPut(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PATCH method.
*
*/
- public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request,
+ public void repeatDataBodyPatch(
+ com.google.showcase.v1beta1.RepeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request, responseObserver);
+ getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()),
+ request,
+ responseObserver);
}
/**
+ *
+ *
*
* This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
* .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -653,13 +863,16 @@ public void repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest reques
* VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public void getEnum(com.google.showcase.v1beta1.EnumRequest request,
+ public void getEnum(
+ com.google.showcase.v1beta1.EnumRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetEnumMethod(), getCallOptions()), request, responseObserver);
}
/**
+ *
+ *
*
* This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
* verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -668,7 +881,8 @@ public void getEnum(com.google.showcase.v1beta1.EnumRequest request,
* although they are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
+ public void verifyEnum(
+ com.google.showcase.v1beta1.EnumResponse request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request, responseObserver);
@@ -677,6 +891,7 @@ public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
/**
* A stub to allow clients to do synchronous rpc calls to service Compliance.
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -685,8 +900,7 @@ public void verifyEnum(com.google.showcase.v1beta1.EnumResponse request,
*/
public static final class ComplianceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub {
- private ComplianceBlockingV2Stub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ private ComplianceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@@ -697,92 +911,118 @@ protected ComplianceBlockingV2Stub build(
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the entire request object in the REST body.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the a message-type field in the REST body. Per AIP-127, only
* top-level, non-repeated fields can be sent this way.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyInfoMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending all request fields as query parameters.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataQueryMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending some parameters as "simple" path variables (i.e., of the form
* "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataSimplePathMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a path resource.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataPathResourceMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a trailing resource.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataPathTrailingResourceMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PUT method.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyPutMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PATCH method.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyPatchMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
* .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -791,12 +1031,15 @@ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google
* VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1beta1.EnumRequest request) {
+ public com.google.showcase.v1beta1.EnumResponse getEnum(
+ com.google.showcase.v1beta1.EnumRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEnumMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
* verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -805,7 +1048,8 @@ public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1be
* although they are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v1beta1.EnumResponse request) {
+ public com.google.showcase.v1beta1.EnumResponse verifyEnum(
+ com.google.showcase.v1beta1.EnumResponse request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getVerifyEnumMethod(), getCallOptions(), request);
}
@@ -813,6 +1057,7 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
/**
* A stub to allow clients to do limited synchronous rpc calls to service Compliance.
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -821,8 +1066,7 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
*/
public static final class ComplianceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
- private ComplianceBlockingStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ private ComplianceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@@ -833,92 +1077,118 @@ protected ComplianceBlockingStub build(
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the entire request object in the REST body.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBody(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the a message-type field in the REST body. Per AIP-127, only
* top-level, non-repeated fields can be sent this way.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyInfo(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyInfoMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending all request fields as query parameters.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataQuery(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataQueryMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending some parameters as "simple" path variables (i.e., of the form
* "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataSimplePath(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataSimplePathMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a path resource.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataPathResource(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataPathResourceMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a trailing resource.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataPathTrailingResource(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataPathTrailingResourceMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PUT method.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPut(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyPutMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PATCH method.
*
*/
- public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(
+ com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRepeatDataBodyPatchMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
* .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -927,12 +1197,15 @@ public com.google.showcase.v1beta1.RepeatResponse repeatDataBodyPatch(com.google
* VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1beta1.EnumRequest request) {
+ public com.google.showcase.v1beta1.EnumResponse getEnum(
+ com.google.showcase.v1beta1.EnumRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEnumMethod(), getCallOptions(), request);
}
/**
+ *
+ *
*
* This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
* verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -941,7 +1214,8 @@ public com.google.showcase.v1beta1.EnumResponse getEnum(com.google.showcase.v1be
* although they are not guaranteed to be the same across separate Showcase server runs.
*
*/
- public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v1beta1.EnumResponse request) {
+ public com.google.showcase.v1beta1.EnumResponse verifyEnum(
+ com.google.showcase.v1beta1.EnumResponse request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getVerifyEnumMethod(), getCallOptions(), request);
}
@@ -949,6 +1223,7 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Compliance.
+ *
*
* This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format
* correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped
@@ -957,112 +1232,137 @@ public com.google.showcase.v1beta1.EnumResponse verifyEnum(com.google.showcase.v
*/
public static final class ComplianceFutureStub
extends io.grpc.stub.AbstractFutureStub {
- private ComplianceFutureStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ private ComplianceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
- protected ComplianceFutureStub build(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ protected ComplianceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ComplianceFutureStub(channel, callOptions);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the entire request object in the REST body.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataBody(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataBody(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataBodyMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending the a message-type field in the REST body. Per AIP-127, only
* top-level, non-repeated fields can be sent this way.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataBodyInfo(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataBodyInfo(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataBodyInfoMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending all request fields as query parameters.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataQuery(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataQuery(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataQueryMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request. This method exercises
* sending some parameters as "simple" path variables (i.e., of the form
* "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataSimplePath(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataSimplePath(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataSimplePathMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a path resource.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataPathResource(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataPathResource(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataPathResourceMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* Same as RepeatDataSimplePath, but with a trailing resource.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataPathTrailingResource(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataPathTrailingResource(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()), request);
+ getChannel().newCall(getRepeatDataPathTrailingResourceMethod(), getCallOptions()),
+ request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PUT method.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPut(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataBodyPut(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataBodyPutMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method echoes the ComplianceData request, using the HTTP PATCH method.
*
*/
- public com.google.common.util.concurrent.ListenableFuture repeatDataBodyPatch(
- com.google.showcase.v1beta1.RepeatRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.RepeatResponse>
+ repeatDataBodyPatch(com.google.showcase.v1beta1.RepeatRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRepeatDataBodyPatchMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the
* .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the
@@ -1071,13 +1371,16 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture getEnum(
- com.google.showcase.v1beta1.EnumRequest request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.EnumResponse>
+ getEnum(com.google.showcase.v1beta1.EnumRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetEnumMethod(), getCallOptions()), request);
}
/**
+ *
+ *
*
* This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()
* verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds
@@ -1086,8 +1389,9 @@ public com.google.common.util.concurrent.ListenableFuture
*/
- public com.google.common.util.concurrent.ListenableFuture verifyEnum(
- com.google.showcase.v1beta1.EnumResponse request) {
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.showcase.v1beta1.EnumResponse>
+ verifyEnum(com.google.showcase.v1beta1.EnumResponse request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getVerifyEnumMethod(), getCallOptions()), request);
}
@@ -1104,11 +1408,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
- io.grpc.stub.ServerCalls.UnaryMethod,
- io.grpc.stub.ServerCalls.ServerStreamingMethod,
- io.grpc.stub.ServerCalls.ClientStreamingMethod,
- io.grpc.stub.ServerCalls.BidiStreamingMethod {
+ private static final class MethodHandlers
+ implements io.grpc.stub.ServerCalls.UnaryMethod,
+ io.grpc.stub.ServerCalls.ServerStreamingMethod,
+ io.grpc.stub.ServerCalls.ClientStreamingMethod,
+ io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
@@ -1122,44 +1426,64 @@ private static final class MethodHandlers implements
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_REPEAT_DATA_BODY:
- serviceImpl.repeatDataBody((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataBody(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_BODY_INFO:
- serviceImpl.repeatDataBodyInfo((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataBodyInfo(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_QUERY:
- serviceImpl.repeatDataQuery((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataQuery(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_SIMPLE_PATH:
- serviceImpl.repeatDataSimplePath((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataSimplePath(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_PATH_RESOURCE:
- serviceImpl.repeatDataPathResource((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataPathResource(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE:
- serviceImpl.repeatDataPathTrailingResource((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataPathTrailingResource(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_BODY_PUT:
- serviceImpl.repeatDataBodyPut((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataBodyPut(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_REPEAT_DATA_BODY_PATCH:
- serviceImpl.repeatDataBodyPatch((com.google.showcase.v1beta1.RepeatRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.repeatDataBodyPatch(
+ (com.google.showcase.v1beta1.RepeatRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_GET_ENUM:
- serviceImpl.getEnum((com.google.showcase.v1beta1.EnumRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.getEnum(
+ (com.google.showcase.v1beta1.EnumRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
case METHODID_VERIFY_ENUM:
- serviceImpl.verifyEnum((com.google.showcase.v1beta1.EnumResponse) request,
- (io.grpc.stub.StreamObserver) responseObserver);
+ serviceImpl.verifyEnum(
+ (com.google.showcase.v1beta1.EnumResponse) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
break;
default:
throw new AssertionError();
@@ -1180,80 +1504,79 @@ public io.grpc.stub.StreamObserver invoke(
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
- getRepeatDataBodyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_BODY)))
+ getRepeatDataBodyMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_BODY)))
.addMethod(
- getRepeatDataBodyInfoMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_BODY_INFO)))
+ getRepeatDataBodyInfoMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_BODY_INFO)))
.addMethod(
- getRepeatDataQueryMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_QUERY)))
+ getRepeatDataQueryMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_QUERY)))
.addMethod(
- getRepeatDataSimplePathMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_SIMPLE_PATH)))
+ getRepeatDataSimplePathMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_SIMPLE_PATH)))
.addMethod(
- getRepeatDataPathResourceMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_PATH_RESOURCE)))
+ getRepeatDataPathResourceMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_PATH_RESOURCE)))
.addMethod(
- getRepeatDataPathTrailingResourceMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
+ getRepeatDataPathTrailingResourceMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_PATH_TRAILING_RESOURCE)))
.addMethod(
- getRepeatDataBodyPutMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_BODY_PUT)))
+ getRepeatDataBodyPutMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_BODY_PUT)))
.addMethod(
- getRepeatDataBodyPatchMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.RepeatRequest,
- com.google.showcase.v1beta1.RepeatResponse>(
- service, METHODID_REPEAT_DATA_BODY_PATCH)))
+ getRepeatDataBodyPatchMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.RepeatRequest,
+ com.google.showcase.v1beta1.RepeatResponse>(
+ service, METHODID_REPEAT_DATA_BODY_PATCH)))
.addMethod(
- getGetEnumMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.EnumRequest,
- com.google.showcase.v1beta1.EnumResponse>(
- service, METHODID_GET_ENUM)))
+ getGetEnumMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.EnumRequest,
+ com.google.showcase.v1beta1.EnumResponse>(service, METHODID_GET_ENUM)))
.addMethod(
- getVerifyEnumMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.showcase.v1beta1.EnumResponse,
- com.google.showcase.v1beta1.EnumResponse>(
- service, METHODID_VERIFY_ENUM)))
+ getVerifyEnumMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.showcase.v1beta1.EnumResponse,
+ com.google.showcase.v1beta1.EnumResponse>(service, METHODID_VERIFY_ENUM)))
.build();
}
- private static abstract class ComplianceBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ private abstract static class ComplianceBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+ io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ComplianceBaseDescriptorSupplier() {}
@java.lang.Override
@@ -1295,19 +1618,21 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
synchronized (ComplianceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
- serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new ComplianceFileDescriptorSupplier())
- .addMethod(getRepeatDataBodyMethod())
- .addMethod(getRepeatDataBodyInfoMethod())
- .addMethod(getRepeatDataQueryMethod())
- .addMethod(getRepeatDataSimplePathMethod())
- .addMethod(getRepeatDataPathResourceMethod())
- .addMethod(getRepeatDataPathTrailingResourceMethod())
- .addMethod(getRepeatDataBodyPutMethod())
- .addMethod(getRepeatDataBodyPatchMethod())
- .addMethod(getGetEnumMethod())
- .addMethod(getVerifyEnumMethod())
- .build();
+ serviceDescriptor =
+ result =
+ io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new ComplianceFileDescriptorSupplier())
+ .addMethod(getRepeatDataBodyMethod())
+ .addMethod(getRepeatDataBodyInfoMethod())
+ .addMethod(getRepeatDataQueryMethod())
+ .addMethod(getRepeatDataSimplePathMethod())
+ .addMethod(getRepeatDataPathResourceMethod())
+ .addMethod(getRepeatDataPathTrailingResourceMethod())
+ .addMethod(getRepeatDataBodyPutMethod())
+ .addMethod(getRepeatDataBodyPatchMethod())
+ .addMethod(getGetEnumMethod())
+ .addMethod(getVerifyEnumMethod())
+ .build();
}
}
}
diff --git a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
similarity index 53%
rename from showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
rename to java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
index 88dfc51bf7..e1642e4173 100644
--- a/showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
+++ b/java-showcase/grpc-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.google.showcase.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
+ *
+ *
*
* This service is used showcase the four main types of rpcs - unary, server
* side streaming, client side streaming, and bidirectional streaming. This
@@ -24,376 +41,489 @@ private EchoGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.showcase.v1beta1.Echo";
// Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor getEchoMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getEchoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Echo",
requestType = com.google.showcase.v1beta1.EchoRequest.class,
responseType = com.google.showcase.v1beta1.EchoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getEchoMethod() {
- io.grpc.MethodDescriptor getEchoMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getEchoMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getEchoMethod;
if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getEchoMethod = EchoGrpc.getEchoMethod) == null) {
- EchoGrpc.getEchoMethod = getEchoMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Echo"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Echo"))
- .build();
+ EchoGrpc.getEchoMethod =
+ getEchoMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Echo"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Echo"))
+ .build();
}
}
}
return getEchoMethod;
}
- private static volatile io.grpc.MethodDescriptor getEchoErrorDetailsMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+ com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+ 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;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+ com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+ getEchoErrorDetailsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoErrorDetailsRequest,
+ com.google.showcase.v1beta1.EchoErrorDetailsResponse>
+ 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();
+ 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;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+ getExpandMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Expand",
requestType = com.google.showcase.v1beta1.ExpandRequest.class,
responseType = com.google.showcase.v1beta1.EchoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
- public static io.grpc.MethodDescriptor getExpandMethod() {
- io.grpc.MethodDescriptor getExpandMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+ getExpandMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.ExpandRequest, com.google.showcase.v1beta1.EchoResponse>
+ getExpandMethod;
if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getExpandMethod = EchoGrpc.getExpandMethod) == null) {
- EchoGrpc.getExpandMethod = getExpandMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Expand"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Expand"))
- .build();
+ EchoGrpc.getExpandMethod =
+ getExpandMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Expand"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.ExpandRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Expand"))
+ .build();
}
}
}
return getExpandMethod;
}
- private static volatile io.grpc.MethodDescriptor getCollectMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getCollectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Collect",
requestType = com.google.showcase.v1beta1.EchoRequest.class,
responseType = com.google.showcase.v1beta1.EchoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
- public static io.grpc.MethodDescriptor getCollectMethod() {
- io.grpc.MethodDescriptor getCollectMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getCollectMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getCollectMethod;
if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getCollectMethod = EchoGrpc.getCollectMethod) == null) {
- EchoGrpc.getCollectMethod = getCollectMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Collect"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Collect"))
- .build();
+ EchoGrpc.getCollectMethod =
+ getCollectMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Collect"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Collect"))
+ .build();
}
}
}
return getCollectMethod;
}
- private static volatile io.grpc.MethodDescriptor getChatMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getChatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Chat",
requestType = com.google.showcase.v1beta1.EchoRequest.class,
responseType = com.google.showcase.v1beta1.EchoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
- public static io.grpc.MethodDescriptor getChatMethod() {
- io.grpc.MethodDescriptor getChatMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getChatMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.EchoRequest, com.google.showcase.v1beta1.EchoResponse>
+ getChatMethod;
if ((getChatMethod = EchoGrpc.getChatMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getChatMethod = EchoGrpc.getChatMethod) == null) {
- EchoGrpc.getChatMethod = getChatMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Chat"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Chat"))
- .build();
+ EchoGrpc.getChatMethod =
+ getChatMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Chat"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.EchoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Chat"))
+ .build();
}
}
}
return getChatMethod;
}
- private static volatile io.grpc.MethodDescriptor getPagedExpandMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PagedExpand",
requestType = com.google.showcase.v1beta1.PagedExpandRequest.class,
responseType = com.google.showcase.v1beta1.PagedExpandResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getPagedExpandMethod() {
- io.grpc.MethodDescriptor getPagedExpandMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandMethod;
if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getPagedExpandMethod = EchoGrpc.getPagedExpandMethod) == null) {
- EchoGrpc.getPagedExpandMethod = getPagedExpandMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpand"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpand"))
- .build();
+ EchoGrpc.getPagedExpandMethod =
+ getPagedExpandMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpand"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpand"))
+ .build();
}
}
}
return getPagedExpandMethod;
}
- private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandLegacyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacy",
requestType = com.google.showcase.v1beta1.PagedExpandLegacyRequest.class,
responseType = com.google.showcase.v1beta1.PagedExpandResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getPagedExpandLegacyMethod() {
- io.grpc.MethodDescriptor getPagedExpandLegacyMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandLegacyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandLegacyRequest,
+ com.google.showcase.v1beta1.PagedExpandResponse>
+ getPagedExpandLegacyMethod;
if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getPagedExpandLegacyMethod = EchoGrpc.getPagedExpandLegacyMethod) == null) {
- EchoGrpc.getPagedExpandLegacyMethod = getPagedExpandLegacyMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandLegacyRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacy"))
- .build();
+ EchoGrpc.getPagedExpandLegacyMethod =
+ getPagedExpandLegacyMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandLegacyRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacy"))
+ .build();
}
}
}
return getPagedExpandLegacyMethod;
}
- private static volatile io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+ getPagedExpandLegacyMappedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PagedExpandLegacyMapped",
requestType = com.google.showcase.v1beta1.PagedExpandRequest.class,
responseType = com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod() {
- io.grpc.MethodDescriptor getPagedExpandLegacyMappedMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+ getPagedExpandLegacyMappedMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.PagedExpandRequest,
+ com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse>
+ getPagedExpandLegacyMappedMethod;
if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) {
synchronized (EchoGrpc.class) {
- if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod) == null) {
- EchoGrpc.getPagedExpandLegacyMappedMethod = getPagedExpandLegacyMappedMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PagedExpandLegacyMapped"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("PagedExpandLegacyMapped"))
- .build();
+ if ((getPagedExpandLegacyMappedMethod = EchoGrpc.getPagedExpandLegacyMappedMethod)
+ == null) {
+ EchoGrpc.getPagedExpandLegacyMappedMethod =
+ getPagedExpandLegacyMappedMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "PagedExpandLegacyMapped"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new EchoMethodDescriptorSupplier("PagedExpandLegacyMapped"))
+ .build();
}
}
}
return getPagedExpandLegacyMappedMethod;
}
- private static volatile io.grpc.MethodDescriptor getWaitMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+ getWaitMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Wait",
requestType = com.google.showcase.v1beta1.WaitRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getWaitMethod() {
- io.grpc.MethodDescriptor getWaitMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+ getWaitMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.WaitRequest, com.google.longrunning.Operation>
+ getWaitMethod;
if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getWaitMethod = EchoGrpc.getWaitMethod) == null) {
- EchoGrpc.getWaitMethod = getWaitMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Wait"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.longrunning.Operation.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Wait"))
- .build();
+ EchoGrpc.getWaitMethod =
+ getWaitMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Wait"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.longrunning.Operation.getDefaultInstance()))
+ .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Wait"))
+ .build();
}
}
}
return getWaitMethod;
}
- private static volatile io.grpc.MethodDescriptor getBlockMethod;
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+ getBlockMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Block",
requestType = com.google.showcase.v1beta1.BlockRequest.class,
responseType = com.google.showcase.v1beta1.BlockResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor getBlockMethod() {
- io.grpc.MethodDescriptor getBlockMethod;
+ public static io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+ getBlockMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.showcase.v1beta1.BlockRequest, com.google.showcase.v1beta1.BlockResponse>
+ getBlockMethod;
if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) {
synchronized (EchoGrpc.class) {
if ((getBlockMethod = EchoGrpc.getBlockMethod) == null) {
- EchoGrpc.getBlockMethod = getBlockMethod =
- io.grpc.MethodDescriptor.newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Block"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.BlockRequest.getDefaultInstance()))
- .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.showcase.v1beta1.BlockResponse.getDefaultInstance()))
- .setSchemaDescriptor(new EchoMethodDescriptorSupplier("Block"))
- .build();
+ EchoGrpc.getBlockMethod =
+ getBlockMethod =
+ io.grpc.MethodDescriptor
+ .