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].
 
  • Method Details

    • build

      protected ProjectServiceGrpc.ProjectServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<ProjectServiceGrpc.ProjectServiceBlockingV2Stub>
    • getProject

      public Project getProject(GetProjectRequest request) throws io.grpc.StatusException
       Gets a [Project][google.cloud.discoveryengine.v1alpha.Project].
       Returns NOT_FOUND when the project is not yet created.
       
      Throws:
      io.grpc.StatusException
    • provisionProject

      public Operation provisionProject(ProvisionProjectRequest request) throws io.grpc.StatusException
       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