Class HttpJsonSchemaServiceStub (0.12.0)

public class HttpJsonSchemaServiceStub extends SchemaServiceStub

REST stub implementation for the SchemaService service API.

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

Inheritance

java.lang.Object > SchemaServiceStub > HttpJsonSchemaServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SchemaServiceStubSettings settings)

public static final HttpJsonSchemaServiceStub create(SchemaServiceStubSettings settings)
Parameter
NameDescription
settingsSchemaServiceStubSettings
Returns
TypeDescription
HttpJsonSchemaServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSchemaServiceStub, 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
settingsSchemaServiceStubSettings
clientContextClientContext

HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createSchemaCallable()

public UnaryCallable<CreateSchemaRequest,Operation> createSchemaCallable()
Returns
TypeDescription
UnaryCallable<CreateSchemaRequest,Operation>
Overrides

createSchemaOperationCallable()

public OperationCallable<CreateSchemaRequest,Schema,CreateSchemaMetadata> createSchemaOperationCallable()
Returns
TypeDescription
OperationCallable<CreateSchemaRequest,Schema,CreateSchemaMetadata>
Overrides

deleteSchemaCallable()

public UnaryCallable<DeleteSchemaRequest,Operation> deleteSchemaCallable()
Returns
TypeDescription
UnaryCallable<DeleteSchemaRequest,Operation>
Overrides

deleteSchemaOperationCallable()

public OperationCallable<DeleteSchemaRequest,Empty,DeleteSchemaMetadata> deleteSchemaOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteSchemaRequest,Empty,DeleteSchemaMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getSchemaCallable()

public UnaryCallable<GetSchemaRequest,Schema> getSchemaCallable()
Returns
TypeDescription
UnaryCallable<GetSchemaRequest,Schema>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSchemasCallable()

public UnaryCallable<ListSchemasRequest,ListSchemasResponse> listSchemasCallable()
Returns
TypeDescription
UnaryCallable<ListSchemasRequest,ListSchemasResponse>
Overrides

listSchemasPagedCallable()

public UnaryCallable<ListSchemasRequest,SchemaServiceClient.ListSchemasPagedResponse> listSchemasPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSchemasRequest,ListSchemasPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSchemaCallable()

public UnaryCallable<UpdateSchemaRequest,Operation> updateSchemaCallable()
Returns
TypeDescription
UnaryCallable<UpdateSchemaRequest,Operation>
Overrides

updateSchemaOperationCallable()

public OperationCallable<UpdateSchemaRequest,Schema,UpdateSchemaMetadata> updateSchemaOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateSchemaRequest,Schema,UpdateSchemaMetadata>
Overrides