com.google.cloud.dialogflow.v2.ConversationProfilesGrpc 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-v2 Show documentation
Show all versions of grpc-google-cloud-dialogflow-v2 Show documentation
GRPC library for grpc-google-cloud-dialogflow-v2
/*
* 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.v2;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/dialogflow/v2/conversation_profile.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ConversationProfilesGrpc {
private ConversationProfilesGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.dialogflow.v2.ConversationProfiles";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest,
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>
getListConversationProfilesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListConversationProfiles",
requestType = com.google.cloud.dialogflow.v2.ListConversationProfilesRequest.class,
responseType = com.google.cloud.dialogflow.v2.ListConversationProfilesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest,
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>
getListConversationProfilesMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest,
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>
getListConversationProfilesMethod;
if ((getListConversationProfilesMethod =
ConversationProfilesGrpc.getListConversationProfilesMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getListConversationProfilesMethod =
ConversationProfilesGrpc.getListConversationProfilesMethod)
== null) {
ConversationProfilesGrpc.getListConversationProfilesMethod =
getListConversationProfilesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ListConversationProfiles"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"ListConversationProfiles"))
.build();
}
}
}
return getListConversationProfilesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.GetConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getGetConversationProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConversationProfile",
requestType = com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class,
responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.GetConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getGetConversationProfileMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.GetConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getGetConversationProfileMethod;
if ((getGetConversationProfileMethod = ConversationProfilesGrpc.getGetConversationProfileMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getGetConversationProfileMethod =
ConversationProfilesGrpc.getGetConversationProfileMethod)
== null) {
ConversationProfilesGrpc.getGetConversationProfileMethod =
getGetConversationProfileMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GetConversationProfile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.GetConversationProfileRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ConversationProfile
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"GetConversationProfile"))
.build();
}
}
}
return getGetConversationProfileMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getCreateConversationProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateConversationProfile",
requestType = com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class,
responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getCreateConversationProfileMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getCreateConversationProfileMethod;
if ((getCreateConversationProfileMethod =
ConversationProfilesGrpc.getCreateConversationProfileMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getCreateConversationProfileMethod =
ConversationProfilesGrpc.getCreateConversationProfileMethod)
== null) {
ConversationProfilesGrpc.getCreateConversationProfileMethod =
getCreateConversationProfileMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "CreateConversationProfile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ConversationProfile
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"CreateConversationProfile"))
.build();
}
}
}
return getCreateConversationProfileMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getUpdateConversationProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateConversationProfile",
requestType = com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest.class,
responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getUpdateConversationProfileMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>
getUpdateConversationProfileMethod;
if ((getUpdateConversationProfileMethod =
ConversationProfilesGrpc.getUpdateConversationProfileMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getUpdateConversationProfileMethod =
ConversationProfilesGrpc.getUpdateConversationProfileMethod)
== null) {
ConversationProfilesGrpc.getUpdateConversationProfileMethod =
getUpdateConversationProfileMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "UpdateConversationProfile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ConversationProfile
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"UpdateConversationProfile"))
.build();
}
}
}
return getUpdateConversationProfileMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest,
com.google.protobuf.Empty>
getDeleteConversationProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteConversationProfile",
requestType = com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest,
com.google.protobuf.Empty>
getDeleteConversationProfileMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest,
com.google.protobuf.Empty>
getDeleteConversationProfileMethod;
if ((getDeleteConversationProfileMethod =
ConversationProfilesGrpc.getDeleteConversationProfileMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getDeleteConversationProfileMethod =
ConversationProfilesGrpc.getDeleteConversationProfileMethod)
== null) {
ConversationProfilesGrpc.getDeleteConversationProfileMethod =
getDeleteConversationProfileMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "DeleteConversationProfile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"DeleteConversationProfile"))
.build();
}
}
}
return getDeleteConversationProfileMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getSetSuggestionFeatureConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetSuggestionFeatureConfig",
requestType = com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getSetSuggestionFeatureConfigMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getSetSuggestionFeatureConfigMethod;
if ((getSetSuggestionFeatureConfigMethod =
ConversationProfilesGrpc.getSetSuggestionFeatureConfigMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getSetSuggestionFeatureConfigMethod =
ConversationProfilesGrpc.getSetSuggestionFeatureConfigMethod)
== null) {
ConversationProfilesGrpc.getSetSuggestionFeatureConfigMethod =
getSetSuggestionFeatureConfigMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "SetSuggestionFeatureConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"SetSuggestionFeatureConfig"))
.build();
}
}
}
return getSetSuggestionFeatureConfigMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getClearSuggestionFeatureConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ClearSuggestionFeatureConfig",
requestType = com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getClearSuggestionFeatureConfigMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>
getClearSuggestionFeatureConfigMethod;
if ((getClearSuggestionFeatureConfigMethod =
ConversationProfilesGrpc.getClearSuggestionFeatureConfigMethod)
== null) {
synchronized (ConversationProfilesGrpc.class) {
if ((getClearSuggestionFeatureConfigMethod =
ConversationProfilesGrpc.getClearSuggestionFeatureConfigMethod)
== null) {
ConversationProfilesGrpc.getClearSuggestionFeatureConfigMethod =
getClearSuggestionFeatureConfigMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ClearSuggestionFeatureConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationProfilesMethodDescriptorSupplier(
"ClearSuggestionFeatureConfig"))
.build();
}
}
}
return getClearSuggestionFeatureConfigMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static ConversationProfilesStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationProfilesStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesStub(channel, callOptions);
}
};
return ConversationProfilesStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ConversationProfilesBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationProfilesBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesBlockingStub(channel, callOptions);
}
};
return ConversationProfilesBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static ConversationProfilesFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationProfilesFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesFutureStub(channel, callOptions);
}
};
return ConversationProfilesFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
public interface AsyncService {
/**
*
*
*
* Returns the list of all conversation profiles in the specified project.
*
*/
default void listConversationProfiles(
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListConversationProfilesMethod(), responseObserver);
}
/**
*
*
*
* Retrieves the specified conversation profile.
*
*/
default void getConversationProfile(
com.google.cloud.dialogflow.v2.GetConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetConversationProfileMethod(), responseObserver);
}
/**
*
*
*
* Creates a conversation profile in the specified project.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
default void createConversationProfile(
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateConversationProfileMethod(), responseObserver);
}
/**
*
*
*
* Updates the specified conversation profile.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
default void updateConversationProfile(
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateConversationProfileMethod(), responseObserver);
}
/**
*
*
*
* Deletes the specified conversation profile.
*
*/
default void deleteConversationProfile(
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteConversationProfileMethod(), responseObserver);
}
/**
*
*
*
* Adds or updates a suggestion feature in a conversation profile.
* If the conversation profile contains the type of suggestion feature for
* the participant role, it will update it. Otherwise it will insert the
* suggestion feature.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
* If a long running operation to add or update suggestion feature
* config for the same conversation profile, participant role and suggestion
* feature type exists, please cancel the existing long running operation
* before sending such request, otherwise the request will be rejected.
*
*/
default void setSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSetSuggestionFeatureConfigMethod(), responseObserver);
}
/**
*
*
*
* Clears a suggestion feature from a conversation profile for the given
* participant role.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
*
*/
default void clearSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getClearSuggestionFeatureConfigMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service ConversationProfiles.
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
public abstract static class ConversationProfilesImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return ConversationProfilesGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service ConversationProfiles.
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
public static final class ConversationProfilesStub
extends io.grpc.stub.AbstractAsyncStub {
private ConversationProfilesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationProfilesStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all conversation profiles in the specified project.
*
*/
public void listConversationProfiles(
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Retrieves the specified conversation profile.
*
*/
public void getConversationProfile(
com.google.cloud.dialogflow.v2.GetConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates a conversation profile in the specified project.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public void createConversationProfile(
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates the specified conversation profile.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public void updateConversationProfile(
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes the specified conversation profile.
*
*/
public void deleteConversationProfile(
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Adds or updates a suggestion feature in a conversation profile.
* If the conversation profile contains the type of suggestion feature for
* the participant role, it will update it. Otherwise it will insert the
* suggestion feature.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
* If a long running operation to add or update suggestion feature
* config for the same conversation profile, participant role and suggestion
* feature type exists, please cancel the existing long running operation
* before sending such request, otherwise the request will be rejected.
*
*/
public void setSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetSuggestionFeatureConfigMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Clears a suggestion feature from a conversation profile for the given
* participant role.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
*
*/
public void clearSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getClearSuggestionFeatureConfigMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service ConversationProfiles.
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
public static final class ConversationProfilesBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ConversationProfilesBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationProfilesBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesBlockingStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all conversation profiles in the specified project.
*
*/
public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConversationProfiles(
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListConversationProfilesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Retrieves the specified conversation profile.
*
*/
public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile(
com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConversationProfileMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates a conversation profile in the specified project.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProfile(
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates the specified conversation profile.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProfile(
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes the specified conversation profile.
*
*/
public com.google.protobuf.Empty deleteConversationProfile(
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request);
}
/**
*
*
*
* Adds or updates a suggestion feature in a conversation profile.
* If the conversation profile contains the type of suggestion feature for
* the participant role, it will update it. Otherwise it will insert the
* suggestion feature.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
* If a long running operation to add or update suggestion feature
* config for the same conversation profile, participant role and suggestion
* feature type exists, please cancel the existing long running operation
* before sending such request, otherwise the request will be rejected.
*
*/
public com.google.longrunning.Operation setSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetSuggestionFeatureConfigMethod(), getCallOptions(), request);
}
/**
*
*
*
* Clears a suggestion feature from a conversation profile for the given
* participant role.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
*
*/
public com.google.longrunning.Operation clearSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getClearSuggestionFeatureConfigMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service ConversationProfiles.
*
*
* Service for managing
* [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
*
*/
public static final class ConversationProfilesFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ConversationProfilesFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationProfilesFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationProfilesFutureStub(channel, callOptions);
}
/**
*
*
*
* Returns the list of all conversation profiles in the specified project.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>
listConversationProfiles(
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Retrieves the specified conversation profile.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ConversationProfile>
getConversationProfile(
com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates a conversation profile in the specified project.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ConversationProfile>
createConversationProfile(
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates the specified conversation profile.
* [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
* aren't populated in the response. You can retrieve them via
* [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]
* API.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.dialogflow.v2.ConversationProfile>
updateConversationProfile(
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes the specified conversation profile.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteConversationProfile(
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request);
}
/**
*
*
*
* Adds or updates a suggestion feature in a conversation profile.
* If the conversation profile contains the type of suggestion feature for
* the participant role, it will update it. Otherwise it will insert the
* suggestion feature.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
* If a long running operation to add or update suggestion feature
* config for the same conversation profile, participant role and suggestion
* feature type exists, please cancel the existing long running operation
* before sending such request, otherwise the request will be rejected.
*
*/
public com.google.common.util.concurrent.ListenableFuture
setSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetSuggestionFeatureConfigMethod(), getCallOptions()), request);
}
/**
*
*
*
* Clears a suggestion feature from a conversation profile for the given
* participant role.
* This method is a [long-running
* operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
* The returned `Operation` type has the following method-specific fields:
* - `metadata`:
* [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata]
* - `response`:
* [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]
*
*/
public com.google.common.util.concurrent.ListenableFuture
clearSuggestionFeatureConfig(
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getClearSuggestionFeatureConfigMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LIST_CONVERSATION_PROFILES = 0;
private static final int METHODID_GET_CONVERSATION_PROFILE = 1;
private static final int METHODID_CREATE_CONVERSATION_PROFILE = 2;
private static final int METHODID_UPDATE_CONVERSATION_PROFILE = 3;
private static final int METHODID_DELETE_CONVERSATION_PROFILE = 4;
private static final int METHODID_SET_SUGGESTION_FEATURE_CONFIG = 5;
private static final int METHODID_CLEAR_SUGGESTION_FEATURE_CONFIG = 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_CONVERSATION_PROFILES:
serviceImpl.listConversationProfiles(
(com.google.cloud.dialogflow.v2.ListConversationProfilesRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>)
responseObserver);
break;
case METHODID_GET_CONVERSATION_PROFILE:
serviceImpl.getConversationProfile(
(com.google.cloud.dialogflow.v2.GetConversationProfileRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_CREATE_CONVERSATION_PROFILE:
serviceImpl.createConversationProfile(
(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_UPDATE_CONVERSATION_PROFILE:
serviceImpl.updateConversationProfile(
(com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_DELETE_CONVERSATION_PROFILE:
serviceImpl.deleteConversationProfile(
(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_SUGGESTION_FEATURE_CONFIG:
serviceImpl.setSuggestionFeatureConfig(
(com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CLEAR_SUGGESTION_FEATURE_CONFIG:
serviceImpl.clearSuggestionFeatureConfig(
(com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest) 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(
getListConversationProfilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.ListConversationProfilesRequest,
com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>(
service, METHODID_LIST_CONVERSATION_PROFILES)))
.addMethod(
getGetConversationProfileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.GetConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>(
service, METHODID_GET_CONVERSATION_PROFILE)))
.addMethod(
getCreateConversationProfileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.CreateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>(
service, METHODID_CREATE_CONVERSATION_PROFILE)))
.addMethod(
getUpdateConversationProfileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest,
com.google.cloud.dialogflow.v2.ConversationProfile>(
service, METHODID_UPDATE_CONVERSATION_PROFILE)))
.addMethod(
getDeleteConversationProfileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest,
com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSATION_PROFILE)))
.addMethod(
getSetSuggestionFeatureConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>(
service, METHODID_SET_SUGGESTION_FEATURE_CONFIG)))
.addMethod(
getClearSuggestionFeatureConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigRequest,
com.google.longrunning.Operation>(
service, METHODID_CLEAR_SUGGESTION_FEATURE_CONFIG)))
.build();
}
private abstract static class ConversationProfilesBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ConversationProfilesBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.dialogflow.v2.ConversationProfileProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ConversationProfiles");
}
}
private static final class ConversationProfilesFileDescriptorSupplier
extends ConversationProfilesBaseDescriptorSupplier {
ConversationProfilesFileDescriptorSupplier() {}
}
private static final class ConversationProfilesMethodDescriptorSupplier
extends ConversationProfilesBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ConversationProfilesMethodDescriptorSupplier(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 (ConversationProfilesGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ConversationProfilesFileDescriptorSupplier())
.addMethod(getListConversationProfilesMethod())
.addMethod(getGetConversationProfileMethod())
.addMethod(getCreateConversationProfileMethod())
.addMethod(getUpdateConversationProfileMethod())
.addMethod(getDeleteConversationProfileMethod())
.addMethod(getSetSuggestionFeatureConfigMethod())
.addMethod(getClearSuggestionFeatureConfigMethod())
.build();
}
}
}
return result;
}
}