@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_GET_WORKSTATION_CLUSTER:
          serviceImpl.getWorkstationCluster(
              (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.workstations.v1beta.WorkstationCluster>)
                  responseObserver);
          break;
        case METHODID_LIST_WORKSTATION_CLUSTERS:
          serviceImpl.listWorkstationClusters(
              (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_WORKSTATION_CLUSTER:
          serviceImpl.createWorkstationCluster(
              (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UPDATE_WORKSTATION_CLUSTER:
          serviceImpl.updateWorkstationCluster(
              (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_WORKSTATION_CLUSTER:
          serviceImpl.deleteWorkstationCluster(
              (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_WORKSTATION_CONFIG:
          serviceImpl.getWorkstationConfig(
              (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.workstations.v1beta.WorkstationConfig>)
                  responseObserver);
          break;
        case METHODID_LIST_WORKSTATION_CONFIGS:
          serviceImpl.listWorkstationConfigs(
              (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>)
                  responseObserver);
          break;
        case METHODID_LIST_USABLE_WORKSTATION_CONFIGS:
          serviceImpl.listUsableWorkstationConfigs(
              (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_WORKSTATION_CONFIG:
          serviceImpl.createWorkstationConfig(
              (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UPDATE_WORKSTATION_CONFIG:
          serviceImpl.updateWorkstationConfig(
              (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_WORKSTATION_CONFIG:
          serviceImpl.deleteWorkstationConfig(
              (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_WORKSTATION:
          serviceImpl.getWorkstation(
              (com.google.cloud.workstations.v1beta.GetWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.workstations.v1beta.Workstation>)
                  responseObserver);
          break;
        case METHODID_LIST_WORKSTATIONS:
          serviceImpl.listWorkstations(
              (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.ListWorkstationsResponse>)
                  responseObserver);
          break;
        case METHODID_LIST_USABLE_WORKSTATIONS:
          serviceImpl.listUsableWorkstations(
              (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_WORKSTATION:
          serviceImpl.createWorkstation(
              (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UPDATE_WORKSTATION:
          serviceImpl.updateWorkstation(
              (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_WORKSTATION:
          serviceImpl.deleteWorkstation(
              (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_START_WORKSTATION:
          serviceImpl.startWorkstation(
              (com.google.cloud.workstations.v1beta.StartWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_STOP_WORKSTATION:
          serviceImpl.stopWorkstation(
              (com.google.cloud.workstations.v1beta.StopWorkstationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GENERATE_ACCESS_TOKEN:
          serviceImpl.generateAccessToken(
              (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>)
                  responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
Returns a short-lived credential that can be used to send authenticated and
authorized traffic to a workstation.
</pre>
java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java