com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-rapidmigrationassessment-v1 Show documentation
Show all versions of grpc-google-cloud-rapidmigrationassessment-v1 Show documentation
GRPC library for google-cloud-rapidmigrationassessment
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.rapidmigrationassessment.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Service describing handlers for resources.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/rapidmigrationassessment/v1/rapidmigrationassessment.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class RapidMigrationAssessmentGrpc {
private RapidMigrationAssessmentGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest,
com.google.longrunning.Operation>
getCreateCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest,
com.google.longrunning.Operation>
getCreateCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest,
com.google.longrunning.Operation>
getCreateCollectorMethod;
if ((getCreateCollectorMethod = RapidMigrationAssessmentGrpc.getCreateCollectorMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getCreateCollectorMethod = RapidMigrationAssessmentGrpc.getCreateCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getCreateCollectorMethod =
getCreateCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("CreateCollector"))
.build();
}
}
}
return getCreateCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest,
com.google.longrunning.Operation>
getCreateAnnotationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateAnnotation",
requestType = com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest,
com.google.longrunning.Operation>
getCreateAnnotationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest,
com.google.longrunning.Operation>
getCreateAnnotationMethod;
if ((getCreateAnnotationMethod = RapidMigrationAssessmentGrpc.getCreateAnnotationMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getCreateAnnotationMethod = RapidMigrationAssessmentGrpc.getCreateAnnotationMethod)
== null) {
RapidMigrationAssessmentGrpc.getCreateAnnotationMethod =
getCreateAnnotationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAnnotation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("CreateAnnotation"))
.build();
}
}
}
return getCreateAnnotationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest,
com.google.cloud.rapidmigrationassessment.v1.Annotation>
getGetAnnotationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAnnotation",
requestType = com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest.class,
responseType = com.google.cloud.rapidmigrationassessment.v1.Annotation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest,
com.google.cloud.rapidmigrationassessment.v1.Annotation>
getGetAnnotationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest,
com.google.cloud.rapidmigrationassessment.v1.Annotation>
getGetAnnotationMethod;
if ((getGetAnnotationMethod = RapidMigrationAssessmentGrpc.getGetAnnotationMethod) == null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getGetAnnotationMethod = RapidMigrationAssessmentGrpc.getGetAnnotationMethod)
== null) {
RapidMigrationAssessmentGrpc.getGetAnnotationMethod =
getGetAnnotationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.Annotation
.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("GetAnnotation"))
.build();
}
}
}
return getGetAnnotationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest,
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
getListCollectorsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListCollectors",
requestType = com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest.class,
responseType = com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest,
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
getListCollectorsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest,
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
getListCollectorsMethod;
if ((getListCollectorsMethod = RapidMigrationAssessmentGrpc.getListCollectorsMethod) == null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getListCollectorsMethod = RapidMigrationAssessmentGrpc.getListCollectorsMethod)
== null) {
RapidMigrationAssessmentGrpc.getListCollectorsMethod =
getListCollectorsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCollectors"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("ListCollectors"))
.build();
}
}
}
return getListCollectorsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest,
com.google.cloud.rapidmigrationassessment.v1.Collector>
getGetCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest.class,
responseType = com.google.cloud.rapidmigrationassessment.v1.Collector.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest,
com.google.cloud.rapidmigrationassessment.v1.Collector>
getGetCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest,
com.google.cloud.rapidmigrationassessment.v1.Collector>
getGetCollectorMethod;
if ((getGetCollectorMethod = RapidMigrationAssessmentGrpc.getGetCollectorMethod) == null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getGetCollectorMethod = RapidMigrationAssessmentGrpc.getGetCollectorMethod) == null) {
RapidMigrationAssessmentGrpc.getGetCollectorMethod =
getGetCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.Collector
.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("GetCollector"))
.build();
}
}
}
return getGetCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest,
com.google.longrunning.Operation>
getUpdateCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest,
com.google.longrunning.Operation>
getUpdateCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest,
com.google.longrunning.Operation>
getUpdateCollectorMethod;
if ((getUpdateCollectorMethod = RapidMigrationAssessmentGrpc.getUpdateCollectorMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getUpdateCollectorMethod = RapidMigrationAssessmentGrpc.getUpdateCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getUpdateCollectorMethod =
getUpdateCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("UpdateCollector"))
.build();
}
}
}
return getUpdateCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest,
com.google.longrunning.Operation>
getDeleteCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest,
com.google.longrunning.Operation>
getDeleteCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest,
com.google.longrunning.Operation>
getDeleteCollectorMethod;
if ((getDeleteCollectorMethod = RapidMigrationAssessmentGrpc.getDeleteCollectorMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getDeleteCollectorMethod = RapidMigrationAssessmentGrpc.getDeleteCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getDeleteCollectorMethod =
getDeleteCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("DeleteCollector"))
.build();
}
}
}
return getDeleteCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest,
com.google.longrunning.Operation>
getResumeCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResumeCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest,
com.google.longrunning.Operation>
getResumeCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest,
com.google.longrunning.Operation>
getResumeCollectorMethod;
if ((getResumeCollectorMethod = RapidMigrationAssessmentGrpc.getResumeCollectorMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getResumeCollectorMethod = RapidMigrationAssessmentGrpc.getResumeCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getResumeCollectorMethod =
getResumeCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("ResumeCollector"))
.build();
}
}
}
return getResumeCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest,
com.google.longrunning.Operation>
getRegisterCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest,
com.google.longrunning.Operation>
getRegisterCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest,
com.google.longrunning.Operation>
getRegisterCollectorMethod;
if ((getRegisterCollectorMethod = RapidMigrationAssessmentGrpc.getRegisterCollectorMethod)
== null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getRegisterCollectorMethod = RapidMigrationAssessmentGrpc.getRegisterCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getRegisterCollectorMethod =
getRegisterCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("RegisterCollector"))
.build();
}
}
}
return getRegisterCollectorMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest,
com.google.longrunning.Operation>
getPauseCollectorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PauseCollector",
requestType = com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest,
com.google.longrunning.Operation>
getPauseCollectorMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest,
com.google.longrunning.Operation>
getPauseCollectorMethod;
if ((getPauseCollectorMethod = RapidMigrationAssessmentGrpc.getPauseCollectorMethod) == null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
if ((getPauseCollectorMethod = RapidMigrationAssessmentGrpc.getPauseCollectorMethod)
== null) {
RapidMigrationAssessmentGrpc.getPauseCollectorMethod =
getPauseCollectorMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseCollector"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new RapidMigrationAssessmentMethodDescriptorSupplier("PauseCollector"))
.build();
}
}
}
return getPauseCollectorMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static RapidMigrationAssessmentStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RapidMigrationAssessmentStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentStub(channel, callOptions);
}
};
return RapidMigrationAssessmentStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static RapidMigrationAssessmentBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RapidMigrationAssessmentBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentBlockingStub(channel, callOptions);
}
};
return RapidMigrationAssessmentBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static RapidMigrationAssessmentFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RapidMigrationAssessmentFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentFutureStub(channel, callOptions);
}
};
return RapidMigrationAssessmentFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Service describing handlers for resources.
*
*/
public interface AsyncService {
/**
*
*
*
* Create a Collector to manage the on-prem appliance which collects
* information about Customer assets.
*
*/
default void createCollector(
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateCollectorMethod(), responseObserver);
}
/**
*
*
*
* Creates an Annotation
*
*/
default void createAnnotation(
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateAnnotationMethod(), responseObserver);
}
/**
*
*
*
* Gets details of a single Annotation.
*
*/
default void getAnnotation(
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetAnnotationMethod(), responseObserver);
}
/**
*
*
*
* Lists Collectors in a given project and location.
*
*/
default void listCollectors(
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListCollectorsMethod(), responseObserver);
}
/**
*
*
*
* Gets details of a single Collector.
*
*/
default void getCollector(
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetCollectorMethod(), responseObserver);
}
/**
*
*
*
* Updates the parameters of a single Collector.
*
*/
default void updateCollector(
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateCollectorMethod(), responseObserver);
}
/**
*
*
*
* Deletes a single Collector - changes state of collector to "Deleting".
* Background jobs does final deletion thorugh producer api.
*
*/
default void deleteCollector(
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteCollectorMethod(), responseObserver);
}
/**
*
*
*
* Resumes the given collector.
*
*/
default void resumeCollector(
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getResumeCollectorMethod(), responseObserver);
}
/**
*
*
*
* Registers the given collector.
*
*/
default void registerCollector(
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRegisterCollectorMethod(), responseObserver);
}
/**
*
*
*
* Pauses the given collector.
*
*/
default void pauseCollector(
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getPauseCollectorMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service RapidMigrationAssessment.
*
*
* Service describing handlers for resources.
*
*/
public abstract static class RapidMigrationAssessmentImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return RapidMigrationAssessmentGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service RapidMigrationAssessment.
*
*
* Service describing handlers for resources.
*
*/
public static final class RapidMigrationAssessmentStub
extends io.grpc.stub.AbstractAsyncStub {
private RapidMigrationAssessmentStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RapidMigrationAssessmentStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentStub(channel, callOptions);
}
/**
*
*
*
* Create a Collector to manage the on-prem appliance which collects
* information about Customer assets.
*
*/
public void createCollector(
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates an Annotation
*
*/
public void createAnnotation(
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateAnnotationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets details of a single Annotation.
*
*/
public void getAnnotation(
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAnnotationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists Collectors in a given project and location.
*
*/
public void listCollectors(
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListCollectorsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets details of a single Collector.
*
*/
public void getCollector(
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates the parameters of a single Collector.
*
*/
public void updateCollector(
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a single Collector - changes state of collector to "Deleting".
* Background jobs does final deletion thorugh producer api.
*
*/
public void deleteCollector(
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Resumes the given collector.
*
*/
public void resumeCollector(
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResumeCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Registers the given collector.
*
*/
public void registerCollector(
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRegisterCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Pauses the given collector.
*
*/
public void pauseCollector(
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPauseCollectorMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service RapidMigrationAssessment.
*
*
* Service describing handlers for resources.
*
*/
public static final class RapidMigrationAssessmentBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private RapidMigrationAssessmentBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RapidMigrationAssessmentBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentBlockingStub(channel, callOptions);
}
/**
*
*
*
* Create a Collector to manage the on-prem appliance which collects
* information about Customer assets.
*
*/
public com.google.longrunning.Operation createCollector(
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates an Annotation
*
*/
public com.google.longrunning.Operation createAnnotation(
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateAnnotationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets details of a single Annotation.
*
*/
public com.google.cloud.rapidmigrationassessment.v1.Annotation getAnnotation(
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAnnotationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists Collectors in a given project and location.
*
*/
public com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse listCollectors(
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListCollectorsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets details of a single Collector.
*
*/
public com.google.cloud.rapidmigrationassessment.v1.Collector getCollector(
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates the parameters of a single Collector.
*
*/
public com.google.longrunning.Operation updateCollector(
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a single Collector - changes state of collector to "Deleting".
* Background jobs does final deletion thorugh producer api.
*
*/
public com.google.longrunning.Operation deleteCollector(
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Resumes the given collector.
*
*/
public com.google.longrunning.Operation resumeCollector(
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResumeCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Registers the given collector.
*
*/
public com.google.longrunning.Operation registerCollector(
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRegisterCollectorMethod(), getCallOptions(), request);
}
/**
*
*
*
* Pauses the given collector.
*
*/
public com.google.longrunning.Operation pauseCollector(
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPauseCollectorMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service
* RapidMigrationAssessment.
*
*
* Service describing handlers for resources.
*
*/
public static final class RapidMigrationAssessmentFutureStub
extends io.grpc.stub.AbstractFutureStub {
private RapidMigrationAssessmentFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RapidMigrationAssessmentFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RapidMigrationAssessmentFutureStub(channel, callOptions);
}
/**
*
*
*
* Create a Collector to manage the on-prem appliance which collects
* information about Customer assets.
*
*/
public com.google.common.util.concurrent.ListenableFuture
createCollector(
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates an Annotation
*
*/
public com.google.common.util.concurrent.ListenableFuture
createAnnotation(
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateAnnotationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets details of a single Annotation.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.rapidmigrationassessment.v1.Annotation>
getAnnotation(com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAnnotationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists Collectors in a given project and location.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>
listCollectors(com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListCollectorsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets details of a single Collector.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.rapidmigrationassessment.v1.Collector>
getCollector(com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates the parameters of a single Collector.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateCollector(
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a single Collector - changes state of collector to "Deleting".
* Background jobs does final deletion thorugh producer api.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteCollector(
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Resumes the given collector.
*
*/
public com.google.common.util.concurrent.ListenableFuture
resumeCollector(
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResumeCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Registers the given collector.
*
*/
public com.google.common.util.concurrent.ListenableFuture
registerCollector(
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRegisterCollectorMethod(), getCallOptions()), request);
}
/**
*
*
*
* Pauses the given collector.
*
*/
public com.google.common.util.concurrent.ListenableFuture
pauseCollector(com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPauseCollectorMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_COLLECTOR = 0;
private static final int METHODID_CREATE_ANNOTATION = 1;
private static final int METHODID_GET_ANNOTATION = 2;
private static final int METHODID_LIST_COLLECTORS = 3;
private static final int METHODID_GET_COLLECTOR = 4;
private static final int METHODID_UPDATE_COLLECTOR = 5;
private static final int METHODID_DELETE_COLLECTOR = 6;
private static final int METHODID_RESUME_COLLECTOR = 7;
private static final int METHODID_REGISTER_COLLECTOR = 8;
private static final int METHODID_PAUSE_COLLECTOR = 9;
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;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_COLLECTOR:
serviceImpl.createCollector(
(com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_ANNOTATION:
serviceImpl.createAnnotation(
(com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ANNOTATION:
serviceImpl.getAnnotation(
(com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_LIST_COLLECTORS:
serviceImpl.listCollectors(
(com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>)
responseObserver);
break;
case METHODID_GET_COLLECTOR:
serviceImpl.getCollector(
(com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_UPDATE_COLLECTOR:
serviceImpl.updateCollector(
(com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_COLLECTOR:
serviceImpl.deleteCollector(
(com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESUME_COLLECTOR:
serviceImpl.resumeCollector(
(com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REGISTER_COLLECTOR:
serviceImpl.registerCollector(
(com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PAUSE_COLLECTOR:
serviceImpl.pauseCollector(
(com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_COLLECTOR)))
.addMethod(
getCreateAnnotationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_ANNOTATION)))
.addMethod(
getGetAnnotationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.GetAnnotationRequest,
com.google.cloud.rapidmigrationassessment.v1.Annotation>(
service, METHODID_GET_ANNOTATION)))
.addMethod(
getListCollectorsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsRequest,
com.google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse>(
service, METHODID_LIST_COLLECTORS)))
.addMethod(
getGetCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.GetCollectorRequest,
com.google.cloud.rapidmigrationassessment.v1.Collector>(
service, METHODID_GET_COLLECTOR)))
.addMethod(
getUpdateCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.UpdateCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_COLLECTOR)))
.addMethod(
getDeleteCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.DeleteCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_COLLECTOR)))
.addMethod(
getResumeCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.ResumeCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_RESUME_COLLECTOR)))
.addMethod(
getRegisterCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.RegisterCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_REGISTER_COLLECTOR)))
.addMethod(
getPauseCollectorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.rapidmigrationassessment.v1.PauseCollectorRequest,
com.google.longrunning.Operation>(service, METHODID_PAUSE_COLLECTOR)))
.build();
}
private abstract static class RapidMigrationAssessmentBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
RapidMigrationAssessmentBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentProto
.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("RapidMigrationAssessment");
}
}
private static final class RapidMigrationAssessmentFileDescriptorSupplier
extends RapidMigrationAssessmentBaseDescriptorSupplier {
RapidMigrationAssessmentFileDescriptorSupplier() {}
}
private static final class RapidMigrationAssessmentMethodDescriptorSupplier
extends RapidMigrationAssessmentBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
RapidMigrationAssessmentMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (RapidMigrationAssessmentGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new RapidMigrationAssessmentFileDescriptorSupplier())
.addMethod(getCreateCollectorMethod())
.addMethod(getCreateAnnotationMethod())
.addMethod(getGetAnnotationMethod())
.addMethod(getListCollectorsMethod())
.addMethod(getGetCollectorMethod())
.addMethod(getUpdateCollectorMethod())
.addMethod(getDeleteCollectorMethod())
.addMethod(getResumeCollectorMethod())
.addMethod(getRegisterCollectorMethod())
.addMethod(getPauseCollectorMethod())
.build();
}
}
}
return result;
}
}