Class HttpJsonOrganizationsStub (1.9.0)

public class HttpJsonOrganizationsStub extends OrganizationsStub

REST stub implementation for the Organizations service API.

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

Inheritance

java.lang.Object > OrganizationsStub > HttpJsonOrganizationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(OrganizationsStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext)

protected HttpJsonOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext)

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

HttpJsonOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonOrganizationsStub(OrganizationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonOrganizationsStub, 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
callableFactoryHttpJsonStubCallableFactory

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

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