Class HttpJsonMetadataServiceStub (1.34.0)

public class HttpJsonMetadataServiceStub extends MetadataServiceStub

REST stub implementation for the MetadataService service API.

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

Inheritance

java.lang.Object > MetadataServiceStub > HttpJsonMetadataServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(MetadataServiceStubSettings settings)

public static final HttpJsonMetadataServiceStub create(MetadataServiceStubSettings settings)
Parameter
NameDescription
settingsMetadataServiceStubSettings
Returns
TypeDescription
HttpJsonMetadataServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonMetadataServiceStub, 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
settingsMetadataServiceStubSettings
clientContextClientContext

HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createEntityCallable()

public UnaryCallable<CreateEntityRequest,Entity> createEntityCallable()
Returns
TypeDescription
UnaryCallable<CreateEntityRequest,Entity>
Overrides

createPartitionCallable()

public UnaryCallable<CreatePartitionRequest,Partition> createPartitionCallable()
Returns
TypeDescription
UnaryCallable<CreatePartitionRequest,Partition>
Overrides

deleteEntityCallable()

public UnaryCallable<DeleteEntityRequest,Empty> deleteEntityCallable()
Returns
TypeDescription
UnaryCallable<DeleteEntityRequest,Empty>
Overrides

deletePartitionCallable()

public UnaryCallable<DeletePartitionRequest,Empty> deletePartitionCallable()
Returns
TypeDescription
UnaryCallable<DeletePartitionRequest,Empty>
Overrides

getEntityCallable()

public UnaryCallable<GetEntityRequest,Entity> getEntityCallable()
Returns
TypeDescription
UnaryCallable<GetEntityRequest,Entity>
Overrides

getLocationCallable()

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

getPartitionCallable()

public UnaryCallable<GetPartitionRequest,Partition> getPartitionCallable()
Returns
TypeDescription
UnaryCallable<GetPartitionRequest,Partition>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEntitiesCallable()

public UnaryCallable<ListEntitiesRequest,ListEntitiesResponse> listEntitiesCallable()
Returns
TypeDescription
UnaryCallable<ListEntitiesRequest,ListEntitiesResponse>
Overrides

listEntitiesPagedCallable()

public UnaryCallable<ListEntitiesRequest,MetadataServiceClient.ListEntitiesPagedResponse> listEntitiesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListEntitiesRequest,ListEntitiesPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,MetadataServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPartitionsCallable()

public UnaryCallable<ListPartitionsRequest,ListPartitionsResponse> listPartitionsCallable()
Returns
TypeDescription
UnaryCallable<ListPartitionsRequest,ListPartitionsResponse>
Overrides

listPartitionsPagedCallable()

public UnaryCallable<ListPartitionsRequest,MetadataServiceClient.ListPartitionsPagedResponse> listPartitionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPartitionsRequest,ListPartitionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEntityCallable()

public UnaryCallable<UpdateEntityRequest,Entity> updateEntityCallable()
Returns
TypeDescription
UnaryCallable<UpdateEntityRequest,Entity>
Overrides