Package com.google.cloud.pubsub.v1.stub
Class HttpJsonSchemaServiceStub
- java.lang.Object
-
- com.google.cloud.pubsub.v1.stub.SchemaServiceStub
-
- com.google.cloud.pubsub.v1.stub.HttpJsonSchemaServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonSchemaServiceStub, using the given settings.protectedHttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonSchemaServiceStub, 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()com.google.api.gax.rpc.UnaryCallable<CommitSchemaRequest,Schema>commitSchemaCallable()static HttpJsonSchemaServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonSchemaServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonSchemaServiceStubcreate(SchemaServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateSchemaRequest,Schema>createSchemaCallable()com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,com.google.protobuf.Empty>deleteSchemaCallable()com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRevisionRequest,Schema>deleteSchemaRevisionCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetSchemaRequest,Schema>getSchemaCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,ListSchemaRevisionsResponse>listSchemaRevisionsCallable()com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,SchemaServiceClient.ListSchemaRevisionsPagedResponse>listSchemaRevisionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,ListSchemasResponse>listSchemasCallable()com.google.api.gax.rpc.UnaryCallable<ListSchemasRequest,SchemaServiceClient.ListSchemasPagedResponse>listSchemasPagedCallable()com.google.api.gax.rpc.UnaryCallable<RollbackSchemaRequest,Schema>rollbackSchemaCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<ValidateMessageRequest,ValidateMessageResponse>validateMessageCallable()com.google.api.gax.rpc.UnaryCallable<ValidateSchemaRequest,ValidateSchemaResponse>validateSchemaCallable()
-
-
-
Constructor Detail
-
HttpJsonSchemaServiceStub
protected HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonSchemaServiceStub
protected HttpJsonSchemaServiceStub(SchemaServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonSchemaServiceStub create(SchemaServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSchemaServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSchemaServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSchemaRequest,Schema> createSchemaCallable()
- Overrides:
createSchemaCallablein 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
-
listSchemaRevisionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,ListSchemaRevisionsResponse> listSchemaRevisionsCallable()
- Overrides:
listSchemaRevisionsCallablein classSchemaServiceStub
-
listSchemaRevisionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchemaRevisionsRequest,SchemaServiceClient.ListSchemaRevisionsPagedResponse> listSchemaRevisionsPagedCallable()
- Overrides:
listSchemaRevisionsPagedCallablein classSchemaServiceStub
-
commitSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<CommitSchemaRequest,Schema> commitSchemaCallable()
- Overrides:
commitSchemaCallablein classSchemaServiceStub
-
rollbackSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackSchemaRequest,Schema> rollbackSchemaCallable()
- Overrides:
rollbackSchemaCallablein classSchemaServiceStub
-
deleteSchemaRevisionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRevisionRequest,Schema> deleteSchemaRevisionCallable()
- Overrides:
deleteSchemaRevisionCallablein classSchemaServiceStub
-
deleteSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSchemaRequest,com.google.protobuf.Empty> deleteSchemaCallable()
- Overrides:
deleteSchemaCallablein classSchemaServiceStub
-
validateSchemaCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateSchemaRequest,ValidateSchemaResponse> validateSchemaCallable()
- Overrides:
validateSchemaCallablein classSchemaServiceStub
-
validateMessageCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateMessageRequest,ValidateMessageResponse> validateMessageCallable()
- Overrides:
validateMessageCallablein classSchemaServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classSchemaServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classSchemaServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein 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
-
-