Class ProjectServiceGrpc.ProjectServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ProjectServiceGrpc.ProjectServiceStub>
com.google.cloud.discoveryengine.v1alpha.ProjectServiceGrpc.ProjectServiceStub
Enclosing class:
ProjectServiceGrpc

public static final class ProjectServiceGrpc.ProjectServiceStub extends io.grpc.stub.AbstractAsyncStub<ProjectServiceGrpc.ProjectServiceStub>
A stub to allow clients to do asynchronous 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    getProject(GetProjectRequest request, io.grpc.stub.StreamObserver<Project> responseObserver)
    Gets a [Project][google.cloud.discoveryengine.v1alpha.Project].
    void
    provisionProject(ProvisionProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
    Provisions the project resource.
    void
    reportConsentChange(ReportConsentChangeRequest request, io.grpc.stub.StreamObserver<Project> responseObserver)
    Updates service terms for this project.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

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

      public void getProject(GetProjectRequest request, io.grpc.stub.StreamObserver<Project> responseObserver)
       Gets a [Project][google.cloud.discoveryengine.v1alpha.Project].
       Returns NOT_FOUND when the project is not yet created.
       
    • provisionProject

      public void provisionProject(ProvisionProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       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.
       
    • reportConsentChange

      public void reportConsentChange(ReportConsentChangeRequest request, io.grpc.stub.StreamObserver<Project> responseObserver)
       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)