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

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

There is a newer version: 0.60.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 [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/version.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { private VersionsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.Versions"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> getListVersionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListVersions", requestType = com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> getListVersionsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> getListVersionsMethod; if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { synchronized (VersionsGrpc.class) { if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { VersionsGrpc.getListVersionsMethod = getListVersionsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse .getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("ListVersions")) .build(); } } } return getListVersionsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getGetVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetVersion", requestType = com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Version.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getGetVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getGetVersionMethod; if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { synchronized (VersionsGrpc.class) { if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { VersionsGrpc.getGetVersionMethod = getGetVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("GetVersion")) .build(); } } } return getGetVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, com.google.longrunning.Operation> getCreateVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateVersion", requestType = com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, com.google.longrunning.Operation> getCreateVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, com.google.longrunning.Operation> getCreateVersionMethod; if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { synchronized (VersionsGrpc.class) { if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { VersionsGrpc.getCreateVersionMethod = getCreateVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CreateVersion")) .build(); } } } return getCreateVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getUpdateVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateVersion", requestType = com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Version.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getUpdateVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version> getUpdateVersionMethod; if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { synchronized (VersionsGrpc.class) { if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { VersionsGrpc.getUpdateVersionMethod = getUpdateVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("UpdateVersion")) .build(); } } } return getUpdateVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, com.google.protobuf.Empty> getDeleteVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteVersion", requestType = com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, com.google.protobuf.Empty> getDeleteVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, com.google.protobuf.Empty> getDeleteVersionMethod; if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { synchronized (VersionsGrpc.class) { if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { VersionsGrpc.getDeleteVersionMethod = getDeleteVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("DeleteVersion")) .build(); } } } return getDeleteVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, com.google.longrunning.Operation> getLoadVersionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "LoadVersion", requestType = com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, com.google.longrunning.Operation> getLoadVersionMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, com.google.longrunning.Operation> getLoadVersionMethod; if ((getLoadVersionMethod = VersionsGrpc.getLoadVersionMethod) == null) { synchronized (VersionsGrpc.class) { if ((getLoadVersionMethod = VersionsGrpc.getLoadVersionMethod) == null) { VersionsGrpc.getLoadVersionMethod = getLoadVersionMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LoadVersion")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("LoadVersion")) .build(); } } } return getLoadVersionMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> getCompareVersionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CompareVersions", requestType = com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> getCompareVersionsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> getCompareVersionsMethod; if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { synchronized (VersionsGrpc.class) { if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { VersionsGrpc.getCompareVersionsMethod = getCompareVersionsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompareVersions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse .getDefaultInstance())) .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CompareVersions")) .build(); } } } return getCompareVersionsMethod; } /** Creates a new async stub that supports all call types for the service */ public static VersionsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VersionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsStub(channel, callOptions); } }; return VersionsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static VersionsBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VersionsBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsBlockingStub(channel, callOptions); } }; return VersionsBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static VersionsFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VersionsFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsFutureStub(channel, callOptions); } }; return VersionsFutureStub.newStub(factory, channel); } /** * * *
   * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
   * 
*/ public interface AsyncService { /** * * *
     * Returns the list of all versions in the specified
     * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * 
*/ default void listVersions( com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListVersionsMethod(), responseObserver); } /** * * *
     * Retrieves the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ default void getVersion( com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver); } /** * * *
     * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the
     * specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
     * 
*/ default void createVersion( com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateVersionMethod(), responseObserver); } /** * * *
     * Updates the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ default void updateVersion( com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateVersionMethod(), responseObserver); } /** * * *
     * Deletes the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ default void deleteVersion( com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteVersionMethod(), responseObserver); } /** * * *
     * Loads resources in the specified version to the draft flow.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`: An empty [Struct
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ default void loadVersion( com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getLoadVersionMethod(), responseObserver); } /** * * *
     * Compares the specified base version with target version.
     * 
*/ default void compareVersions( com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCompareVersionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service Versions. * *
   * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
   * 
*/ public abstract static class VersionsImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return VersionsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Versions. * *
   * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
   * 
*/ public static final class VersionsStub extends io.grpc.stub.AbstractAsyncStub { private VersionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsStub(channel, callOptions); } /** * * *
     * Returns the list of all versions in the specified
     * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * 
*/ public void listVersions( com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListVersionsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public void getVersion( com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the
     * specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
     * 
*/ public void createVersion( com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public void updateVersion( com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public void deleteVersion( com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Loads resources in the specified version to the draft flow.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`: An empty [Struct
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public void loadVersion( com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getLoadVersionMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Compares the specified base version with target version.
     * 
*/ public void compareVersions( com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Versions. * *
   * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
   * 
*/ public static final class VersionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { private VersionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VersionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsBlockingStub(channel, callOptions); } /** * * *
     * Returns the list of all versions in the specified
     * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse listVersions( com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListVersionsMethod(), getCallOptions(), request); } /** * * *
     * Retrieves the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion( com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetVersionMethod(), getCallOptions(), request); } /** * * *
     * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the
     * specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
     * 
*/ public com.google.longrunning.Operation createVersion( com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateVersionMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Version updateVersion( com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateVersionMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.protobuf.Empty deleteVersion( com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteVersionMethod(), getCallOptions(), request); } /** * * *
     * Loads resources in the specified version to the draft flow.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`: An empty [Struct
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public com.google.longrunning.Operation loadVersion( com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLoadVersionMethod(), getCallOptions(), request); } /** * * *
     * Compares the specified base version with target version.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse compareVersions( com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompareVersionsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Versions. * *
   * Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version].
   * 
*/ public static final class VersionsFutureStub extends io.grpc.stub.AbstractFutureStub { private VersionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VersionsFutureStub(channel, callOptions); } /** * * *
     * Returns the list of all versions in the specified
     * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> listVersions(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListVersionsMethod(), getCallOptions()), request); } /** * * *
     * Retrieves the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Version> getVersion(com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetVersionMethod(), getCallOptions()), request); } /** * * *
     * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the
     * specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`:
     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createVersion(com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Version> updateVersion(com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified
     * [Version][google.cloud.dialogflow.cx.v3beta1.Version].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteVersion(com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request); } /** * * *
     * Loads resources in the specified version to the draft flow.
     * This method is a [long-running
     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
     * The returned `Operation` type has the following method-specific fields:
     * - `metadata`: An empty [Struct
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
     * - `response`: An [Empty
     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
     * 
*/ public com.google.common.util.concurrent.ListenableFuture loadVersion(com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLoadVersionMethod(), getCallOptions()), request); } /** * * *
     * Compares the specified base version with target version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> compareVersions(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_VERSIONS = 0; private static final int METHODID_GET_VERSION = 1; private static final int METHODID_CREATE_VERSION = 2; private static final int METHODID_UPDATE_VERSION = 3; private static final int METHODID_DELETE_VERSION = 4; private static final int METHODID_LOAD_VERSION = 5; private static final int METHODID_COMPARE_VERSIONS = 6; 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_VERSIONS: serviceImpl.listVersions( (com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse>) responseObserver); break; case METHODID_GET_VERSION: serviceImpl.getVersion( (com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_VERSION: serviceImpl.createVersion( (com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_VERSION: serviceImpl.updateVersion( (com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_VERSION: serviceImpl.deleteVersion( (com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LOAD_VERSION: serviceImpl.loadVersion( (com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPARE_VERSIONS: serviceImpl.compareVersions( (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>) 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( getListVersionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse>( service, METHODID_LIST_VERSIONS))) .addMethod( getGetVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version>(service, METHODID_GET_VERSION))) .addMethod( getCreateVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_VERSION))) .addMethod( getUpdateVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, com.google.cloud.dialogflow.cx.v3beta1.Version>( service, METHODID_UPDATE_VERSION))) .addMethod( getDeleteVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_VERSION))) .addMethod( getLoadVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, com.google.longrunning.Operation>(service, METHODID_LOAD_VERSION))) .addMethod( getCompareVersionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>( service, METHODID_COMPARE_VERSIONS))) .build(); } private abstract static class VersionsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { VersionsBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.VersionProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Versions"); } } private static final class VersionsFileDescriptorSupplier extends VersionsBaseDescriptorSupplier { VersionsFileDescriptorSupplier() {} } private static final class VersionsMethodDescriptorSupplier extends VersionsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; VersionsMethodDescriptorSupplier(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 (VersionsGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new VersionsFileDescriptorSupplier()) .addMethod(getListVersionsMethod()) .addMethod(getGetVersionMethod()) .addMethod(getCreateVersionMethod()) .addMethod(getUpdateVersionMethod()) .addMethod(getDeleteVersionMethod()) .addMethod(getLoadVersionMethod()) .addMethod(getCompareVersionsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy