Class CaseServiceGrpc.CaseServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<CaseServiceGrpc.CaseServiceBlockingV2Stub>
com.google.cloud.support.v2.CaseServiceGrpc.CaseServiceBlockingV2Stub
Enclosing class:
CaseServiceGrpc

public static final class CaseServiceGrpc.CaseServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<CaseServiceGrpc.CaseServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service CaseService.
 A service to manage Google Cloud support cases.
 
  • Method Details

    • build

      protected CaseServiceGrpc.CaseServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<CaseServiceGrpc.CaseServiceBlockingV2Stub>
    • getCase

      public Case getCase(GetCaseRequest request) throws io.grpc.StatusException
       Retrieve a case.
       
      Throws:
      io.grpc.StatusException
    • listCases

      public ListCasesResponse listCases(ListCasesRequest request) throws io.grpc.StatusException
       Retrieve all cases under a parent, but not its children.
       For example, listing cases under an organization only returns the cases
       that are directly parented by that organization. To retrieve cases
       under an organization and its projects, use `cases.search`.
       
      Throws:
      io.grpc.StatusException
    • searchCases

      public SearchCasesResponse searchCases(SearchCasesRequest request) throws io.grpc.StatusException
       Search for cases using a query.
       
      Throws:
      io.grpc.StatusException
    • createCase

      public Case createCase(CreateCaseRequest request) throws io.grpc.StatusException
       Create a new case and associate it with a parent.
       It must have the following fields set: `display_name`, `description`,
       `classification`, and `priority`. If you're just testing the API and don't
       want to route your case to an agent, set `testCase=true`.
       
      Throws:
      io.grpc.StatusException
    • updateCase

      public Case updateCase(UpdateCaseRequest request) throws io.grpc.StatusException
       Update a case. Only some fields can be updated.
       
      Throws:
      io.grpc.StatusException
    • escalateCase

      public Case escalateCase(EscalateCaseRequest request) throws io.grpc.StatusException
       Escalate a case, starting the Google Cloud Support escalation management
       process.
       This operation is only available for some support services. Go to
       https://cloud.google.com/support and look for 'Technical support
       escalations' in the feature list to find out which ones let you
       do that.
       
      Throws:
      io.grpc.StatusException
    • closeCase

      public Case closeCase(CloseCaseRequest request) throws io.grpc.StatusException
       Close a case.
       
      Throws:
      io.grpc.StatusException
    • searchCaseClassifications

      public SearchCaseClassificationsResponse searchCaseClassifications(SearchCaseClassificationsRequest request) throws io.grpc.StatusException
       Retrieve valid classifications to use when creating a support case.
       Classifications are hierarchical. Each classification is a string
       containing all levels of the hierarchy separated by `" > "`. For example,
       `"Technical Issue > Compute > Compute Engine"`.
       Classification IDs returned by this endpoint are valid for at least six
       months. When a classification is deactivated, this endpoint immediately
       stops returning it. After six months, `case.create` requests using the
       classification will fail.
       
      Throws:
      io.grpc.StatusException