Class HttpJsonParticipantsStub (4.7.0)

public class HttpJsonParticipantsStub extends ParticipantsStub

REST stub implementation for the Participants service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ParticipantsStub > HttpJsonParticipantsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonParticipantsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonParticipantsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonParticipantsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonParticipantsStub
Exceptions
TypeDescription
IOException

create(ParticipantsStubSettings settings)

public static final HttpJsonParticipantsStub create(ParticipantsStubSettings settings)
Parameter
NameDescription
settingsParticipantsStubSettings
Returns
TypeDescription
HttpJsonParticipantsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonParticipantsStub(ParticipantsStubSettings settings, ClientContext clientContext)

protected HttpJsonParticipantsStub(ParticipantsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonParticipantsStub, 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.

Parameters
NameDescription
settingsParticipantsStubSettings
clientContextClientContext

HttpJsonParticipantsStub(ParticipantsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonParticipantsStub(ParticipantsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonParticipantsStub, 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.

Parameters
NameDescription
settingsParticipantsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

analyzeContentCallable()

public UnaryCallable<AnalyzeContentRequest,AnalyzeContentResponse> analyzeContentCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeContentRequest,AnalyzeContentResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

compileSuggestionCallable()

public UnaryCallable<CompileSuggestionRequest,CompileSuggestionResponse> compileSuggestionCallable()
Returns
TypeDescription
UnaryCallable<CompileSuggestionRequest,CompileSuggestionResponse>
Overrides

createParticipantCallable()

public UnaryCallable<CreateParticipantRequest,Participant> createParticipantCallable()
Returns
TypeDescription
UnaryCallable<CreateParticipantRequest,Participant>
Overrides

getParticipantCallable()

public UnaryCallable<GetParticipantRequest,Participant> getParticipantCallable()
Returns
TypeDescription
UnaryCallable<GetParticipantRequest,Participant>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listParticipantsCallable()

public UnaryCallable<ListParticipantsRequest,ListParticipantsResponse> listParticipantsCallable()
Returns
TypeDescription
UnaryCallable<ListParticipantsRequest,ListParticipantsResponse>
Overrides

listParticipantsPagedCallable()

public UnaryCallable<ListParticipantsRequest,ParticipantsClient.ListParticipantsPagedResponse> listParticipantsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListParticipantsRequest,ListParticipantsPagedResponse>
Overrides

listSuggestionsCallable()

public UnaryCallable<ListSuggestionsRequest,ListSuggestionsResponse> listSuggestionsCallable()
Returns
TypeDescription
UnaryCallable<ListSuggestionsRequest,ListSuggestionsResponse>
Overrides

listSuggestionsPagedCallable()

public UnaryCallable<ListSuggestionsRequest,ParticipantsClient.ListSuggestionsPagedResponse> listSuggestionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSuggestionsRequest,ListSuggestionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

suggestArticlesCallable()

public UnaryCallable<SuggestArticlesRequest,SuggestArticlesResponse> suggestArticlesCallable()
Returns
TypeDescription
UnaryCallable<SuggestArticlesRequest,SuggestArticlesResponse>
Overrides

suggestFaqAnswersCallable()

public UnaryCallable<SuggestFaqAnswersRequest,SuggestFaqAnswersResponse> suggestFaqAnswersCallable()
Returns
TypeDescription
UnaryCallable<SuggestFaqAnswersRequest,SuggestFaqAnswersResponse>
Overrides

suggestSmartRepliesCallable()

public UnaryCallable<SuggestSmartRepliesRequest,SuggestSmartRepliesResponse> suggestSmartRepliesCallable()
Returns
TypeDescription
UnaryCallable<SuggestSmartRepliesRequest,SuggestSmartRepliesResponse>
Overrides

updateParticipantCallable()

public UnaryCallable<UpdateParticipantRequest,Participant> updateParticipantCallable()
Returns
TypeDescription
UnaryCallable<UpdateParticipantRequest,Participant>
Overrides