Class ProjectServiceGrpc.ProjectServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ProjectServiceGrpc.ProjectServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1alpha.ProjectServiceGrpc.ProjectServiceBlockingV2Stub
- Enclosing class:
- ProjectServiceGrpc
public static final class ProjectServiceGrpc.ProjectServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ProjectServiceGrpc.ProjectServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service ProjectService.
Service for operations on the [Project][google.cloud.discoveryengine.v1alpha.Project].
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) getProject(GetProjectRequest request) Gets a [Project][google.cloud.discoveryengine.v1alpha.Project].provisionProject(ProvisionProjectRequest request) Provisions the project resource.Updates service terms for this project.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ProjectServiceGrpc.ProjectServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ProjectServiceGrpc.ProjectServiceBlockingV2Stub>
-
getProject
Gets a [Project][google.cloud.discoveryengine.v1alpha.Project]. Returns NOT_FOUND when the project is not yet created.
- Throws:
io.grpc.StatusException
-
provisionProject
Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.
- Throws:
io.grpc.StatusException
-
reportConsentChange
public Project reportConsentChange(ReportConsentChangeRequest request) throws io.grpc.StatusException Updates service terms for this project. This method can be used to retroactively accept the latest terms. Terms available for update: * [Terms for data use](https://cloud.google.com/retail/data-use-terms)
- Throws:
io.grpc.StatusException
-