Class GrpcTransportManagerStub (1.87.0)

public class GrpcTransportManagerStub extends TransportManagerStub

gRPC stub implementation for the TransportManager service API.

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

Inheritance

java.lang.Object > TransportManagerStub > GrpcTransportManagerStub

Static Methods

create(ClientContext clientContext)

public static final GrpcTransportManagerStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcTransportManagerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcTransportManagerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcTransportManagerStub
Exceptions
Type Description
IOException

create(TransportManagerStubSettings settings)

public static final GrpcTransportManagerStub create(TransportManagerStubSettings settings)
Parameter
Name Description
settings TransportManagerStubSettings
Returns
Type Description
GrpcTransportManagerStub
Exceptions
Type Description
IOException

Constructors

GrpcTransportManagerStub(TransportManagerStubSettings settings, ClientContext clientContext)

protected GrpcTransportManagerStub(TransportManagerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcTransportManagerStub, 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
Name Description
settings TransportManagerStubSettings
clientContext ClientContext

GrpcTransportManagerStub(TransportManagerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcTransportManagerStub(TransportManagerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcTransportManagerStub, 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
Name Description
settings TransportManagerStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createTransportCallable()

public UnaryCallable<CreateTransportRequest,Operation> createTransportCallable()
Returns
Type Description
UnaryCallable<CreateTransportRequest,Operation>
Overrides

createTransportOperationCallable()

public OperationCallable<CreateTransportRequest,Transport,OperationMetadata> createTransportOperationCallable()
Returns
Type Description
OperationCallable<CreateTransportRequest,Transport,OperationMetadata>
Overrides

deleteTransportCallable()

public UnaryCallable<DeleteTransportRequest,Operation> deleteTransportCallable()
Returns
Type Description
UnaryCallable<DeleteTransportRequest,Operation>
Overrides

deleteTransportOperationCallable()

public OperationCallable<DeleteTransportRequest,Empty,OperationMetadata> deleteTransportOperationCallable()
Returns
Type Description
OperationCallable<DeleteTransportRequest,Empty,OperationMetadata>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getRemoteTransportProfileCallable()

public UnaryCallable<GetRemoteTransportProfileRequest,RemoteTransportProfile> getRemoteTransportProfileCallable()
Returns
Type Description
UnaryCallable<GetRemoteTransportProfileRequest,RemoteTransportProfile>
Overrides

getStatusCallable()

public UnaryCallable<GetStatusRequest,GetStatusResponse> getStatusCallable()
Returns
Type Description
UnaryCallable<GetStatusRequest,GetStatusResponse>
Overrides

getTransportCallable()

public UnaryCallable<GetTransportRequest,Transport> getTransportCallable()
Returns
Type Description
UnaryCallable<GetTransportRequest,Transport>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,TransportManagerClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listRemoteTransportProfilesCallable()

public UnaryCallable<ListRemoteTransportProfilesRequest,ListRemoteTransportProfilesResponse> listRemoteTransportProfilesCallable()
Returns
Type Description
UnaryCallable<ListRemoteTransportProfilesRequest,ListRemoteTransportProfilesResponse>
Overrides

listRemoteTransportProfilesPagedCallable()

public UnaryCallable<ListRemoteTransportProfilesRequest,TransportManagerClient.ListRemoteTransportProfilesPagedResponse> listRemoteTransportProfilesPagedCallable()
Returns
Type Description
UnaryCallable<ListRemoteTransportProfilesRequest,ListRemoteTransportProfilesPagedResponse>
Overrides

listTransportsCallable()

public UnaryCallable<ListTransportsRequest,ListTransportsResponse> listTransportsCallable()
Returns
Type Description
UnaryCallable<ListTransportsRequest,ListTransportsResponse>
Overrides

listTransportsPagedCallable()

public UnaryCallable<ListTransportsRequest,TransportManagerClient.ListTransportsPagedResponse> listTransportsPagedCallable()
Returns
Type Description
UnaryCallable<ListTransportsRequest,ListTransportsPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateTransportCallable()

public UnaryCallable<UpdateTransportRequest,Operation> updateTransportCallable()
Returns
Type Description
UnaryCallable<UpdateTransportRequest,Operation>
Overrides

updateTransportOperationCallable()

public OperationCallable<UpdateTransportRequest,Transport,OperationMetadata> updateTransportOperationCallable()
Returns
Type Description
OperationCallable<UpdateTransportRequest,Transport,OperationMetadata>
Overrides