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;
/**
*
*
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
*/
public interface AsyncService {
/**
*
*
*
* Processes a natural language query and returns structured, actionable data
* as a result. This method is not idempotent, because it may cause session
* entity types to be updated, which in turn might affect results of future
* queries.
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Processes a natural language query and returns structured, actionable data
* as a result through server-side streaming. Server-side streaming allows
* Dialogflow to send [partial
* responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
* earlier in a single request.
*
* Processes a natural language query in audio format in a streaming fashion
* and returns structured, actionable data as a result. This method is only
* available via the gRPC API (not REST).
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
*
* Updates the feedback received from the user for a single turn of the bot
* response.
*
*/
default void submitAnswerFeedback(
com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getSubmitAnswerFeedbackMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Sessions.
*
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
*/
public abstract static class SessionsImplBase implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return SessionsGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Sessions.
*
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
*/
public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub {
private SessionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SessionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SessionsStub(channel, callOptions);
}
/**
*
*
*
* Processes a natural language query and returns structured, actionable data
* as a result. This method is not idempotent, because it may cause session
* entity types to be updated, which in turn might affect results of future
* queries.
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Processes a natural language query and returns structured, actionable data
* as a result through server-side streaming. Server-side streaming allows
* Dialogflow to send [partial
* responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
* earlier in a single request.
*
* Processes a natural language query in audio format in a streaming fashion
* and returns structured, actionable data as a result. This method is only
* available via the gRPC API (not REST).
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
*
* Updates the feedback received from the user for a single turn of the bot
* response.
*
*/
public void submitAnswerFeedback(
com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSubmitAnswerFeedbackMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Sessions.
*
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
*/
public static final class SessionsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private SessionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SessionsBlockingStub(channel, callOptions);
}
/**
*
*
*
* Processes a natural language query and returns structured, actionable data
* as a result. This method is not idempotent, because it may cause session
* entity types to be updated, which in turn might affect results of future
* queries.
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Processes a natural language query and returns structured, actionable data
* as a result through server-side streaming. Server-side streaming allows
* Dialogflow to send [partial
* responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
* earlier in a single request.
*
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
*
* Updates the feedback received from the user for a single turn of the bot
* response.
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback submitAnswerFeedback(
com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSubmitAnswerFeedbackMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Sessions.
*
*
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
*
*/
public static final class SessionsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private SessionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SessionsFutureStub(channel, callOptions);
}
/**
*
*
*
* Processes a natural language query and returns structured, actionable data
* as a result. This method is not idempotent, because it may cause session
* entity types to be updated, which in turn might affect results of future
* queries.
* Note: Always use agent versions for production traffic.
* See [Versions and
* environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
*
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
*