Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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 conversation history.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/dialogflow/cx/v3beta1/conversation_history.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ConversationHistoryGrpc {
private ConversationHistoryGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.dialogflow.cx.v3beta1.ConversationHistory";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse>
getListConversationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListConversations",
requestType = com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse>
getListConversationsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest,
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse>
getListConversationsMethod;
if ((getListConversationsMethod = ConversationHistoryGrpc.getListConversationsMethod) == null) {
synchronized (ConversationHistoryGrpc.class) {
if ((getListConversationsMethod = ConversationHistoryGrpc.getListConversationsMethod)
== null) {
ConversationHistoryGrpc.getListConversationsMethod =
getListConversationsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationHistoryMethodDescriptorSupplier("ListConversations"))
.build();
}
}
}
return getListConversationsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest,
com.google.cloud.dialogflow.cx.v3beta1.Conversation>
getGetConversationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConversation",
requestType = com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest.class,
responseType = com.google.cloud.dialogflow.cx.v3beta1.Conversation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest,
com.google.cloud.dialogflow.cx.v3beta1.Conversation>
getGetConversationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest,
com.google.cloud.dialogflow.cx.v3beta1.Conversation>
getGetConversationMethod;
if ((getGetConversationMethod = ConversationHistoryGrpc.getGetConversationMethod) == null) {
synchronized (ConversationHistoryGrpc.class) {
if ((getGetConversationMethod = ConversationHistoryGrpc.getGetConversationMethod) == null) {
ConversationHistoryGrpc.getGetConversationMethod =
getGetConversationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.GetConversationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.Conversation
.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationHistoryMethodDescriptorSupplier("GetConversation"))
.build();
}
}
}
return getGetConversationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest,
com.google.protobuf.Empty>
getDeleteConversationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteConversation",
requestType = com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest,
com.google.protobuf.Empty>
getDeleteConversationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest,
com.google.protobuf.Empty>
getDeleteConversationMethod;
if ((getDeleteConversationMethod = ConversationHistoryGrpc.getDeleteConversationMethod)
== null) {
synchronized (ConversationHistoryGrpc.class) {
if ((getDeleteConversationMethod = ConversationHistoryGrpc.getDeleteConversationMethod)
== null) {
ConversationHistoryGrpc.getDeleteConversationMethod =
getDeleteConversationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new ConversationHistoryMethodDescriptorSupplier("DeleteConversation"))
.build();
}
}
}
return getDeleteConversationMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static ConversationHistoryStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationHistoryStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryStub(channel, callOptions);
}
};
return ConversationHistoryStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ConversationHistoryBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationHistoryBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryBlockingStub(channel, callOptions);
}
};
return ConversationHistoryBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static ConversationHistoryFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConversationHistoryFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryFutureStub(channel, callOptions);
}
};
return ConversationHistoryFutureStub.newStub(factory, channel);
}
/**
*
*
*
*/
default void deleteConversation(
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteConversationMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service ConversationHistory.
*
*
* Service for managing conversation history.
*
*/
public abstract static class ConversationHistoryImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return ConversationHistoryGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service ConversationHistory.
*
*
* Service for managing conversation history.
*
*/
public static final class ConversationHistoryStub
extends io.grpc.stub.AbstractAsyncStub {
private ConversationHistoryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationHistoryStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryStub(channel, callOptions);
}
/**
*
*
*
*/
public void deleteConversation(
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteConversationMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service ConversationHistory.
*
*
* Service for managing conversation history.
*
*/
public static final class ConversationHistoryBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ConversationHistoryBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationHistoryBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryBlockingStub(channel, callOptions);
}
/**
*
*
*
*/
public com.google.protobuf.Empty deleteConversation(
com.google.cloud.dialogflow.cx.v3beta1.DeleteConversationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteConversationMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service ConversationHistory.
*
*
* Service for managing conversation history.
*
*/
public static final class ConversationHistoryFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ConversationHistoryFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConversationHistoryFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConversationHistoryFutureStub(channel, callOptions);
}
/**
*
*
*