Class GrpcSchemaServiceStub
- java.lang.Object
-
- com.google.cloud.discoveryengine.v1.stub.SchemaServiceStub
-
- com.google.cloud.discoveryengine.v1.stub.GrpcSchemaServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcSchemaServiceStub extends SchemaServiceStub
gRPC stub implementation for the SchemaService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcSchemaServiceStub, using the given settings.protectedGrpcSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcSchemaServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcSchemaServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcSchemaServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcSchemaServiceStubcreate(SchemaServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateSchemaRequest,com.google.longrunning.Operation>createSchemaCallable()com.google.api.gax.rpc.OperationCallable<CreateSchemaRequest,Schema,CreateSchemaMetadata>createSchemaOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,com.google.longrunning.Operation>deleteSchemaCallable()com.google.api.gax.rpc.OperationCallable<DeleteSchemaRequest,com.google.protobuf.Empty,DeleteSchemaMetadata>deleteSchemaOperationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetSchemaRequest,Schema>getSchemaCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,ListSchemasResponse>listSchemasCallable()com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,SchemaServiceClient.ListSchemasPagedResponse>listSchemasPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateSchemaRequest,com.google.longrunning.Operation>updateSchemaCallable()com.google.api.gax.rpc.OperationCallable<UpdateSchemaRequest,Schema,UpdateSchemaMetadata>updateSchemaOperationCallable()-
Methods inherited from class com.google.cloud.discoveryengine.v1.stub.SchemaServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcSchemaServiceStub
protected GrpcSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcSchemaServiceStub, 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.- Throws:
IOException
-
GrpcSchemaServiceStub
protected GrpcSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcSchemaServiceStub, 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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcSchemaServiceStub create(SchemaServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcSchemaServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcSchemaServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classSchemaServiceStub
-
getSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<GetSchemaRequest,Schema> getSchemaCallable()
- Overrides:
getSchemaCallablein classSchemaServiceStub
-
listSchemasCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,ListSchemasResponse> listSchemasCallable()
- Overrides:
listSchemasCallablein classSchemaServiceStub
-
listSchemasPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,SchemaServiceClient.ListSchemasPagedResponse> listSchemasPagedCallable()
- Overrides:
listSchemasPagedCallablein classSchemaServiceStub
-
createSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSchemaRequest,com.google.longrunning.Operation> createSchemaCallable()
- Overrides:
createSchemaCallablein classSchemaServiceStub
-
createSchemaOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateSchemaRequest,Schema,CreateSchemaMetadata> createSchemaOperationCallable()
- Overrides:
createSchemaOperationCallablein classSchemaServiceStub
-
updateSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSchemaRequest,com.google.longrunning.Operation> updateSchemaCallable()
- Overrides:
updateSchemaCallablein classSchemaServiceStub
-
updateSchemaOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateSchemaRequest,Schema,UpdateSchemaMetadata> updateSchemaOperationCallable()
- Overrides:
updateSchemaOperationCallablein classSchemaServiceStub
-
deleteSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,com.google.longrunning.Operation> deleteSchemaCallable()
- Overrides:
deleteSchemaCallablein classSchemaServiceStub
-
deleteSchemaOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSchemaRequest,com.google.protobuf.Empty,DeleteSchemaMetadata> deleteSchemaOperationCallable()
- Overrides:
deleteSchemaOperationCallablein classSchemaServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSchemaServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-