Class HttpJsonDocumentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2.stub.DocumentsStub
-
- com.google.cloud.dialogflow.v2.stub.HttpJsonDocumentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonDocumentsStub extends DocumentsStub
REST stub implementation for the Documents service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonDocumentsStub, using the given settings.protectedHttpJsonDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonDocumentsStub, 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 HttpJsonDocumentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonDocumentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonDocumentsStubcreate(DocumentsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,com.google.longrunning.Operation>createDocumentCallable()com.google.api.gax.rpc.OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata>createDocumentOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.longrunning.Operation>deleteDocumentCallable()com.google.api.gax.rpc.OperationCallable<DeleteDocumentRequest,com.google.protobuf.Empty,KnowledgeOperationMetadata>deleteDocumentOperationCallable()com.google.api.gax.rpc.UnaryCallable<ExportDocumentRequest,com.google.longrunning.Operation>exportDocumentCallable()com.google.api.gax.rpc.OperationCallable<ExportDocumentRequest,Document,KnowledgeOperationMetadata>exportDocumentOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document>getDocumentCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation>importDocumentsCallable()com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata>importDocumentsOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse>listDocumentsCallable()com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse>listDocumentsPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentsClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation>reloadDocumentCallable()com.google.api.gax.rpc.OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata>reloadDocumentOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation>updateDocumentCallable()com.google.api.gax.rpc.OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata>updateDocumentOperationCallable()-
Methods inherited from class com.google.cloud.dialogflow.v2.stub.DocumentsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonDocumentsStub
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonDocumentsStub, 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
-
HttpJsonDocumentsStub
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonDocumentsStub, 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 HttpJsonDocumentsStub create(DocumentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentsStub 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()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classDocumentsStub
-
listDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
- Overrides:
listDocumentsCallablein classDocumentsStub
-
listDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
- Overrides:
listDocumentsPagedCallablein classDocumentsStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
- Overrides:
getDocumentCallablein classDocumentsStub
-
createDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,com.google.longrunning.Operation> createDocumentCallable()
- Overrides:
createDocumentCallablein classDocumentsStub
-
createDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
- Overrides:
createDocumentOperationCallablein classDocumentsStub
-
importDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsCallable()
- Overrides:
importDocumentsCallablein classDocumentsStub
-
importDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata> importDocumentsOperationCallable()
- Overrides:
importDocumentsOperationCallablein classDocumentsStub
-
deleteDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.longrunning.Operation> deleteDocumentCallable()
- Overrides:
deleteDocumentCallablein classDocumentsStub
-
deleteDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteDocumentRequest,com.google.protobuf.Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
- Overrides:
deleteDocumentOperationCallablein classDocumentsStub
-
updateDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation> updateDocumentCallable()
- Overrides:
updateDocumentCallablein classDocumentsStub
-
updateDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
- Overrides:
updateDocumentOperationCallablein classDocumentsStub
-
reloadDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation> reloadDocumentCallable()
- Overrides:
reloadDocumentCallablein classDocumentsStub
-
reloadDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata> reloadDocumentOperationCallable()
- Overrides:
reloadDocumentOperationCallablein classDocumentsStub
-
exportDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<ExportDocumentRequest,com.google.longrunning.Operation> exportDocumentCallable()
- Overrides:
exportDocumentCallablein classDocumentsStub
-
exportDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportDocumentRequest,Document,KnowledgeOperationMetadata> exportDocumentOperationCallable()
- Overrides:
exportDocumentOperationCallablein classDocumentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classDocumentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classDocumentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classDocumentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDocumentsStub
-
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
-
-