All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3beta1.DeploymentsGrpc Maven / Gradle / Ivy

There is a newer version: 0.65.0
Show newest version
/*
 * 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.dialogflow.cx.v3beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service for managing
 * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/deployment.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DeploymentsGrpc { private DeploymentsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.Deployments"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> getListDeploymentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDeployments", requestType = com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> getListDeploymentsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> getListDeploymentsMethod; if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { synchronized (DeploymentsGrpc.class) { if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { DeploymentsGrpc.getListDeploymentsMethod = getListDeploymentsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeployments")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse .getDefaultInstance())) .setSchemaDescriptor( new DeploymentsMethodDescriptorSupplier("ListDeployments")) .build(); } } } return getListDeploymentsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, com.google.cloud.dialogflow.cx.v3beta1.Deployment> getGetDeploymentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDeployment", requestType = com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Deployment.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, com.google.cloud.dialogflow.cx.v3beta1.Deployment> getGetDeploymentMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, com.google.cloud.dialogflow.cx.v3beta1.Deployment> getGetDeploymentMethod; if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { synchronized (DeploymentsGrpc.class) { if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { DeploymentsGrpc.getGetDeploymentMethod = getGetDeploymentMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeployment")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Deployment .getDefaultInstance())) .setSchemaDescriptor(new DeploymentsMethodDescriptorSupplier("GetDeployment")) .build(); } } } return getGetDeploymentMethod; } /** Creates a new async stub that supports all call types for the service */ public static DeploymentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DeploymentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsStub(channel, callOptions); } }; return DeploymentsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static DeploymentsBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DeploymentsBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsBlockingStub(channel, callOptions); } }; return DeploymentsBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static DeploymentsFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public DeploymentsFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsFutureStub(channel, callOptions); } }; return DeploymentsFutureStub.newStub(factory, channel); } /** * * *
   * Service for managing
   * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
   * 
*/ public interface AsyncService { /** * * *
     * Returns the list of all deployments in the specified
     * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
     * 
*/ default void listDeployments( com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListDeploymentsMethod(), responseObserver); } /** * * *
     * Retrieves the specified
     * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
     * 
*/ default void getDeployment( com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetDeploymentMethod(), responseObserver); } } /** * Base class for the server implementation of the service Deployments. * *
   * Service for managing
   * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
   * 
*/ public abstract static class DeploymentsImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DeploymentsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Deployments. * *
   * Service for managing
   * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
   * 
*/ public static final class DeploymentsStub extends io.grpc.stub.AbstractAsyncStub { private DeploymentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DeploymentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsStub(channel, callOptions); } /** * * *
     * Returns the list of all deployments in the specified
     * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
     * 
*/ public void listDeployments( com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves the specified
     * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
     * 
*/ public void getDeployment( com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Deployments. * *
   * Service for managing
   * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
   * 
*/ public static final class DeploymentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { private DeploymentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DeploymentsBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsBlockingStub(channel, callOptions); } /** * * *
     * Returns the list of all deployments in the specified
     * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse listDeployments( com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDeploymentsMethod(), getCallOptions(), request); } /** * * *
     * Retrieves the specified
     * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployment( com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDeploymentMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Deployments. * *
   * Service for managing
   * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
   * 
*/ public static final class DeploymentsFutureStub extends io.grpc.stub.AbstractFutureStub { private DeploymentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected DeploymentsFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DeploymentsFutureStub(channel, callOptions); } /** * * *
     * Returns the list of all deployments in the specified
     * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> listDeployments(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); } /** * * *
     * Retrieves the specified
     * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Deployment> getDeployment(com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_DEPLOYMENTS = 0; private static final int METHODID_GET_DEPLOYMENT = 1; 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_LIST_DEPLOYMENTS: serviceImpl.listDeployments( (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse>) responseObserver); break; case METHODID_GET_DEPLOYMENT: serviceImpl.getDeployment( (com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) 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( getListDeploymentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse>( service, METHODID_LIST_DEPLOYMENTS))) .addMethod( getGetDeploymentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, com.google.cloud.dialogflow.cx.v3beta1.Deployment>( service, METHODID_GET_DEPLOYMENT))) .build(); } private abstract static class DeploymentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DeploymentsBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Deployments"); } } private static final class DeploymentsFileDescriptorSupplier extends DeploymentsBaseDescriptorSupplier { DeploymentsFileDescriptorSupplier() {} } private static final class DeploymentsMethodDescriptorSupplier extends DeploymentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; DeploymentsMethodDescriptorSupplier(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 (DeploymentsGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DeploymentsFileDescriptorSupplier()) .addMethod(getListDeploymentsMethod()) .addMethod(getGetDeploymentMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy