@BetaApi @Generated(value="by gapic-generator-java") 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.
|
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 GrpcOperationsStub getOperationsStub()
public UnaryCallable<DetectIntentRequest,DetectIntentResponse> detectIntentCallable()
detectIntentCallable
in class SessionsStub
public BidiStreamingCallable<StreamingDetectIntentRequest,StreamingDetectIntentResponse> streamingDetectIntentCallable()
streamingDetectIntentCallable
in class SessionsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable
in class SessionsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,SessionsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable
in class SessionsStub
public UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable
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 © 2022 Google LLC. All rights reserved.