Class GrpcParticipantsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2.stub.ParticipantsStub
-
- com.google.cloud.dialogflow.v2.stub.GrpcParticipantsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcParticipantsStub extends ParticipantsStub
gRPC stub implementation for the Participants service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcParticipantsStub(ParticipantsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcParticipantsStub, using the given settings.protected
GrpcParticipantsStub(ParticipantsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcParticipantsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallable<AnalyzeContentRequest,AnalyzeContentResponse>
analyzeContentCallable()
boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcParticipantsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcParticipantsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcParticipantsStub
create(ParticipantsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateParticipantRequest,Participant>
createParticipantCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetParticipantRequest,Participant>
getParticipantCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ParticipantsClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListParticipantsRequest,ListParticipantsResponse>
listParticipantsCallable()
com.google.api.gax.rpc.UnaryCallable<ListParticipantsRequest,ParticipantsClient.ListParticipantsPagedResponse>
listParticipantsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.BidiStreamingCallable<StreamingAnalyzeContentRequest,StreamingAnalyzeContentResponse>
streamingAnalyzeContentCallable()
com.google.api.gax.rpc.UnaryCallable<SuggestArticlesRequest,SuggestArticlesResponse>
suggestArticlesCallable()
com.google.api.gax.rpc.UnaryCallable<SuggestFaqAnswersRequest,SuggestFaqAnswersResponse>
suggestFaqAnswersCallable()
com.google.api.gax.rpc.UnaryCallable<SuggestSmartRepliesRequest,SuggestSmartRepliesResponse>
suggestSmartRepliesCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateParticipantRequest,Participant>
updateParticipantCallable()
-
-
-
Constructor Detail
-
GrpcParticipantsStub
protected GrpcParticipantsStub(ParticipantsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcParticipantsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcParticipantsStub
protected GrpcParticipantsStub(ParticipantsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcParticipantsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcParticipantsStub create(ParticipantsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcParticipantsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcParticipantsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createParticipantCallable
public com.google.api.gax.rpc.UnaryCallable<CreateParticipantRequest,Participant> createParticipantCallable()
- Overrides:
createParticipantCallable
in classParticipantsStub
-
getParticipantCallable
public com.google.api.gax.rpc.UnaryCallable<GetParticipantRequest,Participant> getParticipantCallable()
- Overrides:
getParticipantCallable
in classParticipantsStub
-
listParticipantsCallable
public com.google.api.gax.rpc.UnaryCallable<ListParticipantsRequest,ListParticipantsResponse> listParticipantsCallable()
- Overrides:
listParticipantsCallable
in classParticipantsStub
-
listParticipantsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListParticipantsRequest,ParticipantsClient.ListParticipantsPagedResponse> listParticipantsPagedCallable()
- Overrides:
listParticipantsPagedCallable
in classParticipantsStub
-
updateParticipantCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateParticipantRequest,Participant> updateParticipantCallable()
- Overrides:
updateParticipantCallable
in classParticipantsStub
-
analyzeContentCallable
public com.google.api.gax.rpc.UnaryCallable<AnalyzeContentRequest,AnalyzeContentResponse> analyzeContentCallable()
- Overrides:
analyzeContentCallable
in classParticipantsStub
-
streamingAnalyzeContentCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingAnalyzeContentRequest,StreamingAnalyzeContentResponse> streamingAnalyzeContentCallable()
- Overrides:
streamingAnalyzeContentCallable
in classParticipantsStub
-
suggestArticlesCallable
public com.google.api.gax.rpc.UnaryCallable<SuggestArticlesRequest,SuggestArticlesResponse> suggestArticlesCallable()
- Overrides:
suggestArticlesCallable
in classParticipantsStub
-
suggestFaqAnswersCallable
public com.google.api.gax.rpc.UnaryCallable<SuggestFaqAnswersRequest,SuggestFaqAnswersResponse> suggestFaqAnswersCallable()
- Overrides:
suggestFaqAnswersCallable
in classParticipantsStub
-
suggestSmartRepliesCallable
public com.google.api.gax.rpc.UnaryCallable<SuggestSmartRepliesRequest,SuggestSmartRepliesResponse> suggestSmartRepliesCallable()
- Overrides:
suggestSmartRepliesCallable
in classParticipantsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classParticipantsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ParticipantsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classParticipantsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classParticipantsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classParticipantsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-