@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcSessionsStub extends SessionsStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcSessionsStub(SessionsStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcSessionsStub, using the given settings.
|
protected |
GrpcSessionsStub(SessionsStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSessionsStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcSessionsStub |
create(ClientContext clientContext) |
static GrpcSessionsStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcSessionsStub |
create(SessionsStubSettings settings) |
UnaryCallable<com.google.cloud.dialogflow.v2.DetectIntentRequest,com.google.cloud.dialogflow.v2.DetectIntentResponse> |
detectIntentCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
BidiStreamingCallable<com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest,com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> |
streamingDetectIntentCallable() |
protected GrpcSessionsStub(SessionsStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcSessionsStub(SessionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcSessionsStub create(SessionsStubSettings settings) throws IOException
IOException
public static final GrpcSessionsStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcSessionsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.cloud.dialogflow.v2.DetectIntentRequest,com.google.cloud.dialogflow.v2.DetectIntentResponse> detectIntentCallable()
detectIntentCallable
in class SessionsStub
public BidiStreamingCallable<com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest,com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> streamingDetectIntentCallable()
streamingDetectIntentCallable
in class SessionsStub
public final void close()
close
in interface AutoCloseable
close
in class SessionsStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.