Package com.google.cloud.pubsub.v1.stub
Class GrpcSchemaServiceStub
java.lang.Object
com.google.cloud.pubsub.v1.stub.SchemaServiceStub
com.google.cloud.pubsub.v1.stub.GrpcSchemaServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
gRPC stub implementation for the SchemaService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ModifierConstructorDescriptionprotected
GrpcSchemaServiceStub
(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcSchemaServiceStub, using the given settings.protected
GrpcSchemaServiceStub
(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
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long duration, TimeUnit unit) final void
close()
com.google.api.gax.rpc.UnaryCallable<CommitSchemaRequest,
Schema> static final GrpcSchemaServiceStub
create
(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcSchemaServiceStub
create
(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcSchemaServiceStub
create
(SchemaServiceStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateSchemaRequest,
Schema> com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,
com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRevisionRequest,
Schema> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,
com.google.iam.v1.Policy> com.google.longrunning.stub.GrpcOperationsStub
com.google.api.gax.rpc.UnaryCallable<GetSchemaRequest,
Schema> boolean
boolean
com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,
ListSchemaRevisionsResponse> com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,
SchemaServiceClient.ListSchemaRevisionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,
ListSchemasResponse> com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,
SchemaServiceClient.ListSchemasPagedResponse> com.google.api.gax.rpc.UnaryCallable<RollbackSchemaRequest,
Schema> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,
com.google.iam.v1.Policy> void
shutdown()
void
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,
com.google.iam.v1.TestIamPermissionsResponse> com.google.api.gax.rpc.UnaryCallable<ValidateMessageRequest,
ValidateMessageResponse> com.google.api.gax.rpc.UnaryCallable<ValidateSchemaRequest,
ValidateSchemaResponse>
-
Constructor Details
-
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 Details
-
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() -
createSchemaCallable
- Overrides:
createSchemaCallable
in classSchemaServiceStub
-
getSchemaCallable
- Overrides:
getSchemaCallable
in classSchemaServiceStub
-
listSchemasCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,ListSchemasResponse> listSchemasCallable()- Overrides:
listSchemasCallable
in classSchemaServiceStub
-
listSchemasPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,SchemaServiceClient.ListSchemasPagedResponse> listSchemasPagedCallable()- Overrides:
listSchemasPagedCallable
in classSchemaServiceStub
-
listSchemaRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,ListSchemaRevisionsResponse> listSchemaRevisionsCallable()- Overrides:
listSchemaRevisionsCallable
in classSchemaServiceStub
-
listSchemaRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,SchemaServiceClient.ListSchemaRevisionsPagedResponse> listSchemaRevisionsPagedCallable()- Overrides:
listSchemaRevisionsPagedCallable
in classSchemaServiceStub
-
commitSchemaCallable
- Overrides:
commitSchemaCallable
in classSchemaServiceStub
-
rollbackSchemaCallable
- Overrides:
rollbackSchemaCallable
in classSchemaServiceStub
-
deleteSchemaRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRevisionRequest,Schema> deleteSchemaRevisionCallable()- Overrides:
deleteSchemaRevisionCallable
in classSchemaServiceStub
-
deleteSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,com.google.protobuf.Empty> deleteSchemaCallable()- Overrides:
deleteSchemaCallable
in classSchemaServiceStub
-
validateSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateSchemaRequest,ValidateSchemaResponse> validateSchemaCallable()- Overrides:
validateSchemaCallable
in classSchemaServiceStub
-
validateMessageCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateMessageRequest,ValidateMessageResponse> validateMessageCallable()- Overrides:
validateMessageCallable
in classSchemaServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()- Overrides:
setIamPolicyCallable
in classSchemaServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()- Overrides:
getIamPolicyCallable
in classSchemaServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallable
in classSchemaServiceStub
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSchemaServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-