Class GrpcOrganizationsStub (1.41.0)

public class GrpcOrganizationsStub extends OrganizationsStub

gRPC stub implementation for the Organizations service API.

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

Inheritance

java.lang.Object > OrganizationsStub > GrpcOrganizationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcOrganizationsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcOrganizationsStub
Exceptions
TypeDescription
IOException

create(OrganizationsStubSettings settings)

public static final GrpcOrganizationsStub create(OrganizationsStubSettings settings)
Parameter
NameDescription
settingsOrganizationsStubSettings
Returns
TypeDescription
GrpcOrganizationsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext)

protected GrpcOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcOrganizationsStub, 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
settingsOrganizationsStubSettings
clientContextClientContext

GrpcOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcOrganizationsStub, 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
settingsOrganizationsStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

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

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getOrganizationCallable()

public UnaryCallable<GetOrganizationRequest,Organization> getOrganizationCallable()
Returns
TypeDescription
UnaryCallable<GetOrganizationRequest,Organization>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

searchOrganizationsCallable()

public UnaryCallable<SearchOrganizationsRequest,SearchOrganizationsResponse> searchOrganizationsCallable()
Returns
TypeDescription
UnaryCallable<SearchOrganizationsRequest,SearchOrganizationsResponse>
Overrides

searchOrganizationsPagedCallable()

public UnaryCallable<SearchOrganizationsRequest,OrganizationsClient.SearchOrganizationsPagedResponse> searchOrganizationsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchOrganizationsRequest,SearchOrganizationsPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides