Class GrpcDocumentSchemaServiceStub
- java.lang.Object
-
- com.google.cloud.contentwarehouse.v1.stub.DocumentSchemaServiceStub
-
- com.google.cloud.contentwarehouse.v1.stub.GrpcDocumentSchemaServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcDocumentSchemaServiceStub extends DocumentSchemaServiceStub
gRPC stub implementation for the DocumentSchemaService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDocumentSchemaServiceStub(DocumentSchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDocumentSchemaServiceStub, using the given settings.protected
GrpcDocumentSchemaServiceStub(DocumentSchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentSchemaServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcDocumentSchemaServiceStub
protected GrpcDocumentSchemaServiceStub(DocumentSchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDocumentSchemaServiceStub, 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
-
GrpcDocumentSchemaServiceStub
protected GrpcDocumentSchemaServiceStub(DocumentSchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDocumentSchemaServiceStub, 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 GrpcDocumentSchemaServiceStub create(DocumentSchemaServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentSchemaServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentSchemaServiceStub 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()
-
createDocumentSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentSchemaRequest,DocumentSchema> createDocumentSchemaCallable()
- Overrides:
createDocumentSchemaCallable
in classDocumentSchemaServiceStub
-
updateDocumentSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentSchemaRequest,DocumentSchema> updateDocumentSchemaCallable()
- Overrides:
updateDocumentSchemaCallable
in classDocumentSchemaServiceStub
-
getDocumentSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentSchemaRequest,DocumentSchema> getDocumentSchemaCallable()
- Overrides:
getDocumentSchemaCallable
in classDocumentSchemaServiceStub
-
deleteDocumentSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentSchemaRequest,com.google.protobuf.Empty> deleteDocumentSchemaCallable()
- Overrides:
deleteDocumentSchemaCallable
in classDocumentSchemaServiceStub
-
listDocumentSchemasCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentSchemasRequest,ListDocumentSchemasResponse> listDocumentSchemasCallable()
- Overrides:
listDocumentSchemasCallable
in classDocumentSchemaServiceStub
-
listDocumentSchemasPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentSchemasRequest,DocumentSchemaServiceClient.ListDocumentSchemasPagedResponse> listDocumentSchemasPagedCallable()
- Overrides:
listDocumentSchemasPagedCallable
in classDocumentSchemaServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentSchemaServiceStub
-
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
-
-