com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-dialogflow-cx-v3beta1 Show documentation
Show all versions of grpc-google-cloud-dialogflow-cx-v3beta1 Show documentation
GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1
/*
* 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
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/dialogflow/cx/v3beta1/environment.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class EnvironmentsGrpc {
private EnvironmentsGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.dialogflow.cx.v3beta1.Environments";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>
getListEnvironmentsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListEnvironments",
requestType = com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>
getListEnvironmentsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>
getListEnvironmentsMethod;
if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) {
EnvironmentsGrpc.getListEnvironmentsMethod =
getListEnvironmentsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("ListEnvironments"))
.build();
}
}
}
return getListEnvironmentsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest,
com.google.cloud.dialogflow.cx.v3beta1.Environment>
getGetEnvironmentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEnvironment",
requestType = com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.Environment.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest,
com.google.cloud.dialogflow.cx.v3beta1.Environment>
getGetEnvironmentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest,
com.google.cloud.dialogflow.cx.v3beta1.Environment>
getGetEnvironmentMethod;
if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) {
EnvironmentsGrpc.getGetEnvironmentMethod =
getGetEnvironmentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.Environment
.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("GetEnvironment"))
.build();
}
}
}
return getGetEnvironmentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest,
com.google.longrunning.Operation>
getCreateEnvironmentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment",
requestType = com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest,
com.google.longrunning.Operation>
getCreateEnvironmentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest,
com.google.longrunning.Operation>
getCreateEnvironmentMethod;
if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) {
EnvironmentsGrpc.getCreateEnvironmentMethod =
getCreateEnvironmentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("CreateEnvironment"))
.build();
}
}
}
return getCreateEnvironmentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest,
com.google.longrunning.Operation>
getUpdateEnvironmentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateEnvironment",
requestType = com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest,
com.google.longrunning.Operation>
getUpdateEnvironmentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest,
com.google.longrunning.Operation>
getUpdateEnvironmentMethod;
if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) {
EnvironmentsGrpc.getUpdateEnvironmentMethod =
getUpdateEnvironmentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnvironment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("UpdateEnvironment"))
.build();
}
}
}
return getUpdateEnvironmentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest,
com.google.protobuf.Empty>
getDeleteEnvironmentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment",
requestType = com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest,
com.google.protobuf.Empty>
getDeleteEnvironmentMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest,
com.google.protobuf.Empty>
getDeleteEnvironmentMethod;
if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) {
EnvironmentsGrpc.getDeleteEnvironmentMethod =
getDeleteEnvironmentMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("DeleteEnvironment"))
.build();
}
}
}
return getDeleteEnvironmentMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest,
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
getLookupEnvironmentHistoryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LookupEnvironmentHistory",
requestType = com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest,
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
getLookupEnvironmentHistoryMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest,
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
getLookupEnvironmentHistoryMethod;
if ((getLookupEnvironmentHistoryMethod = EnvironmentsGrpc.getLookupEnvironmentHistoryMethod)
== null) {
synchronized (EnvironmentsGrpc.class) {
if ((getLookupEnvironmentHistoryMethod = EnvironmentsGrpc.getLookupEnvironmentHistoryMethod)
== null) {
EnvironmentsGrpc.getLookupEnvironmentHistoryMethod =
getLookupEnvironmentHistoryMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "LookupEnvironmentHistory"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1
.LookupEnvironmentHistoryResponse.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("LookupEnvironmentHistory"))
.build();
}
}
}
return getLookupEnvironmentHistoryMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest,
com.google.longrunning.Operation>
getRunContinuousTestMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RunContinuousTest",
requestType = com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest,
com.google.longrunning.Operation>
getRunContinuousTestMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest,
com.google.longrunning.Operation>
getRunContinuousTestMethod;
if ((getRunContinuousTestMethod = EnvironmentsGrpc.getRunContinuousTestMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getRunContinuousTestMethod = EnvironmentsGrpc.getRunContinuousTestMethod) == null) {
EnvironmentsGrpc.getRunContinuousTestMethod =
getRunContinuousTestMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunContinuousTest"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("RunContinuousTest"))
.build();
}
}
}
return getRunContinuousTestMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
getListContinuousTestResultsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListContinuousTestResults",
requestType = com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
getListContinuousTestResultsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
getListContinuousTestResultsMethod;
if ((getListContinuousTestResultsMethod = EnvironmentsGrpc.getListContinuousTestResultsMethod)
== null) {
synchronized (EnvironmentsGrpc.class) {
if ((getListContinuousTestResultsMethod =
EnvironmentsGrpc.getListContinuousTestResultsMethod)
== null) {
EnvironmentsGrpc.getListContinuousTestResultsMethod =
getListContinuousTestResultsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ListContinuousTestResults"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1
.ListContinuousTestResultsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1
.ListContinuousTestResultsResponse.getDefaultInstance()))
.setSchemaDescriptor(
new EnvironmentsMethodDescriptorSupplier("ListContinuousTestResults"))
.build();
}
}
}
return getListContinuousTestResultsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest,
com.google.longrunning.Operation>
getDeployFlowMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeployFlow",
requestType = com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest,
com.google.longrunning.Operation>
getDeployFlowMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest,
com.google.longrunning.Operation>
getDeployFlowMethod;
if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) {
synchronized (EnvironmentsGrpc.class) {
if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) {
EnvironmentsGrpc.getDeployFlowMethod =
getDeployFlowMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployFlow"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("DeployFlow"))
.build();
}
}
}
return getDeployFlowMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static EnvironmentsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public EnvironmentsStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsStub(channel, callOptions);
}
};
return EnvironmentsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static EnvironmentsBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public EnvironmentsBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsBlockingStub(channel, callOptions);
}
};
return EnvironmentsBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static EnvironmentsFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public EnvironmentsFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsFutureStub(channel, callOptions);
}
};
return EnvironmentsFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Service for managing
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public interface AsyncService {
/**
*
*
*
* Returns the list of all environments in the specified
* [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
*
*/
default void listEnvironments(
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListEnvironmentsMethod(), responseObserver);
}
/**
*
*
*
* Retrieves the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
default void getEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetEnvironmentMethod(), responseObserver);
}
/**
*
*
*
* Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
* the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
default void createEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateEnvironmentMethod(), responseObserver);
}
/**
*
*
*
* Updates the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
default void updateEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateEnvironmentMethod(), responseObserver);
}
/**
*
*
*
* Deletes the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
default void deleteEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteEnvironmentMethod(), responseObserver);
}
/**
*
*
*
* Looks up the history of the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
default void lookupEnvironmentHistory(
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getLookupEnvironmentHistoryMethod(), responseObserver);
}
/**
*
*
*
* Kicks off a continuous test under the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
* - `response`:
* [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
*
*/
default void runContinuousTest(
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRunContinuousTestMethod(), responseObserver);
}
/**
*
*
*
* Fetches a list of continuous test results for a given environment.
*
*/
default void listContinuousTestResults(
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListContinuousTestResultsMethod(), responseObserver);
}
/**
*
*
*
* Deploys a flow to the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
* - `response`:
* [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
*
*/
default void deployFlow(
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployFlowMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Environments.
*
*
* Service for managing
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public abstract static class EnvironmentsImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return EnvironmentsGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Environments.
*
*
* Service for managing
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public static final class EnvironmentsStub
extends io.grpc.stub.AbstractAsyncStub {
private EnvironmentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EnvironmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all environments in the specified
* [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
*
*/
public void listEnvironments(
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Retrieves the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public void getEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
* the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public void createEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public void updateEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public void deleteEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Looks up the history of the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public void lookupEnvironmentHistory(
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLookupEnvironmentHistoryMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Kicks off a continuous test under the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
* - `response`:
* [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
*
*/
public void runContinuousTest(
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRunContinuousTestMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Fetches a list of continuous test results for a given environment.
*
*/
public void listContinuousTestResults(
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deploys a flow to the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
* - `response`:
* [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
*
*/
public void deployFlow(
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Environments.
*
*
* Service for managing
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public static final class EnvironmentsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private EnvironmentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EnvironmentsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsBlockingStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all environments in the specified
* [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse listEnvironments(
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListEnvironmentsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Retrieves the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEnvironmentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
* the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public com.google.longrunning.Operation createEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public com.google.longrunning.Operation updateEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.protobuf.Empty deleteEnvironment(
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request);
}
/**
*
*
*
* Looks up the history of the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse
lookupEnvironmentHistory(
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getLookupEnvironmentHistoryMethod(), getCallOptions(), request);
}
/**
*
*
*
* Kicks off a continuous test under the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
* - `response`:
* [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
*
*/
public com.google.longrunning.Operation runContinuousTest(
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRunContinuousTestMethod(), getCallOptions(), request);
}
/**
*
*
*
* Fetches a list of continuous test results for a given environment.
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse
listContinuousTestResults(
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deploys a flow to the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
* - `response`:
* [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
*
*/
public com.google.longrunning.Operation deployFlow(
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeployFlowMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Environments.
*
*
* Service for managing
* [Environments][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public static final class EnvironmentsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private EnvironmentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EnvironmentsFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new EnvironmentsFutureStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all environments in the specified
* [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>
listEnvironments(com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Retrieves the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.cx.v3beta1.Environment>
getEnvironment(com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
* the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public com.google.common.util.concurrent.ListenableFuture
createEnvironment(com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateEnvironment(com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteEnvironment(com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request);
}
/**
*
*
*
* Looks up the history of the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>
lookupEnvironmentHistory(
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getLookupEnvironmentHistoryMethod(), getCallOptions()), request);
}
/**
*
*
*
* Kicks off a continuous test under the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
* - `response`:
* [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
*
*/
public com.google.common.util.concurrent.ListenableFuture
runContinuousTest(com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRunContinuousTestMethod(), getCallOptions()), request);
}
/**
*
*
*
* Fetches a list of continuous test results for a given environment.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>
listContinuousTestResults(
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deploys a flow to the specified
* [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
* 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`:
* [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
* - `response`:
* [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
*
*/
public com.google.common.util.concurrent.ListenableFuture
deployFlow(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LIST_ENVIRONMENTS = 0;
private static final int METHODID_GET_ENVIRONMENT = 1;
private static final int METHODID_CREATE_ENVIRONMENT = 2;
private static final int METHODID_UPDATE_ENVIRONMENT = 3;
private static final int METHODID_DELETE_ENVIRONMENT = 4;
private static final int METHODID_LOOKUP_ENVIRONMENT_HISTORY = 5;
private static final int METHODID_RUN_CONTINUOUS_TEST = 6;
private static final int METHODID_LIST_CONTINUOUS_TEST_RESULTS = 7;
private static final int METHODID_DEPLOY_FLOW = 8;
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_ENVIRONMENTS:
serviceImpl.listEnvironments(
(com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>)
responseObserver);
break;
case METHODID_GET_ENVIRONMENT:
serviceImpl.getEnvironment(
(com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_CREATE_ENVIRONMENT:
serviceImpl.createEnvironment(
(com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_ENVIRONMENT:
serviceImpl.updateEnvironment(
(com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_ENVIRONMENT:
serviceImpl.deleteEnvironment(
(com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LOOKUP_ENVIRONMENT_HISTORY:
serviceImpl.lookupEnvironmentHistory(
(com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>)
responseObserver);
break;
case METHODID_RUN_CONTINUOUS_TEST:
serviceImpl.runContinuousTest(
(com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_CONTINUOUS_TEST_RESULTS:
serviceImpl.listContinuousTestResults(
(com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>)
responseObserver);
break;
case METHODID_DEPLOY_FLOW:
serviceImpl.deployFlow(
(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) 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(
getListEnvironmentsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse>(
service, METHODID_LIST_ENVIRONMENTS)))
.addMethod(
getGetEnvironmentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest,
com.google.cloud.dialogflow.cx.v3beta1.Environment>(
service, METHODID_GET_ENVIRONMENT)))
.addMethod(
getCreateEnvironmentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_ENVIRONMENT)))
.addMethod(
getUpdateEnvironmentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_ENVIRONMENT)))
.addMethod(
getDeleteEnvironmentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest,
com.google.protobuf.Empty>(service, METHODID_DELETE_ENVIRONMENT)))
.addMethod(
getLookupEnvironmentHistoryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest,
com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse>(
service, METHODID_LOOKUP_ENVIRONMENT_HISTORY)))
.addMethod(
getRunContinuousTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest,
com.google.longrunning.Operation>(service, METHODID_RUN_CONTINUOUS_TEST)))
.addMethod(
getListContinuousTestResultsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>(
service, METHODID_LIST_CONTINUOUS_TEST_RESULTS)))
.addMethod(
getDeployFlowMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest,
com.google.longrunning.Operation>(service, METHODID_DEPLOY_FLOW)))
.build();
}
private abstract static class EnvironmentsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
EnvironmentsBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Environments");
}
}
private static final class EnvironmentsFileDescriptorSupplier
extends EnvironmentsBaseDescriptorSupplier {
EnvironmentsFileDescriptorSupplier() {}
}
private static final class EnvironmentsMethodDescriptorSupplier
extends EnvironmentsBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
EnvironmentsMethodDescriptorSupplier(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 (EnvironmentsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new EnvironmentsFileDescriptorSupplier())
.addMethod(getListEnvironmentsMethod())
.addMethod(getGetEnvironmentMethod())
.addMethod(getCreateEnvironmentMethod())
.addMethod(getUpdateEnvironmentMethod())
.addMethod(getDeleteEnvironmentMethod())
.addMethod(getLookupEnvironmentHistoryMethod())
.addMethod(getRunContinuousTestMethod())
.addMethod(getListContinuousTestResultsMethod())
.addMethod(getDeployFlowMethod())
.build();
}
}
}
return result;
}
}