All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.filestore.v1.CloudFilestoreManagerGrpc Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.cloud.filestore.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Configures and manages Filestore resources.
 * Filestore Manager v1.
 * The `file.googleapis.com` service implements the Filestore API and
 * defines the following resource model for managing instances:
 * * The service works with a collection of cloud projects, named: `/projects/*`
 * * Each project has a collection of available locations, named: `/locations/*`
 * * Each location has a collection of instances and backups, named:
 * `/instances/*` and `/backups/*` respectively.
 * * As such, Filestore instances are resources of the form:
 *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
 *   and backups are resources of the form:
 *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
 * Note that location_id must be a Google Cloud `zone` for instances, but
 * a Google Cloud `region` for backups; for example:
 * * `projects/12345/locations/us-central1-c/instances/my-filestore`
 * * `projects/12345/locations/us-central1/backups/my-backup`
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/filestore/v1/cloud_filestore_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudFilestoreManagerGrpc { private CloudFilestoreManagerGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListInstancesRequest, com.google.cloud.filestore.v1.ListInstancesResponse> getListInstancesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInstances", requestType = com.google.cloud.filestore.v1.ListInstancesRequest.class, responseType = com.google.cloud.filestore.v1.ListInstancesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListInstancesRequest, com.google.cloud.filestore.v1.ListInstancesResponse> getListInstancesMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListInstancesRequest, com.google.cloud.filestore.v1.ListInstancesResponse> getListInstancesMethod; if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getListInstancesMethod = CloudFilestoreManagerGrpc.getListInstancesMethod) == null) { CloudFilestoreManagerGrpc.getListInstancesMethod = getListInstancesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListInstancesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListInstancesResponse .getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) .build(); } } } return getListInstancesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> getGetInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetInstance", requestType = com.google.cloud.filestore.v1.GetInstanceRequest.class, responseType = com.google.cloud.filestore.v1.Instance.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> getGetInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance> getGetInstanceMethod; if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getGetInstanceMethod = CloudFilestoreManagerGrpc.getGetInstanceMethod) == null) { CloudFilestoreManagerGrpc.getGetInstanceMethod = getGetInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.GetInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.Instance.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) .build(); } } } return getGetInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateInstance", requestType = com.google.cloud.filestore.v1.CreateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod; if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getCreateInstanceMethod = CloudFilestoreManagerGrpc.getCreateInstanceMethod) == null) { CloudFilestoreManagerGrpc.getCreateInstanceMethod = getCreateInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.CreateInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("CreateInstance")) .build(); } } } return getCreateInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", requestType = com.google.cloud.filestore.v1.UpdateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod; if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getUpdateInstanceMethod = CloudFilestoreManagerGrpc.getUpdateInstanceMethod) == null) { CloudFilestoreManagerGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.UpdateInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("UpdateInstance")) .build(); } } } return getUpdateInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> getRestoreInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", requestType = com.google.cloud.filestore.v1.RestoreInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> getRestoreInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation> getRestoreInstanceMethod; if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getRestoreInstanceMethod = CloudFilestoreManagerGrpc.getRestoreInstanceMethod) == null) { CloudFilestoreManagerGrpc.getRestoreInstanceMethod = getRestoreInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.RestoreInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("RestoreInstance")) .build(); } } } return getRestoreInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> getRevertInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RevertInstance", requestType = com.google.cloud.filestore.v1.RevertInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> getRevertInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> getRevertInstanceMethod; if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { CloudFilestoreManagerGrpc.getRevertInstanceMethod = getRevertInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.RevertInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) .build(); } } } return getRevertInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", requestType = com.google.cloud.filestore.v1.DeleteInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod; if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getDeleteInstanceMethod = CloudFilestoreManagerGrpc.getDeleteInstanceMethod) == null) { CloudFilestoreManagerGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.DeleteInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("DeleteInstance")) .build(); } } } return getDeleteInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListSnapshotsRequest, com.google.cloud.filestore.v1.ListSnapshotsResponse> getListSnapshotsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", requestType = com.google.cloud.filestore.v1.ListSnapshotsRequest.class, responseType = com.google.cloud.filestore.v1.ListSnapshotsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListSnapshotsRequest, com.google.cloud.filestore.v1.ListSnapshotsResponse> getListSnapshotsMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListSnapshotsRequest, com.google.cloud.filestore.v1.ListSnapshotsResponse> getListSnapshotsMethod; if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getListSnapshotsMethod = CloudFilestoreManagerGrpc.getListSnapshotsMethod) == null) { CloudFilestoreManagerGrpc.getListSnapshotsMethod = getListSnapshotsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListSnapshotsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListSnapshotsResponse .getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) .build(); } } } return getListSnapshotsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetSnapshotRequest, com.google.cloud.filestore.v1.Snapshot> getGetSnapshotMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", requestType = com.google.cloud.filestore.v1.GetSnapshotRequest.class, responseType = com.google.cloud.filestore.v1.Snapshot.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetSnapshotRequest, com.google.cloud.filestore.v1.Snapshot> getGetSnapshotMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetSnapshotRequest, com.google.cloud.filestore.v1.Snapshot> getGetSnapshotMethod; if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getGetSnapshotMethod = CloudFilestoreManagerGrpc.getGetSnapshotMethod) == null) { CloudFilestoreManagerGrpc.getGetSnapshotMethod = getGetSnapshotMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.GetSnapshotRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.Snapshot.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) .build(); } } } return getGetSnapshotMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateSnapshotRequest, com.google.longrunning.Operation> getCreateSnapshotMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", requestType = com.google.cloud.filestore.v1.CreateSnapshotRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateSnapshotRequest, com.google.longrunning.Operation> getCreateSnapshotMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateSnapshotRequest, com.google.longrunning.Operation> getCreateSnapshotMethod; if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getCreateSnapshotMethod = CloudFilestoreManagerGrpc.getCreateSnapshotMethod) == null) { CloudFilestoreManagerGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.CreateSnapshotRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("CreateSnapshot")) .build(); } } } return getCreateSnapshotMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteSnapshotRequest, com.google.longrunning.Operation> getDeleteSnapshotMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", requestType = com.google.cloud.filestore.v1.DeleteSnapshotRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteSnapshotRequest, com.google.longrunning.Operation> getDeleteSnapshotMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteSnapshotRequest, com.google.longrunning.Operation> getDeleteSnapshotMethod; if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getDeleteSnapshotMethod = CloudFilestoreManagerGrpc.getDeleteSnapshotMethod) == null) { CloudFilestoreManagerGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.DeleteSnapshotRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("DeleteSnapshot")) .build(); } } } return getDeleteSnapshotMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateSnapshotRequest, com.google.longrunning.Operation> getUpdateSnapshotMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", requestType = com.google.cloud.filestore.v1.UpdateSnapshotRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateSnapshotRequest, com.google.longrunning.Operation> getUpdateSnapshotMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateSnapshotRequest, com.google.longrunning.Operation> getUpdateSnapshotMethod; if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getUpdateSnapshotMethod = CloudFilestoreManagerGrpc.getUpdateSnapshotMethod) == null) { CloudFilestoreManagerGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.UpdateSnapshotRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("UpdateSnapshot")) .build(); } } } return getUpdateSnapshotMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListBackupsRequest, com.google.cloud.filestore.v1.ListBackupsResponse> getListBackupsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBackups", requestType = com.google.cloud.filestore.v1.ListBackupsRequest.class, responseType = com.google.cloud.filestore.v1.ListBackupsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListBackupsRequest, com.google.cloud.filestore.v1.ListBackupsResponse> getListBackupsMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.ListBackupsRequest, com.google.cloud.filestore.v1.ListBackupsResponse> getListBackupsMethod; if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getListBackupsMethod = CloudFilestoreManagerGrpc.getListBackupsMethod) == null) { CloudFilestoreManagerGrpc.getListBackupsMethod = getListBackupsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListBackupsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.ListBackupsResponse .getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) .build(); } } } return getListBackupsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> getGetBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBackup", requestType = com.google.cloud.filestore.v1.GetBackupRequest.class, responseType = com.google.cloud.filestore.v1.Backup.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> getGetBackupMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup> getGetBackupMethod; if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getGetBackupMethod = CloudFilestoreManagerGrpc.getGetBackupMethod) == null) { CloudFilestoreManagerGrpc.getGetBackupMethod = getGetBackupMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.GetBackupRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.Backup.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) .build(); } } } return getGetBackupMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> getCreateBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBackup", requestType = com.google.cloud.filestore.v1.CreateBackupRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> getCreateBackupMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation> getCreateBackupMethod; if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getCreateBackupMethod = CloudFilestoreManagerGrpc.getCreateBackupMethod) == null) { CloudFilestoreManagerGrpc.getCreateBackupMethod = getCreateBackupMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.CreateBackupRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("CreateBackup")) .build(); } } } return getCreateBackupMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> getDeleteBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", requestType = com.google.cloud.filestore.v1.DeleteBackupRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> getDeleteBackupMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation> getDeleteBackupMethod; if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getDeleteBackupMethod = CloudFilestoreManagerGrpc.getDeleteBackupMethod) == null) { CloudFilestoreManagerGrpc.getDeleteBackupMethod = getDeleteBackupMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.DeleteBackupRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("DeleteBackup")) .build(); } } } return getDeleteBackupMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> getUpdateBackupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", requestType = com.google.cloud.filestore.v1.UpdateBackupRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> getUpdateBackupMethod() { io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation> getUpdateBackupMethod; if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { synchronized (CloudFilestoreManagerGrpc.class) { if ((getUpdateBackupMethod = CloudFilestoreManagerGrpc.getUpdateBackupMethod) == null) { CloudFilestoreManagerGrpc.getUpdateBackupMethod = getUpdateBackupMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.filestore.v1.UpdateBackupRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) .build(); } } } return getUpdateBackupMethod; } /** Creates a new async stub that supports all call types for the service */ public static CloudFilestoreManagerStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudFilestoreManagerStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerStub(channel, callOptions); } }; return CloudFilestoreManagerStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static CloudFilestoreManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudFilestoreManagerBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerBlockingStub(channel, callOptions); } }; return CloudFilestoreManagerBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static CloudFilestoreManagerFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudFilestoreManagerFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerFutureStub(channel, callOptions); } }; return CloudFilestoreManagerFutureStub.newStub(factory, channel); } /** * * *
   * Configures and manages Filestore resources.
   * Filestore Manager v1.
   * The `file.googleapis.com` service implements the Filestore API and
   * defines the following resource model for managing instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of instances and backups, named:
   * `/instances/*` and `/backups/*` respectively.
   * * As such, Filestore instances are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   *   and backups are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
   * Note that location_id must be a Google Cloud `zone` for instances, but
   * a Google Cloud `region` for backups; for example:
   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
   * * `projects/12345/locations/us-central1/backups/my-backup`
   * 
*/ public interface AsyncService { /** * * *
     * Lists all instances in a project for either a specified location
     * or for all locations.
     * 
*/ default void listInstances( com.google.cloud.filestore.v1.ListInstancesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListInstancesMethod(), responseObserver); } /** * * *
     * Gets the details of a specific instance.
     * 
*/ default void getInstance( com.google.cloud.filestore.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetInstanceMethod(), responseObserver); } /** * * *
     * Creates an instance.
     * When creating from a backup, the capacity of the new instance needs to be
     * equal to or larger than the capacity of the backup (and also equal to or
     * larger than the minimum capacity of the tier).
     * 
*/ default void createInstance( com.google.cloud.filestore.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateInstanceMethod(), responseObserver); } /** * * *
     * Updates the settings of a specific instance.
     * 
*/ default void updateInstance( com.google.cloud.filestore.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateInstanceMethod(), responseObserver); } /** * * *
     * Restores an existing instance's file share from a backup.
     * The capacity of the instance needs to be equal to or larger than the
     * capacity of the backup (and also equal to or larger than the minimum
     * capacity of the tier).
     * 
*/ default void restoreInstance( com.google.cloud.filestore.v1.RestoreInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRestoreInstanceMethod(), responseObserver); } /** * * *
     * Revert an existing instance's file system to a specified snapshot.
     * 
*/ default void revertInstance( com.google.cloud.filestore.v1.RevertInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRevertInstanceMethod(), responseObserver); } /** * * *
     * Deletes an instance.
     * 
*/ default void deleteInstance( com.google.cloud.filestore.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteInstanceMethod(), responseObserver); } /** * * *
     * Lists all snapshots in a project for either a specified location
     * or for all locations.
     * 
*/ default void listSnapshots( com.google.cloud.filestore.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListSnapshotsMethod(), responseObserver); } /** * * *
     * Gets the details of a specific snapshot.
     * 
*/ default void getSnapshot( com.google.cloud.filestore.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetSnapshotMethod(), responseObserver); } /** * * *
     * Creates a snapshot.
     * 
*/ default void createSnapshot( com.google.cloud.filestore.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateSnapshotMethod(), responseObserver); } /** * * *
     * Deletes a snapshot.
     * 
*/ default void deleteSnapshot( com.google.cloud.filestore.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteSnapshotMethod(), responseObserver); } /** * * *
     * Updates the settings of a specific snapshot.
     * 
*/ default void updateSnapshot( com.google.cloud.filestore.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateSnapshotMethod(), responseObserver); } /** * * *
     * Lists all backups in a project for either a specified location or for all
     * locations.
     * 
*/ default void listBackups( com.google.cloud.filestore.v1.ListBackupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListBackupsMethod(), responseObserver); } /** * * *
     * Gets the details of a specific backup.
     * 
*/ default void getBackup( com.google.cloud.filestore.v1.GetBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); } /** * * *
     * Creates a backup.
     * 
*/ default void createBackup( com.google.cloud.filestore.v1.CreateBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateBackupMethod(), responseObserver); } /** * * *
     * Deletes a backup.
     * 
*/ default void deleteBackup( com.google.cloud.filestore.v1.DeleteBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteBackupMethod(), responseObserver); } /** * * *
     * Updates the settings of a specific backup.
     * 
*/ default void updateBackup( com.google.cloud.filestore.v1.UpdateBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateBackupMethod(), responseObserver); } } /** * Base class for the server implementation of the service CloudFilestoreManager. * *
   * Configures and manages Filestore resources.
   * Filestore Manager v1.
   * The `file.googleapis.com` service implements the Filestore API and
   * defines the following resource model for managing instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of instances and backups, named:
   * `/instances/*` and `/backups/*` respectively.
   * * As such, Filestore instances are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   *   and backups are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
   * Note that location_id must be a Google Cloud `zone` for instances, but
   * a Google Cloud `region` for backups; for example:
   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
   * * `projects/12345/locations/us-central1/backups/my-backup`
   * 
*/ public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CloudFilestoreManagerGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CloudFilestoreManager. * *
   * Configures and manages Filestore resources.
   * Filestore Manager v1.
   * The `file.googleapis.com` service implements the Filestore API and
   * defines the following resource model for managing instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of instances and backups, named:
   * `/instances/*` and `/backups/*` respectively.
   * * As such, Filestore instances are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   *   and backups are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
   * Note that location_id must be a Google Cloud `zone` for instances, but
   * a Google Cloud `region` for backups; for example:
   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
   * * `projects/12345/locations/us-central1/backups/my-backup`
   * 
*/ public static final class CloudFilestoreManagerStub extends io.grpc.stub.AbstractAsyncStub { private CloudFilestoreManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudFilestoreManagerStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerStub(channel, callOptions); } /** * * *
     * Lists all instances in a project for either a specified location
     * or for all locations.
     * 
*/ public void listInstances( com.google.cloud.filestore.v1.ListInstancesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets the details of a specific instance.
     * 
*/ public void getInstance( com.google.cloud.filestore.v1.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates an instance.
     * When creating from a backup, the capacity of the new instance needs to be
     * equal to or larger than the capacity of the backup (and also equal to or
     * larger than the minimum capacity of the tier).
     * 
*/ public void createInstance( com.google.cloud.filestore.v1.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the settings of a specific instance.
     * 
*/ public void updateInstance( com.google.cloud.filestore.v1.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Restores an existing instance's file share from a backup.
     * The capacity of the instance needs to be equal to or larger than the
     * capacity of the backup (and also equal to or larger than the minimum
     * capacity of the tier).
     * 
*/ public void restoreInstance( com.google.cloud.filestore.v1.RestoreInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Revert an existing instance's file system to a specified snapshot.
     * 
*/ public void revertInstance( com.google.cloud.filestore.v1.RevertInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes an instance.
     * 
*/ public void deleteInstance( com.google.cloud.filestore.v1.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists all snapshots in a project for either a specified location
     * or for all locations.
     * 
*/ public void listSnapshots( com.google.cloud.filestore.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets the details of a specific snapshot.
     * 
*/ public void getSnapshot( com.google.cloud.filestore.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a snapshot.
     * 
*/ public void createSnapshot( com.google.cloud.filestore.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a snapshot.
     * 
*/ public void deleteSnapshot( com.google.cloud.filestore.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the settings of a specific snapshot.
     * 
*/ public void updateSnapshot( com.google.cloud.filestore.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists all backups in a project for either a specified location or for all
     * locations.
     * 
*/ public void listBackups( com.google.cloud.filestore.v1.ListBackupsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets the details of a specific backup.
     * 
*/ public void getBackup( com.google.cloud.filestore.v1.GetBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a backup.
     * 
*/ public void createBackup( com.google.cloud.filestore.v1.CreateBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a backup.
     * 
*/ public void deleteBackup( com.google.cloud.filestore.v1.DeleteBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the settings of a specific backup.
     * 
*/ public void updateBackup( com.google.cloud.filestore.v1.UpdateBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service CloudFilestoreManager. * *
   * Configures and manages Filestore resources.
   * Filestore Manager v1.
   * The `file.googleapis.com` service implements the Filestore API and
   * defines the following resource model for managing instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of instances and backups, named:
   * `/instances/*` and `/backups/*` respectively.
   * * As such, Filestore instances are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   *   and backups are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
   * Note that location_id must be a Google Cloud `zone` for instances, but
   * a Google Cloud `region` for backups; for example:
   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
   * * `projects/12345/locations/us-central1/backups/my-backup`
   * 
*/ public static final class CloudFilestoreManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { private CloudFilestoreManagerBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudFilestoreManagerBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerBlockingStub(channel, callOptions); } /** * * *
     * Lists all instances in a project for either a specified location
     * or for all locations.
     * 
*/ public com.google.cloud.filestore.v1.ListInstancesResponse listInstances( com.google.cloud.filestore.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** * * *
     * Gets the details of a specific instance.
     * 
*/ public com.google.cloud.filestore.v1.Instance getInstance( com.google.cloud.filestore.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** * * *
     * Creates an instance.
     * When creating from a backup, the capacity of the new instance needs to be
     * equal to or larger than the capacity of the backup (and also equal to or
     * larger than the minimum capacity of the tier).
     * 
*/ public com.google.longrunning.Operation createInstance( com.google.cloud.filestore.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** * * *
     * Updates the settings of a specific instance.
     * 
*/ public com.google.longrunning.Operation updateInstance( com.google.cloud.filestore.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** * * *
     * Restores an existing instance's file share from a backup.
     * The capacity of the instance needs to be equal to or larger than the
     * capacity of the backup (and also equal to or larger than the minimum
     * capacity of the tier).
     * 
*/ public com.google.longrunning.Operation restoreInstance( com.google.cloud.filestore.v1.RestoreInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); } /** * * *
     * Revert an existing instance's file system to a specified snapshot.
     * 
*/ public com.google.longrunning.Operation revertInstance( com.google.cloud.filestore.v1.RevertInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRevertInstanceMethod(), getCallOptions(), request); } /** * * *
     * Deletes an instance.
     * 
*/ public com.google.longrunning.Operation deleteInstance( com.google.cloud.filestore.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** * * *
     * Lists all snapshots in a project for either a specified location
     * or for all locations.
     * 
*/ public com.google.cloud.filestore.v1.ListSnapshotsResponse listSnapshots( com.google.cloud.filestore.v1.ListSnapshotsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } /** * * *
     * Gets the details of a specific snapshot.
     * 
*/ public com.google.cloud.filestore.v1.Snapshot getSnapshot( com.google.cloud.filestore.v1.GetSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } /** * * *
     * Creates a snapshot.
     * 
*/ public com.google.longrunning.Operation createSnapshot( com.google.cloud.filestore.v1.CreateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } /** * * *
     * Deletes a snapshot.
     * 
*/ public com.google.longrunning.Operation deleteSnapshot( com.google.cloud.filestore.v1.DeleteSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } /** * * *
     * Updates the settings of a specific snapshot.
     * 
*/ public com.google.longrunning.Operation updateSnapshot( com.google.cloud.filestore.v1.UpdateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } /** * * *
     * Lists all backups in a project for either a specified location or for all
     * locations.
     * 
*/ public com.google.cloud.filestore.v1.ListBackupsResponse listBackups( com.google.cloud.filestore.v1.ListBackupsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBackupsMethod(), getCallOptions(), request); } /** * * *
     * Gets the details of a specific backup.
     * 
*/ public com.google.cloud.filestore.v1.Backup getBackup( com.google.cloud.filestore.v1.GetBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBackupMethod(), getCallOptions(), request); } /** * * *
     * Creates a backup.
     * 
*/ public com.google.longrunning.Operation createBackup( com.google.cloud.filestore.v1.CreateBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBackupMethod(), getCallOptions(), request); } /** * * *
     * Deletes a backup.
     * 
*/ public com.google.longrunning.Operation deleteBackup( com.google.cloud.filestore.v1.DeleteBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBackupMethod(), getCallOptions(), request); } /** * * *
     * Updates the settings of a specific backup.
     * 
*/ public com.google.longrunning.Operation updateBackup( com.google.cloud.filestore.v1.UpdateBackupRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBackupMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service * CloudFilestoreManager. * *
   * Configures and manages Filestore resources.
   * Filestore Manager v1.
   * The `file.googleapis.com` service implements the Filestore API and
   * defines the following resource model for managing instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of instances and backups, named:
   * `/instances/*` and `/backups/*` respectively.
   * * As such, Filestore instances are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   *   and backups are resources of the form:
   *   `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
   * Note that location_id must be a Google Cloud `zone` for instances, but
   * a Google Cloud `region` for backups; for example:
   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
   * * `projects/12345/locations/us-central1/backups/my-backup`
   * 
*/ public static final class CloudFilestoreManagerFutureStub extends io.grpc.stub.AbstractFutureStub { private CloudFilestoreManagerFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudFilestoreManagerFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudFilestoreManagerFutureStub(channel, callOptions); } /** * * *
     * Lists all instances in a project for either a specified location
     * or for all locations.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.filestore.v1.ListInstancesResponse> listInstances(com.google.cloud.filestore.v1.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** * * *
     * Gets the details of a specific instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.filestore.v1.Instance> getInstance(com.google.cloud.filestore.v1.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** * * *
     * Creates an instance.
     * When creating from a backup, the capacity of the new instance needs to be
     * equal to or larger than the capacity of the backup (and also equal to or
     * larger than the minimum capacity of the tier).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createInstance(com.google.cloud.filestore.v1.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } /** * * *
     * Updates the settings of a specific instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateInstance(com.google.cloud.filestore.v1.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } /** * * *
     * Restores an existing instance's file share from a backup.
     * The capacity of the instance needs to be equal to or larger than the
     * capacity of the backup (and also equal to or larger than the minimum
     * capacity of the tier).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); } /** * * *
     * Revert an existing instance's file system to a specified snapshot.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture revertInstance(com.google.cloud.filestore.v1.RevertInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); } /** * * *
     * Deletes an instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** * * *
     * Lists all snapshots in a project for either a specified location
     * or for all locations.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.filestore.v1.ListSnapshotsResponse> listSnapshots(com.google.cloud.filestore.v1.ListSnapshotsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); } /** * * *
     * Gets the details of a specific snapshot.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.filestore.v1.Snapshot> getSnapshot(com.google.cloud.filestore.v1.GetSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); } /** * * *
     * Creates a snapshot.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createSnapshot(com.google.cloud.filestore.v1.CreateSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); } /** * * *
     * Deletes a snapshot.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteSnapshot(com.google.cloud.filestore.v1.DeleteSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); } /** * * *
     * Updates the settings of a specific snapshot.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateSnapshot(com.google.cloud.filestore.v1.UpdateSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); } /** * * *
     * Lists all backups in a project for either a specified location or for all
     * locations.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.filestore.v1.ListBackupsResponse> listBackups(com.google.cloud.filestore.v1.ListBackupsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); } /** * * *
     * Gets the details of a specific backup.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getBackup(com.google.cloud.filestore.v1.GetBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); } /** * * *
     * Creates a backup.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); } /** * * *
     * Deletes a backup.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteBackup(com.google.cloud.filestore.v1.DeleteBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); } /** * * *
     * Updates the settings of a specific backup.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_INSTANCES = 0; private static final int METHODID_GET_INSTANCE = 1; private static final int METHODID_CREATE_INSTANCE = 2; private static final int METHODID_UPDATE_INSTANCE = 3; private static final int METHODID_RESTORE_INSTANCE = 4; private static final int METHODID_REVERT_INSTANCE = 5; private static final int METHODID_DELETE_INSTANCE = 6; private static final int METHODID_LIST_SNAPSHOTS = 7; private static final int METHODID_GET_SNAPSHOT = 8; private static final int METHODID_CREATE_SNAPSHOT = 9; private static final int METHODID_DELETE_SNAPSHOT = 10; private static final int METHODID_UPDATE_SNAPSHOT = 11; private static final int METHODID_LIST_BACKUPS = 12; private static final int METHODID_GET_BACKUP = 13; private static final int METHODID_CREATE_BACKUP = 14; private static final int METHODID_DELETE_BACKUP = 15; private static final int METHODID_UPDATE_BACKUP = 16; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INSTANCES: serviceImpl.listInstances( (com.google.cloud.filestore.v1.ListInstancesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE: serviceImpl.getInstance( (com.google.cloud.filestore.v1.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_INSTANCE: serviceImpl.createInstance( (com.google.cloud.filestore.v1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: serviceImpl.updateInstance( (com.google.cloud.filestore.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESTORE_INSTANCE: serviceImpl.restoreInstance( (com.google.cloud.filestore.v1.RestoreInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REVERT_INSTANCE: serviceImpl.revertInstance( (com.google.cloud.filestore.v1.RevertInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: serviceImpl.deleteInstance( (com.google.cloud.filestore.v1.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SNAPSHOTS: serviceImpl.listSnapshots( (com.google.cloud.filestore.v1.ListSnapshotsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SNAPSHOT: serviceImpl.getSnapshot( (com.google.cloud.filestore.v1.GetSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_SNAPSHOT: serviceImpl.createSnapshot( (com.google.cloud.filestore.v1.CreateSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SNAPSHOT: serviceImpl.deleteSnapshot( (com.google.cloud.filestore.v1.DeleteSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SNAPSHOT: serviceImpl.updateSnapshot( (com.google.cloud.filestore.v1.UpdateSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BACKUPS: serviceImpl.listBackups( (com.google.cloud.filestore.v1.ListBackupsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BACKUP: serviceImpl.getBackup( (com.google.cloud.filestore.v1.GetBackupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BACKUP: serviceImpl.createBackup( (com.google.cloud.filestore.v1.CreateBackupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BACKUP: serviceImpl.deleteBackup( (com.google.cloud.filestore.v1.DeleteBackupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BACKUP: serviceImpl.updateBackup( (com.google.cloud.filestore.v1.UpdateBackupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListInstancesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.ListInstancesRequest, com.google.cloud.filestore.v1.ListInstancesResponse>( service, METHODID_LIST_INSTANCES))) .addMethod( getGetInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.GetInstanceRequest, com.google.cloud.filestore.v1.Instance>(service, METHODID_GET_INSTANCE))) .addMethod( getCreateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.CreateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE))) .addMethod( getUpdateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.UpdateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE))) .addMethod( getRestoreInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation>(service, METHODID_RESTORE_INSTANCE))) .addMethod( getRevertInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation>(service, METHODID_REVERT_INSTANCE))) .addMethod( getDeleteInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_INSTANCE))) .addMethod( getListSnapshotsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.ListSnapshotsRequest, com.google.cloud.filestore.v1.ListSnapshotsResponse>( service, METHODID_LIST_SNAPSHOTS))) .addMethod( getGetSnapshotMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.GetSnapshotRequest, com.google.cloud.filestore.v1.Snapshot>(service, METHODID_GET_SNAPSHOT))) .addMethod( getCreateSnapshotMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.CreateSnapshotRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_SNAPSHOT))) .addMethod( getDeleteSnapshotMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.DeleteSnapshotRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_SNAPSHOT))) .addMethod( getUpdateSnapshotMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.UpdateSnapshotRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_SNAPSHOT))) .addMethod( getListBackupsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.ListBackupsRequest, com.google.cloud.filestore.v1.ListBackupsResponse>( service, METHODID_LIST_BACKUPS))) .addMethod( getGetBackupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.GetBackupRequest, com.google.cloud.filestore.v1.Backup>(service, METHODID_GET_BACKUP))) .addMethod( getCreateBackupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.CreateBackupRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_BACKUP))) .addMethod( getDeleteBackupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.DeleteBackupRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP))) .addMethod( getUpdateBackupMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.filestore.v1.UpdateBackupRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_BACKUP))) .build(); } private abstract static class CloudFilestoreManagerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudFilestoreManagerBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("CloudFilestoreManager"); } } private static final class CloudFilestoreManagerFileDescriptorSupplier extends CloudFilestoreManagerBaseDescriptorSupplier { CloudFilestoreManagerFileDescriptorSupplier() {} } private static final class CloudFilestoreManagerMethodDescriptorSupplier extends CloudFilestoreManagerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; CloudFilestoreManagerMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (CloudFilestoreManagerGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudFilestoreManagerFileDescriptorSupplier()) .addMethod(getListInstancesMethod()) .addMethod(getGetInstanceMethod()) .addMethod(getCreateInstanceMethod()) .addMethod(getUpdateInstanceMethod()) .addMethod(getRestoreInstanceMethod()) .addMethod(getRevertInstanceMethod()) .addMethod(getDeleteInstanceMethod()) .addMethod(getListSnapshotsMethod()) .addMethod(getGetSnapshotMethod()) .addMethod(getCreateSnapshotMethod()) .addMethod(getDeleteSnapshotMethod()) .addMethod(getUpdateSnapshotMethod()) .addMethod(getListBackupsMethod()) .addMethod(getGetBackupMethod()) .addMethod(getCreateBackupMethod()) .addMethod(getDeleteBackupMethod()) .addMethod(getUpdateBackupMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy