public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getGetWorkstationClusterMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest,
                    com.google.cloud.workstations.v1beta.WorkstationCluster>(
                    service, METHODID_GET_WORKSTATION_CLUSTER)))
        .addMethod(
            getListWorkstationClustersMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest,
                    com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>(
                    service, METHODID_LIST_WORKSTATION_CLUSTERS)))
        .addMethod(
            getCreateWorkstationClusterMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest,
                    com.google.longrunning.Operation>(
                    service, METHODID_CREATE_WORKSTATION_CLUSTER)))
        .addMethod(
            getUpdateWorkstationClusterMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest,
                    com.google.longrunning.Operation>(
                    service, METHODID_UPDATE_WORKSTATION_CLUSTER)))
        .addMethod(
            getDeleteWorkstationClusterMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest,
                    com.google.longrunning.Operation>(
                    service, METHODID_DELETE_WORKSTATION_CLUSTER)))
        .addMethod(
            getGetWorkstationConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest,
                    com.google.cloud.workstations.v1beta.WorkstationConfig>(
                    service, METHODID_GET_WORKSTATION_CONFIG)))
        .addMethod(
            getListWorkstationConfigsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest,
                    com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>(
                    service, METHODID_LIST_WORKSTATION_CONFIGS)))
        .addMethod(
            getListUsableWorkstationConfigsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest,
                    com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>(
                    service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS)))
        .addMethod(
            getCreateWorkstationConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest,
                    com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG)))
        .addMethod(
            getUpdateWorkstationConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest,
                    com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG)))
        .addMethod(
            getDeleteWorkstationConfigMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest,
                    com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG)))
        .addMethod(
            getGetWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.GetWorkstationRequest,
                    com.google.cloud.workstations.v1beta.Workstation>(
                    service, METHODID_GET_WORKSTATION)))
        .addMethod(
            getListWorkstationsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.ListWorkstationsRequest,
                    com.google.cloud.workstations.v1beta.ListWorkstationsResponse>(
                    service, METHODID_LIST_WORKSTATIONS)))
        .addMethod(
            getListUsableWorkstationsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest,
                    com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>(
                    service, METHODID_LIST_USABLE_WORKSTATIONS)))
        .addMethod(
            getCreateWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.CreateWorkstationRequest,
                    com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION)))
        .addMethod(
            getUpdateWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.UpdateWorkstationRequest,
                    com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION)))
        .addMethod(
            getDeleteWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.DeleteWorkstationRequest,
                    com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION)))
        .addMethod(
            getStartWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.StartWorkstationRequest,
                    com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION)))
        .addMethod(
            getStopWorkstationMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.StopWorkstationRequest,
                    com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION)))
        .addMethod(
            getGenerateAccessTokenMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest,
                    com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>(
                    service, METHODID_GENERATE_ACCESS_TOKEN)))
        .build();
  }
<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