diff --git a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index f9a23b1235b1..000000000000 --- a/java-filestore/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,1602 +0,0 @@ -/* - * Copyright 2020 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 Cloud Filestore resources.
- * Cloud Filestore Manager v1.
- * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
- * `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 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.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.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 Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
-   * `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 { - - /** - * - * - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), 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.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).
-     * 
- */ - public 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.
-     * 
- */ - public 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).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public 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.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetInstanceRequest, - com.google.cloud.filestore.v1.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.RestoreInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.ListBackupsRequest, - com.google.cloud.filestore.v1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.GetBackupRequest, - com.google.cloud.filestore.v1.Backup>(this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.CreateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.DeleteBackupRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1.UpdateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
-   * `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); - } - - /** - * - * - *
-     * 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 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); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
-   * `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); - } - - /** - * - * - *
-     * 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 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); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1.
-   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
-   * `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); - } - - /** - * - * - *
-     * 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 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_DELETE_INSTANCE = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_CREATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_UPDATE_BACKUP = 10; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.filestore.v1.DeleteInstanceRequest) 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(); - } - } - } - - 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 String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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(getDeleteInstanceMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java deleted file mode 100644 index f5b25919fae1..000000000000 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java +++ /dev/null @@ -1,1641 +0,0 @@ -/* - * Copyright 2020 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.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages Cloud Filestore resources.
- * Cloud Filestore Manager v1beta1.
- * The `file.googleapis.com` service implements the Cloud Filestore API and
- * defines the following model for managing resources:
- * * 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, Cloud Filestore instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- *   backups are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
- * Note that location_id can represent a GCP `zone` or `region` depending on the
- * resource.
- * for example:
- * A zonal Filestore instance:
- * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
- * A regional Filestore instance:
- * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudFilestoreManagerGrpc { - - private CloudFilestoreManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.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.v1beta1.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.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.v1beta1.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation> - getRestoreInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", - requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation> - getRestoreInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - getListBackupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBackups", - requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse> - getListBackupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.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.v1beta1.ListBackupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.ListBackupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) - .build(); - } - } - } - return getListBackupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup> - getGetBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBackup", - requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - responseType = com.google.cloud.filestore.v1beta1.Backup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup> - getGetBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.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.v1beta1.GetBackupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) - .build(); - } - } - } - return getGetBackupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBackup", - requestType = com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, com.google.longrunning.Operation> - getCreateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", - requestType = com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, com.google.longrunning.Operation> - getDeleteBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", - requestType = com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, com.google.longrunning.Operation> - getUpdateBackupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.filestore.v1beta1.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.v1beta1.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 Cloud Filestore resources.
-   * Cloud Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following model for managing resources:
-   * * 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, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - public abstract static class CloudFilestoreManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists all instances in a project for either a specified location
-     * or for all locations.
-     * 
- */ - public void listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public void getInstance( - com.google.cloud.filestore.v1beta1.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).
-     * 
- */ - public void createInstance( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific instance.
-     * 
- */ - public void updateInstance( - com.google.cloud.filestore.v1beta1.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).
-     * 
- */ - public void restoreInstance( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public void listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public void getBackup( - com.google.cloud.filestore.v1beta1.GetBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a backup.
-     * 
- */ - public void createBackup( - com.google.cloud.filestore.v1beta1.CreateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a backup.
-     * 
- */ - public void deleteBackup( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific backup.
-     * 
- */ - public void updateBackup( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListInstancesRequest, - com.google.cloud.filestore.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetInstanceRequest, - com.google.cloud.filestore.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getRestoreInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_INSTANCE))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getListBackupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.ListBackupsRequest, - com.google.cloud.filestore.v1beta1.ListBackupsResponse>( - this, METHODID_LIST_BACKUPS))) - .addMethod( - getGetBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.GetBackupRequest, - com.google.cloud.filestore.v1beta1.Backup>(this, METHODID_GET_BACKUP))) - .addMethod( - getCreateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.CreateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BACKUP))) - .addMethod( - getDeleteBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.DeleteBackupRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_BACKUP))) - .addMethod( - getUpdateBackupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.filestore.v1beta1.UpdateBackupRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_BACKUP))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following model for managing resources:
-   * * 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, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RestoreInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following model for managing resources:
-   * * 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, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - 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.v1beta1.ListInstancesResponse listInstances( - com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific instance.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Instance getInstance( - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all backups in a project for either a specified location or for all
-     * locations.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.ListBackupsResponse listBackups( - com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific backup.
-     * 
- */ - public com.google.cloud.filestore.v1beta1.Backup getBackup( - com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Filestore resources.
-   * Cloud Filestore Manager v1beta1.
-   * The `file.googleapis.com` service implements the Cloud Filestore API and
-   * defines the following model for managing resources:
-   * * 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, Cloud Filestore instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   *   backups are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
-   * Note that location_id can represent a GCP `zone` or `region` depending on the
-   * resource.
-   * for example:
-   * A zonal Filestore instance:
-   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
-   * A regional Filestore instance:
-   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
-   * 
- */ - 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.v1beta1.ListInstancesResponse> - listInstances(com.google.cloud.filestore.v1beta1.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.v1beta1.Instance> - getInstance(com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.RestoreInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), 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.v1beta1.ListBackupsResponse> - listBackups(com.google.cloud.filestore.v1beta1.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< - com.google.cloud.filestore.v1beta1.Backup> - getBackup(com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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_DELETE_INSTANCE = 5; - private static final int METHODID_LIST_BACKUPS = 6; - private static final int METHODID_GET_BACKUP = 7; - private static final int METHODID_CREATE_BACKUP = 8; - private static final int METHODID_DELETE_BACKUP = 9; - private static final int METHODID_UPDATE_BACKUP = 10; - - 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 CloudFilestoreManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudFilestoreManagerImplBase 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.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.filestore.v1beta1.ListInstancesResponse>) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_INSTANCE: - serviceImpl.restoreInstance( - (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BACKUPS: - serviceImpl.listBackups( - (com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_BACKUP: - serviceImpl.getBackup( - (com.google.cloud.filestore.v1beta1.GetBackupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_BACKUP: - serviceImpl.createBackup( - (com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BACKUP: - serviceImpl.deleteBackup( - (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BACKUP: - serviceImpl.updateBackup( - (com.google.cloud.filestore.v1beta1.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(); - } - } - } - - 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.v1beta1.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 String methodName; - - CloudFilestoreManagerMethodDescriptorSupplier(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(getDeleteInstanceMethod()) - .addMethod(getListBackupsMethod()) - .addMethod(getGetBackupMethod()) - .addMethod(getCreateBackupMethod()) - .addMethod(getDeleteBackupMethod()) - .addMethod(getUpdateBackupMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 7ed9837c9bbd..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_common_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/common/operation_metadata" - + ".proto\022\023google.cloud.common\032\037google/api/" - + "field_behavior.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A" - + "\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 " - + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" - + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." - + "cloud.commonP\001Z9google.golang.org/genpro" - + "to/googleapis/cloud/common;commonb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java deleted file mode 100644 index 108e446f3604..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/filestore/v1/cloud_filest" - + "ore_service.proto\022\031google.cloud.filestor" - + "e.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + ",google/cloud/common/operation_metadata." - + "proto\032#google/longrunning/operations.pro" - + "to\032 google/protobuf/field_mask.proto\032\037go" - + "ogle/protobuf/timestamp.proto\032\036google/pr" - + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" - + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" - + ".cloud.filestore.v1.NetworkConfig.Addres" - + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" - + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" - + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" - + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" - + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" - + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" - + "export_options\030\007 \003(\0132+.google.cloud.file" - + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" - + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" - + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" - + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" - + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" - + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" - + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" - + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" - + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" - + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" - + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" - + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" - + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" - + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" - + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" - + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" - + "2*.google.cloud.filestore.v1.FileShareCo" - + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" - + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" - + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." - + "BoolValueB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"n\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" - + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" - + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" - + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" - + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" - + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" - + "t=projects/*/locations/*}/instances\332A\006pa" - + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" - + "store.v1.GetInstanceRequest\032#.google.clo" - + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" - + "ame=projects/*/locations/*/instances/*}\332" - + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" - + ".filestore.v1.CreateInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" - + "/{parent=projects/*/locations/*}/instanc" - + "es:\010instance\332A\033parent,instance,instance_" - + "id\312A1\n\010Instance\022%google.cloud.common.Ope" - + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" - + "le.cloud.filestore.v1.UpdateInstanceRequ" - + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" - + "\223\002B26/v1/{instance.name=projects/*/locat" - + "ions/*/instances/*}:\010instance\332A\024instance" - + ",update_mask\312A1\n\010Instance\022%google.cloud." - + "common.OperationMetadata\022\331\001\n\017RestoreInst" - + "ance\0221.google.cloud.filestore.v1.Restore" - + "InstanceRequest\032\035.google.longrunning.Ope" - + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" - + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" - + "tance\022%google.cloud.common.OperationMeta" - + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" - + "ilestore.v1.DeleteInstanceRequest\032\035.goog" - + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" - + "ame=projects/*/locations/*/instances/*}\332" - + "A\004name\312A>\n\025google.protobuf.Empty\022%google" - + ".cloud.common.OperationMetadata\022\252\001\n\013List" - + "Backups\022-.google.cloud.filestore.v1.List" - + "BackupsRequest\032..google.cloud.filestore." - + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" - + "ent=projects/*/locations/*}/backups\332A\006pa" - + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" - + "ore.v1.GetBackupRequest\032!.google.cloud.f" - + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" - + "ojects/*/locations/*/backups/*}\332A\004name\022\347" - + "\001\n\014CreateBackup\022..google.cloud.filestore" - + ".v1.CreateBackupRequest\032\035.google.longrun" - + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" - + "jects/*/locations/*}/backups:\006backup\332A\027p" - + "arent,backup,backup_id\312A/\n\006Backup\022%googl" - + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" - + "eteBackup\022..google.cloud.filestore.v1.De" - + "leteBackupRequest\032\035.google.longrunning.O" - + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" - + "ocations/*/backups/*}\332A\004name\312A>\n\025google." - + "protobuf.Empty\022%google.cloud.common.Oper" - + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." - + "cloud.filestore.v1.UpdateBackupRequest\032\035" - + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" - + "/v1/{backup.name=projects/*/locations/*/" - + "backups/*}:\006backup\332A\022backup,update_mask\312" - + "A/\n\006Backup\022%google.cloud.common.Operatio" - + "nMetadata\032G\312A\023file.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" - + "oudFilestoreServiceProtoP\001ZBgoogle.golan" - + "g.org/genproto/googleapis/cloud/filestor" - + "e/v1;filestore\252\002\031Google.Cloud.Filestore." - + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, - new java.lang.String[] { - "Network", "Modes", "ReservedIpRange", "IpAddresses", - }); - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, - new java.lang.String[] { - "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", - }); - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, - new java.lang.String[] { - "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", - }); - internal_static_google_cloud_filestore_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "StatusMessage", - "CreateTime", - "Tier", - "Labels", - "FileShares", - "Networks", - "Etag", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "FileShare", "SourceBackup", "Source", - }); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "CreateTime", - "Labels", - "CapacityGb", - "StorageBytes", - "SourceInstance", - "SourceFileShare", - "SourceInstanceTier", - "DownloadBytes", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, - new java.lang.String[] { - "Parent", "Backup", "BackupId", - }); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, - new java.lang.String[] { - "Backup", "UpdateMask", - }); - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, - new java.lang.String[] { - "Backups", "NextPageToken", "Unreachable", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index 1bb22b9f9443..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 27d695f82985..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java deleted file mode 100644 index 04888e424ad5..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 424aad60461b..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java deleted file mode 100644 index 7ed9837c9bbd..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/common/operation_metadata.proto - -package com.google.cloud.common; - -public final class OperationMetadataOuterClass { - private OperationMetadataOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_common_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/common/operation_metadata" - + ".proto\022\023google.cloud.common\032\037google/api/" - + "field_behavior.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A" - + "\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 " - + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" - + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." - + "cloud.commonP\001Z9google.golang.org/genpro" - + "to/googleapis/cloud/common;commonb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_common_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_common_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java deleted file mode 100644 index 016b03950556..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java +++ /dev/null @@ -1,557 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public final class CloudFilestoreServiceProto { - private CloudFilestoreServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\"2/v1" - + "beta1/{parent=projects/*/locations/*}/in" - + "stances:\010instance\332A\033parent,instance,inst" - + "ance_id\312A1\n\010Instance\022%google.cloud.commo" - + "n.OperationMetadata\022\201\002\n\016UpdateInstance\0225" - + ".google.cloud.filestore.v1beta1.UpdateIn" - + "stanceRequest\032\035.google.longrunning.Opera" - + "tion\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=p" - + "rojects/*/locations/*/instances/*}:\010inst" - + "ance\332A\024instance,update_mask\312A1\n\010Instance" - + "\022%google.cloud.common.OperationMetadata\022" - + "\343\001\n\017RestoreInstance\0226.google.cloud.files" - + "tore.v1beta1.RestoreInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1b" - + "eta1/{name=projects/*/locations/*/instan" - + "ces/*}:restore:\001*\312A1\n\010Instance\022%google.c" - + "loud.common.OperationMetadata\022\353\001\n\016Delete" - + "Instance\0225.google.cloud.filestore.v1beta" - + "1.DeleteInstanceRequest\032\035.google.longrun" - + "ning.Operation\"\202\001\202\323\344\223\0024*2/v1beta1/{name=" - + "projects/*/locations/*/instances/*}\332A\004na" - + "me\312A>\n\025google.protobuf.Empty\022%google.clo" - + "ud.common.OperationMetadata\022\271\001\n\013ListBack" - + "ups\0222.google.cloud.filestore.v1beta1.Lis" - + "tBackupsRequest\0323.google.cloud.filestore" - + ".v1beta1.ListBackupsResponse\"A\202\323\344\223\0022\0220/v" - + "1beta1/{parent=projects/*/locations/*}/b" - + "ackups\332A\006parent\022\246\001\n\tGetBackup\0220.google.c" - + "loud.filestore.v1beta1.GetBackupRequest\032" - + "&.google.cloud.filestore.v1beta1.Backup\"" - + "?\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locat" - + "ions/*/backups/*}\332A\004name\022\361\001\n\014CreateBacku" - + "p\0223.google.cloud.filestore.v1beta1.Creat" - + "eBackupRequest\032\035.google.longrunning.Oper" - + "ation\"\214\001\202\323\344\223\002:\"0/v1beta1/{parent=project" - + "s/*/locations/*}/backups:\006backup\332A\027paren" - + "t,backup,backup_id\312A/\n\006Backup\022%google.cl" - + "oud.common.OperationMetadata\022\345\001\n\014DeleteB" - + "ackup\0223.google.cloud.filestore.v1beta1.D" - + "eleteBackupRequest\032\035.google.longrunning." - + "Operation\"\200\001\202\323\344\223\0022*0/v1beta1/{name=proje" - + "cts/*/locations/*/backups/*}\332A\004name\312A>\n\025" - + "google.protobuf.Empty\022%google.cloud.comm" - + "on.OperationMetadata\022\363\001\n\014UpdateBackup\0223." - + "google.cloud.filestore.v1beta1.UpdateBac" - + "kupRequest\032\035.google.longrunning.Operatio" - + "n\"\216\001\202\323\344\223\002A27/v1beta1/{backup.name=projec" - + "ts/*/locations/*/backups/*}:\006backup\332A\022ba" - + "ckup,update_mask\312A/\n\006Backup\022%google.clou" - + "d.common.OperationMetadata\032G\312A\023file.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\315\001\n\"com.google.cloud" - + ".filestore.v1beta1B\032CloudFilestoreServic" - + "eProtoP\001ZGgoogle.golang.org/genproto/goo" - + "gleapis/cloud/filestore/v1beta1;filestor" - + "e\252\002\036Google.Cloud.Filestore.V1Beta1\312\002\036Goo" - + "gle\\Cloud\\Filestore\\V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, - new java.lang.String[] { - "Network", "Modes", "ReservedIpRange", "IpAddresses", - }); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, - new java.lang.String[] { - "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", - }); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, - new java.lang.String[] { - "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", - }); - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "StatusMessage", - "CreateTime", - "Tier", - "Labels", - "FileShares", - "Networks", - "Etag", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, - new java.lang.String[] { - "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, - new java.lang.String[] { - "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", - }); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "CreateTime", - "Labels", - "CapacityGb", - "StorageBytes", - "SourceInstance", - "SourceFileShare", - "SourceInstanceTier", - "DownloadBytes", - "SatisfiesPzs", - }); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = - internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, - new java.lang.String[] { - "Parent", "Backup", "BackupId", - }); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, - new java.lang.String[] { - "Backup", "UpdateMask", - }); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "OrderBy", "Filter", - }); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, - new java.lang.String[] { - "Backups", "NextPageToken", "Unreachable", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java deleted file mode 100644 index fae4deaa5d9c..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index be30f190fbe1..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java deleted file mode 100644 index f3dee8caed94..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetBackupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The backup resource name, in the format
-   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 0e9ef0cd5a51..000000000000 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto - -package com.google.cloud.filestore.v1beta1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The instance resource name, in the format
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index 467082ec489c..359f2d88baef 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.common.OperationMetadata; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java index 9b40d2cb2c20..8883443cffbb 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java @@ -49,6 +49,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 99% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java index 268519024da1..c937c1f32ca2 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManager.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java rename to owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java diff --git a/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..f132c8392cdc --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/grpc-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,1270 @@ +package com.google.cloud.filestore.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Configures and manages Cloud Filestore resources.
+ * Cloud Filestore Manager v1.
+ * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
+ * `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 String SERVICE_NAME = "google.cloud.filestore.v1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor 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 getListInstancesMethod() { + io.grpc.MethodDescriptor 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 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 getGetInstanceMethod() { + io.grpc.MethodDescriptor 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 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 getCreateInstanceMethod() { + io.grpc.MethodDescriptor 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 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 getUpdateInstanceMethod() { + io.grpc.MethodDescriptor 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 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 getRestoreInstanceMethod() { + io.grpc.MethodDescriptor 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 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 getDeleteInstanceMethod() { + io.grpc.MethodDescriptor 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 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 getListBackupsMethod() { + io.grpc.MethodDescriptor 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 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 getGetBackupMethod() { + io.grpc.MethodDescriptor 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 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 getCreateBackupMethod() { + io.grpc.MethodDescriptor 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 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 getDeleteBackupMethod() { + io.grpc.MethodDescriptor 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 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 getUpdateBackupMethod() { + io.grpc.MethodDescriptor 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 Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
+   * `region` for backups; for example:
+   * * `projects/12345/locations/us-central1-c/instances/my-filestore`
+   * * `projects/12345/locations/us-central1/backups/my-backup`
+   * 
+ */ + public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), 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.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).
+     * 
+ */ + public 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.
+     * 
+ */ + public 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).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1.RestoreInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreInstanceMethod(), responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public 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.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetInstanceRequest, + com.google.cloud.filestore.v1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.RestoreInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.ListBackupsRequest, + com.google.cloud.filestore.v1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.GetBackupRequest, + com.google.cloud.filestore.v1.Backup>( + this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.CreateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.DeleteBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.UpdateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP))) + .build(); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
+   * `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); + } + + /** + *
+     * 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 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); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
+   * `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); + } + + /** + *
+     * 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 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); + } + } + + /** + *
+   * Configures and manages Cloud Filestore resources.
+   * Cloud Filestore Manager v1.
+   * The `file.googleapis.com` service implements the Cloud 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, Cloud 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 GCP `zone` for instances and but to a GCP
+   * `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 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 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); + } + + /** + *
+     * 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 backups in a project for either a specified location or for all
+     * locations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture 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_DELETE_INSTANCE = 5; + private static final int METHODID_LIST_BACKUPS = 6; + private static final int METHODID_GET_BACKUP = 7; + private static final int METHODID_CREATE_BACKUP = 8; + private static final int METHODID_DELETE_BACKUP = 9; + private static final int METHODID_UPDATE_BACKUP = 10; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.filestore.v1.DeleteInstanceRequest) 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(); + } + } + } + + private static abstract 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 String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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(getDeleteInstanceMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java index cd3f8c6dcec5..07036dbcf704 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/common/operation_metadata.proto package com.google.cloud.common; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.common.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -171,14 +130,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -187,29 +143,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,14 +176,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -236,29 +189,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -269,14 +222,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -285,29 +235,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -318,8 +268,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -328,7 +276,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -339,14 +286,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -355,29 +299,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -386,7 +330,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -430,10 +374,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -445,7 +391,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,27 +405,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = - (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,7 +458,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -513,136 +467,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.common.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.common.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -693,8 +641,7 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = - new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -718,39 +665,38 @@ public com.google.cloud.common.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata) other); + return mergeFrom((com.google.cloud.common.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -810,55 +756,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,58 +813,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -938,17 +861,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -959,21 +879,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -985,15 +901,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1007,64 +919,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1072,35 +968,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1111,14 +996,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1134,16 +1016,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1154,20 +1034,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1179,14 +1056,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1200,59 +1074,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1260,20 +1123,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1282,21 +1143,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1304,61 +1164,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1366,20 +1219,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1388,21 +1239,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1410,61 +1260,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1472,20 +1315,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1494,21 +1335,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1516,70 +1356,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1588,7 +1419,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1596,8 +1426,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1606,19 +1434,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1627,11 +1452,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1639,20 +1463,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1661,21 +1483,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1683,68 +1504,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1754,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1768,27 +1582,27 @@ public static com.google.cloud.common.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,4 +1617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 9d77fb3b23d3..03b8d68c0be5 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.common.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..8b00f4c11630 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_common_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A" + + "\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java index 9995923d37c8..205aea38ffee 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * A Cloud Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.Backup} */ -public final class Backup extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Backup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.Backup) BackupOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Backup.newBuilder() to construct. private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Backup() { name_ = ""; description_ = ""; @@ -48,54 +30,51 @@ private Backup() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Backup(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, - com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); } /** - * - * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -104,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Backup is being created.
      * 
@@ -114,8 +91,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -125,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FINALIZING(2),
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Backup is being deleted.
      * 
@@ -148,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -158,8 +127,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Backup is being created.
      * 
@@ -168,8 +135,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -179,8 +144,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FINALIZING_VALUE = 2;
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -189,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Backup is being deleted.
      * 
@@ -199,6 +160,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,53 +185,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return FINALIZING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return FINALIZING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1.Backup.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -289,15 +249,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -306,30 +263,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -340,15 +297,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -357,30 +311,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -391,55 +345,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Backup.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = - com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -447,15 +384,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -463,14 +396,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -478,23 +408,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -503,30 +434,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -534,12 +463,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -547,16 +475,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -564,11 +492,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -578,14 +507,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -596,15 +522,12 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -615,8 +538,6 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -624,7 +545,6 @@ public long getStorageBytes() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ @java.lang.Override @@ -633,15 +553,14 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -649,15 +568,16 @@ public java.lang.String getSourceInstance() {
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -668,15 +588,12 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ @java.lang.Override @@ -685,30 +602,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -719,50 +636,35 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -770,7 +672,6 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() {
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -781,16 +682,11 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -798,34 +694,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -833,7 +718,6 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -845,7 +729,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -858,8 +743,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -872,8 +761,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -898,26 +786,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -925,15 +817,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -943,30 +837,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.Backup)) { return super.equals(obj); } com.google.cloud.filestore.v1.Backup other = (com.google.cloud.filestore.v1.Backup) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (getStorageBytes() != other.getStorageBytes()) return false; - if (!getSourceInstance().equals(other.getSourceInstance())) return false; - if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getStorageBytes() + != other.getStorageBytes()) return false; + if (!getSourceInstance() + .equals(other.getSourceInstance())) return false; + if (!getSourceFileShare() + .equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() != other.getDownloadBytes()) return false; + if (getDownloadBytes() + != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -994,9 +898,11 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); hash = (37 * hash) + STORAGE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStorageBytes()); hash = (37 * hash) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -1004,7 +910,8 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); @@ -1014,155 +921,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Backup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.Backup parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.filestore.v1.Backup parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Backup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Backup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Backup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.Backup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Backup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.Backup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Cloud Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.Backup} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.Backup) com.google.cloud.filestore.v1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Backup.class, - com.google.cloud.filestore.v1.Backup.Builder.class); + com.google.cloud.filestore.v1.Backup.class, com.google.cloud.filestore.v1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1.Backup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1201,9 +1105,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Backup_descriptor; } @java.lang.Override @@ -1253,39 +1157,38 @@ public com.google.cloud.filestore.v1.Backup buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1.Backup) other); + return mergeFrom((com.google.cloud.filestore.v1.Backup)other); } else { super.mergeFrom(other); return this; @@ -1308,7 +1211,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1358,90 +1262,79 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: - { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: - { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: - { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: - { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1451,26 +1344,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1479,22 +1369,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1502,64 +1391,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1567,21 +1449,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1590,22 +1470,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1613,64 +1492,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1678,73 +1550,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Backup.State result = - com.google.cloud.filestore.v1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1.Backup.State result = com.google.cloud.filestore.v1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Backup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1752,26 +1602,21 @@ public Builder setState(com.google.cloud.filestore.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1779,58 +1624,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1846,17 +1672,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1867,21 +1690,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1893,15 +1712,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1915,84 +1730,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2004,30 +1804,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2035,12 +1833,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2048,17 +1845,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2066,11 +1862,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2078,74 +1875,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -2153,52 +1950,43 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_; + private long storageBytes_ ; /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -2206,38 +1994,32 @@ public long getStorageBytes() { return storageBytes_; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The storageBytes to set. * @return This builder for chaining. */ public Builder setStorageBytes(long value) { - + storageBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share
      * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2245,8 +2027,6 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2254,13 +2034,13 @@ public Builder clearStorageBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2269,8 +2049,6 @@ public java.lang.String getSourceInstance() { } } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2278,14 +2056,15 @@ public java.lang.String getSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2293,8 +2072,6 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { } } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2302,22 +2079,20 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance(java.lang.String value) { + public Builder setSourceInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2325,18 +2100,15 @@ public Builder setSourceInstance(java.lang.String value) {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** - * - * *
      * The resource name of the source Cloud Filestore instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -2344,16 +2116,16 @@ public Builder clearSourceInstance() {
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2361,21 +2133,19 @@ public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceFileShare_ = ""; /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2384,22 +2154,21 @@ public java.lang.String getSourceFileShare() { } } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2407,64 +2176,57 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { } } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare(java.lang.String value) { + public Builder setSourceFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** - * - * *
      * Name of the file share in the source Cloud Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2472,77 +2234,55 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { private int sourceInstanceTier_ = 0; /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2550,36 +2290,29 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1.Instance.Tier if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The service tier of the source Cloud Filestore instance that
      * this backup is created from.
      * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_; + private long downloadBytes_ ; /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2587,7 +2320,6 @@ public Builder clearSourceInstanceTier() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -2595,8 +2327,6 @@ public long getDownloadBytes() { return downloadBytes_; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2604,19 +2334,16 @@ public long getDownloadBytes() {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is
      * restored. This may be different than storage bytes, since sequential
@@ -2624,11 +2351,10 @@ public Builder setDownloadBytes(long value) {
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2636,58 +2362,39 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2703,17 +2410,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2724,23 +2428,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -2752,15 +2450,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2774,71 +2468,55 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2848,12 +2526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Backup) private static final com.google.cloud.filestore.v1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Backup(); } @@ -2862,27 +2540,27 @@ public static com.google.cloud.filestore.v1.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Backup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2897,4 +2575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java index 83d8c00f0352..32cee1f9ac05 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java @@ -1,152 +1,103 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1.Backup.State getState(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface BackupOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,51 +138,43 @@ public interface BackupOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share
    * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ long getStorageBytes(); /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -240,13 +182,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** - * - * *
    * The resource name of the source Cloud Filestore instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
@@ -254,72 +193,55 @@ java.lang.String getLabelsOrDefault(
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString getSourceInstanceBytes(); + com.google.protobuf.ByteString + getSourceInstanceBytes(); /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** - * - * *
    * Name of the file share in the source Cloud Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString getSourceFileShareBytes(); + com.google.protobuf.ByteString + getSourceFileShareBytes(); /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** - * - * *
    * Output only. The service tier of the source Cloud Filestore instance that
    * this backup is created from.
    * 
* - * - * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier(); /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is
    * restored. This may be different than storage bytes, since sequential
@@ -327,49 +249,34 @@ java.lang.String getLabelsOrDefault(
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ long getDownloadBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..082657124478 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java @@ -0,0 +1,460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/filestore/v1/cloud_filest" + + "ore_service.proto\022\031google.cloud.filestor" + + "e.v1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ",google/cloud/common/operation_metadata." + + "proto\032#google/longrunning/operations.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\036google/pr" + + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" + + ".cloud.filestore.v1.NetworkConfig.Addres" + + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" + + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" + + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" + + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" + + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" + + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" + + "export_options\030\007 \003(\0132+.google.cloud.file" + + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" + + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" + + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" + + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" + + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" + + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" + + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" + + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" + + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" + + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" + + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" + + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" + + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" + + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" + + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" + + "2*.google.cloud.filestore.v1.FileShareCo" + + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" + + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" + + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." + + "BoolValueB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"n\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" + + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" + + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" + + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" + + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" + + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" + + "t=projects/*/locations/*}/instances\332A\006pa" + + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" + + "store.v1.GetInstanceRequest\032#.google.clo" + + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" + + ".filestore.v1.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" + + "/{parent=projects/*/locations/*}/instanc" + + "es:\010instance\332A\033parent,instance,instance_" + + "id\312A1\n\010Instance\022%google.cloud.common.Ope" + + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" + + "le.cloud.filestore.v1.UpdateInstanceRequ" + + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" + + "\223\002B26/v1/{instance.name=projects/*/locat" + + "ions/*/instances/*}:\010instance\332A\024instance" + + ",update_mask\312A1\n\010Instance\022%google.cloud." + + "common.OperationMetadata\022\331\001\n\017RestoreInst" + + "ance\0221.google.cloud.filestore.v1.Restore" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" + + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" + + "tance\022%google.cloud.common.OperationMeta" + + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" + + "ilestore.v1.DeleteInstanceRequest\032\035.goog" + + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\312A>\n\025google.protobuf.Empty\022%google" + + ".cloud.common.OperationMetadata\022\252\001\n\013List" + + "Backups\022-.google.cloud.filestore.v1.List" + + "BackupsRequest\032..google.cloud.filestore." + + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" + + "ent=projects/*/locations/*}/backups\332A\006pa" + + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" + + "ore.v1.GetBackupRequest\032!.google.cloud.f" + + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" + + "ojects/*/locations/*/backups/*}\332A\004name\022\347" + + "\001\n\014CreateBackup\022..google.cloud.filestore" + + ".v1.CreateBackupRequest\032\035.google.longrun" + + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" + + "jects/*/locations/*}/backups:\006backup\332A\027p" + + "arent,backup,backup_id\312A/\n\006Backup\022%googl" + + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" + + "eteBackup\022..google.cloud.filestore.v1.De" + + "leteBackupRequest\032\035.google.longrunning.O" + + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" + + "ocations/*/backups/*}\332A\004name\312A>\n\025google." + + "protobuf.Empty\022%google.cloud.common.Oper" + + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." + + "cloud.filestore.v1.UpdateBackupRequest\032\035" + + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" + + "/v1/{backup.name=projects/*/locations/*/" + + "backups/*}:\006backup\332A\022backup,update_mask\312" + + "A/\n\006Backup\022%google.cloud.common.Operatio" + + "nMetadata\032G\312A\023file.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" + + "oudFilestoreServiceProtoP\001ZBgoogle.golan" + + "g.org/genproto/googleapis/cloud/filestor" + + "e/v1;filestore\252\002\031Google.Cloud.Filestore." + + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor, + new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", }); + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor, + new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor, + new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); + internal_static_google_cloud_filestore_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_descriptor, + new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", }); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { "Name", "FileShare", "SourceBackup", "Source", }); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", }); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "Backup", "BackupId", }); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java index fee9a917c654..f1976fcafc11 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateBackupRequest} */ -public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.CreateBackupRequest) CreateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupRequest.newBuilder() to construct. private CreateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBackupRequest() { parent_ = ""; backupId_ = ""; @@ -44,45 +26,39 @@ private CreateBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, - com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -144,15 +114,11 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override @@ -160,14 +126,11 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -177,8 +140,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -189,7 +150,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ @java.lang.Override @@ -198,15 +158,14 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -217,15 +176,16 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -234,7 +194,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +229,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBackup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); @@ -282,20 +243,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateBackupRequest other = - (com.google.cloud.filestore.v1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1.CreateBackupRequest other = (com.google.cloud.filestore.v1.CreateBackupRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } - if (!getBackupId().equals(other.getBackupId())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,135 +284,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.CreateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.CreateBackupRequest) com.google.cloud.filestore.v1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateBackupRequest.class, - com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.CreateBackupRequest.class, com.google.cloud.filestore.v1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -488,8 +445,7 @@ public com.google.cloud.filestore.v1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.CreateBackupRequest result = - new com.google.cloud.filestore.v1.CreateBackupRequest(this); + com.google.cloud.filestore.v1.CreateBackupRequest result = new com.google.cloud.filestore.v1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -505,39 +461,38 @@ public com.google.cloud.filestore.v1.CreateBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -584,31 +538,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,24 +573,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -647,25 +595,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -673,73 +618,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The backup's project and location, in the format
      * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,55 +679,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -811,16 +727,14 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -831,22 +745,17 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderFor return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -858,14 +767,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -879,61 +785,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -941,8 +834,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -953,13 +844,13 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ public java.lang.String getBackupId() { java.lang.Object ref = backupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -968,8 +859,6 @@ public java.lang.String getBackupId() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -980,14 +869,15 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -995,8 +885,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1007,22 +895,20 @@ public com.google.protobuf.ByteString getBackupIdBytes() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { + public Builder setBackupId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1033,18 +919,15 @@ public Builder setBackupId(java.lang.String value) {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1055,23 +938,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for backupId to set. * @return This builder for chaining. */ - public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1081,12 +964,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateBackupRequest) private static final com.google.cloud.filestore.v1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateBackupRequest(); } @@ -1095,27 +978,27 @@ public static com.google.cloud.filestore.v1.CreateBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1013,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java index 3b89fe5f9763..81f422896cba 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequestOrBuilder.java @@ -1,102 +1,64 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The backup's project and location, in the format
    * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -107,13 +69,10 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -124,8 +83,8 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java index ece90eecc8aa..da702ad0ee5d 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,45 +26,39 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +102,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -145,30 +116,30 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -179,16 +150,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1.Instance instance_; /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -196,34 +162,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -231,7 +186,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +197,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +224,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,19 +235,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.CreateInstanceRequest other = - (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1.CreateInstanceRequest other = (com.google.cloud.filestore.v1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -318,135 +276,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.CreateInstanceRequest) com.google.cloud.filestore.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.CreateInstanceRequest.class, com.google.cloud.filestore.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -485,8 +437,7 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.CreateInstanceRequest result = - new com.google.cloud.filestore.v1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1.CreateInstanceRequest result = new com.google.cloud.filestore.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -502,39 +453,38 @@ public com.google.cloud.filestore.v1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -542,8 +492,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -581,31 +530,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,24 +565,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -644,25 +587,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -670,73 +610,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The instance's project and location, in the format
      * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -744,21 +671,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -767,22 +692,21 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -790,64 +714,57 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The name of the instance to create.
      * The name must be unique for the specified project and location.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -855,58 +772,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { @@ -922,17 +820,14 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -943,23 +838,17 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builde return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -971,15 +860,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -993,71 +878,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1.Instance]
      * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.CreateInstanceRequest(); } @@ -1081,27 +950,27 @@ public static com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,4 +985,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java similarity index 57% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java index 0a7a213708cb..668c9748aa2c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequestOrBuilder.java @@ -1,126 +1,82 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The instance's project and location, in the format
    * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The name of the instance to create.
    * The name must be unique for the specified project and location.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1.Instance]
    * 
* - * - * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java index 1adc2582a75f..a0dc2883210b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteBackupRequest} */ -public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.DeleteBackupRequest) DeleteBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBackupRequest.newBuilder() to construct. private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteBackupRequest other = - (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1.DeleteBackupRequest other = (com.google.cloud.filestore.v1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.DeleteBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.DeleteBackupRequest) com.google.cloud.filestore.v1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteBackupRequest.class, com.google.cloud.filestore.v1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteBackupRequest result = - new com.google.cloud.filestore.v1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1.DeleteBackupRequest result = new com.google.cloud.filestore.v1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.DeleteBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteBackupRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1.DeleteBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..798cb71d5f5c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java index 83943c336a13..ad264cae8225 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.DeleteInstanceRequest other = - (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.DeleteInstanceRequest) com.google.cloud.filestore.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.DeleteInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.DeleteInstanceRequest result = - new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.DeleteInstanceRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..c727919af13d --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java index e169ef803f69..695769939843 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ -public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FileShareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.FileShareConfig) FileShareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -44,41 +26,37 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, - com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(8), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -94,35 +72,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 8: - return SOURCE_BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 8: return SOURCE_BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -131,29 +104,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -164,15 +137,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** - * - * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -182,8 +152,6 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 8; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -191,15 +159,12 @@ public long getCapacityGb() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -207,7 +172,6 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -218,7 +182,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 8) { source_ = s; @@ -227,8 +192,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -236,17 +199,18 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 8) { source_ = b; } @@ -259,8 +223,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 7; private java.util.List nfsExportOptions_; /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -273,8 +235,6 @@ public java.util.List getNfsExpo
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -283,13 +243,11 @@ public java.util.List getNfsExpo
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -302,8 +260,6 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -316,8 +272,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
     return nfsExportOptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -332,7 +286,6 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -344,7 +297,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -370,10 +324,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 8) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, source_);
@@ -386,21 +342,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.filestore.v1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1.FileShareConfig other =
-        (com.google.cloud.filestore.v1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1.FileShareConfig other = (com.google.cloud.filestore.v1.FileShareConfig) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getCapacityGb() != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getCapacityGb()
+        != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList()
+        .equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 8:
-        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup()
+            .equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -419,7 +378,8 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -437,136 +397,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.filestore.v1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.FileShareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.FileShareConfig) com.google.cloud.filestore.v1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.FileShareConfig.class, - com.google.cloud.filestore.v1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1.FileShareConfig.class, com.google.cloud.filestore.v1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.FileShareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -587,9 +541,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_FileShareConfig_descriptor; } @java.lang.Override @@ -608,8 +562,7 @@ public com.google.cloud.filestore.v1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1.FileShareConfig result = - new com.google.cloud.filestore.v1.FileShareConfig(this); + com.google.cloud.filestore.v1.FileShareConfig result = new com.google.cloud.filestore.v1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -634,39 +587,38 @@ public com.google.cloud.filestore.v1.FileShareConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig) other); + return mergeFrom((com.google.cloud.filestore.v1.FileShareConfig)other); } else { super.mergeFrom(other); return this; @@ -700,27 +652,24 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.FileShareConfig other) { nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsExportOptionsFieldBuilder() - : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: - { - sourceCase_ = 8; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case SOURCE_BACKUP: { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -748,45 +697,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 58: - { - com.google.cloud.filestore.v1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1.NfsExportOptions.parser(), extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 8; - source_ = s; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 58: { + com.google.cloud.filestore.v1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -796,12 +741,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -815,20 +760,18 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -837,21 +780,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -859,77 +801,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the file share (must be 16 characters or less).
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -937,46 +869,38 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * File share capacity in gigabytes (GB).
      * Cloud Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -984,7 +908,6 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -992,8 +915,6 @@ public boolean hasSourceBackup() { return sourceCase_ == 8; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1001,7 +922,6 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1011,7 +931,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 8) { source_ = s; @@ -1022,8 +943,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1031,18 +950,19 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 8) { source_ = b; } @@ -1052,8 +972,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1061,22 +979,20 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 8; + throw new NullPointerException(); + } + sourceCase_ = 8; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1084,7 +1000,6 @@ public Builder setSourceBackup(java.lang.String value) {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1096,8 +1011,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -1105,15 +1018,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 8; source_ = value; onChanged(); @@ -1121,26 +1034,18 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = - new java.util.ArrayList( - nfsExportOptions_); + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.NfsExportOptions, - com.google.cloud.filestore.v1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> - nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1148,8 +1053,7 @@ private void ensureNfsExportOptionsIsMutable() {
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsList() {
+    public java.util.List getNfsExportOptionsList() {
       if (nfsExportOptionsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nfsExportOptions_);
       } else {
@@ -1157,8 +1061,6 @@ private void ensureNfsExportOptionsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1174,8 +1076,6 @@ public int getNfsExportOptionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1191,8 +1091,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int in
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1215,8 +1113,6 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1236,8 +1132,6 @@ public Builder setNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1259,8 +1153,6 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1.NfsExportOption
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1283,8 +1175,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1304,8 +1194,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1325,8 +1213,6 @@ public Builder addNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1338,7 +1224,8 @@ public Builder addAllNfsExportOptions(
         java.lang.Iterable values) {
       if (nfsExportOptionsBuilder_ == null) {
         ensureNfsExportOptionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, nfsExportOptions_);
         onChanged();
       } else {
         nfsExportOptionsBuilder_.addAllMessages(values);
@@ -1346,8 +1233,6 @@ public Builder addAllNfsExportOptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1366,8 +1251,6 @@ public Builder clearNfsExportOptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1386,8 +1269,6 @@ public Builder removeNfsExportOptions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1400,8 +1281,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
       return getNfsExportOptionsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1412,14 +1291,11 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder getNfsExportOption
     public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
         int index) {
       if (nfsExportOptionsBuilder_ == null) {
-        return nfsExportOptions_.get(index);
-      } else {
+        return nfsExportOptions_.get(index);  } else {
         return nfsExportOptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1427,8 +1303,8 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsOrBuilderList() {
+    public java.util.List 
+         getNfsExportOptionsOrBuilderList() {
       if (nfsExportOptionsBuilder_ != null) {
         return nfsExportOptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1436,8 +1312,6 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
       }
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1446,12 +1320,10 @@ public com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptio
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder() {
-      return getNfsExportOptionsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1461,12 +1333,10 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      */
     public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOptionsBuilder(
         int index) {
-      return getNfsExportOptionsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
+      return getNfsExportOptionsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.NfsExportOptions.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
@@ -1474,22 +1344,16 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
      *
      * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
      */
-    public java.util.List
-        getNfsExportOptionsBuilderList() {
+    public java.util.List 
+         getNfsExportOptionsBuilderList() {
       return getNfsExportOptionsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NfsExportOptions,
-            com.google.cloud.filestore.v1.NfsExportOptions.Builder,
-            com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>
+        com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder> 
         getNfsExportOptionsFieldBuilder() {
       if (nfsExportOptionsBuilder_ == null) {
-        nfsExportOptionsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.NfsExportOptions,
-                com.google.cloud.filestore.v1.NfsExportOptions.Builder,
-                com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
+        nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.NfsExportOptions, com.google.cloud.filestore.v1.NfsExportOptions.Builder, com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder>(
                 nfsExportOptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1498,9 +1362,9 @@ public com.google.cloud.filestore.v1.NfsExportOptions.Builder addNfsExportOption
       }
       return nfsExportOptionsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1510,12 +1374,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.FileShareConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.FileShareConfig)
   private static final com.google.cloud.filestore.v1.FileShareConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.FileShareConfig();
   }
@@ -1524,27 +1388,27 @@ public static com.google.cloud.filestore.v1.FileShareConfig getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FileShareConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public FileShareConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1559,4 +1423,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.filestore.v1.FileShareConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
similarity index 78%
rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
index 51e23b214e51..c2fec583f7d7 100644
--- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
+++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java
@@ -1,70 +1,44 @@
-/*
- * Copyright 2020 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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
-public interface FileShareConfigOrBuilder
-    extends
+public interface FileShareConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.FileShareConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the file share (must be 16 characters or less).
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * File share capacity in gigabytes (GB).
    * Cloud Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -72,13 +46,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -86,13 +57,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
@@ -100,14 +68,12 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -115,10 +81,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List getNfsExportOptionsList();
+  java.util.List 
+      getNfsExportOptionsList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -128,8 +93,6 @@ public interface FileShareConfigOrBuilder
    */
   com.google.cloud.filestore.v1.NfsExportOptions getNfsExportOptions(int index);
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -139,8 +102,6 @@ public interface FileShareConfigOrBuilder
    */
   int getNfsExportOptionsCount();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -148,11 +109,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  java.util.List
+  java.util.List 
       getNfsExportOptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -160,7 +119,8 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
    */
-  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index);
+  com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(
+      int index);
 
   public com.google.cloud.filestore.v1.FileShareConfig.SourceCase getSourceCase();
 }
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
similarity index 64%
rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
index a51f09dafda4..70cb3a53eef5 100644
--- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
+++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java
@@ -1,86 +1,62 @@
-/*
- * Copyright 2020 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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/filestore/v1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1;
 
 /**
- *
- *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.GetBackupRequest} */ -public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.GetBackupRequest) GetBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBackupRequest.newBuilder() to construct. private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, - com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetBackupRequest other = - (com.google.cloud.filestore.v1.GetBackupRequest) obj; + com.google.cloud.filestore.v1.GetBackupRequest other = (com.google.cloud.filestore.v1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +160,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.GetBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.GetBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.GetBackupRequest) com.google.cloud.filestore.v1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetBackupRequest.class, - com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1.GetBackupRequest.class, com.google.cloud.filestore.v1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1.GetBackupRequest result = - new com.google.cloud.filestore.v1.GetBackupRequest(this); + com.google.cloud.filestore.v1.GetBackupRequest result = new com.google.cloud.filestore.v1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.GetBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -428,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -478,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -503,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -583,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetBackupRequest) private static final com.google.cloud.filestore.v1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetBackupRequest(); } @@ -597,27 +541,27 @@ public static com.google.cloud.filestore.v1.GetBackupRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..7cb12bf67914 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java index ce4e26572a51..f0d2b972e1df 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, - com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.GetInstanceRequest other = - (com.google.cloud.filestore.v1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1.GetInstanceRequest other = (com.google.cloud.filestore.v1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +160,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.GetInstanceRequest) com.google.cloud.filestore.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.GetInstanceRequest.class, - com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.GetInstanceRequest.class, com.google.cloud.filestore.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.GetInstanceRequest result = - new com.google.cloud.filestore.v1.GetInstanceRequest(this); + com.google.cloud.filestore.v1.GetInstanceRequest result = new com.google.cloud.filestore.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.GetInstanceRequest) private static final com.google.cloud.filestore.v1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.GetInstanceRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..73fb1e671d99 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java index 3afbaee882b6..61070e5c8ab2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * A Cloud Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; description_ = ""; @@ -50,54 +32,51 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, - com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); } /** - * - * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -106,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The instance is being created.
      * 
@@ -116,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The instance is available for use.
      * 
@@ -126,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -137,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     REPAIRING(3),
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -147,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -159,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR(6),
     /**
-     *
-     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -173,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * State not set.
      * 
@@ -183,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The instance is being created.
      * 
@@ -193,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The instance is available for use.
      * 
@@ -203,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -214,8 +173,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REPAIRING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -224,8 +181,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -236,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 6;
     /**
-     *
-     *
      * 
      * The instance is restoring a backup to an existing file share and may be
      * unusable during this time.
@@ -247,6 +200,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESTORING_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -271,57 +225,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return READY;
-        case 3:
-          return REPAIRING;
-        case 4:
-          return DELETING;
-        case 6:
-          return ERROR;
-        case 7:
-          return RESTORING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return READY;
+        case 3: return REPAIRING;
+        case 4: return DELETING;
+        case 6: return ERROR;
+        case 7: return RESTORING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.filestore.v1.Instance.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -339,18 +289,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -359,8 +306,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * STANDARD tier.
      * 
@@ -369,8 +314,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ STANDARD(1), /** - * - * *
      * PREMIUM tier.
      * 
@@ -379,8 +322,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ PREMIUM(2), /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -391,8 +332,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_HDD(3),
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -403,8 +342,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_SSD(4),
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -417,8 +354,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not set.
      * 
@@ -427,8 +362,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * STANDARD tier.
      * 
@@ -437,8 +370,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * PREMIUM tier.
      * 
@@ -447,8 +378,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREMIUM_VALUE = 2; /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -459,8 +388,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -471,8 +398,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -482,6 +407,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HIGH_SCALE_SSD_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -506,55 +432,52 @@ public static Tier valueOf(int value) {
      */
     public static Tier forNumber(int value) {
       switch (value) {
-        case 0:
-          return TIER_UNSPECIFIED;
-        case 1:
-          return STANDARD;
-        case 2:
-          return PREMIUM;
-        case 3:
-          return BASIC_HDD;
-        case 4:
-          return BASIC_SSD;
-        case 5:
-          return HIGH_SCALE_SSD;
-        default:
-          return null;
+        case 0: return TIER_UNSPECIFIED;
+        case 1: return STANDARD;
+        case 2: return PREMIUM;
+        case 3: return BASIC_HDD;
+        case 4: return BASIC_SSD;
+        case 5: return HIGH_SCALE_SSD;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Tier> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Tier findValueByNumber(int number) {
+              return Tier.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Tier findValueByNumber(int number) {
-            return Tier.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.filestore.v1.Instance.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Tier[] VALUES = values();
 
-    public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Tier valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -574,15 +497,12 @@ private Tier(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -591,30 +511,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -625,14 +545,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -641,29 +558,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -674,54 +591,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = - com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -730,29 +631,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -763,15 +664,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -779,15 +676,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -795,14 +688,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -812,57 +702,49 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ - @java.lang.Override - public com.google.cloud.filestore.v1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -871,30 +753,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -902,12 +782,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -915,16 +794,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -932,11 +811,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -946,8 +826,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -960,8 +838,6 @@ public java.util.List getFileShar
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -970,13 +846,11 @@ public java.util.List getFileShar
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -989,8 +863,6 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1003,8 +875,6 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
     return fileShares_.get(index);
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1013,15 +883,14 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index) {
     return fileShares_.get(index);
   }
 
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1034,8 +903,6 @@ public java.util.List getNetworksLi
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1044,13 +911,11 @@ public java.util.List getNetworksLi
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1063,8 +928,6 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1077,8 +940,6 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1087,22 +948,20 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ @java.lang.Override @@ -1111,30 +970,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1145,16 +1004,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1162,34 +1016,23 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { @@ -1197,7 +1040,6 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1209,7 +1051,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1228,8 +1071,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1258,38 +1105,44 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tier_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, tier_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, labels__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSatisfiesPzs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1299,29 +1152,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.Instance)) { return super.equals(obj); } com.google.cloud.filestore.v1.Instance other = (com.google.cloud.filestore.v1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (tier_ != other.tier_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getFileSharesList().equals(other.getFileSharesList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getFileSharesList() + .equals(other.getFileSharesList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1371,156 +1233,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Cloud Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.Instance) com.google.cloud.filestore.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.Instance.class, - com.google.cloud.filestore.v1.Instance.Builder.class); + com.google.cloud.filestore.v1.Instance.class, com.google.cloud.filestore.v1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1.Instance.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1567,9 +1425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_Instance_descriptor; } @java.lang.Override @@ -1588,8 +1446,7 @@ public com.google.cloud.filestore.v1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1.Instance buildPartial() { - com.google.cloud.filestore.v1.Instance result = - new com.google.cloud.filestore.v1.Instance(this); + com.google.cloud.filestore.v1.Instance result = new com.google.cloud.filestore.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1635,39 +1492,38 @@ public com.google.cloud.filestore.v1.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1.Instance) other); + return mergeFrom((com.google.cloud.filestore.v1.Instance)other); } else { super.mergeFrom(other); return this; @@ -1697,7 +1553,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -1716,10 +1573,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFileSharesFieldBuilder() - : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileSharesFieldBuilder() : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -1743,10 +1599,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1785,98 +1640,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - com.google.cloud.filestore.v1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1.FileShareConfig.parser(), extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - com.google.cloud.filestore.v1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1.NetworkConfig.parser(), extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 40: { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: { + com.google.cloud.filestore.v1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1.FileShareConfig.parser(), + extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + com.google.cloud.filestore.v1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1.NetworkConfig.parser(), + extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1886,26 +1733,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1914,22 +1758,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1937,64 +1780,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project}/locations/{location}/instances/{instance}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2002,20 +1838,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2024,21 +1858,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2046,61 +1879,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2108,73 +1934,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.State result = - com.google.cloud.filestore.v1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1.Instance.State result = com.google.cloud.filestore.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2182,26 +1986,21 @@ public Builder setState(com.google.cloud.filestore.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2209,20 +2008,18 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -2231,21 +2028,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -2253,61 +2049,54 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; @@ -2315,58 +2104,39 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2382,17 +2152,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2403,21 +2170,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2429,15 +2192,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2451,64 +2210,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2516,65 +2259,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.Instance.Tier result = - com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1.Instance.Tier result = com.google.cloud.filestore.v1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @param value The tier to set. * @return This builder for chaining. */ @@ -2582,44 +2311,42 @@ public Builder setTier(com.google.cloud.filestore.v1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2631,30 +2358,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2662,12 +2387,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2675,17 +2399,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2693,11 +2416,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2705,84 +2429,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List fileShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = - new java.util.ArrayList(fileShares_); + fileShares_ = new java.util.ArrayList(fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.FileShareConfig, - com.google.cloud.filestore.v1.FileShareConfig.Builder, - com.google.cloud.filestore.v1.FileShareConfigOrBuilder> - fileSharesBuilder_; + com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> fileSharesBuilder_; /** - * - * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2798,8 +2518,6 @@ public java.util.List getFileShar
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2815,8 +2533,6 @@ public int getFileSharesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2832,8 +2548,6 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2841,7 +2555,8 @@ public com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder setFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder setFileShares(
+        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2855,8 +2570,6 @@ public Builder setFileShares(int index, com.google.cloud.filestore.v1.FileShareC
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2876,8 +2589,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2899,8 +2610,6 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2908,7 +2617,8 @@ public Builder addFileShares(com.google.cloud.filestore.v1.FileShareConfig value
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public Builder addFileShares(int index, com.google.cloud.filestore.v1.FileShareConfig value) {
+    public Builder addFileShares(
+        int index, com.google.cloud.filestore.v1.FileShareConfig value) {
       if (fileSharesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2922,8 +2632,6 @@ public Builder addFileShares(int index, com.google.cloud.filestore.v1.FileShareC
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2943,8 +2651,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2964,8 +2670,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2977,7 +2681,8 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -2985,8 +2690,6 @@ public Builder addAllFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3005,8 +2708,6 @@ public Builder clearFileShares() {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3025,8 +2726,6 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3034,12 +2733,11 @@ public Builder removeFileShares(int index) {
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(int index) {
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilder(
+        int index) {
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3050,14 +2748,11 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder getFileSharesBuilde
     public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);
-      } else {
+        return fileShares_.get(index);  } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3065,8 +2760,8 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesOrBuilderList() {
+    public java.util.List 
+         getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3074,8 +2769,6 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3084,12 +2777,10 @@ public com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBui
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3097,13 +2788,12 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(int index) {
-      return getFileSharesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilder(
+        int index) {
+      return getFileSharesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3111,47 +2801,38 @@ public com.google.cloud.filestore.v1.FileShareConfig.Builder addFileSharesBuilde
      *
      * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesBuilderList() {
+    public java.util.List 
+         getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.FileShareConfig,
-            com.google.cloud.filestore.v1.FileShareConfig.Builder,
-            com.google.cloud.filestore.v1.FileShareConfigOrBuilder>
+        com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder> 
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.FileShareConfig,
-                com.google.cloud.filestore.v1.FileShareConfig.Builder,
-                com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
-                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.FileShareConfig, com.google.cloud.filestore.v1.FileShareConfig.Builder, com.google.cloud.filestore.v1.FileShareConfigOrBuilder>(
+                fileShares_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
         networks_ = new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NetworkConfig,
-            com.google.cloud.filestore.v1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
-        networksBuilder_;
+        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> networksBuilder_;
 
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3167,8 +2848,6 @@ public java.util.List getNetworksLi
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3184,8 +2863,6 @@ public int getNetworksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3201,8 +2878,6 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3210,7 +2885,8 @@ public com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder setNetworks(
+        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3224,8 +2900,6 @@ public Builder setNetworks(int index, com.google.cloud.filestore.v1.NetworkConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3245,8 +2919,6 @@ public Builder setNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3268,8 +2940,6 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3277,7 +2947,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1.NetworkConfig value) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(int index, com.google.cloud.filestore.v1.NetworkConfig value) {
+    public Builder addNetworks(
+        int index, com.google.cloud.filestore.v1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3291,8 +2962,6 @@ public Builder addNetworks(int index, com.google.cloud.filestore.v1.NetworkConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3312,8 +2981,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3333,8 +3000,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3346,7 +3011,8 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -3354,8 +3020,6 @@ public Builder addAllNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3374,8 +3038,6 @@ public Builder clearNetworks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3394,8 +3056,6 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3403,12 +3063,11 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(int index) {
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(
+        int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3416,16 +3075,14 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder getNetworksBuilder(in
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+        int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);
-      } else {
+        return networks_.get(index);  } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3433,8 +3090,8 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksOrBuilderList() {
+    public java.util.List 
+         getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -3442,8 +3099,6 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3452,12 +3107,10 @@ public com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3465,13 +3118,12 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder()
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(int index) {
-      return getNetworksFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(
+        int index) {
+      return getNetworksFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3479,23 +3131,20 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(in
      *
      * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksBuilderList() {
+    public java.util.List 
+         getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.NetworkConfig,
-            com.google.cloud.filestore.v1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1.NetworkConfigOrBuilder>
+        com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder> 
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.NetworkConfig,
-                com.google.cloud.filestore.v1.NetworkConfig.Builder,
-                com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
-                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.NetworkConfig, com.google.cloud.filestore.v1.NetworkConfig.Builder, com.google.cloud.filestore.v1.NetworkConfigOrBuilder>(
+                networks_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -3503,21 +3152,19 @@ public com.google.cloud.filestore.v1.NetworkConfig.Builder addNetworksBuilder(in
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3526,22 +3173,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3549,64 +3195,57 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -3614,58 +3253,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -3681,17 +3301,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -3702,23 +3319,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -3730,15 +3341,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -3752,71 +3359,55 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3826,12 +3417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.Instance) private static final com.google.cloud.filestore.v1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.Instance(); } @@ -3840,27 +3431,27 @@ public static com.google.cloud.filestore.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3875,4 +3466,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java index 682790f0963c..4c3e1d687d05 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java @@ -1,200 +1,140 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project}/locations/{location}/instances/{instance}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1.Instance.Tier tier = 8; - * * @return The tier. */ com.google.cloud.filestore.v1.Instance.Tier getTier(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -203,31 +143,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -236,24 +175,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -261,10 +198,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List getFileSharesList();
+  java.util.List 
+      getFileSharesList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -274,8 +210,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1.FileShareConfig getFileShares(int index);
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -285,8 +219,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getFileSharesCount();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -294,11 +226,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  java.util.List
+  java.util.List 
       getFileSharesOrBuilderList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -306,11 +236,10 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
+  com.google.cloud.filestore.v1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -318,10 +247,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List getNetworksList();
+  java.util.List 
+      getNetworksList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -331,8 +259,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1.NetworkConfig getNetworks(int index);
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -342,8 +268,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getNetworksCount();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -351,11 +275,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  java.util.List
+  java.util.List 
       getNetworksOrBuilderList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -363,73 +285,55 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
+  com.google.cloud.filestore.v1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java index e6f3f2a52b56..099ba28c64da 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListBackupsRequest} */ -public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListBackupsRequest) ListBackupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsRequest.newBuilder() to construct. private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,35 +28,32 @@ private ListBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, - com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -84,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -96,15 +72,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -114,18 +89,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -136,14 +110,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -154,15 +125,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,30 +139,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -205,14 +173,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -221,29 +186,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -254,14 +219,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -270,29 +232,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -301,7 +263,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +304,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -361,19 +324,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsRequest other = - (com.google.cloud.filestore.v1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListBackupsRequest other = (com.google.cloud.filestore.v1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -400,136 +367,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListBackupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListBackupsRequest) com.google.cloud.filestore.v1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsRequest.class, - com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1.ListBackupsRequest.class, com.google.cloud.filestore.v1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -568,8 +529,7 @@ public com.google.cloud.filestore.v1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1.ListBackupsRequest result = - new com.google.cloud.filestore.v1.ListBackupsRequest(this); + com.google.cloud.filestore.v1.ListBackupsRequest result = new com.google.cloud.filestore.v1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +543,38 @@ public com.google.cloud.filestore.v1.ListBackupsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -670,43 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,8 +671,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -730,16 +680,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -748,8 +696,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -759,17 +705,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -777,8 +722,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -788,25 +731,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -816,21 +755,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve backup
      * information, in the format
@@ -840,34 +774,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -875,36 +804,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -912,21 +835,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -935,22 +856,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -958,64 +878,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1023,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1045,21 +956,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1067,61 +977,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1129,20 +1032,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1151,21 +1052,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1173,68 +1073,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsRequest) private static final com.google.cloud.filestore.v1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsRequest(); } @@ -1258,27 +1151,27 @@ public static com.google.cloud.filestore.v1.ListBackupsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,4 +1186,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java index 06e25d2cc28a..72f91001877b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -35,16 +17,11 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve backup
    * information, in the format
@@ -54,101 +31,81 @@ public interface ListBackupsRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java index f9f286a172d3..2903d1d3f3a9 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListBackupsResponse} */ -public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListBackupsResponse) ListBackupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsResponse.newBuilder() to construct. private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsResponse() { backups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, - com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -90,8 +69,6 @@ public java.util.List getBackupsList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -104,13 +81,11 @@ public java.util.List getBackupsList() {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -127,8 +102,6 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -145,8 +118,6 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -159,22 +130,20 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
+      int index) {
     return backups_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -183,30 +152,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -217,42 +186,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -260,23 +221,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } @@ -308,7 +267,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, backups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -329,17 +289,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListBackupsResponse other = - (com.google.cloud.filestore.v1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1.ListBackupsResponse other = (com.google.cloud.filestore.v1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,135 +329,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListBackupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListBackupsResponse) com.google.cloud.filestore.v1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListBackupsResponse.class, - com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1.ListBackupsResponse.class, com.google.cloud.filestore.v1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListBackupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -535,8 +491,7 @@ public com.google.cloud.filestore.v1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1.ListBackupsResponse result = - new com.google.cloud.filestore.v1.ListBackupsResponse(this); + com.google.cloud.filestore.v1.ListBackupsResponse result = new com.google.cloud.filestore.v1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -561,39 +516,38 @@ public com.google.cloud.filestore.v1.ListBackupsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse) other); + return mergeFrom((com.google.cloud.filestore.v1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -601,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -621,10 +574,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.ListBackupsResponse other backupsBuilder_ = null; backups_ = other.backups_; bitField0_ = (bitField0_ & ~0x00000001); - backupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBackupsFieldBuilder() - : null; + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBackupsFieldBuilder() : null; } else { backupsBuilder_.addAllMessages(other.backups_); } @@ -670,39 +622,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1.Backup.parser(), extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1.Backup.parser(), + extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +661,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List backups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backups_ = new java.util.ArrayList(backups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupsBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupsBuilder_; /** - * - * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -753,8 +695,6 @@ public java.util.List getBackupsList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -774,8 +714,6 @@ public int getBackupsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -795,8 +733,6 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -808,7 +744,8 @@ public com.google.cloud.filestore.v1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder setBackups(int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder setBackups(
+        int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -822,8 +759,6 @@ public Builder setBackups(int index, com.google.cloud.filestore.v1.Backup value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -847,8 +782,6 @@ public Builder setBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -874,8 +807,6 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -887,7 +818,8 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value) {
+    public Builder addBackups(
+        int index, com.google.cloud.filestore.v1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -901,8 +833,6 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -914,7 +844,8 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1.Backup value)
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public Builder addBackups(com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
+    public Builder addBackups(
+        com.google.cloud.filestore.v1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -925,8 +856,6 @@ public Builder addBackups(com.google.cloud.filestore.v1.Backup.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -950,8 +879,6 @@ public Builder addBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -967,7 +894,8 @@ public Builder addAllBackups(
         java.lang.Iterable values) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, backups_);
         onChanged();
       } else {
         backupsBuilder_.addAllMessages(values);
@@ -975,8 +903,6 @@ public Builder addAllBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -999,8 +925,6 @@ public Builder clearBackups() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1023,8 +947,6 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1036,12 +958,11 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(int index) {
+    public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(
+        int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1053,16 +974,14 @@ public com.google.cloud.filestore.v1.Backup.Builder getBackupsBuilder(int index)
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
+        int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);
-      } else {
+        return backups_.get(index);  } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1074,8 +993,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsOrBuilderList() {
+    public java.util.List 
+         getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1083,8 +1002,6 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1097,12 +1014,10 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int ind
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1114,13 +1029,12 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(int index) {
-      return getBackupsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(
+        int index) {
+      return getBackupsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1132,22 +1046,20 @@ public com.google.cloud.filestore.v1.Backup.Builder addBackupsBuilder(int index)
      *
      * repeated .google.cloud.filestore.v1.Backup backups = 1;
      */
-    public java.util.List getBackupsBuilderList() {
+    public java.util.List 
+         getBackupsBuilderList() {
       return getBackupsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.Backup,
-            com.google.cloud.filestore.v1.Backup.Builder,
-            com.google.cloud.filestore.v1.BackupOrBuilder>
+        com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> 
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.Backup,
-                com.google.cloud.filestore.v1.Backup.Builder,
-                com.google.cloud.filestore.v1.BackupOrBuilder>(
-                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>(
+                backups_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1155,21 +1067,19 @@ public java.util.List getBackupsBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1178,22 +1088,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1201,115 +1110,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1317,90 +1209,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1410,30 +1292,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1443,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListBackupsResponse) private static final com.google.cloud.filestore.v1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListBackupsResponse(); } @@ -1457,27 +1337,27 @@ public static com.google.cloud.filestore.v1.ListBackupsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1492,4 +1372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java index 20008825cbba..f36e32588b7e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -37,10 +19,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List getBackupsList();
+  java.util.List 
+      getBackupsList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -54,8 +35,6 @@ public interface ListBackupsResponseOrBuilder
    */
   com.google.cloud.filestore.v1.Backup getBackups(int index);
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,8 +48,6 @@ public interface ListBackupsResponseOrBuilder
    */
   int getBackupsCount();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -82,10 +59,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  java.util.List getBackupsOrBuilderList();
+  java.util.List 
+      getBackupsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -97,83 +73,69 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(int index);
+  com.google.cloud.filestore.v1.BackupOrBuilder getBackupsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java index 5d12002417cd..9585af3d442e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,35 +28,32 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, - com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -95,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -112,18 +87,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -134,14 +108,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -152,15 +123,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,30 +137,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,14 +171,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -219,29 +184,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -252,14 +217,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -268,29 +230,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -299,7 +261,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -340,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -359,19 +322,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesRequest other = - (com.google.cloud.filestore.v1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1.ListInstancesRequest other = (com.google.cloud.filestore.v1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,135 +366,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesRequest) com.google.cloud.filestore.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesRequest.class, - com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1.ListInstancesRequest.class, com.google.cloud.filestore.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -566,8 +527,7 @@ public com.google.cloud.filestore.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1.ListInstancesRequest result = - new com.google.cloud.filestore.v1.ListInstancesRequest(this); + com.google.cloud.filestore.v1.ListInstancesRequest result = new com.google.cloud.filestore.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -581,39 +541,38 @@ public com.google.cloud.filestore.v1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,43 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -717,8 +669,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -727,16 +677,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -745,8 +693,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -755,17 +701,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -773,8 +718,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -783,25 +726,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -810,21 +749,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve instance
      * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -833,34 +767,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -868,36 +797,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -905,21 +828,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -928,22 +849,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -951,64 +871,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1016,20 +929,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1038,21 +949,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1060,61 +970,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1122,20 +1025,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1144,21 +1045,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1166,68 +1066,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1237,12 +1130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesRequest) private static final com.google.cloud.filestore.v1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesRequest(); } @@ -1251,27 +1144,27 @@ public static com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,4 +1179,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java index b58fed45ebb2..3db0ab0718c8 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -34,16 +16,11 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve instance
    * information, in the format `projects/{project_id}/locations/{location}`. In
@@ -52,101 +29,81 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java index 6630f341b4a9..bc871f7dd1ec 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, - com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -89,8 +68,6 @@ public java.util.List getInstancesList()
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,13 +79,11 @@ public java.util.List getInstancesList()
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -124,8 +99,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -141,8 +114,6 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -154,22 +125,20 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -178,30 +147,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -212,42 +181,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -255,23 +216,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -303,7 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -324,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1.ListInstancesResponse other = - (com.google.cloud.filestore.v1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1.ListInstancesResponse other = (com.google.cloud.filestore.v1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,135 +324,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.ListInstancesResponse) com.google.cloud.filestore.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.ListInstancesResponse.class, - com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1.ListInstancesResponse.class, com.google.cloud.filestore.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1.ListInstancesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -509,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -530,8 +486,7 @@ public com.google.cloud.filestore.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1.ListInstancesResponse result = - new com.google.cloud.filestore.v1.ListInstancesResponse(this); + com.google.cloud.filestore.v1.ListInstancesResponse result = new com.google.cloud.filestore.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -556,39 +511,38 @@ public com.google.cloud.filestore.v1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.filestore.v1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -596,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -616,10 +569,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.ListInstancesResponse oth instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -665,39 +617,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1.Instance.parser(), extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1.Instance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,28 +656,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -747,8 +689,6 @@ public java.util.List getInstancesList()
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -767,8 +707,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -787,8 +725,6 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -799,7 +735,8 @@ public com.google.cloud.filestore.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -813,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.filestore.v1.Instance va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -837,8 +772,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -863,8 +796,6 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -875,7 +806,8 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.filestore.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -889,8 +821,6 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -901,7 +831,8 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1.Instance va
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public Builder addInstances(com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(
+        com.google.cloud.filestore.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -912,8 +843,6 @@ public Builder addInstances(com.google.cloud.filestore.v1.Instance.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -936,8 +865,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -952,7 +879,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -960,8 +888,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -983,8 +909,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1006,8 +930,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1018,12 +940,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1034,16 +955,14 @@ public com.google.cloud.filestore.v1.Instance.Builder getInstancesBuilder(int in
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1054,8 +973,8 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1063,8 +982,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1076,12 +993,10 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1092,13 +1007,12 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1109,23 +1023,20 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int in
      *
      * repeated .google.cloud.filestore.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1.Instance,
-            com.google.cloud.filestore.v1.Instance.Builder,
-            com.google.cloud.filestore.v1.InstanceOrBuilder>
+        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1.Instance,
-                com.google.cloud.filestore.v1.Instance.Builder,
-                com.google.cloud.filestore.v1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1133,21 +1044,19 @@ public com.google.cloud.filestore.v1.Instance.Builder addInstancesBuilder(int in
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1156,22 +1065,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1179,115 +1087,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1295,90 +1186,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1388,30 +1269,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1421,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.ListInstancesResponse) private static final com.google.cloud.filestore.v1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.ListInstancesResponse(); } @@ -1435,27 +1314,27 @@ public static com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1349,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java index cea59d133b7e..6c3648858539 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -36,10 +18,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -52,8 +33,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.filestore.v1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -66,8 +45,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -78,11 +55,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -93,83 +68,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.filestore.v1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java index cdf8e24568e4..507da6f90f16 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NetworkConfig) NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); @@ -46,43 +28,39 @@ private NetworkConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, - com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } /** - * - * *
    * Internet protocol versions supported by Cloud Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NetworkConfig.AddressMode} */ - public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Internet protocol not set.
      * 
@@ -91,8 +69,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ ADDRESS_MODE_UNSPECIFIED(0), /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -104,8 +80,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Internet protocol not set.
      * 
@@ -114,8 +88,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -124,6 +96,7 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_IPV4_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,47 +121,48 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: - return ADDRESS_MODE_UNSPECIFIED; - case 1: - return MODE_IPV4; - default: - return null; + case 0: return ADDRESS_MODE_UNSPECIFIED; + case 1: return MODE_IPV4; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AddressMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AddressMode findValueByNumber(int number) { + return AddressMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -208,8 +182,6 @@ private AddressMode(int value) { public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -217,7 +189,6 @@ private AddressMode(int value) {
    * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -226,15 +197,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -242,15 +212,16 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -261,48 +232,36 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> - modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode> modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert( - java.lang.Integer from) { + public com.google.cloud.filestore.v1.NetworkConfig.AddressMode convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = - com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); - return result == null - ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1.NetworkConfig.AddressMode.valueOf(from); + return result == null ? com.google.cloud.filestore.v1.NetworkConfig.AddressMode.UNRECOGNIZED : result; } }; /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ @java.lang.Override public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ @java.lang.Override @@ -310,15 +269,12 @@ public int getModesCount() { return modes_.size(); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -327,31 +283,26 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return modes_; } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -359,14 +310,11 @@ public java.util.List getModesValueList() { public int getModesValue(int index) { return modes_.get(index); } - private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -378,7 +326,6 @@ public int getModesValue(int index) {
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ @java.lang.Override @@ -387,15 +334,14 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -407,15 +353,16 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -426,8 +373,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -436,15 +381,13 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -453,15 +396,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -470,7 +410,6 @@ public int getIpAddressesCount() {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -478,8 +417,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -488,16 +425,15 @@ public java.lang.String getIpAddresses(int index) {
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,7 +445,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -542,14 +479,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -570,18 +507,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NetworkConfig other = - (com.google.cloud.filestore.v1.NetworkConfig) obj; + com.google.cloud.filestore.v1.NetworkConfig other = (com.google.cloud.filestore.v1.NetworkConfig) obj; - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -610,136 +549,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NetworkConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NetworkConfig) com.google.cloud.filestore.v1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NetworkConfig.class, - com.google.cloud.filestore.v1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1.NetworkConfig.class, com.google.cloud.filestore.v1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1.NetworkConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -755,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NetworkConfig_descriptor; } @java.lang.Override @@ -776,8 +709,7 @@ public com.google.cloud.filestore.v1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1.NetworkConfig result = - new com.google.cloud.filestore.v1.NetworkConfig(this); + com.google.cloud.filestore.v1.NetworkConfig result = new com.google.cloud.filestore.v1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -799,39 +731,38 @@ public com.google.cloud.filestore.v1.NetworkConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig) other); + return mergeFrom((com.google.cloud.filestore.v1.NetworkConfig)other); } else { super.mergeFrom(other); return this; @@ -894,51 +825,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: - { + case 10: { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -948,13 +873,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object network_ = ""; /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -962,13 +884,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -977,8 +899,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -986,14 +906,15 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1001,8 +922,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1010,22 +929,20 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1033,18 +950,15 @@ public Builder setNetwork(java.lang.String value) {
      * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1052,23 +966,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = java.util.Collections.emptyList(); - + private java.util.List modes_ = + java.util.Collections.emptyList(); private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -1076,47 +990,37 @@ private void ensureModesIsMutable() { } } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1124,15 +1028,12 @@ public com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int inde return modes_converter_.convert(modes_.get(index)); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1148,15 +1049,12 @@ public Builder setModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param value The modes to add. * @return This builder for chaining. */ @@ -1170,21 +1068,17 @@ public Builder addModes(com.google.cloud.filestore.v1.NetworkConfig.AddressMode return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1193,15 +1087,12 @@ public Builder addAllModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return This builder for chaining. */ public Builder clearModes() { @@ -1211,30 +1102,25 @@ public Builder clearModes() { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1242,35 +1128,30 @@ public int getModesValue(int index) { return modes_.get(index); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue(int index, int value) { + public Builder setModesValue( + int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1281,19 +1162,17 @@ public Builder addModesValue(int value) { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue(java.lang.Iterable values) { + public Builder addAllModesValue( + java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1304,8 +1183,6 @@ public Builder addAllModesValue(java.lang.Iterable values) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1317,13 +1194,13 @@ public Builder addAllModesValue(java.lang.Iterable values) {
      * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1332,8 +1209,6 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1345,14 +1220,15 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1360,8 +1236,6 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1373,22 +1247,20 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
      * 
* * string reserved_ip_range = 4; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1400,18 +1272,15 @@ public Builder setReservedIpRange(java.lang.String value) {
      * 
* * string reserved_ip_range = 4; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
      * A /29 CIDR block in one of the
      * [internal IP address
@@ -1423,33 +1292,29 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 4; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1458,15 +1323,13 @@ private void ensureIpAddressesIsMutable() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1475,15 +1338,12 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1492,7 +1352,6 @@ public int getIpAddressesCount() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1500,8 +1359,6 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1510,16 +1367,14 @@ public java.lang.String getIpAddresses(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1528,23 +1383,21 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1553,22 +1406,20 @@ public Builder setIpAddresses(int index, java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1577,19 +1428,18 @@ public Builder addIpAddresses(java.lang.String value) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1598,7 +1448,6 @@ public Builder addAllIpAddresses(java.lang.Iterable values) {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1608,8 +1457,6 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * Output only. IPv4 addresses in the format
      * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -1618,23 +1465,23 @@ public Builder clearIpAddresses() {
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1644,12 +1491,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NetworkConfig) private static final com.google.cloud.filestore.v1.NetworkConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NetworkConfig(); } @@ -1658,27 +1505,27 @@ public static com.google.cloud.filestore.v1.NetworkConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1693,4 +1540,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java similarity index 83% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java index 8ecfd24a7c45..c1fe39704bdc 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NetworkConfigOrBuilder - extends +public interface NetworkConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -33,13 +15,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -47,82 +26,66 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ java.util.List getModesList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ int getModesCount(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1.NetworkConfig.AddressMode getModes(int index); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List getModesValueList(); + java.util.List + getModesValueList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -134,13 +97,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
    * A /29 CIDR block in one of the
    * [internal IP address
@@ -152,14 +112,12 @@ public interface NetworkConfigOrBuilder
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -168,13 +126,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -183,13 +139,10 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -198,14 +151,11 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * Output only. IPv4 addresses in the format
    * IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
@@ -214,9 +164,9 @@ public interface NetworkConfigOrBuilder
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java similarity index 76% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java index 9fcfffed832c..13f5af73ffd9 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptions.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ -public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsExportOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.NfsExportOptions) NfsExportOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -45,43 +27,39 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, - com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } /** - * - * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.AccessMode} */ - public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * AccessMode not set.
      * 
@@ -90,8 +68,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_MODE_UNSPECIFIED(0), /** - * - * *
      * The client can only read the file share.
      * 
@@ -100,8 +76,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ READ_ONLY(1), /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -113,8 +87,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * AccessMode not set.
      * 
@@ -123,8 +95,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The client can only read the file share.
      * 
@@ -133,8 +103,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_ONLY_VALUE = 1; /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -143,6 +111,7 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,49 +136,49 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: - return ACCESS_MODE_UNSPECIFIED; - case 1: - return READ_ONLY; - case 2: - return READ_WRITE; - default: - return null; + case 0: return ACCESS_MODE_UNSPECIFIED; + case 1: return READ_ONLY; + case 2: return READ_WRITE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AccessMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessMode findValueByNumber(int number) { + return AccessMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -227,18 +196,15 @@ private AccessMode(int value) { } /** - * - * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1.NfsExportOptions.SquashMode} */ - public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * SquashMode not set.
      * 
@@ -247,8 +213,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ SQUASH_MODE_UNSPECIFIED(0), /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -257,8 +221,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ NO_ROOT_SQUASH(1), /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -270,8 +232,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * SquashMode not set.
      * 
@@ -280,8 +240,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -290,8 +248,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -300,6 +256,7 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROOT_SQUASH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -324,49 +281,49 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: - return SQUASH_MODE_UNSPECIFIED; - case 1: - return NO_ROOT_SQUASH; - case 2: - return ROOT_SQUASH; - default: - return null; + case 0: return SQUASH_MODE_UNSPECIFIED; + case 1: return NO_ROOT_SQUASH; + case 2: return ROOT_SQUASH; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SquashMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SquashMode findValueByNumber(int number) { + return SquashMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -386,8 +343,6 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -400,15 +355,13 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_; } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -421,15 +374,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -442,7 +392,6 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -450,8 +399,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -464,19 +411,17 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -484,16 +429,12 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -501,24 +442,17 @@ public int getAccessModeValue() {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -526,16 +460,12 @@ public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode()
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -543,24 +473,17 @@ public int getSquashModeValue() {
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -569,7 +492,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode()
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -580,8 +502,6 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -590,7 +510,6 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -599,7 +518,6 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,18 +529,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { + if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { + if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -648,21 +563,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); + if (accessMode_ != com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); + if (squashMode_ != com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -672,19 +587,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1.NfsExportOptions other = - (com.google.cloud.filestore.v1.NfsExportOptions) obj; + com.google.cloud.filestore.v1.NfsExportOptions other = (com.google.cloud.filestore.v1.NfsExportOptions) obj; - if (!getIpRangesList().equals(other.getIpRangesList())) return false; + if (!getIpRangesList() + .equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() != other.getAnonUid()) return false; - if (getAnonGid() != other.getAnonGid()) return false; + if (getAnonUid() + != other.getAnonUid()) return false; + if (getAnonGid() + != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -705,144 +622,140 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.NfsExportOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.NfsExportOptions) com.google.cloud.filestore.v1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.NfsExportOptions.class, - com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1.NfsExportOptions.class, com.google.cloud.filestore.v1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1.NfsExportOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -860,9 +773,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_NfsExportOptions_descriptor; } @java.lang.Override @@ -881,8 +794,7 @@ public com.google.cloud.filestore.v1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1.NfsExportOptions result = - new com.google.cloud.filestore.v1.NfsExportOptions(this); + com.google.cloud.filestore.v1.NfsExportOptions result = new com.google.cloud.filestore.v1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -901,39 +813,38 @@ public com.google.cloud.filestore.v1.NfsExportOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions) other); + return mergeFrom((com.google.cloud.filestore.v1.NfsExportOptions)other); } else { super.mergeFrom(other); return this; @@ -990,44 +901,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: - { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: - { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1037,21 +942,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1064,15 +964,13 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1085,15 +983,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
      * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1106,7 +1001,6 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1114,8 +1008,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1128,16 +1020,14 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1150,23 +1040,21 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges(int index, java.lang.String value) { + public Builder setIpRanges( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1179,22 +1067,20 @@ public Builder setIpRanges(int index, java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges(java.lang.String value) { + public Builder addIpRanges( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1207,19 +1093,18 @@ public Builder addIpRanges(java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges(java.lang.Iterable values) { + public Builder addAllIpRanges( + java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipRanges_); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1232,7 +1117,6 @@ public Builder addAllIpRanges(java.lang.Iterable values) {
      * 
* * repeated string ip_ranges = 1; - * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1242,8 +1126,6 @@ public Builder clearIpRanges() { return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1256,15 +1138,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; - * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1273,8 +1155,6 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { private int accessMode_ = 0; /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1282,16 +1162,12 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1299,19 +1175,16 @@ public int getAccessModeValue() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1319,21 +1192,15 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1341,7 +1208,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The accessMode to set. * @return This builder for chaining. */ @@ -1349,14 +1215,12 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1364,11 +1228,10 @@ public Builder setAccessMode(com.google.cloud.filestore.v1.NfsExportOptions.Acce
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1376,8 +1239,6 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1385,16 +1246,12 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1402,19 +1259,16 @@ public int getSquashModeValue() {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1422,21 +1276,15 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1444,7 +1292,6 @@ public com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode()
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The squashMode to set. * @return This builder for chaining. */ @@ -1452,14 +1299,12 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1467,20 +1312,17 @@ public Builder setSquashMode(com.google.cloud.filestore.v1.NfsExportOptions.Squa
      * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_; + private long anonUid_ ; /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1489,7 +1331,6 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -1497,8 +1338,6 @@ public long getAnonUid() { return anonUid_; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1507,19 +1346,16 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; - * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1528,20 +1364,17 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; - * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_; + private long anonGid_ ; /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1550,7 +1383,6 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -1558,8 +1390,6 @@ public long getAnonGid() { return anonGid_; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1568,19 +1398,16 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; - * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1589,18 +1416,17 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; - * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1610,12 +1436,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.NfsExportOptions) private static final com.google.cloud.filestore.v1.NfsExportOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.NfsExportOptions(); } @@ -1624,27 +1450,27 @@ public static com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1659,4 +1485,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java similarity index 84% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java index c5af4aaa3f2c..797d53a2f722 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NfsExportOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface NfsExportOptionsOrBuilder - extends +public interface NfsExportOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -38,13 +20,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - java.util.List getIpRangesList(); + java.util.List + getIpRangesList(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -57,13 +37,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ int getIpRangesCount(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -76,14 +53,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -96,15 +70,13 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString getIpRangesBytes(int index); + com.google.protobuf.ByteString + getIpRangesBytes(int index); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -112,13 +84,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -126,14 +95,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ com.google.cloud.filestore.v1.NfsExportOptions.AccessMode getAccessMode(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -141,13 +107,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -155,14 +118,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ com.google.cloud.filestore.v1.NfsExportOptions.SquashMode getSquashMode(); /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -171,14 +131,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ long getAnonUid(); /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -187,7 +144,6 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ long getAnonGid(); diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java index 3810c9714ee5..d7d00df822df 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * RestoreInstanceRequest restores an existing instances's file share from a
  * backup.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
  */
-public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreInstanceRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
     RestoreInstanceRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreInstanceRequest.newBuilder() to construct.
   private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreInstanceRequest() {
     name_ = "";
     fileShare_ = "";
@@ -45,41 +27,37 @@ private RestoreInstanceRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreInstanceRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-        .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+    return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
-            com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+            com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
   }
 
   private int sourceCase_ = 0;
   private java.lang.Object source_;
-
   public enum SourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SOURCE_BACKUP(3),
     SOURCE_NOT_SET(0);
     private final int value;
-
     private SourceCase(int value) {
       this.value = value;
     }
@@ -95,38 +73,31 @@ public static SourceCase valueOf(int value) {
 
     public static SourceCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return SOURCE_BACKUP;
-        case 0:
-          return SOURCE_NOT_SET;
-        default:
-          return null;
+        case 3: return SOURCE_BACKUP;
+        case 0: return SOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SourceCase getSourceCase() {
-    return SourceCase.forNumber(sourceCase_);
+  public SourceCase
+  getSourceCase() {
+    return SourceCase.forNumber(
+        sourceCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +106,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,15 +140,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ @java.lang.Override @@ -188,30 +154,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -221,30 +187,24 @@ public com.google.protobuf.ByteString getFileShareBytes() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 3; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -255,7 +215,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -264,25 +225,24 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -293,7 +253,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -341,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.RestoreInstanceRequest other = - (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1.RestoreInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFileShare().equals(other.getFileShare())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFileShare() + .equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getSourceBackup() + .equals(other.getSourceBackup())) return false; break; case 0: default: @@ -388,103 +350,96 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RestoreInstanceRequest restores an existing instances's file share from a
    * backup.
@@ -492,32 +447,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.filestore.v1.RestoreInstanceRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.RestoreInstanceRequest)
       com.google.cloud.filestore.v1.RestoreInstanceRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.filestore.v1.RestoreInstanceRequest.class,
-              com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
+              com.google.cloud.filestore.v1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1.RestoreInstanceRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.filestore.v1.RestoreInstanceRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -531,9 +487,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto
-          .internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_RestoreInstanceRequest_descriptor;
     }
 
     @java.lang.Override
@@ -552,8 +508,7 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest build() {
 
     @java.lang.Override
     public com.google.cloud.filestore.v1.RestoreInstanceRequest buildPartial() {
-      com.google.cloud.filestore.v1.RestoreInstanceRequest result =
-          new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
+      com.google.cloud.filestore.v1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1.RestoreInstanceRequest(this);
       result.name_ = name_;
       result.fileShare_ = fileShare_;
       if (sourceCase_ == 3) {
@@ -568,39 +523,38 @@ public com.google.cloud.filestore.v1.RestoreInstanceRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.filestore.v1.RestoreInstanceRequest) {
-        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest) other);
+        return mergeFrom((com.google.cloud.filestore.v1.RestoreInstanceRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -608,8 +562,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest other) {
-      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.filestore.v1.RestoreInstanceRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -619,17 +572,15 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.RestoreInstanceRequest ot
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case SOURCE_BACKUP:
-          {
-            sourceCase_ = 3;
-            source_ = other.source_;
-            onChanged();
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case SOURCE_BACKUP: {
+          sourceCase_ = 3;
+          source_ = other.source_;
+          onChanged();
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -657,32 +608,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                fileShare_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              fileShare_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                sourceCase_ = 3;
-                source_ = s;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              sourceCase_ = 3;
+              source_ = s;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -692,12 +639,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -707,25 +654,22 @@ public Builder clearSource() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -734,24 +678,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -759,70 +700,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -830,21 +758,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object fileShare_ = ""; /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -853,22 +779,21 @@ public java.lang.String getFileShare() { } } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -876,79 +801,69 @@ public com.google.protobuf.ByteString getFileShareBytes() { } } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare(java.lang.String value) { + public Builder setFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** - * - * *
      * Required. Name of the file share in the Cloud Filestore instance that the
      * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -956,15 +871,12 @@ public boolean hasSourceBackup() { return sourceCase_ == 3; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -974,7 +886,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -985,26 +898,25 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -1014,37 +926,32 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1056,31 +963,29 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1.RestoreInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.RestoreInstanceRequest(); } @@ -1104,27 +1009,27 @@ public static com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java index 41594ba1859a..0034c29a647a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java @@ -1,125 +1,87 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface RestoreInstanceRequestOrBuilder - extends +public interface RestoreInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ java.lang.String getFileShare(); /** - * - * *
    * Required. Name of the file share in the Cloud Filestore instance that the
    * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString getFileShareBytes(); + com.google.protobuf.ByteString + getFileShareBytes(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); public com.google.cloud.filestore.v1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java index 1dce664d061d..ea2ea9bf295f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java @@ -1,82 +1,60 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateBackupRequest} */ -public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.UpdateBackupRequest) UpdateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBackupRequest.newBuilder() to construct. private UpdateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBackupRequest() {} + private UpdateBackupRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -84,15 +62,11 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override @@ -100,14 +74,11 @@ public com.google.cloud.filestore.v1.Backup getBackup() { return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { @@ -117,16 +88,12 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -134,16 +101,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -151,15 +114,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -167,7 +127,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (backup_ != null) { output.writeMessage(1, getBackup()); } @@ -196,10 +156,12 @@ public int getSerializedSize() { size = 0; if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBackup()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,21 +171,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateBackupRequest other = - (com.google.cloud.filestore.v1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1.UpdateBackupRequest other = (com.google.cloud.filestore.v1.UpdateBackupRequest) obj; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,135 +213,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.UpdateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.UpdateBackupRequest) com.google.cloud.filestore.v1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateBackupRequest.class, com.google.cloud.filestore.v1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -419,8 +376,7 @@ public com.google.cloud.filestore.v1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateBackupRequest result = - new com.google.cloud.filestore.v1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1.UpdateBackupRequest result = new com.google.cloud.filestore.v1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -439,39 +395,38 @@ public com.google.cloud.filestore.v1.UpdateBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -513,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,55 +499,39 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { @@ -608,16 +547,14 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -628,22 +565,17 @@ public Builder setBackup(com.google.cloud.filestore.v1.Backup.Builder builderFor return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -655,14 +587,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -676,61 +605,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1.Backup]
      * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder> + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Backup, - com.google.cloud.filestore.v1.Backup.Builder, - com.google.cloud.filestore.v1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Backup, com.google.cloud.filestore.v1.Backup.Builder, com.google.cloud.filestore.v1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -738,58 +654,42 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -805,17 +705,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -826,21 +724,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -852,15 +747,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -874,71 +766,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in
      * this field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -948,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1.UpdateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateBackupRequest(); } @@ -962,27 +841,27 @@ public static com.google.cloud.filestore.v1.UpdateBackupRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java index 5922964a95cb..ce5d045f5520 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java @@ -1,104 +1,66 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateBackupRequestOrBuilder - extends +public interface UpdateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1.Backup]
    * 
* - * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in
    * this field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java index 80c2b6aa263f..439693cfb075 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequest.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; /** - * - * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -80,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -100,7 +77,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ @java.lang.Override @@ -108,8 +84,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -129,14 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int INSTANCE_FIELD_NUMBER = 2;
   private com.google.cloud.filestore.v1.Instance instance_;
   /**
-   *
-   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ @java.lang.Override @@ -144,25 +115,18 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
@@ -175,7 +139,6 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -204,10 +168,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,21 +183,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1.UpdateInstanceRequest other = - (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,135 +225,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.cloud.filestore.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -427,8 +388,7 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1.UpdateInstanceRequest result = - new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -447,39 +407,38 @@ public com.google.cloud.filestore.v1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -521,25 +479,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,13 +511,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -569,15 +523,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -588,21 +539,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -628,8 +574,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -641,7 +585,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -652,8 +597,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -669,7 +612,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -681,8 +624,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -706,8 +647,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -720,13 +659,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -742,14 +679,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -762,17 +696,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -780,47 +711,34 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.filestore.v1.Instance instance_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.filestore.v1.Instance,
-            com.google.cloud.filestore.v1.Instance.Builder,
-            com.google.cloud.filestore.v1.InstanceOrBuilder>
-        instanceBuilder_;
+        com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> instanceBuilder_;
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ public com.google.cloud.filestore.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -841,15 +759,14 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
* * .google.cloud.filestore.v1.Instance instance = 2; */ - public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.filestore.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -860,8 +777,6 @@ public Builder setInstance(com.google.cloud.filestore.v1.Instance.Builder builde return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -872,9 +787,7 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -886,8 +799,6 @@ public Builder mergeInstance(com.google.cloud.filestore.v1.Instance value) { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -906,8 +817,6 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -915,13 +824,11 @@ public Builder clearInstance() { * .google.cloud.filestore.v1.Instance instance = 2; */ public com.google.cloud.filestore.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -932,14 +839,11 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * 
@@ -947,24 +851,21 @@ public com.google.cloud.filestore.v1.InstanceOrBuilder getInstanceOrBuilder() { * .google.cloud.filestore.v1.Instance instance = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder> + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1.Instance, - com.google.cloud.filestore.v1.Instance.Builder, - com.google.cloud.filestore.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1.Instance, com.google.cloud.filestore.v1.Instance.Builder, com.google.cloud.filestore.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.UpdateInstanceRequest(); } @@ -988,27 +889,27 @@ public static com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java index d9879b0ce326..60ce5e62f599 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -36,13 +18,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -53,13 +32,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -74,32 +50,24 @@ public interface UpdateInstanceRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
* * .google.cloud.filestore.v1.Instance instance = 2; - * * @return The instance. */ com.google.cloud.filestore.v1.Instance getInstance(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * 
diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto b/owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto rename to owl-bot-staging/java-filestore/v1/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java similarity index 53% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java index 37770e789315..3b997293688e 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java @@ -42,19 +42,19 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Configures and manages Cloud Filestore resources. + * Service Description: Configures and manages Filestore resources. * - *

Cloud Filestore Manager v1beta1. + *

Filestore Manager v1beta1. * - *

The `file.googleapis.com` service implements the Cloud Filestore API and defines the following - * model for managing resources: + *

The `file.googleapis.com` service implements the Filestore API and defines the following model + * for managing resources: * *

    *
  • 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, Cloud Filestore instances are resources of the form: + *
  • As such, Filestore instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` backups are * resources of the form: `/projects/{project_id}/locations/{location_id}/backup/{backup_id}` *
@@ -554,8 +554,8 @@ public final UnaryCallable getInstanceCallable() { * }
* * @param parent Required. The instance's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP - * zones, for example **us-west1-b**. + * `projects/{project_id}/locations/{location}`. In Filestore, locations map to GCP zones, for + * example **us-west1-b**. * @param instance Required. An [instance resource][google.cloud.filestore.v1beta1.Instance] * @param instanceId Required. The ID of the instance to create. The ID must be unique within the * specified project and location. @@ -599,8 +599,8 @@ public final OperationFuture createInstanceAsync( * }
* * @param parent Required. The instance's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP - * zones, for example **us-west1-b**. + * `projects/{project_id}/locations/{location}`. In Filestore, locations map to GCP zones, for + * example **us-west1-b**. * @param instance Required. An [instance resource][google.cloud.filestore.v1beta1.Instance] * @param instanceId Required. The ID of the instance to create. The ID must be unique within the * specified project and location. @@ -952,6 +952,98 @@ public final UnaryCallable restoreInstanceCal return stub.restoreInstanceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revert an existing instance's file system to a specified snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   RevertInstanceRequest request =
+   *       RevertInstanceRequest.newBuilder()
+   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setTargetSnapshotId("targetSnapshotId-2099459472")
+   *           .build();
+   *   Instance response = cloudFilestoreManagerClient.revertInstanceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture revertInstanceAsync( + RevertInstanceRequest request) { + return revertInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revert an existing instance's file system to a specified snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   RevertInstanceRequest request =
+   *       RevertInstanceRequest.newBuilder()
+   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setTargetSnapshotId("targetSnapshotId-2099459472")
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.revertInstanceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Instance response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + revertInstanceOperationCallable() { + return stub.revertInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revert an existing instance's file system to a specified snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   RevertInstanceRequest request =
+   *       RevertInstanceRequest.newBuilder()
+   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setTargetSnapshotId("targetSnapshotId-2099459472")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.revertInstanceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable revertInstanceCallable() { + return stub.revertInstanceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an instance. @@ -1026,6 +1118,7 @@ public final OperationFuture deleteInstanceAsync(Strin * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setForce(true) * .build(); * cloudFilestoreManagerClient.deleteInstanceAsync(request).get(); * } @@ -1056,6 +1149,7 @@ public final OperationFuture deleteInstanceAsync( * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setForce(true) * .build(); * OperationFuture future = * cloudFilestoreManagerClient.deleteInstanceOperationCallable().futureCall(request); @@ -1086,6 +1180,7 @@ public final OperationFuture deleteInstanceAsync( * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setForce(true) * .build(); * ApiFuture future = * cloudFilestoreManagerClient.deleteInstanceCallable().futureCall(request); @@ -1100,7 +1195,7 @@ public final UnaryCallable deleteInstanceCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups in a project for either a specified location or for all locations. + * Lists all snapshots in a project for either a specified location or for all locations. * *

Sample code: * @@ -1112,30 +1207,28 @@ public final UnaryCallable deleteInstanceCalla * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) { + * InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

* - * @param parent Required. The project and location for which to retrieve backup information, in - * the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, backup - * locations map to GCP regions, for example **us-west1**. To retrieve backup - * information for all locations, use "-" for the `{location}` value. + * @param parent Required. The instance for which to retrieve snapshot information, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { - ListBackupsRequest request = - ListBackupsRequest.newBuilder() + public final ListSnapshotsPagedResponse listSnapshots(InstanceName parent) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listBackups(request); + return listSnapshots(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups in a project for either a specified location or for all locations. + * Lists all snapshots in a project for either a specified location or for all locations. * *

Sample code: * @@ -1147,27 +1240,25 @@ public final ListBackupsPagedResponse listBackups(LocationName parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) { + * String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

* - * @param parent Required. The project and location for which to retrieve backup information, in - * the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, backup - * locations map to GCP regions, for example **us-west1**. To retrieve backup - * information for all locations, use "-" for the `{location}` value. + * @param parent Required. The instance for which to retrieve snapshot information, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(String parent) { - ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); - return listBackups(request); + public final ListSnapshotsPagedResponse listSnapshots(String parent) { + ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder().setParent(parent).build(); + return listSnapshots(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups in a project for either a specified location or for all locations. + * Lists all snapshots in a project for either a specified location or for all locations. * *

Sample code: * @@ -1179,15 +1270,15 @@ public final ListBackupsPagedResponse listBackups(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSnapshotsRequest request = + * ListSnapshotsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * for (Backup element : cloudFilestoreManagerClient.listBackups(request).iterateAll()) { + * for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1196,13 +1287,13 @@ public final ListBackupsPagedResponse listBackups(String parent) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { - return listBackupsPagedCallable().call(request); + public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest request) { + return listSnapshotsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups in a project for either a specified location or for all locations. + * Lists all snapshots in a project for either a specified location or for all locations. * *

Sample code: * @@ -1214,31 +1305,31 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSnapshotsRequest request = + * ListSnapshotsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * cloudFilestoreManagerClient.listBackupsPagedCallable().futureCall(request); + * ApiFuture future = + * cloudFilestoreManagerClient.listSnapshotsPagedCallable().futureCall(request); * // Do something. - * for (Backup element : future.get().iterateAll()) { + * for (Snapshot element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

*/ - public final UnaryCallable - listBackupsPagedCallable() { - return stub.listBackupsPagedCallable(); + public final UnaryCallable + listSnapshotsPagedCallable() { + return stub.listSnapshotsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all backups in a project for either a specified location or for all locations. + * Lists all snapshots in a project for either a specified location or for all locations. * *

Sample code: * @@ -1250,18 +1341,18 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * ListSnapshotsRequest request = + * ListSnapshotsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListBackupsResponse response = - * cloudFilestoreManagerClient.listBackupsCallable().call(request); - * for (Backup element : response.getBackupsList()) { + * ListSnapshotsResponse response = + * cloudFilestoreManagerClient.listSnapshotsCallable().call(request); + * for (Snapshot element : response.getSnapshotsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1274,13 +1365,13 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { * } * }

*/ - public final UnaryCallable listBackupsCallable() { - return stub.listBackupsCallable(); + public final UnaryCallable listSnapshotsCallable() { + return stub.listSnapshotsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Gets the details of a specific snapshot. * *

Sample code: * @@ -1292,24 +1383,24 @@ public final UnaryCallable listBackupsC * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - * Backup response = cloudFilestoreManagerClient.getBackup(name); + * SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + * Snapshot response = cloudFilestoreManagerClient.getSnapshot(name); * } * }

* - * @param name Required. The backup resource name, in the format - * `projects/{project_id}/locations/{location}/backups/{backup_id}`. + * @param name Required. The snapshot resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { - GetBackupRequest request = - GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBackup(request); + public final Snapshot getSnapshot(SnapshotName name) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSnapshot(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Gets the details of a specific snapshot. * *

Sample code: * @@ -1321,23 +1412,24 @@ public final Backup getBackup(BackupName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); - * Backup response = cloudFilestoreManagerClient.getBackup(name); + * String name = + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString(); + * Snapshot response = cloudFilestoreManagerClient.getSnapshot(name); * } * }

* - * @param name Required. The backup resource name, in the format - * `projects/{project_id}/locations/{location}/backups/{backup_id}`. + * @param name Required. The snapshot resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(String name) { - GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); - return getBackup(request); + public final Snapshot getSnapshot(String name) { + GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name).build(); + return getSnapshot(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Gets the details of a specific snapshot. * *

Sample code: * @@ -1349,24 +1441,25 @@ public final Backup getBackup(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + * GetSnapshotRequest request = + * GetSnapshotRequest.newBuilder() + * .setName( + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) * .build(); - * Backup response = cloudFilestoreManagerClient.getBackup(request); + * Snapshot response = cloudFilestoreManagerClient.getSnapshot(request); * } * }

* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(GetBackupRequest request) { - return getBackupCallable().call(request); + public final Snapshot getSnapshot(GetSnapshotRequest request) { + return getSnapshotCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a specific backup. + * Gets the details of a specific snapshot. * *

Sample code: * @@ -1378,24 +1471,25 @@ public final Backup getBackup(GetBackupRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + * GetSnapshotRequest request = + * GetSnapshotRequest.newBuilder() + * .setName( + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) * .build(); - * ApiFuture future = - * cloudFilestoreManagerClient.getBackupCallable().futureCall(request); + * ApiFuture future = + * cloudFilestoreManagerClient.getSnapshotCallable().futureCall(request); * // Do something. - * Backup response = future.get(); + * Snapshot response = future.get(); * } * }

*/ - public final UnaryCallable getBackupCallable() { - return stub.getBackupCallable(); + public final UnaryCallable getSnapshotCallable() { + return stub.getSnapshotCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a backup. + * Creates a snapshot. * *

Sample code: * @@ -1407,38 +1501,37 @@ public final UnaryCallable getBackupCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Backup backup = Backup.newBuilder().build(); - * String backupId = "backupId2121930365"; - * Backup response = - * cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get(); + * InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * Snapshot snapshot = Snapshot.newBuilder().build(); + * String snapshotId = "snapshotId-1113817601"; + * Snapshot response = + * cloudFilestoreManagerClient.createSnapshotAsync(parent, snapshot, snapshotId).get(); * } * }

* - * @param parent Required. The backup's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, backup locations map to - * GCP regions, for example **us-west1**. - * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] - * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified project and location. + * @param parent Required. The Filestore Instance to create the snapshots of, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}` + * @param snapshot Required. A snapshot resource + * @param snapshotId Required. The ID to use for the snapshot. The ID must be unique within the + * specified instance. *

This value must start with a lowercase letter followed by up to 62 lowercase letters, * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { - CreateBackupRequest request = - CreateBackupRequest.newBuilder() + public final OperationFuture createSnapshotAsync( + InstanceName parent, Snapshot snapshot, String snapshotId) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setBackup(backup) - .setBackupId(backupId) + .setSnapshot(snapshot) + .setSnapshotId(snapshotId) .build(); - return createBackupAsync(request); + return createSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a backup. + * Creates a snapshot. * *

Sample code: * @@ -1450,38 +1543,37 @@ public final OperationFuture createBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Backup backup = Backup.newBuilder().build(); - * String backupId = "backupId2121930365"; - * Backup response = - * cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get(); + * String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * Snapshot snapshot = Snapshot.newBuilder().build(); + * String snapshotId = "snapshotId-1113817601"; + * Snapshot response = + * cloudFilestoreManagerClient.createSnapshotAsync(parent, snapshot, snapshotId).get(); * } * }

* - * @param parent Required. The backup's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, backup locations map to - * GCP regions, for example **us-west1**. - * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] - * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified project and location. + * @param parent Required. The Filestore Instance to create the snapshots of, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}` + * @param snapshot Required. A snapshot resource + * @param snapshotId Required. The ID to use for the snapshot. The ID must be unique within the + * specified instance. *

This value must start with a lowercase letter followed by up to 62 lowercase letters, * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createBackupAsync( - String parent, Backup backup, String backupId) { - CreateBackupRequest request = - CreateBackupRequest.newBuilder() + public final OperationFuture createSnapshotAsync( + String parent, Snapshot snapshot, String snapshotId) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() .setParent(parent) - .setBackup(backup) - .setBackupId(backupId) + .setSnapshot(snapshot) + .setSnapshotId(snapshotId) .build(); - return createBackupAsync(request); + return createSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a backup. + * Creates a snapshot. * *

Sample code: * @@ -1493,27 +1585,27 @@ public final OperationFuture createBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * CreateBackupRequest request = - * CreateBackupRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBackup(Backup.newBuilder().build()) - * .setBackupId("backupId2121930365") + * CreateSnapshotRequest request = + * CreateSnapshotRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setSnapshotId("snapshotId-1113817601") + * .setSnapshot(Snapshot.newBuilder().build()) * .build(); - * Backup response = cloudFilestoreManagerClient.createBackupAsync(request).get(); + * Snapshot response = cloudFilestoreManagerClient.createSnapshotAsync(request).get(); * } * }

* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createBackupAsync( - CreateBackupRequest request) { - return createBackupOperationCallable().futureCall(request); + public final OperationFuture createSnapshotAsync( + CreateSnapshotRequest request) { + return createSnapshotOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a backup. + * Creates a snapshot. * *

Sample code: * @@ -1525,27 +1617,27 @@ public final OperationFuture createBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * CreateBackupRequest request = - * CreateBackupRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBackup(Backup.newBuilder().build()) - * .setBackupId("backupId2121930365") + * CreateSnapshotRequest request = + * CreateSnapshotRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setSnapshotId("snapshotId-1113817601") + * .setSnapshot(Snapshot.newBuilder().build()) * .build(); - * OperationFuture future = - * cloudFilestoreManagerClient.createBackupOperationCallable().futureCall(request); + * OperationFuture future = + * cloudFilestoreManagerClient.createSnapshotOperationCallable().futureCall(request); * // Do something. - * Backup response = future.get(); + * Snapshot response = future.get(); * } * }

*/ - public final OperationCallable - createBackupOperationCallable() { - return stub.createBackupOperationCallable(); + public final OperationCallable + createSnapshotOperationCallable() { + return stub.createSnapshotOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a backup. + * Creates a snapshot. * *

Sample code: * @@ -1557,26 +1649,26 @@ public final OperationFuture createBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * CreateBackupRequest request = - * CreateBackupRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setBackup(Backup.newBuilder().build()) - * .setBackupId("backupId2121930365") + * CreateSnapshotRequest request = + * CreateSnapshotRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setSnapshotId("snapshotId-1113817601") + * .setSnapshot(Snapshot.newBuilder().build()) * .build(); * ApiFuture future = - * cloudFilestoreManagerClient.createBackupCallable().futureCall(request); + * cloudFilestoreManagerClient.createSnapshotCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

*/ - public final UnaryCallable createBackupCallable() { - return stub.createBackupCallable(); + public final UnaryCallable createSnapshotCallable() { + return stub.createSnapshotCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a backup. + * Deletes a snapshot. * *

Sample code: * @@ -1588,24 +1680,24 @@ public final UnaryCallable createBackupCallable( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - * cloudFilestoreManagerClient.deleteBackupAsync(name).get(); + * SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + * cloudFilestoreManagerClient.deleteSnapshotAsync(name).get(); * } * }

* - * @param name Required. The backup resource name, in the format - * `projects/{project_id}/locations/{location}/backups/{backup_id}` + * @param name Required. The snapshot resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { - DeleteBackupRequest request = - DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteBackupAsync(request); + public final OperationFuture deleteSnapshotAsync(SnapshotName name) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a backup. + * Deletes a snapshot. * *

Sample code: * @@ -1617,23 +1709,24 @@ public final OperationFuture deleteBackupAsync(BackupN * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); - * cloudFilestoreManagerClient.deleteBackupAsync(name).get(); + * String name = + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString(); + * cloudFilestoreManagerClient.deleteSnapshotAsync(name).get(); * } * }

* - * @param name Required. The backup resource name, in the format - * `projects/{project_id}/locations/{location}/backups/{backup_id}` + * @param name Required. The snapshot resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(String name) { - DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); - return deleteBackupAsync(request); + public final OperationFuture deleteSnapshotAsync(String name) { + DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setName(name).build(); + return deleteSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a backup. + * Deletes a snapshot. * *

Sample code: * @@ -1645,25 +1738,26 @@ public final OperationFuture deleteBackupAsync(String * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + * DeleteSnapshotRequest request = + * DeleteSnapshotRequest.newBuilder() + * .setName( + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) * .build(); - * cloudFilestoreManagerClient.deleteBackupAsync(request).get(); + * cloudFilestoreManagerClient.deleteSnapshotAsync(request).get(); * } * }

* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync( - DeleteBackupRequest request) { - return deleteBackupOperationCallable().futureCall(request); + public final OperationFuture deleteSnapshotAsync( + DeleteSnapshotRequest request) { + return deleteSnapshotOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a backup. + * Deletes a snapshot. * *

Sample code: * @@ -1675,25 +1769,26 @@ public final OperationFuture deleteBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + * DeleteSnapshotRequest request = + * DeleteSnapshotRequest.newBuilder() + * .setName( + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) * .build(); * OperationFuture future = - * cloudFilestoreManagerClient.deleteBackupOperationCallable().futureCall(request); + * cloudFilestoreManagerClient.deleteSnapshotOperationCallable().futureCall(request); * // Do something. * future.get(); * } * }

*/ - public final OperationCallable - deleteBackupOperationCallable() { - return stub.deleteBackupOperationCallable(); + public final OperationCallable + deleteSnapshotOperationCallable() { + return stub.deleteSnapshotOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a backup. + * Deletes a snapshot. * *

Sample code: * @@ -1705,24 +1800,25 @@ public final OperationFuture deleteBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * DeleteBackupRequest request = - * DeleteBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + * DeleteSnapshotRequest request = + * DeleteSnapshotRequest.newBuilder() + * .setName( + * SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) * .build(); * ApiFuture future = - * cloudFilestoreManagerClient.deleteBackupCallable().futureCall(request); + * cloudFilestoreManagerClient.deleteSnapshotCallable().futureCall(request); * // Do something. * future.get(); * } * }

*/ - public final UnaryCallable deleteBackupCallable() { - return stub.deleteBackupCallable(); + public final UnaryCallable deleteSnapshotCallable() { + return stub.deleteSnapshotCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the settings of a specific backup. + * Updates the settings of a specific snapshot. * *

Sample code: * @@ -1734,13 +1830,760 @@ public final UnaryCallable deleteBackupCallable( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * Backup backup = Backup.newBuilder().build(); + * Snapshot snapshot = Snapshot.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * Backup response = cloudFilestoreManagerClient.updateBackupAsync(backup, updateMask).get(); + * Snapshot response = + * cloudFilestoreManagerClient.updateSnapshotAsync(snapshot, updateMask).get(); * } * }

* - * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] + * @param snapshot Required. A snapshot resource + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSnapshotAsync( + Snapshot snapshot, FieldMask updateMask) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder().setSnapshot(snapshot).setUpdateMask(updateMask).build(); + return updateSnapshotAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateSnapshotRequest request =
+   *       UpdateSnapshotRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSnapshot(Snapshot.newBuilder().build())
+   *           .build();
+   *   Snapshot response = cloudFilestoreManagerClient.updateSnapshotAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSnapshotAsync( + UpdateSnapshotRequest request) { + return updateSnapshotOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateSnapshotRequest request =
+   *       UpdateSnapshotRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSnapshot(Snapshot.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.updateSnapshotOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Snapshot response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateSnapshotOperationCallable() { + return stub.updateSnapshotOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateSnapshotRequest request =
+   *       UpdateSnapshotRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setSnapshot(Snapshot.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.updateSnapshotCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSnapshotCallable() { + return stub.updateSnapshotCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups in a project for either a specified location or for all locations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve backup information, in + * the format `projects/{project_id}/locations/{location}`. In Filestore, backup locations map + * to GCP regions, for example **us-west1**. To retrieve backup information + * for all locations, use "-" for the `{location}` value. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(LocationName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups in a project for either a specified location or for all locations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve backup information, in + * the format `projects/{project_id}/locations/{location}`. In Filestore, backup locations map + * to GCP regions, for example **us-west1**. To retrieve backup information + * for all locations, use "-" for the `{location}` value. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups in a project for either a specified location or for all locations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Backup element : cloudFilestoreManagerClient.listBackups(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups in a project for either a specified location or for all locations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.listBackupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Backup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups in a project for either a specified location or for all locations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListBackupsResponse response =
+   *         cloudFilestoreManagerClient.listBackupsCallable().call(request);
+   *     for (Backup element : response.getBackupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   Backup response = cloudFilestoreManagerClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The backup resource name, in the format + * `projects/{project_id}/locations/{location}/backups/{backup_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   Backup response = cloudFilestoreManagerClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The backup resource name, in the format + * `projects/{project_id}/locations/{location}/backups/{backup_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   Backup response = cloudFilestoreManagerClient.getBackup(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.getBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The backup's project and location, in the format + * `projects/{project_id}/locations/{location}`. In Filestore, backup locations map to GCP + * regions, for example **us-west1**. + * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] + * @param backupId Required. The ID to use for the backup. The ID must be unique within the + * specified project and location. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + LocationName parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The backup's project and location, in the format + * `projects/{project_id}/locations/{location}`. In Filestore, backup locations map to GCP + * regions, for example **us-west1**. + * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] + * @param backupId Required. The ID to use for the backup. The ID must be unique within the + * specified project and location. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + String parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   Backup response = cloudFilestoreManagerClient.createBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + CreateBackupRequest request) { + return createBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.createBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBackupOperationCallable() { + return stub.createBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.createBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBackupCallable() { + return stub.createBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   cloudFilestoreManagerClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The backup resource name, in the format + * `projects/{project_id}/locations/{location}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   cloudFilestoreManagerClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The backup resource name, in the format + * `projects/{project_id}/locations/{location}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   cloudFilestoreManagerClient.deleteBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync( + DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.deleteBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.deleteBackupCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   Backup backup = Backup.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Backup response = cloudFilestoreManagerClient.updateBackupAsync(backup, updateMask).get();
+   * }
+   * }
+ * + * @param backup Required. A [backup resource][google.cloud.filestore.v1beta1.Backup] * @param updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1754,7 +2597,532 @@ public final OperationFuture updateBackupAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the settings of a specific backup. + * Updates the settings of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Backup response = cloudFilestoreManagerClient.updateBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBackupAsync( + UpdateBackupRequest request) { + return updateBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.updateBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBackupOperationCallable() { + return stub.updateBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setBackup(Backup.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.updateBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBackupCallable() { + return stub.updateBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all shares for a specified instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   for (Share element : cloudFilestoreManagerClient.listShares(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The instance for which to retrieve share information, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharesPagedResponse listShares(InstanceName parent) { + ListSharesRequest request = + ListSharesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listShares(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all shares for a specified instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   for (Share element : cloudFilestoreManagerClient.listShares(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The instance for which to retrieve share information, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharesPagedResponse listShares(String parent) { + ListSharesRequest request = ListSharesRequest.newBuilder().setParent(parent).build(); + return listShares(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all shares for a specified instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListSharesRequest request =
+   *       ListSharesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Share element : cloudFilestoreManagerClient.listShares(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSharesPagedResponse listShares(ListSharesRequest request) { + return listSharesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all shares for a specified instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListSharesRequest request =
+   *       ListSharesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.listSharesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Share element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSharesPagedCallable() { + return stub.listSharesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all shares for a specified instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ListSharesRequest request =
+   *       ListSharesRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListSharesResponse response =
+   *         cloudFilestoreManagerClient.listSharesCallable().call(request);
+   *     for (Share element : response.getSharesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSharesCallable() { + return stub.listSharesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]");
+   *   Share response = cloudFilestoreManagerClient.getShare(name);
+   * }
+   * }
+ * + * @param name Required. The share resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Share getShare(ShareName name) { + GetShareRequest request = + GetShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getShare(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString();
+   *   Share response = cloudFilestoreManagerClient.getShare(name);
+   * }
+   * }
+ * + * @param name Required. The share resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Share getShare(String name) { + GetShareRequest request = GetShareRequest.newBuilder().setName(name).build(); + return getShare(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   GetShareRequest request =
+   *       GetShareRequest.newBuilder()
+   *           .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString())
+   *           .build();
+   *   Share response = cloudFilestoreManagerClient.getShare(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Share getShare(GetShareRequest request) { + return getShareCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   GetShareRequest request =
+   *       GetShareRequest.newBuilder()
+   *           .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString())
+   *           .build();
+   *   ApiFuture future = cloudFilestoreManagerClient.getShareCallable().futureCall(request);
+   *   // Do something.
+   *   Share response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getShareCallable() { + return stub.getShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Share share = Share.newBuilder().build();
+   *   String shareId = "shareId2054217050";
+   *   Share response = cloudFilestoreManagerClient.createShareAsync(parent, share, shareId).get();
+   * }
+   * }
+ * + * @param parent Required. The Filestore Instance to create the share for, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}` + * @param share Required. A share resource + * @param shareId Required. The ID to use for the share. The ID must be unique within the + * specified instance. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createShareAsync( + InstanceName parent, Share share, String shareId) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setShare(share) + .setShareId(shareId) + .build(); + return createShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   Share share = Share.newBuilder().build();
+   *   String shareId = "shareId2054217050";
+   *   Share response = cloudFilestoreManagerClient.createShareAsync(parent, share, shareId).get();
+   * }
+   * }
+ * + * @param parent Required. The Filestore Instance to create the share for, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}` + * @param share Required. A share resource + * @param shareId Required. The ID to use for the share. The ID must be unique within the + * specified instance. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createShareAsync( + String parent, Share share, String shareId) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(parent) + .setShare(share) + .setShareId(shareId) + .build(); + return createShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   CreateShareRequest request =
+   *       CreateShareRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setShareId("shareId2054217050")
+   *           .setShare(Share.newBuilder().build())
+   *           .build();
+   *   Share response = cloudFilestoreManagerClient.createShareAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createShareAsync( + CreateShareRequest request) { + return createShareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   CreateShareRequest request =
+   *       CreateShareRequest.newBuilder()
+   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .setShareId("shareId2054217050")
+   *           .setShare(Share.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.createShareOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Share response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createShareOperationCallable() { + return stub.createShareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a share. * *

Sample code: * @@ -1766,26 +3134,242 @@ public final OperationFuture updateBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * UpdateBackupRequest request = - * UpdateBackupRequest.newBuilder() - * .setBackup(Backup.newBuilder().build()) + * CreateShareRequest request = + * CreateShareRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setShareId("shareId2054217050") + * .setShare(Share.newBuilder().build()) + * .build(); + * ApiFuture future = + * cloudFilestoreManagerClient.createShareCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }

+ */ + public final UnaryCallable createShareCallable() { + return stub.createShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]");
+   *   cloudFilestoreManagerClient.deleteShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteShareAsync(ShareName name) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   String name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString();
+   *   cloudFilestoreManagerClient.deleteShareAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The share resource name, in the format + * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteShareAsync(String name) { + DeleteShareRequest request = DeleteShareRequest.newBuilder().setName(name).build(); + return deleteShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteShareRequest request =
+   *       DeleteShareRequest.newBuilder()
+   *           .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString())
+   *           .build();
+   *   cloudFilestoreManagerClient.deleteShareAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteShareAsync( + DeleteShareRequest request) { + return deleteShareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteShareRequest request =
+   *       DeleteShareRequest.newBuilder()
+   *           .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudFilestoreManagerClient.deleteShareOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteShareOperationCallable() { + return stub.deleteShareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   DeleteShareRequest request =
+   *       DeleteShareRequest.newBuilder()
+   *           .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudFilestoreManagerClient.deleteShareCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteShareCallable() { + return stub.deleteShareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   Share share = Share.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Share response = cloudFilestoreManagerClient.updateShareAsync(share, updateMask).get();
+   * }
+   * }
+ * + * @param share Required. A share resource. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields: + *
    + *
  • "description" + *
  • "capacity_gb" + *
  • "labels" + *
  • "nfs_export_options" + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateShareAsync( + Share share, FieldMask updateMask) { + UpdateShareRequest request = + UpdateShareRequest.newBuilder().setShare(share).setUpdateMask(updateMask).build(); + return updateShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings of a specific share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
+   *     CloudFilestoreManagerClient.create()) {
+   *   UpdateShareRequest request =
+   *       UpdateShareRequest.newBuilder()
+   *           .setShare(Share.newBuilder().build())
    *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
-   *   Backup response = cloudFilestoreManagerClient.updateBackupAsync(request).get();
+   *   Share response = cloudFilestoreManagerClient.updateShareAsync(request).get();
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateBackupAsync( - UpdateBackupRequest request) { - return updateBackupOperationCallable().futureCall(request); + public final OperationFuture updateShareAsync( + UpdateShareRequest request) { + return updateShareOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the settings of a specific backup. + * Updates the settings of a specific share. * *

Sample code: * @@ -1797,26 +3381,26 @@ public final OperationFuture updateBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * UpdateBackupRequest request = - * UpdateBackupRequest.newBuilder() - * .setBackup(Backup.newBuilder().build()) + * UpdateShareRequest request = + * UpdateShareRequest.newBuilder() + * .setShare(Share.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * OperationFuture future = - * cloudFilestoreManagerClient.updateBackupOperationCallable().futureCall(request); + * OperationFuture future = + * cloudFilestoreManagerClient.updateShareOperationCallable().futureCall(request); * // Do something. - * Backup response = future.get(); + * Share response = future.get(); * } * }

*/ - public final OperationCallable - updateBackupOperationCallable() { - return stub.updateBackupOperationCallable(); + public final OperationCallable + updateShareOperationCallable() { + return stub.updateShareOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the settings of a specific backup. + * Updates the settings of a specific share. * *

Sample code: * @@ -1828,20 +3412,20 @@ public final OperationFuture updateBackupAsync( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { - * UpdateBackupRequest request = - * UpdateBackupRequest.newBuilder() - * .setBackup(Backup.newBuilder().build()) + * UpdateShareRequest request = + * UpdateShareRequest.newBuilder() + * .setShare(Share.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = - * cloudFilestoreManagerClient.updateBackupCallable().futureCall(request); + * cloudFilestoreManagerClient.updateShareCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

*/ - public final UnaryCallable updateBackupCallable() { - return stub.updateBackupCallable(); + public final UnaryCallable updateShareCallable() { + return stub.updateShareCallable(); } @Override @@ -1950,6 +3534,82 @@ protected ListInstancesFixedSizeCollection createCollection( } } + public static class ListSnapshotsPagedResponse + extends AbstractPagedListResponse< + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, + ListSnapshotsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSnapshotsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSnapshotsPagedResponse(ListSnapshotsPage page) { + super(page, ListSnapshotsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSnapshotsPage + extends AbstractPage< + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { + + private ListSnapshotsPage( + PageContext context, + ListSnapshotsResponse response) { + super(context, response); + } + + private static ListSnapshotsPage createEmptyPage() { + return new ListSnapshotsPage(null, null); + } + + @Override + protected ListSnapshotsPage createPage( + PageContext context, + ListSnapshotsResponse response) { + return new ListSnapshotsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSnapshotsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, + ListSnapshotsFixedSizeCollection> { + + private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSnapshotsFixedSizeCollection createEmptyCollection() { + return new ListSnapshotsFixedSizeCollection(null, 0); + } + + @Override + protected ListSnapshotsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSnapshotsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupsPagedResponse extends AbstractPagedListResponse< ListBackupsRequest, @@ -2022,4 +3682,77 @@ protected ListBackupsFixedSizeCollection createCollection( return new ListBackupsFixedSizeCollection(pages, collectionSize); } } + + public static class ListSharesPagedResponse + extends AbstractPagedListResponse< + ListSharesRequest, + ListSharesResponse, + Share, + ListSharesPage, + ListSharesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSharesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSharesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSharesPagedResponse(ListSharesPage page) { + super(page, ListSharesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSharesPage + extends AbstractPage { + + private ListSharesPage( + PageContext context, + ListSharesResponse response) { + super(context, response); + } + + private static ListSharesPage createEmptyPage() { + return new ListSharesPage(null, null); + } + + @Override + protected ListSharesPage createPage( + PageContext context, + ListSharesResponse response) { + return new ListSharesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSharesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSharesRequest, + ListSharesResponse, + Share, + ListSharesPage, + ListSharesFixedSizeCollection> { + + private ListSharesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSharesFixedSizeCollection createEmptyCollection() { + return new ListSharesFixedSizeCollection(null, 0); + } + + @Override + protected ListSharesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSharesFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java similarity index 64% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java index 298f570d621b..bec926e42493 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -30,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.common.OperationMetadata; @@ -129,6 +132,18 @@ public UnaryCallSettings restoreInstanceSetti .restoreInstanceOperationSettings(); } + /** Returns the object with the settings used for calls to revertInstance. */ + public UnaryCallSettings revertInstanceSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).revertInstanceSettings(); + } + + /** Returns the object with the settings used for calls to revertInstance. */ + public OperationCallSettings + revertInstanceOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()) + .revertInstanceOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteInstance. */ public UnaryCallSettings deleteInstanceSettings() { return ((CloudFilestoreManagerStubSettings) getStubSettings()).deleteInstanceSettings(); @@ -141,6 +156,53 @@ public UnaryCallSettings deleteInstanceSetting .deleteInstanceOperationSettings(); } + /** Returns the object with the settings used for calls to listSnapshots. */ + public PagedCallSettings + listSnapshotsSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).listSnapshotsSettings(); + } + + /** Returns the object with the settings used for calls to getSnapshot. */ + public UnaryCallSettings getSnapshotSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).getSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public UnaryCallSettings createSnapshotSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).createSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public OperationCallSettings + createSnapshotOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()) + .createSnapshotOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings deleteSnapshotSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).deleteSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public OperationCallSettings + deleteSnapshotOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()) + .deleteSnapshotOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public UnaryCallSettings updateSnapshotSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).updateSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public OperationCallSettings + updateSnapshotOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()) + .updateSnapshotOperationSettings(); + } + /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { @@ -185,6 +247,50 @@ public UnaryCallSettings updateBackupSettings() return ((CloudFilestoreManagerStubSettings) getStubSettings()).updateBackupOperationSettings(); } + /** Returns the object with the settings used for calls to listShares. */ + public PagedCallSettings + listSharesSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).listSharesSettings(); + } + + /** Returns the object with the settings used for calls to getShare. */ + public UnaryCallSettings getShareSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).getShareSettings(); + } + + /** Returns the object with the settings used for calls to createShare. */ + public UnaryCallSettings createShareSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).createShareSettings(); + } + + /** Returns the object with the settings used for calls to createShare. */ + public OperationCallSettings + createShareOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).createShareOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public UnaryCallSettings deleteShareSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).deleteShareSettings(); + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public OperationCallSettings + deleteShareOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).deleteShareOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateShare. */ + public UnaryCallSettings updateShareSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).updateShareSettings(); + } + + /** Returns the object with the settings used for calls to updateShare. */ + public OperationCallSettings + updateShareOperationSettings() { + return ((CloudFilestoreManagerStubSettings) getStubSettings()).updateShareOperationSettings(); + } + public static final CloudFilestoreManagerSettings create(CloudFilestoreManagerStubSettings stub) throws IOException { return new CloudFilestoreManagerSettings.Builder(stub.toBuilder()).build(); @@ -346,6 +452,17 @@ public UnaryCallSettings.Builder restoreInsta return getStubSettingsBuilder().restoreInstanceOperationSettings(); } + /** Returns the builder for the settings used for calls to revertInstance. */ + public UnaryCallSettings.Builder revertInstanceSettings() { + return getStubSettingsBuilder().revertInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to revertInstance. */ + public OperationCallSettings.Builder + revertInstanceOperationSettings() { + return getStubSettingsBuilder().revertInstanceOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteInstance. */ public UnaryCallSettings.Builder deleteInstanceSettings() { return getStubSettingsBuilder().deleteInstanceSettings(); @@ -357,6 +474,51 @@ public UnaryCallSettings.Builder deleteInstanc return getStubSettingsBuilder().deleteInstanceOperationSettings(); } + /** Returns the builder for the settings used for calls to listSnapshots. */ + public PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings() { + return getStubSettingsBuilder().listSnapshotsSettings(); + } + + /** Returns the builder for the settings used for calls to getSnapshot. */ + public UnaryCallSettings.Builder getSnapshotSettings() { + return getStubSettingsBuilder().getSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + public UnaryCallSettings.Builder createSnapshotSettings() { + return getStubSettingsBuilder().createSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + public OperationCallSettings.Builder + createSnapshotOperationSettings() { + return getStubSettingsBuilder().createSnapshotOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings.Builder deleteSnapshotSettings() { + return getStubSettingsBuilder().deleteSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + public OperationCallSettings.Builder + deleteSnapshotOperationSettings() { + return getStubSettingsBuilder().deleteSnapshotOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + public UnaryCallSettings.Builder updateSnapshotSettings() { + return getStubSettingsBuilder().updateSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + public OperationCallSettings.Builder + updateSnapshotOperationSettings() { + return getStubSettingsBuilder().updateSnapshotOperationSettings(); + } + /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> @@ -402,6 +564,50 @@ public UnaryCallSettings.Builder updateBackupSet return getStubSettingsBuilder().updateBackupOperationSettings(); } + /** Returns the builder for the settings used for calls to listShares. */ + public PagedCallSettings.Builder + listSharesSettings() { + return getStubSettingsBuilder().listSharesSettings(); + } + + /** Returns the builder for the settings used for calls to getShare. */ + public UnaryCallSettings.Builder getShareSettings() { + return getStubSettingsBuilder().getShareSettings(); + } + + /** Returns the builder for the settings used for calls to createShare. */ + public UnaryCallSettings.Builder createShareSettings() { + return getStubSettingsBuilder().createShareSettings(); + } + + /** Returns the builder for the settings used for calls to createShare. */ + public OperationCallSettings.Builder + createShareOperationSettings() { + return getStubSettingsBuilder().createShareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public UnaryCallSettings.Builder deleteShareSettings() { + return getStubSettingsBuilder().deleteShareSettings(); + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public OperationCallSettings.Builder + deleteShareOperationSettings() { + return getStubSettingsBuilder().deleteShareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateShare. */ + public UnaryCallSettings.Builder updateShareSettings() { + return getStubSettingsBuilder().updateShareSettings(); + } + + /** Returns the builder for the settings used for calls to updateShare. */ + public OperationCallSettings.Builder + updateShareOperationSettings() { + return getStubSettingsBuilder().updateShareOperationSettings(); + } + @Override public CloudFilestoreManagerSettings build() throws IOException { return new CloudFilestoreManagerSettings(this); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json similarity index 55% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json index 6cac37774ee6..df77b00f598a 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/gapic_metadata.json @@ -16,32 +16,65 @@ "CreateInstance": { "methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"] }, + "CreateShare": { + "methods": ["createShareAsync", "createShareAsync", "createShareAsync", "createShareOperationCallable", "createShareCallable"] + }, + "CreateSnapshot": { + "methods": ["createSnapshotAsync", "createSnapshotAsync", "createSnapshotAsync", "createSnapshotOperationCallable", "createSnapshotCallable"] + }, "DeleteBackup": { "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] }, "DeleteInstance": { "methods": ["deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceOperationCallable", "deleteInstanceCallable"] }, + "DeleteShare": { + "methods": ["deleteShareAsync", "deleteShareAsync", "deleteShareAsync", "deleteShareOperationCallable", "deleteShareCallable"] + }, + "DeleteSnapshot": { + "methods": ["deleteSnapshotAsync", "deleteSnapshotAsync", "deleteSnapshotAsync", "deleteSnapshotOperationCallable", "deleteSnapshotCallable"] + }, "GetBackup": { "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] }, "GetInstance": { "methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"] }, + "GetShare": { + "methods": ["getShare", "getShare", "getShare", "getShareCallable"] + }, + "GetSnapshot": { + "methods": ["getSnapshot", "getSnapshot", "getSnapshot", "getSnapshotCallable"] + }, "ListBackups": { "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] }, "ListInstances": { "methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] }, + "ListShares": { + "methods": ["listShares", "listShares", "listShares", "listSharesPagedCallable", "listSharesCallable"] + }, + "ListSnapshots": { + "methods": ["listSnapshots", "listSnapshots", "listSnapshots", "listSnapshotsPagedCallable", "listSnapshotsCallable"] + }, "RestoreInstance": { "methods": ["restoreInstanceAsync", "restoreInstanceOperationCallable", "restoreInstanceCallable"] }, + "RevertInstance": { + "methods": ["revertInstanceAsync", "revertInstanceOperationCallable", "revertInstanceCallable"] + }, "UpdateBackup": { "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] }, "UpdateInstance": { "methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"] + }, + "UpdateShare": { + "methods": ["updateShareAsync", "updateShareAsync", "updateShareOperationCallable", "updateShareCallable"] + }, + "UpdateSnapshot": { + "methods": ["updateSnapshotAsync", "updateSnapshotAsync", "updateSnapshotOperationCallable", "updateSnapshotCallable"] } } } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java similarity index 88% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java index 58559df5759f..33a3a156d491 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java @@ -19,19 +19,19 @@ * *

======================= CloudFilestoreManagerClient ======================= * - *

Service Description: Configures and manages Cloud Filestore resources. + *

Service Description: Configures and manages Filestore resources. * - *

Cloud Filestore Manager v1beta1. + *

Filestore Manager v1beta1. * - *

The `file.googleapis.com` service implements the Cloud Filestore API and defines the following - * model for managing resources: + *

The `file.googleapis.com` service implements the Filestore API and defines the following model + * for managing resources: * *

    *
  • 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, Cloud Filestore instances are resources of the form: + *
  • As such, Filestore instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` backups are * resources of the form: `/projects/{project_id}/locations/{location_id}/backup/{backup_id}` *
diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java similarity index 57% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java index 22e27ef5ad94..5bb08eca11f4 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -27,18 +29,33 @@ import com.google.cloud.filestore.v1beta1.Backup; import com.google.cloud.filestore.v1beta1.CreateBackupRequest; import com.google.cloud.filestore.v1beta1.CreateInstanceRequest; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; import com.google.cloud.filestore.v1beta1.DeleteBackupRequest; import com.google.cloud.filestore.v1beta1.DeleteInstanceRequest; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; import com.google.cloud.filestore.v1beta1.GetBackupRequest; import com.google.cloud.filestore.v1beta1.GetInstanceRequest; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; import com.google.cloud.filestore.v1beta1.Instance; import com.google.cloud.filestore.v1beta1.ListBackupsRequest; import com.google.cloud.filestore.v1beta1.ListBackupsResponse; import com.google.cloud.filestore.v1beta1.ListInstancesRequest; import com.google.cloud.filestore.v1beta1.ListInstancesResponse; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.ListSharesResponse; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.ListSnapshotsResponse; import com.google.cloud.filestore.v1beta1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.Snapshot; import com.google.cloud.filestore.v1beta1.UpdateBackupRequest; import com.google.cloud.filestore.v1beta1.UpdateInstanceRequest; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -102,6 +119,15 @@ public UnaryCallable restoreInstanceCallable( throw new UnsupportedOperationException("Not implemented: restoreInstanceCallable()"); } + public OperationCallable + revertInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: revertInstanceOperationCallable()"); + } + + public UnaryCallable revertInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: revertInstanceCallable()"); + } + public OperationCallable deleteInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); @@ -111,6 +137,46 @@ public UnaryCallable deleteInstanceCallable() throw new UnsupportedOperationException("Not implemented: deleteInstanceCallable()"); } + public UnaryCallable + listSnapshotsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSnapshotsPagedCallable()"); + } + + public UnaryCallable listSnapshotsCallable() { + throw new UnsupportedOperationException("Not implemented: listSnapshotsCallable()"); + } + + public UnaryCallable getSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: getSnapshotCallable()"); + } + + public OperationCallable + createSnapshotOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createSnapshotOperationCallable()"); + } + + public UnaryCallable createSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: createSnapshotCallable()"); + } + + public OperationCallable + deleteSnapshotOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSnapshotOperationCallable()"); + } + + public UnaryCallable deleteSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSnapshotCallable()"); + } + + public OperationCallable + updateSnapshotOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateSnapshotOperationCallable()"); + } + + public UnaryCallable updateSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: updateSnapshotCallable()"); + } + public UnaryCallable listBackupsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()"); } @@ -150,6 +216,45 @@ public UnaryCallable updateBackupCallable() { throw new UnsupportedOperationException("Not implemented: updateBackupCallable()"); } + public UnaryCallable listSharesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSharesPagedCallable()"); + } + + public UnaryCallable listSharesCallable() { + throw new UnsupportedOperationException("Not implemented: listSharesCallable()"); + } + + public UnaryCallable getShareCallable() { + throw new UnsupportedOperationException("Not implemented: getShareCallable()"); + } + + public OperationCallable + createShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createShareOperationCallable()"); + } + + public UnaryCallable createShareCallable() { + throw new UnsupportedOperationException("Not implemented: createShareCallable()"); + } + + public OperationCallable + deleteShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteShareOperationCallable()"); + } + + public UnaryCallable deleteShareCallable() { + throw new UnsupportedOperationException("Not implemented: deleteShareCallable()"); + } + + public OperationCallable + updateShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateShareOperationCallable()"); + } + + public UnaryCallable updateShareCallable() { + throw new UnsupportedOperationException("Not implemented: updateShareCallable()"); + } + @Override public abstract void close(); } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java similarity index 58% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index a5cb5a2990dd..807cd2f25e36 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -52,18 +54,33 @@ import com.google.cloud.filestore.v1beta1.Backup; import com.google.cloud.filestore.v1beta1.CreateBackupRequest; import com.google.cloud.filestore.v1beta1.CreateInstanceRequest; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; import com.google.cloud.filestore.v1beta1.DeleteBackupRequest; import com.google.cloud.filestore.v1beta1.DeleteInstanceRequest; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; import com.google.cloud.filestore.v1beta1.GetBackupRequest; import com.google.cloud.filestore.v1beta1.GetInstanceRequest; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; import com.google.cloud.filestore.v1beta1.Instance; import com.google.cloud.filestore.v1beta1.ListBackupsRequest; import com.google.cloud.filestore.v1beta1.ListBackupsResponse; import com.google.cloud.filestore.v1beta1.ListInstancesRequest; import com.google.cloud.filestore.v1beta1.ListInstancesResponse; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.ListSharesResponse; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.ListSnapshotsResponse; import com.google.cloud.filestore.v1beta1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.Snapshot; import com.google.cloud.filestore.v1beta1.UpdateBackupRequest; import com.google.cloud.filestore.v1beta1.UpdateInstanceRequest; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -134,9 +151,25 @@ public class CloudFilestoreManagerStubSettings private final UnaryCallSettings restoreInstanceSettings; private final OperationCallSettings restoreInstanceOperationSettings; + private final UnaryCallSettings revertInstanceSettings; + private final OperationCallSettings + revertInstanceOperationSettings; private final UnaryCallSettings deleteInstanceSettings; private final OperationCallSettings deleteInstanceOperationSettings; + private final PagedCallSettings< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings; + private final UnaryCallSettings getSnapshotSettings; + private final UnaryCallSettings createSnapshotSettings; + private final OperationCallSettings + createSnapshotOperationSettings; + private final UnaryCallSettings deleteSnapshotSettings; + private final OperationCallSettings + deleteSnapshotOperationSettings; + private final UnaryCallSettings updateSnapshotSettings; + private final OperationCallSettings + updateSnapshotOperationSettings; private final PagedCallSettings listBackupsSettings; private final UnaryCallSettings getBackupSettings; @@ -149,6 +182,18 @@ public class CloudFilestoreManagerStubSettings private final UnaryCallSettings updateBackupSettings; private final OperationCallSettings updateBackupOperationSettings; + private final PagedCallSettings + listSharesSettings; + private final UnaryCallSettings getShareSettings; + private final UnaryCallSettings createShareSettings; + private final OperationCallSettings + createShareOperationSettings; + private final UnaryCallSettings deleteShareSettings; + private final OperationCallSettings + deleteShareOperationSettings; + private final UnaryCallSettings updateShareSettings; + private final OperationCallSettings + updateShareOperationSettings; private static final PagedListDescriptor LIST_INSTANCES_PAGE_STR_DESC = @@ -186,6 +231,42 @@ public Iterable extractResources(ListInstancesResponse payload) { } }; + private static final PagedListDescriptor + LIST_SNAPSHOTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSnapshotsRequest injectToken(ListSnapshotsRequest payload, String token) { + return ListSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSnapshotsRequest injectPageSize(ListSnapshotsRequest payload, int pageSize) { + return ListSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSnapshotsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSnapshotsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSnapshotsResponse payload) { + return payload.getSnapshotsList() == null + ? ImmutableList.of() + : payload.getSnapshotsList(); + } + }; + private static final PagedListDescriptor LIST_BACKUPS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -222,6 +303,42 @@ public Iterable extractResources(ListBackupsResponse payload) { } }; + private static final PagedListDescriptor + LIST_SHARES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSharesRequest injectToken(ListSharesRequest payload, String token) { + return ListSharesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSharesRequest injectPageSize(ListSharesRequest payload, int pageSize) { + return ListSharesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSharesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSharesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSharesResponse payload) { + return payload.getSharesList() == null + ? ImmutableList.of() + : payload.getSharesList(); + } + }; + private static final PagedListResponseFactory< ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> LIST_INSTANCES_PAGE_STR_FACT = @@ -239,6 +356,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + LIST_SNAPSHOTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSnapshotsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SNAPSHOTS_PAGE_STR_DESC, request, context); + return ListSnapshotsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> LIST_BACKUPS_PAGE_STR_FACT = @@ -256,6 +390,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse> + LIST_SHARES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSharesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SHARES_PAGE_STR_DESC, request, context); + return ListSharesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listInstances. */ public PagedCallSettings listInstancesSettings() { @@ -300,6 +451,17 @@ public UnaryCallSettings restoreInstanceSetti return restoreInstanceOperationSettings; } + /** Returns the object with the settings used for calls to revertInstance. */ + public UnaryCallSettings revertInstanceSettings() { + return revertInstanceSettings; + } + + /** Returns the object with the settings used for calls to revertInstance. */ + public OperationCallSettings + revertInstanceOperationSettings() { + return revertInstanceOperationSettings; + } + /** Returns the object with the settings used for calls to deleteInstance. */ public UnaryCallSettings deleteInstanceSettings() { return deleteInstanceSettings; @@ -311,6 +473,50 @@ public UnaryCallSettings deleteInstanceSetting return deleteInstanceOperationSettings; } + /** Returns the object with the settings used for calls to listSnapshots. */ + public PagedCallSettings + listSnapshotsSettings() { + return listSnapshotsSettings; + } + + /** Returns the object with the settings used for calls to getSnapshot. */ + public UnaryCallSettings getSnapshotSettings() { + return getSnapshotSettings; + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public UnaryCallSettings createSnapshotSettings() { + return createSnapshotSettings; + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public OperationCallSettings + createSnapshotOperationSettings() { + return createSnapshotOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings deleteSnapshotSettings() { + return deleteSnapshotSettings; + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public OperationCallSettings + deleteSnapshotOperationSettings() { + return deleteSnapshotOperationSettings; + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public UnaryCallSettings updateSnapshotSettings() { + return updateSnapshotSettings; + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public OperationCallSettings + updateSnapshotOperationSettings() { + return updateSnapshotOperationSettings; + } + /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { @@ -355,6 +561,50 @@ public UnaryCallSettings updateBackupSettings() return updateBackupOperationSettings; } + /** Returns the object with the settings used for calls to listShares. */ + public PagedCallSettings + listSharesSettings() { + return listSharesSettings; + } + + /** Returns the object with the settings used for calls to getShare. */ + public UnaryCallSettings getShareSettings() { + return getShareSettings; + } + + /** Returns the object with the settings used for calls to createShare. */ + public UnaryCallSettings createShareSettings() { + return createShareSettings; + } + + /** Returns the object with the settings used for calls to createShare. */ + public OperationCallSettings + createShareOperationSettings() { + return createShareOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public UnaryCallSettings deleteShareSettings() { + return deleteShareSettings; + } + + /** Returns the object with the settings used for calls to deleteShare. */ + public OperationCallSettings + deleteShareOperationSettings() { + return deleteShareOperationSettings; + } + + /** Returns the object with the settings used for calls to updateShare. */ + public UnaryCallSettings updateShareSettings() { + return updateShareSettings; + } + + /** Returns the object with the settings used for calls to updateShare. */ + public OperationCallSettings + updateShareOperationSettings() { + return updateShareOperationSettings; + } + public CloudFilestoreManagerStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -469,8 +719,18 @@ protected CloudFilestoreManagerStubSettings(Builder settingsBuilder) throws IOEx updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build(); restoreInstanceSettings = settingsBuilder.restoreInstanceSettings().build(); restoreInstanceOperationSettings = settingsBuilder.restoreInstanceOperationSettings().build(); + revertInstanceSettings = settingsBuilder.revertInstanceSettings().build(); + revertInstanceOperationSettings = settingsBuilder.revertInstanceOperationSettings().build(); deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build(); deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build(); + listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build(); + getSnapshotSettings = settingsBuilder.getSnapshotSettings().build(); + createSnapshotSettings = settingsBuilder.createSnapshotSettings().build(); + createSnapshotOperationSettings = settingsBuilder.createSnapshotOperationSettings().build(); + deleteSnapshotSettings = settingsBuilder.deleteSnapshotSettings().build(); + deleteSnapshotOperationSettings = settingsBuilder.deleteSnapshotOperationSettings().build(); + updateSnapshotSettings = settingsBuilder.updateSnapshotSettings().build(); + updateSnapshotOperationSettings = settingsBuilder.updateSnapshotOperationSettings().build(); listBackupsSettings = settingsBuilder.listBackupsSettings().build(); getBackupSettings = settingsBuilder.getBackupSettings().build(); createBackupSettings = settingsBuilder.createBackupSettings().build(); @@ -479,6 +739,14 @@ protected CloudFilestoreManagerStubSettings(Builder settingsBuilder) throws IOEx deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build(); updateBackupSettings = settingsBuilder.updateBackupSettings().build(); updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); + listSharesSettings = settingsBuilder.listSharesSettings().build(); + getShareSettings = settingsBuilder.getShareSettings().build(); + createShareSettings = settingsBuilder.createShareSettings().build(); + createShareOperationSettings = settingsBuilder.createShareOperationSettings().build(); + deleteShareSettings = settingsBuilder.deleteShareSettings().build(); + deleteShareOperationSettings = settingsBuilder.deleteShareOperationSettings().build(); + updateShareSettings = settingsBuilder.updateShareSettings().build(); + updateShareOperationSettings = settingsBuilder.updateShareOperationSettings().build(); } /** Builder for CloudFilestoreManagerStubSettings. */ @@ -501,10 +769,30 @@ public static class Builder restoreInstanceSettings; private final OperationCallSettings.Builder restoreInstanceOperationSettings; + private final UnaryCallSettings.Builder + revertInstanceSettings; + private final OperationCallSettings.Builder + revertInstanceOperationSettings; private final UnaryCallSettings.Builder deleteInstanceSettings; private final OperationCallSettings.Builder deleteInstanceOperationSettings; + private final PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings; + private final UnaryCallSettings.Builder getSnapshotSettings; + private final UnaryCallSettings.Builder + createSnapshotSettings; + private final OperationCallSettings.Builder + createSnapshotOperationSettings; + private final UnaryCallSettings.Builder + deleteSnapshotSettings; + private final OperationCallSettings.Builder + deleteSnapshotOperationSettings; + private final UnaryCallSettings.Builder + updateSnapshotSettings; + private final OperationCallSettings.Builder + updateSnapshotOperationSettings; private final PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings; @@ -518,6 +806,19 @@ public static class Builder private final UnaryCallSettings.Builder updateBackupSettings; private final OperationCallSettings.Builder updateBackupOperationSettings; + private final PagedCallSettings.Builder< + ListSharesRequest, ListSharesResponse, ListSharesPagedResponse> + listSharesSettings; + private final UnaryCallSettings.Builder getShareSettings; + private final UnaryCallSettings.Builder createShareSettings; + private final OperationCallSettings.Builder + createShareOperationSettings; + private final UnaryCallSettings.Builder deleteShareSettings; + private final OperationCallSettings.Builder + deleteShareOperationSettings; + private final UnaryCallSettings.Builder updateShareSettings; + private final OperationCallSettings.Builder + updateShareOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -531,6 +832,7 @@ public static class Builder "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); @@ -568,6 +870,8 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(14400000L)) .build(); definitions.put("no_retry_2_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); settings = RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(600000L)) @@ -594,8 +898,18 @@ protected Builder(ClientContext clientContext) { updateInstanceOperationSettings = OperationCallSettings.newBuilder(); restoreInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreInstanceOperationSettings = OperationCallSettings.newBuilder(); + revertInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + revertInstanceOperationSettings = OperationCallSettings.newBuilder(); deleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteInstanceOperationSettings = OperationCallSettings.newBuilder(); + listSnapshotsSettings = PagedCallSettings.newBuilder(LIST_SNAPSHOTS_PAGE_STR_FACT); + getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSnapshotOperationSettings = OperationCallSettings.newBuilder(); + deleteSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSnapshotOperationSettings = OperationCallSettings.newBuilder(); + updateSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSnapshotOperationSettings = OperationCallSettings.newBuilder(); listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -604,6 +918,14 @@ protected Builder(ClientContext clientContext) { deleteBackupOperationSettings = OperationCallSettings.newBuilder(); updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupOperationSettings = OperationCallSettings.newBuilder(); + listSharesSettings = PagedCallSettings.newBuilder(LIST_SHARES_PAGE_STR_FACT); + getShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createShareOperationSettings = OperationCallSettings.newBuilder(); + deleteShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteShareOperationSettings = OperationCallSettings.newBuilder(); + updateShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateShareOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -612,12 +934,23 @@ protected Builder(ClientContext clientContext) { createInstanceSettings, updateInstanceSettings, restoreInstanceSettings, + revertInstanceSettings, deleteInstanceSettings, + listSnapshotsSettings, + getSnapshotSettings, + createSnapshotSettings, + deleteSnapshotSettings, + updateSnapshotSettings, listBackupsSettings, getBackupSettings, createBackupSettings, deleteBackupSettings, - updateBackupSettings); + updateBackupSettings, + listSharesSettings, + getShareSettings, + createShareSettings, + deleteShareSettings, + updateShareSettings); initDefaults(this); } @@ -632,8 +965,18 @@ protected Builder(CloudFilestoreManagerStubSettings settings) { updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder(); restoreInstanceSettings = settings.restoreInstanceSettings.toBuilder(); restoreInstanceOperationSettings = settings.restoreInstanceOperationSettings.toBuilder(); + revertInstanceSettings = settings.revertInstanceSettings.toBuilder(); + revertInstanceOperationSettings = settings.revertInstanceOperationSettings.toBuilder(); deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder(); deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder(); + listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder(); + getSnapshotSettings = settings.getSnapshotSettings.toBuilder(); + createSnapshotSettings = settings.createSnapshotSettings.toBuilder(); + createSnapshotOperationSettings = settings.createSnapshotOperationSettings.toBuilder(); + deleteSnapshotSettings = settings.deleteSnapshotSettings.toBuilder(); + deleteSnapshotOperationSettings = settings.deleteSnapshotOperationSettings.toBuilder(); + updateSnapshotSettings = settings.updateSnapshotSettings.toBuilder(); + updateSnapshotOperationSettings = settings.updateSnapshotOperationSettings.toBuilder(); listBackupsSettings = settings.listBackupsSettings.toBuilder(); getBackupSettings = settings.getBackupSettings.toBuilder(); createBackupSettings = settings.createBackupSettings.toBuilder(); @@ -642,6 +985,14 @@ protected Builder(CloudFilestoreManagerStubSettings settings) { deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder(); updateBackupSettings = settings.updateBackupSettings.toBuilder(); updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); + listSharesSettings = settings.listSharesSettings.toBuilder(); + getShareSettings = settings.getShareSettings.toBuilder(); + createShareSettings = settings.createShareSettings.toBuilder(); + createShareOperationSettings = settings.createShareOperationSettings.toBuilder(); + deleteShareSettings = settings.deleteShareSettings.toBuilder(); + deleteShareOperationSettings = settings.deleteShareOperationSettings.toBuilder(); + updateShareSettings = settings.updateShareSettings.toBuilder(); + updateShareOperationSettings = settings.updateShareOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -650,12 +1001,23 @@ protected Builder(CloudFilestoreManagerStubSettings settings) { createInstanceSettings, updateInstanceSettings, restoreInstanceSettings, + revertInstanceSettings, deleteInstanceSettings, + listSnapshotsSettings, + getSnapshotSettings, + createSnapshotSettings, + deleteSnapshotSettings, + updateSnapshotSettings, listBackupsSettings, getBackupSettings, createBackupSettings, deleteBackupSettings, - updateBackupSettings); + updateBackupSettings, + listSharesSettings, + getShareSettings, + createShareSettings, + deleteShareSettings, + updateShareSettings); } private static Builder createDefault() { @@ -710,11 +1072,41 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .revertInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + builder + .listSnapshotsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .deleteSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + + builder + .updateSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + builder .listBackupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -740,6 +1132,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); + builder + .listSharesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateShareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createInstanceOperationSettings() .setInitialCallSettings( @@ -812,6 +1229,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(7200000L)) .build())); + builder + .revertInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .deleteInstanceOperationSettings() .setInitialCallSettings( @@ -836,6 +1277,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(1200000L)) .build())); + builder + .createSnapshotOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Snapshot.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(10000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(660000L)) + .build())); + + builder + .deleteSnapshotOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(30000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(7200000L)) + .build())); + + builder + .updateSnapshotOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Snapshot.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(10000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(660000L)) + .build())); + builder .createBackupOperationSettings() .setInitialCallSettings( @@ -908,6 +1421,75 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(660000L)) .build())); + builder + .createShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Share.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateShareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Share.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -977,6 +1559,19 @@ public UnaryCallSettings.Builder restoreInsta return restoreInstanceOperationSettings; } + /** Returns the builder for the settings used for calls to revertInstance. */ + public UnaryCallSettings.Builder revertInstanceSettings() { + return revertInstanceSettings; + } + + /** Returns the builder for the settings used for calls to revertInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + revertInstanceOperationSettings() { + return revertInstanceOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteInstance. */ public UnaryCallSettings.Builder deleteInstanceSettings() { return deleteInstanceSettings; @@ -990,6 +1585,57 @@ public UnaryCallSettings.Builder deleteInstanc return deleteInstanceOperationSettings; } + /** Returns the builder for the settings used for calls to listSnapshots. */ + public PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings() { + return listSnapshotsSettings; + } + + /** Returns the builder for the settings used for calls to getSnapshot. */ + public UnaryCallSettings.Builder getSnapshotSettings() { + return getSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + public UnaryCallSettings.Builder createSnapshotSettings() { + return createSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createSnapshotOperationSettings() { + return createSnapshotOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings.Builder deleteSnapshotSettings() { + return deleteSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteSnapshotOperationSettings() { + return deleteSnapshotOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + public UnaryCallSettings.Builder updateSnapshotSettings() { + return updateSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateSnapshotOperationSettings() { + return updateSnapshotOperationSettings; + } + /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> @@ -1041,6 +1687,56 @@ public UnaryCallSettings.Builder updateBackupSet return updateBackupOperationSettings; } + /** Returns the builder for the settings used for calls to listShares. */ + public PagedCallSettings.Builder + listSharesSettings() { + return listSharesSettings; + } + + /** Returns the builder for the settings used for calls to getShare. */ + public UnaryCallSettings.Builder getShareSettings() { + return getShareSettings; + } + + /** Returns the builder for the settings used for calls to createShare. */ + public UnaryCallSettings.Builder createShareSettings() { + return createShareSettings; + } + + /** Returns the builder for the settings used for calls to createShare. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createShareOperationSettings() { + return createShareOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + public UnaryCallSettings.Builder deleteShareSettings() { + return deleteShareSettings; + } + + /** Returns the builder for the settings used for calls to deleteShare. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteShareOperationSettings() { + return deleteShareOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateShare. */ + public UnaryCallSettings.Builder updateShareSettings() { + return updateShareSettings; + } + + /** Returns the builder for the settings used for calls to updateShare. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateShareOperationSettings() { + return updateShareOperationSettings; + } + @Override public CloudFilestoreManagerStubSettings build() throws IOException { return new CloudFilestoreManagerStubSettings(this); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java similarity index 55% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java index d2ddff1d7418..216ddc132403 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/GrpcCloudFilestoreManagerStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -31,18 +33,33 @@ import com.google.cloud.filestore.v1beta1.Backup; import com.google.cloud.filestore.v1beta1.CreateBackupRequest; import com.google.cloud.filestore.v1beta1.CreateInstanceRequest; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; import com.google.cloud.filestore.v1beta1.DeleteBackupRequest; import com.google.cloud.filestore.v1beta1.DeleteInstanceRequest; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; import com.google.cloud.filestore.v1beta1.GetBackupRequest; import com.google.cloud.filestore.v1beta1.GetInstanceRequest; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; import com.google.cloud.filestore.v1beta1.Instance; import com.google.cloud.filestore.v1beta1.ListBackupsRequest; import com.google.cloud.filestore.v1beta1.ListBackupsResponse; import com.google.cloud.filestore.v1beta1.ListInstancesRequest; import com.google.cloud.filestore.v1beta1.ListInstancesResponse; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.ListSharesResponse; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.ListSnapshotsResponse; import com.google.cloud.filestore.v1beta1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.Snapshot; import com.google.cloud.filestore.v1beta1.UpdateBackupRequest; import com.google.cloud.filestore.v1beta1.UpdateInstanceRequest; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -50,6 +67,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -115,6 +133,17 @@ public class GrpcCloudFilestoreManagerStub extends CloudFilestoreManagerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + revertInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/RevertInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(RevertInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -126,6 +155,59 @@ public class GrpcCloudFilestoreManagerStub extends CloudFilestoreManagerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listSnapshotsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/ListSnapshots") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/GetSnapshot") + .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/CreateSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/DeleteSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/UpdateSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listBackupsMethodDescriptor = MethodDescriptor.newBuilder() @@ -174,6 +256,47 @@ public class GrpcCloudFilestoreManagerStub extends CloudFilestoreManagerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listSharesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/ListShares") + .setRequestMarshaller(ProtoUtils.marshaller(ListSharesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSharesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/GetShare") + .setRequestMarshaller(ProtoUtils.marshaller(GetShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Share.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/CreateShare") + .setRequestMarshaller(ProtoUtils.marshaller(CreateShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/DeleteShare") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/UpdateShare") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; @@ -187,9 +310,25 @@ public class GrpcCloudFilestoreManagerStub extends CloudFilestoreManagerStub { private final UnaryCallable restoreInstanceCallable; private final OperationCallable restoreInstanceOperationCallable; + private final UnaryCallable revertInstanceCallable; + private final OperationCallable + revertInstanceOperationCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; + private final UnaryCallable listSnapshotsCallable; + private final UnaryCallable + listSnapshotsPagedCallable; + private final UnaryCallable getSnapshotCallable; + private final UnaryCallable createSnapshotCallable; + private final OperationCallable + createSnapshotOperationCallable; + private final UnaryCallable deleteSnapshotCallable; + private final OperationCallable + deleteSnapshotOperationCallable; + private final UnaryCallable updateSnapshotCallable; + private final OperationCallable + updateSnapshotOperationCallable; private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; @@ -203,6 +342,18 @@ public class GrpcCloudFilestoreManagerStub extends CloudFilestoreManagerStub { private final UnaryCallable updateBackupCallable; private final OperationCallable updateBackupOperationCallable; + private final UnaryCallable listSharesCallable; + private final UnaryCallable listSharesPagedCallable; + private final UnaryCallable getShareCallable; + private final UnaryCallable createShareCallable; + private final OperationCallable + createShareOperationCallable; + private final UnaryCallable deleteShareCallable; + private final OperationCallable + deleteShareOperationCallable; + private final UnaryCallable updateShareCallable; + private final OperationCallable + updateShareOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -298,6 +449,16 @@ protected GrpcCloudFilestoreManagerStub( return params.build(); }) .build(); + GrpcCallSettings revertInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(revertInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings deleteInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -308,6 +469,56 @@ protected GrpcCloudFilestoreManagerStub( return params.build(); }) .build(); + GrpcCallSettings listSnapshotsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSnapshotsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSnapshotMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSnapshotMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSnapshotMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSnapshotMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); + return params.build(); + }) + .build(); GrpcCallSettings listBackupsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listBackupsMethodDescriptor) @@ -358,6 +569,56 @@ protected GrpcCloudFilestoreManagerStub( return params.build(); }) .build(); + GrpcCallSettings listSharesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSharesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("share.name", String.valueOf(request.getShare().getName())); + return params.build(); + }) + .build(); this.listInstancesCallable = callableFactory.createUnaryCallable( @@ -395,6 +656,15 @@ protected GrpcCloudFilestoreManagerStub( settings.restoreInstanceOperationSettings(), clientContext, operationsStub); + this.revertInstanceCallable = + callableFactory.createUnaryCallable( + revertInstanceTransportSettings, settings.revertInstanceSettings(), clientContext); + this.revertInstanceOperationCallable = + callableFactory.createOperationCallable( + revertInstanceTransportSettings, + settings.revertInstanceOperationSettings(), + clientContext, + operationsStub); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -404,6 +674,42 @@ protected GrpcCloudFilestoreManagerStub( settings.deleteInstanceOperationSettings(), clientContext, operationsStub); + this.listSnapshotsCallable = + callableFactory.createUnaryCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.listSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.getSnapshotCallable = + callableFactory.createUnaryCallable( + getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); + this.createSnapshotCallable = + callableFactory.createUnaryCallable( + createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); + this.createSnapshotOperationCallable = + callableFactory.createOperationCallable( + createSnapshotTransportSettings, + settings.createSnapshotOperationSettings(), + clientContext, + operationsStub); + this.deleteSnapshotCallable = + callableFactory.createUnaryCallable( + deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); + this.deleteSnapshotOperationCallable = + callableFactory.createOperationCallable( + deleteSnapshotTransportSettings, + settings.deleteSnapshotOperationSettings(), + clientContext, + operationsStub); + this.updateSnapshotCallable = + callableFactory.createUnaryCallable( + updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); + this.updateSnapshotOperationCallable = + callableFactory.createOperationCallable( + updateSnapshotTransportSettings, + settings.updateSnapshotOperationSettings(), + clientContext, + operationsStub); this.listBackupsCallable = callableFactory.createUnaryCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); @@ -440,6 +746,42 @@ protected GrpcCloudFilestoreManagerStub( settings.updateBackupOperationSettings(), clientContext, operationsStub); + this.listSharesCallable = + callableFactory.createUnaryCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.listSharesPagedCallable = + callableFactory.createPagedCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.getShareCallable = + callableFactory.createUnaryCallable( + getShareTransportSettings, settings.getShareSettings(), clientContext); + this.createShareCallable = + callableFactory.createUnaryCallable( + createShareTransportSettings, settings.createShareSettings(), clientContext); + this.createShareOperationCallable = + callableFactory.createOperationCallable( + createShareTransportSettings, + settings.createShareOperationSettings(), + clientContext, + operationsStub); + this.deleteShareCallable = + callableFactory.createUnaryCallable( + deleteShareTransportSettings, settings.deleteShareSettings(), clientContext); + this.deleteShareOperationCallable = + callableFactory.createOperationCallable( + deleteShareTransportSettings, + settings.deleteShareOperationSettings(), + clientContext, + operationsStub); + this.updateShareCallable = + callableFactory.createUnaryCallable( + updateShareTransportSettings, settings.updateShareSettings(), clientContext); + this.updateShareOperationCallable = + callableFactory.createOperationCallable( + updateShareTransportSettings, + settings.updateShareOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -498,6 +840,17 @@ public UnaryCallable restoreInstanceCallable( return restoreInstanceOperationCallable; } + @Override + public UnaryCallable revertInstanceCallable() { + return revertInstanceCallable; + } + + @Override + public OperationCallable + revertInstanceOperationCallable() { + return revertInstanceOperationCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; @@ -509,6 +862,55 @@ public UnaryCallable deleteInstanceCallable() return deleteInstanceOperationCallable; } + @Override + public UnaryCallable listSnapshotsCallable() { + return listSnapshotsCallable; + } + + @Override + public UnaryCallable + listSnapshotsPagedCallable() { + return listSnapshotsPagedCallable; + } + + @Override + public UnaryCallable getSnapshotCallable() { + return getSnapshotCallable; + } + + @Override + public UnaryCallable createSnapshotCallable() { + return createSnapshotCallable; + } + + @Override + public OperationCallable + createSnapshotOperationCallable() { + return createSnapshotOperationCallable; + } + + @Override + public UnaryCallable deleteSnapshotCallable() { + return deleteSnapshotCallable; + } + + @Override + public OperationCallable + deleteSnapshotOperationCallable() { + return deleteSnapshotOperationCallable; + } + + @Override + public UnaryCallable updateSnapshotCallable() { + return updateSnapshotCallable; + } + + @Override + public OperationCallable + updateSnapshotOperationCallable() { + return updateSnapshotOperationCallable; + } + @Override public UnaryCallable listBackupsCallable() { return listBackupsCallable; @@ -557,6 +959,54 @@ public UnaryCallable updateBackupCallable() { return updateBackupOperationCallable; } + @Override + public UnaryCallable listSharesCallable() { + return listSharesCallable; + } + + @Override + public UnaryCallable listSharesPagedCallable() { + return listSharesPagedCallable; + } + + @Override + public UnaryCallable getShareCallable() { + return getShareCallable; + } + + @Override + public UnaryCallable createShareCallable() { + return createShareCallable; + } + + @Override + public OperationCallable + createShareOperationCallable() { + return createShareOperationCallable; + } + + @Override + public UnaryCallable deleteShareCallable() { + return deleteShareCallable; + } + + @Override + public OperationCallable + deleteShareOperationCallable() { + return deleteShareOperationCallable; + } + + @Override + public UnaryCallable updateShareCallable() { + return updateShareCallable; + } + + @Override + public OperationCallable + updateShareOperationCallable() { + return updateShareOperationCallable; + } + @Override public final void close() { try { diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerCallableFactory.java diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java similarity index 53% rename from java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java index a5583d065fc7..f9a12c38a887 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; @@ -31,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -38,18 +41,33 @@ import com.google.cloud.filestore.v1beta1.Backup; import com.google.cloud.filestore.v1beta1.CreateBackupRequest; import com.google.cloud.filestore.v1beta1.CreateInstanceRequest; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; import com.google.cloud.filestore.v1beta1.DeleteBackupRequest; import com.google.cloud.filestore.v1beta1.DeleteInstanceRequest; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; import com.google.cloud.filestore.v1beta1.GetBackupRequest; import com.google.cloud.filestore.v1beta1.GetInstanceRequest; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; import com.google.cloud.filestore.v1beta1.Instance; import com.google.cloud.filestore.v1beta1.ListBackupsRequest; import com.google.cloud.filestore.v1beta1.ListBackupsResponse; import com.google.cloud.filestore.v1beta1.ListInstancesRequest; import com.google.cloud.filestore.v1beta1.ListInstancesResponse; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.ListSharesResponse; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.ListSnapshotsResponse; import com.google.cloud.filestore.v1beta1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.Snapshot; import com.google.cloud.filestore.v1beta1.UpdateBackupRequest; import com.google.cloud.filestore.v1beta1.UpdateInstanceRequest; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; @@ -73,7 +91,9 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(Empty.getDescriptor()) + .add(Share.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(Snapshot.getDescriptor()) .add(Instance.getDescriptor()) .add(Backup.getDescriptor()) .build(); @@ -272,6 +292,46 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + revertInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/RevertInstance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/instances/*}:revert", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RevertInstanceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -295,6 +355,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); return fields; }) .setRequestBodyExtractor(request -> null) @@ -309,6 +370,197 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + listSnapshotsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/ListSnapshots") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSnapshotsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/GetSnapshot") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Snapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/CreateSnapshot") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "snapshotId", request.getSnapshotId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("snapshot", request.getSnapshot(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateSnapshotRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/DeleteSnapshot") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteSnapshotRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.filestore.v1beta1.CloudFilestoreManager/UpdateSnapshot") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "snapshot.name", request.getSnapshot().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("snapshot", request.getSnapshot(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateSnapshotRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listBackupsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -498,6 +750,192 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + listSharesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/ListShares") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSharesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/GetShare") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Share.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/CreateShare") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "shareId", request.getShareId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("share", request.getShare(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/DeleteShare") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1beta1.CloudFilestoreManager/UpdateShare") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{share.name=projects/*/locations/*/instances/*/shares/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "share.name", request.getShare().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("share", request.getShare(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; @@ -511,9 +949,25 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub private final UnaryCallable restoreInstanceCallable; private final OperationCallable restoreInstanceOperationCallable; + private final UnaryCallable revertInstanceCallable; + private final OperationCallable + revertInstanceOperationCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; + private final UnaryCallable listSnapshotsCallable; + private final UnaryCallable + listSnapshotsPagedCallable; + private final UnaryCallable getSnapshotCallable; + private final UnaryCallable createSnapshotCallable; + private final OperationCallable + createSnapshotOperationCallable; + private final UnaryCallable deleteSnapshotCallable; + private final OperationCallable + deleteSnapshotOperationCallable; + private final UnaryCallable updateSnapshotCallable; + private final OperationCallable + updateSnapshotOperationCallable; private final UnaryCallable listBackupsCallable; private final UnaryCallable listBackupsPagedCallable; @@ -527,6 +981,18 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub private final UnaryCallable updateBackupCallable; private final OperationCallable updateBackupOperationCallable; + private final UnaryCallable listSharesCallable; + private final UnaryCallable listSharesPagedCallable; + private final UnaryCallable getShareCallable; + private final UnaryCallable createShareCallable; + private final OperationCallable + createShareOperationCallable; + private final UnaryCallable deleteShareCallable; + private final OperationCallable + deleteShareOperationCallable; + private final UnaryCallable updateShareCallable; + private final OperationCallable + updateShareOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -601,11 +1067,42 @@ protected HttpJsonCloudFilestoreManagerStub( .setMethodDescriptor(restoreInstanceMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings revertInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(revertInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings deleteInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listSnapshotsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSnapshotsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listBackupsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listBackupsMethodDescriptor) @@ -631,6 +1128,31 @@ protected HttpJsonCloudFilestoreManagerStub( .setMethodDescriptor(updateBackupMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings listSharesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSharesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.listInstancesCallable = callableFactory.createUnaryCallable( @@ -668,6 +1190,15 @@ protected HttpJsonCloudFilestoreManagerStub( settings.restoreInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.revertInstanceCallable = + callableFactory.createUnaryCallable( + revertInstanceTransportSettings, settings.revertInstanceSettings(), clientContext); + this.revertInstanceOperationCallable = + callableFactory.createOperationCallable( + revertInstanceTransportSettings, + settings.revertInstanceOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -677,6 +1208,42 @@ protected HttpJsonCloudFilestoreManagerStub( settings.deleteInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.listSnapshotsCallable = + callableFactory.createUnaryCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.listSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.getSnapshotCallable = + callableFactory.createUnaryCallable( + getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); + this.createSnapshotCallable = + callableFactory.createUnaryCallable( + createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); + this.createSnapshotOperationCallable = + callableFactory.createOperationCallable( + createSnapshotTransportSettings, + settings.createSnapshotOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteSnapshotCallable = + callableFactory.createUnaryCallable( + deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); + this.deleteSnapshotOperationCallable = + callableFactory.createOperationCallable( + deleteSnapshotTransportSettings, + settings.deleteSnapshotOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateSnapshotCallable = + callableFactory.createUnaryCallable( + updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); + this.updateSnapshotOperationCallable = + callableFactory.createOperationCallable( + updateSnapshotTransportSettings, + settings.updateSnapshotOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listBackupsCallable = callableFactory.createUnaryCallable( listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); @@ -713,6 +1280,42 @@ protected HttpJsonCloudFilestoreManagerStub( settings.updateBackupOperationSettings(), clientContext, httpJsonOperationsStub); + this.listSharesCallable = + callableFactory.createUnaryCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.listSharesPagedCallable = + callableFactory.createPagedCallable( + listSharesTransportSettings, settings.listSharesSettings(), clientContext); + this.getShareCallable = + callableFactory.createUnaryCallable( + getShareTransportSettings, settings.getShareSettings(), clientContext); + this.createShareCallable = + callableFactory.createUnaryCallable( + createShareTransportSettings, settings.createShareSettings(), clientContext); + this.createShareOperationCallable = + callableFactory.createOperationCallable( + createShareTransportSettings, + settings.createShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteShareCallable = + callableFactory.createUnaryCallable( + deleteShareTransportSettings, settings.deleteShareSettings(), clientContext); + this.deleteShareOperationCallable = + callableFactory.createOperationCallable( + deleteShareTransportSettings, + settings.deleteShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateShareCallable = + callableFactory.createUnaryCallable( + updateShareTransportSettings, settings.updateShareSettings(), clientContext); + this.updateShareOperationCallable = + callableFactory.createOperationCallable( + updateShareTransportSettings, + settings.updateShareOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -726,12 +1329,23 @@ public static List getMethodDescriptors() { methodDescriptors.add(createInstanceMethodDescriptor); methodDescriptors.add(updateInstanceMethodDescriptor); methodDescriptors.add(restoreInstanceMethodDescriptor); + methodDescriptors.add(revertInstanceMethodDescriptor); methodDescriptors.add(deleteInstanceMethodDescriptor); + methodDescriptors.add(listSnapshotsMethodDescriptor); + methodDescriptors.add(getSnapshotMethodDescriptor); + methodDescriptors.add(createSnapshotMethodDescriptor); + methodDescriptors.add(deleteSnapshotMethodDescriptor); + methodDescriptors.add(updateSnapshotMethodDescriptor); methodDescriptors.add(listBackupsMethodDescriptor); methodDescriptors.add(getBackupMethodDescriptor); methodDescriptors.add(createBackupMethodDescriptor); methodDescriptors.add(deleteBackupMethodDescriptor); methodDescriptors.add(updateBackupMethodDescriptor); + methodDescriptors.add(listSharesMethodDescriptor); + methodDescriptors.add(getShareMethodDescriptor); + methodDescriptors.add(createShareMethodDescriptor); + methodDescriptors.add(deleteShareMethodDescriptor); + methodDescriptors.add(updateShareMethodDescriptor); return methodDescriptors; } @@ -788,6 +1402,17 @@ public UnaryCallable restoreInstanceCallable( return restoreInstanceOperationCallable; } + @Override + public UnaryCallable revertInstanceCallable() { + return revertInstanceCallable; + } + + @Override + public OperationCallable + revertInstanceOperationCallable() { + return revertInstanceOperationCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; @@ -799,6 +1424,55 @@ public UnaryCallable deleteInstanceCallable() return deleteInstanceOperationCallable; } + @Override + public UnaryCallable listSnapshotsCallable() { + return listSnapshotsCallable; + } + + @Override + public UnaryCallable + listSnapshotsPagedCallable() { + return listSnapshotsPagedCallable; + } + + @Override + public UnaryCallable getSnapshotCallable() { + return getSnapshotCallable; + } + + @Override + public UnaryCallable createSnapshotCallable() { + return createSnapshotCallable; + } + + @Override + public OperationCallable + createSnapshotOperationCallable() { + return createSnapshotOperationCallable; + } + + @Override + public UnaryCallable deleteSnapshotCallable() { + return deleteSnapshotCallable; + } + + @Override + public OperationCallable + deleteSnapshotOperationCallable() { + return deleteSnapshotOperationCallable; + } + + @Override + public UnaryCallable updateSnapshotCallable() { + return updateSnapshotCallable; + } + + @Override + public OperationCallable + updateSnapshotOperationCallable() { + return updateSnapshotOperationCallable; + } + @Override public UnaryCallable listBackupsCallable() { return listBackupsCallable; @@ -847,6 +1521,54 @@ public UnaryCallable updateBackupCallable() { return updateBackupOperationCallable; } + @Override + public UnaryCallable listSharesCallable() { + return listSharesCallable; + } + + @Override + public UnaryCallable listSharesPagedCallable() { + return listSharesPagedCallable; + } + + @Override + public UnaryCallable getShareCallable() { + return getShareCallable; + } + + @Override + public UnaryCallable createShareCallable() { + return createShareCallable; + } + + @Override + public OperationCallable + createShareOperationCallable() { + return createShareOperationCallable; + } + + @Override + public UnaryCallable deleteShareCallable() { + return deleteShareCallable; + } + + @Override + public OperationCallable + deleteShareOperationCallable() { + return deleteShareOperationCallable; + } + + @Override + public UnaryCallable updateShareCallable() { + return updateShareCallable; + } + + @Override + public OperationCallable + updateShareOperationCallable() { + return updateShareOperationCallable; + } + @Override public final void close() { try { diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java similarity index 50% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java index 980eca1d9a83..a51489964af7 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -198,6 +200,13 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -250,6 +259,13 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -302,6 +318,13 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -363,6 +386,13 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -424,6 +454,13 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -444,6 +481,13 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -484,6 +528,13 @@ public void updateInstanceExceptionTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, updateMask).get(); @@ -505,6 +556,13 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -557,6 +615,78 @@ public void restoreInstanceExceptionTest() throws Exception { } } + @Test + public void revertInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setDescription("description-1724546052") + .setStatusMessage("statusMessage-958704715") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllFileShares(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setEtag("etag3123477") + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revertInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + + Instance actualResponse = client.revertInstanceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revertInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + client.revertInstanceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteInstanceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -648,23 +778,23 @@ public void deleteInstanceExceptionTest2() throws Exception { } @Test - public void listBackupsTest() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void listSnapshotsTest() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllSnapshots(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -682,15 +812,15 @@ public void listBackupsTest() throws Exception { } @Test - public void listBackupsExceptionTest() throws Exception { + public void listSnapshotsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBackups(parent); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listSnapshots(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -698,23 +828,23 @@ public void listBackupsExceptionTest() throws Exception { } @Test - public void listBackupsTest2() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void listSnapshotsTest2() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllSnapshots(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -732,15 +862,15 @@ public void listBackupsTest2() throws Exception { } @Test - public void listBackupsExceptionTest2() throws Exception { + public void listSnapshotsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "projects/project-5833/locations/location-5833"; - client.listBackups(parent); + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listSnapshots(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -748,25 +878,21 @@ public void listBackupsExceptionTest2() throws Exception { } @Test - public void getBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void getSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); mockService.addResponse(expectedResponse); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); - Backup actualResponse = client.getBackup(name); + Snapshot actualResponse = client.getSnapshot(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -785,15 +911,15 @@ public void getBackupTest() throws Exception { } @Test - public void getBackupExceptionTest() throws Exception { + public void getSnapshotExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - client.getBackup(name); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + client.getSnapshot(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -801,25 +927,22 @@ public void getBackupExceptionTest() throws Exception { } @Test - public void getBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void getSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); mockService.addResponse(expectedResponse); - String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String name = + "projects/project-2497/locations/location-2497/instances/instance-2497/snapshots/snapshot-2497"; - Backup actualResponse = client.getBackup(name); + Snapshot actualResponse = client.getSnapshot(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -838,15 +961,16 @@ public void getBackupTest2() throws Exception { } @Test - public void getBackupExceptionTest2() throws Exception { + public void getSnapshotExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; - client.getBackup(name); + String name = + "projects/project-2497/locations/location-2497/instances/instance-2497/snapshots/snapshot-2497"; + client.getSnapshot(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -854,33 +978,29 @@ public void getBackupExceptionTest2() throws Exception { } @Test - public void createBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void createSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createBackupTest") + .setName("createSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; - Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Snapshot actualResponse = client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -899,50 +1019,46 @@ public void createBackupTest() throws Exception { } @Test - public void createBackupExceptionTest() throws Exception { + public void createSnapshotExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; - client.createBackupAsync(parent, backup, backupId).get(); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void createBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void createSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createBackupTest") + .setName("createSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; - Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Snapshot actualResponse = client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -961,36 +1077,36 @@ public void createBackupTest2() throws Exception { } @Test - public void createBackupExceptionTest2() throws Exception { + public void createSnapshotExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "projects/project-5833/locations/location-5833"; - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; - client.createBackupAsync(parent, backup, backupId).get(); + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void deleteBackupTest() throws Exception { + public void deleteSnapshotTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); - client.deleteBackupAsync(name).get(); + client.deleteSnapshotAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1008,34 +1124,35 @@ public void deleteBackupTest() throws Exception { } @Test - public void deleteBackupExceptionTest() throws Exception { + public void deleteSnapshotExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - client.deleteBackupAsync(name).get(); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + client.deleteSnapshotAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void deleteBackupTest2() throws Exception { + public void deleteSnapshotTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String name = + "projects/project-2497/locations/location-2497/instances/instance-2497/snapshots/snapshot-2497"; - client.deleteBackupAsync(name).get(); + client.deleteSnapshotAsync(name).get(); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1053,59 +1170,52 @@ public void deleteBackupTest2() throws Exception { } @Test - public void deleteBackupExceptionTest2() throws Exception { + public void deleteSnapshotExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; - client.deleteBackupAsync(name).get(); + String name = + "projects/project-2497/locations/location-2497/instances/instance-2497/snapshots/snapshot-2497"; + client.deleteSnapshotAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void updateBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void updateSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("updateBackupTest") + .setName("updateSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockService.addResponse(resultOperation); - Backup backup = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + Snapshot snapshot = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Snapshot actualResponse = client.updateSnapshotAsync(snapshot, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1124,29 +1234,1023 @@ public void updateBackupTest() throws Exception { } @Test - public void updateBackupExceptionTest() throws Exception { + public void updateSnapshotExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - Backup backup = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + Snapshot snapshot = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance( - InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateBackupAsync(backup, updateMask).get(); + client.updateSnapshotAsync(snapshot, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance( + InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSharesTest() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSharesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharesTest2() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSharesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8454/locations/location-8454/instances/instance-8454/shares/share-8454"; + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8454/locations/location-8454/instances/instance-8454/shares/share-8454"; + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteShareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + + client.deleteShareAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteShareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8454/locations/location-8454/instances/instance-8454/shares/share-8454"; + + client.deleteShareAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8454/locations/location-8454/instances/instance-8454/shares/share-8454"; + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Share share = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Share actualResponse = client.updateShareAsync(share, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Share share = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateShareAsync(share, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java similarity index 51% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java index 1ba3101b33f7..248c89a0a755 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java @@ -18,6 +18,8 @@ import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListBackupsPagedResponse; import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSharesPagedResponse; +import static com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient.ListSnapshotsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -191,6 +193,13 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -237,6 +246,13 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -283,6 +299,13 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -343,6 +366,13 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -403,6 +433,13 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -460,6 +497,13 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -512,6 +556,76 @@ public void restoreInstanceExceptionTest() throws Exception { } } + @Test + public void revertInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setDescription("description-1724546052") + .setStatusMessage("statusMessage-958704715") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllFileShares(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setEtag("etag3123477") + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .setMaxCapacityGb(220559397) + .setCapacityStepSizeGb(18315979) + .setMaxShareCount(-1758695852) + .setCapacityGb(-1923585408) + .setMultiShareEnabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("revertInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + + Instance actualResponse = client.revertInstanceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevertInstanceRequest actualRequest = ((RevertInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getTargetSnapshotId(), actualRequest.getTargetSnapshotId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revertInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + client.revertInstanceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteInstanceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -597,27 +711,27 @@ public void deleteInstanceExceptionTest2() throws Exception { } @Test - public void listBackupsTest() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void listSnapshotsTest() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllSnapshots(Arrays.asList(responsesElement)) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + ListSnapshotsRequest actualRequest = ((ListSnapshotsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -627,13 +741,13 @@ public void listBackupsTest() throws Exception { } @Test - public void listBackupsExceptionTest() throws Exception { + public void listSnapshotsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBackups(parent); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listSnapshots(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -641,27 +755,27 @@ public void listBackupsExceptionTest() throws Exception { } @Test - public void listBackupsTest2() throws Exception { - Backup responsesElement = Backup.newBuilder().build(); - ListBackupsResponse expectedResponse = - ListBackupsResponse.newBuilder() + public void listSnapshotsTest2() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() .setNextPageToken("") - .addAllBackups(Arrays.asList(responsesElement)) + .addAllSnapshots(Arrays.asList(responsesElement)) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); String parent = "parent-995424086"; - ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + ListSnapshotsRequest actualRequest = ((ListSnapshotsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -671,13 +785,13 @@ public void listBackupsTest2() throws Exception { } @Test - public void listBackupsExceptionTest2() throws Exception { + public void listSnapshotsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { String parent = "parent-995424086"; - client.listBackups(parent); + client.listSnapshots(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -685,30 +799,26 @@ public void listBackupsExceptionTest2() throws Exception { } @Test - public void getBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void getSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); - Backup actualResponse = client.getBackup(name); + Snapshot actualResponse = client.getSnapshot(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + GetSnapshotRequest actualRequest = ((GetSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -718,13 +828,13 @@ public void getBackupTest() throws Exception { } @Test - public void getBackupExceptionTest() throws Exception { + public void getSnapshotExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - client.getBackup(name); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + client.getSnapshot(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -732,30 +842,26 @@ public void getBackupExceptionTest() throws Exception { } @Test - public void getBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void getSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); mockCloudFilestoreManager.addResponse(expectedResponse); String name = "name3373707"; - Backup actualResponse = client.getBackup(name); + Snapshot actualResponse = client.getSnapshot(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + GetSnapshotRequest actualRequest = ((GetSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -765,13 +871,13 @@ public void getBackupTest2() throws Exception { } @Test - public void getBackupExceptionTest2() throws Exception { + public void getSnapshotExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { String name = "name3373707"; - client.getBackup(name); + client.getSnapshot(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -779,42 +885,38 @@ public void getBackupExceptionTest2() throws Exception { } @Test - public void createBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void createSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createBackupTest") + .setName("createSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudFilestoreManager.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; - Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Snapshot actualResponse = client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(backup, actualRequest.getBackup()); - Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); + Assert.assertEquals(snapshotId, actualRequest.getSnapshotId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -822,15 +924,15 @@ public void createBackupTest() throws Exception { } @Test - public void createBackupExceptionTest() throws Exception { + public void createSnapshotExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; - client.createBackupAsync(parent, backup, backupId).get(); + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -840,42 +942,38 @@ public void createBackupExceptionTest() throws Exception { } @Test - public void createBackupTest2() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void createSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createBackupTest") + .setName("createSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudFilestoreManager.addResponse(resultOperation); String parent = "parent-995424086"; - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; - Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Snapshot actualResponse = client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(backup, actualRequest.getBackup()); - Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); + Assert.assertEquals(snapshotId, actualRequest.getSnapshotId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -883,15 +981,15 @@ public void createBackupTest2() throws Exception { } @Test - public void createBackupExceptionTest2() throws Exception { + public void createSnapshotExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { String parent = "parent-995424086"; - Backup backup = Backup.newBuilder().build(); - String backupId = "backupId2121930365"; - client.createBackupAsync(parent, backup, backupId).get(); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + client.createSnapshotAsync(parent, snapshot, snapshotId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -901,23 +999,23 @@ public void createBackupExceptionTest2() throws Exception { } @Test - public void deleteBackupTest() throws Exception { + public void deleteSnapshotTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudFilestoreManager.addResponse(resultOperation); - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); - client.deleteBackupAsync(name).get(); + client.deleteSnapshotAsync(name).get(); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + DeleteSnapshotRequest actualRequest = ((DeleteSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -927,13 +1025,13 @@ public void deleteBackupTest() throws Exception { } @Test - public void deleteBackupExceptionTest() throws Exception { + public void deleteSnapshotExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { - BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - client.deleteBackupAsync(name).get(); + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + client.deleteSnapshotAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -943,11 +1041,11 @@ public void deleteBackupExceptionTest() throws Exception { } @Test - public void deleteBackupTest2() throws Exception { + public void deleteSnapshotTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteBackupTest") + .setName("deleteSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -955,11 +1053,11 @@ public void deleteBackupTest2() throws Exception { String name = "name3373707"; - client.deleteBackupAsync(name).get(); + client.deleteSnapshotAsync(name).get(); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + DeleteSnapshotRequest actualRequest = ((DeleteSnapshotRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -969,13 +1067,13 @@ public void deleteBackupTest2() throws Exception { } @Test - public void deleteBackupExceptionTest2() throws Exception { + public void deleteSnapshotExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { String name = "name3373707"; - client.deleteBackupAsync(name).get(); + client.deleteSnapshotAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -985,39 +1083,35 @@ public void deleteBackupExceptionTest2() throws Exception { } @Test - public void updateBackupTest() throws Exception { - Backup expectedResponse = - Backup.newBuilder() - .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + public void updateSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) - .setCapacityGb(-1923585408) - .setStorageBytes(2035244455) - .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - .setSourceFileShare("sourceFileShare-646832664") - .setDownloadBytes(971924980) - .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setFilesystemUsedBytes(387235709) .build(); Operation resultOperation = Operation.newBuilder() - .setName("updateBackupTest") + .setName("updateSnapshotTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockCloudFilestoreManager.addResponse(resultOperation); - Backup backup = Backup.newBuilder().build(); + Snapshot snapshot = Snapshot.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Snapshot actualResponse = client.updateSnapshotAsync(snapshot, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudFilestoreManager.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateBackupRequest actualRequest = ((UpdateBackupRequest) actualRequests.get(0)); + UpdateSnapshotRequest actualRequest = ((UpdateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1026,14 +1120,896 @@ public void updateBackupTest() throws Exception { } @Test - public void updateBackupExceptionTest() throws Exception { + public void updateSnapshotExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudFilestoreManager.addException(exception); try { - Backup backup = Backup.newBuilder().build(); + Snapshot snapshot = Snapshot.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateBackupAsync(backup, updateMask).get(); + client.updateSnapshotAsync(snapshot, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String name = "name3373707"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCapacityGb(-1923585408) + .setStorageBytes(2035244455) + .setSourceInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSourceFileShare("sourceFileShare-646832664") + .setDownloadBytes(971924980) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupRequest actualRequest = ((UpdateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listSharesTest() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharesRequest actualRequest = ((ListSharesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSharesTest2() throws Exception { + Share responsesElement = Share.newBuilder().build(); + ListSharesResponse expectedResponse = + ListSharesResponse.newBuilder() + .setNextPageToken("") + .addAllShares(Arrays.asList(responsesElement)) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSharesPagedResponse pagedListResponse = client.listShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSharesList().get(0), resources.get(0)); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSharesRequest actualRequest = ((ListSharesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSharesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetShareRequest actualRequest = ((GetShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockCloudFilestoreManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Share actualResponse = client.getShare(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetShareRequest actualRequest = ((GetShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String name = "name3373707"; + client.getShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateShareRequest actualRequest = ((CreateShareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(share, actualRequest.getShare()); + Assert.assertEquals(shareId, actualRequest.getShareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createShareTest2() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + + Share actualResponse = client.createShareAsync(parent, share, shareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateShareRequest actualRequest = ((CreateShareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(share, actualRequest.getShare()); + Assert.assertEquals(shareId, actualRequest.getShareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String parent = "parent-995424086"; + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + client.createShareAsync(parent, share, shareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteShareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + + client.deleteShareAsync(name).get(); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteShareRequest actualRequest = ((DeleteShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteShareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteShareAsync(name).get(); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteShareRequest actualRequest = ((DeleteShareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteShareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteShareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateShareTest() throws Exception { + Share expectedResponse = + Share.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .setMountName("mountName456881732") + .setDescription("description-1724546052") + .setCapacityGb(-1923585408) + .addAllNfsExportOptions(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudFilestoreManager.addResponse(resultOperation); + + Share share = Share.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Share actualResponse = client.updateShareAsync(share, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudFilestoreManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateShareRequest actualRequest = ((UpdateShareRequest) actualRequests.get(0)); + + Assert.assertEquals(share, actualRequest.getShare()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudFilestoreManager.addException(exception); + + try { + Share share = Share.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateShareAsync(share, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java similarity index 100% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManager.java diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java similarity index 54% rename from java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java rename to owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java index e8d3f63369b6..b26a22762267 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java +++ b/owl-bot-staging/java-filestore/v1beta1/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/MockCloudFilestoreManagerImpl.java @@ -163,6 +163,27 @@ public void restoreInstance( } } + @Override + public void revertInstance( + RevertInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RevertInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteInstance( DeleteInstanceRequest request, StreamObserver responseObserver) { @@ -184,6 +205,110 @@ public void deleteInstance( } } + @Override + public void listSnapshots( + ListSnapshotsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSnapshotsResponse) { + requests.add(request); + responseObserver.onNext(((ListSnapshotsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSnapshots, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSnapshotsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSnapshot(GetSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Snapshot) { + requests.add(request); + responseObserver.onNext(((Snapshot) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Snapshot.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSnapshot( + CreateSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSnapshot( + DeleteSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSnapshot( + UpdateSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listBackups( ListBackupsRequest request, StreamObserver responseObserver) { @@ -287,4 +412,105 @@ public void updateBackup( Exception.class.getName()))); } } + + @Override + public void listShares( + ListSharesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSharesResponse) { + requests.add(request); + responseObserver.onNext(((ListSharesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListShares, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSharesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getShare(GetShareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Share) { + requests.add(request); + responseObserver.onNext(((Share) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Share.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createShare(CreateShareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteShare(DeleteShareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateShare(UpdateShareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateShare, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java b/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java new file mode 100644 index 000000000000..a11e4f872e23 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/grpc-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerGrpc.java @@ -0,0 +1,2235 @@ +package com.google.cloud.filestore.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Configures and manages Filestore resources.
+ * Filestore Manager v1beta1.
+ * The `file.googleapis.com` service implements the Filestore API and
+ * defines the following model for managing resources:
+ * * 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_id}/locations/{location_id}/instances/{instance_id}`
+ *   backups are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+ * Note that location_id can represent a GCP `zone` or `region` depending on the
+ * resource.
+ * for example:
+ * A zonal Filestore instance:
+ * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+ * A regional Filestore instance:
+ * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudFilestoreManagerGrpc { + + private CloudFilestoreManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.filestore.v1beta1.CloudFilestoreManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor 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.v1beta1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getRestoreInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreInstance", + requestType = com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRestoreInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getRevertInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevertInstance", + requestType = com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRevertInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getListSnapshotsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", + requestType = com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSnapshotsMethod() { + io.grpc.MethodDescriptor 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.v1beta1.ListSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListSnapshots")) + .build(); + } + } + } + return getListSnapshotsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", + requestType = com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSnapshotMethod() { + io.grpc.MethodDescriptor 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.v1beta1.GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetSnapshot")) + .build(); + } + } + } + return getGetSnapshotMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSnapshotMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getDeleteSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", + requestType = com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getUpdateSnapshotMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", + requestType = com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBackupsMethod() { + io.grpc.MethodDescriptor 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.v1beta1.ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.filestore.v1beta1.GetBackupRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBackupMethod() { + io.grpc.MethodDescriptor 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.v1beta1.GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBackupMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBackupMethod() { + io.grpc.MethodDescriptor 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.v1beta1.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 getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateBackupMethod() { + io.grpc.MethodDescriptor 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.v1beta1.UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListShares", + requestType = com.google.cloud.filestore.v1beta1.ListSharesRequest.class, + responseType = com.google.cloud.filestore.v1beta1.ListSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSharesMethod() { + io.grpc.MethodDescriptor getListSharesMethod; + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getListSharesMethod = CloudFilestoreManagerGrpc.getListSharesMethod) == null) { + CloudFilestoreManagerGrpc.getListSharesMethod = getListSharesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("ListShares")) + .build(); + } + } + } + return getListSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetShare", + requestType = com.google.cloud.filestore.v1beta1.GetShareRequest.class, + responseType = com.google.cloud.filestore.v1beta1.Share.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetShareMethod() { + io.grpc.MethodDescriptor getGetShareMethod; + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getGetShareMethod = CloudFilestoreManagerGrpc.getGetShareMethod) == null) { + CloudFilestoreManagerGrpc.getGetShareMethod = getGetShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("GetShare")) + .build(); + } + } + } + return getGetShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateShare", + requestType = com.google.cloud.filestore.v1beta1.CreateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateShareMethod() { + io.grpc.MethodDescriptor getCreateShareMethod; + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getCreateShareMethod = CloudFilestoreManagerGrpc.getCreateShareMethod) == null) { + CloudFilestoreManagerGrpc.getCreateShareMethod = getCreateShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("CreateShare")) + .build(); + } + } + } + return getCreateShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteShare", + requestType = com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteShareMethod() { + io.grpc.MethodDescriptor getDeleteShareMethod; + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getDeleteShareMethod = CloudFilestoreManagerGrpc.getDeleteShareMethod) == null) { + CloudFilestoreManagerGrpc.getDeleteShareMethod = getDeleteShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("DeleteShare")) + .build(); + } + } + } + return getDeleteShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateShare", + requestType = com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateShareMethod() { + io.grpc.MethodDescriptor getUpdateShareMethod; + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getUpdateShareMethod = CloudFilestoreManagerGrpc.getUpdateShareMethod) == null) { + CloudFilestoreManagerGrpc.getUpdateShareMethod = getUpdateShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFilestoreManagerMethodDescriptorSupplier("UpdateShare")) + .build(); + } + } + } + return getUpdateShareMethod; + } + + /** + * 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 v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * 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_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + public static abstract class CloudFilestoreManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all instances in a project for either a specified location
+     * or for all locations.
+     * 
+ */ + public void listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public void getInstance(com.google.cloud.filestore.v1beta1.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).
+     * 
+ */ + public void createInstance(com.google.cloud.filestore.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific instance.
+     * 
+ */ + public void updateInstance(com.google.cloud.filestore.v1beta1.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).
+     * 
+ */ + public void restoreInstance(com.google.cloud.filestore.v1beta1.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.
+     * 
+ */ + public void revertInstance(com.google.cloud.filestore.v1beta1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevertInstanceMethod(), responseObserver); + } + + /** + *
+     * Deletes an instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.filestore.v1beta1.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.
+     * 
+ */ + public void listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public void getSnapshot(com.google.cloud.filestore.v1beta1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); + } + + /** + *
+     * Creates a snapshot.
+     * 
+ */ + public void createSnapshot(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); + } + + /** + *
+     * Deletes a snapshot.
+     * 
+ */ + public void deleteSnapshot(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific snapshot.
+     * 
+ */ + public void updateSnapshot(com.google.cloud.filestore.v1beta1.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.
+     * 
+ */ + public void listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBackupsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public void getBackup(com.google.cloud.filestore.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + *
+     * Creates a backup.
+     * 
+ */ + public void createBackup(com.google.cloud.filestore.v1beta1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBackupMethod(), responseObserver); + } + + /** + *
+     * Deletes a backup.
+     * 
+ */ + public void deleteBackup(com.google.cloud.filestore.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBackupMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific backup.
+     * 
+ */ + public void updateBackup(com.google.cloud.filestore.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBackupMethod(), responseObserver); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSharesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShareMethod(), responseObserver); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateShareMethod(), responseObserver); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteShareMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateShareMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListInstancesRequest, + com.google.cloud.filestore.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetInstanceRequest, + com.google.cloud.filestore.v1beta1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getRestoreInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_INSTANCE))) + .addMethod( + getRevertInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.RevertInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_REVERT_INSTANCE))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest, + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) + .addMethod( + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetSnapshotRequest, + com.google.cloud.filestore.v1beta1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) + .addMethod( + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SNAPSHOT))) + .addMethod( + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SNAPSHOT))) + .addMethod( + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SNAPSHOT))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListBackupsRequest, + com.google.cloud.filestore.v1beta1.ListBackupsResponse>( + this, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetBackupRequest, + com.google.cloud.filestore.v1beta1.Backup>( + this, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateBackupRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_BACKUP))) + .addMethod( + getListSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.ListSharesRequest, + com.google.cloud.filestore.v1beta1.ListSharesResponse>( + this, METHODID_LIST_SHARES))) + .addMethod( + getGetShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.GetShareRequest, + com.google.cloud.filestore.v1beta1.Share>( + this, METHODID_GET_SHARE))) + .addMethod( + getCreateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.CreateShareRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SHARE))) + .addMethod( + getDeleteShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.DeleteShareRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SHARE))) + .addMethod( + getUpdateShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1beta1.UpdateShareRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SHARE))) + .build(); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * 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_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public void listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public void getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public void createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public void deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public void updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateShareMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * 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_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + 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.v1beta1.ListInstancesResponse listInstances(com.google.cloud.filestore.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Instance getInstance(com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListSnapshotsResponse listSnapshots(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific snapshot.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ListBackupsResponse listBackups(com.google.cloud.filestore.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific backup.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Backup getBackup(com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.ListSharesResponse listShares(com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSharesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.cloud.filestore.v1beta1.Share getShare(com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public com.google.longrunning.Operation createShare(com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public com.google.longrunning.Operation deleteShare(com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteShareMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.longrunning.Operation updateShare(com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateShareMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Filestore resources.
+   * Filestore Manager v1beta1.
+   * The `file.googleapis.com` service implements the Filestore API and
+   * defines the following model for managing resources:
+   * * 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_id}/locations/{location_id}/instances/{instance_id}`
+   *   backups are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
+   * Note that location_id can represent a GCP `zone` or `region` depending on the
+   * resource.
+   * for example:
+   * A zonal Filestore instance:
+   * * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
+   * A regional Filestore instance:
+   * * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
+   * 
+ */ + 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 listInstances( + com.google.cloud.filestore.v1beta1.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 getInstance( + com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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 listSnapshots( + com.google.cloud.filestore.v1beta1.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 getSnapshot( + com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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 listBackups( + com.google.cloud.filestore.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all shares for a specified instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listShares( + com.google.cloud.filestore.v1beta1.ListSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSharesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getShare( + com.google.cloud.filestore.v1beta1.GetShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createShare( + com.google.cloud.filestore.v1beta1.CreateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteShare( + com.google.cloud.filestore.v1beta1.DeleteShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteShareMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateShare( + com.google.cloud.filestore.v1beta1.UpdateShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateShareMethod(), 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 int METHODID_LIST_SHARES = 17; + private static final int METHODID_GET_SHARE = 18; + private static final int METHODID_CREATE_SHARE = 19; + private static final int METHODID_DELETE_SHARE = 20; + private static final int METHODID_UPDATE_SHARE = 21; + + 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 CloudFilestoreManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudFilestoreManagerImplBase 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.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.filestore.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_INSTANCE: + serviceImpl.restoreInstance((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REVERT_INSTANCE: + serviceImpl.revertInstance((com.google.cloud.filestore.v1beta1.RevertInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SNAPSHOTS: + serviceImpl.listSnapshots((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SNAPSHOT: + serviceImpl.getSnapshot((com.google.cloud.filestore.v1beta1.GetSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SNAPSHOT: + serviceImpl.createSnapshot((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SNAPSHOT: + serviceImpl.deleteSnapshot((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SNAPSHOT: + serviceImpl.updateSnapshot((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups((com.google.cloud.filestore.v1beta1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup((com.google.cloud.filestore.v1beta1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup((com.google.cloud.filestore.v1beta1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SHARES: + serviceImpl.listShares((com.google.cloud.filestore.v1beta1.ListSharesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SHARE: + serviceImpl.getShare((com.google.cloud.filestore.v1beta1.GetShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SHARE: + serviceImpl.createShare((com.google.cloud.filestore.v1beta1.CreateShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SHARE: + serviceImpl.deleteShare((com.google.cloud.filestore.v1beta1.DeleteShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SHARE: + serviceImpl.updateShare((com.google.cloud.filestore.v1beta1.UpdateShareRequest) 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(); + } + } + } + + private static abstract 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.v1beta1.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 String methodName; + + CloudFilestoreManagerMethodDescriptorSupplier(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()) + .addMethod(getListSharesMethod()) + .addMethod(getGetShareMethod()) + .addMethod(getCreateShareMethod()) + .addMethod(getDeleteShareMethod()) + .addMethod(getUpdateShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java similarity index 71% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java index cd3f8c6dcec5..07036dbcf704 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/common/operation_metadata.proto package com.google.cloud.common; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.common.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.common.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -171,14 +130,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -187,29 +143,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,14 +176,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -236,29 +189,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -269,14 +222,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -285,29 +235,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -318,8 +268,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -328,7 +276,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -339,14 +286,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -355,29 +299,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -386,7 +330,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -430,10 +374,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -445,7 +391,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,27 +405,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.common.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.common.OperationMetadata other = - (com.google.cloud.common.OperationMetadata) obj; + com.google.cloud.common.OperationMetadata other = (com.google.cloud.common.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,7 +458,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -513,136 +467,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.common.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.common.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.common.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.common.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.common.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.common.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.common.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.common.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.common.OperationMetadata) com.google.cloud.common.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.common.OperationMetadata.class, - com.google.cloud.common.OperationMetadata.Builder.class); + com.google.cloud.common.OperationMetadata.class, com.google.cloud.common.OperationMetadata.Builder.class); } // Construct using com.google.cloud.common.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +620,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.common.OperationMetadataOuterClass - .internal_static_google_cloud_common_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.common.OperationMetadataOuterClass.internal_static_google_cloud_common_OperationMetadata_descriptor; } @java.lang.Override @@ -693,8 +641,7 @@ public com.google.cloud.common.OperationMetadata build() { @java.lang.Override public com.google.cloud.common.OperationMetadata buildPartial() { - com.google.cloud.common.OperationMetadata result = - new com.google.cloud.common.OperationMetadata(this); + com.google.cloud.common.OperationMetadata result = new com.google.cloud.common.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -718,39 +665,38 @@ public com.google.cloud.common.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.common.OperationMetadata) { - return mergeFrom((com.google.cloud.common.OperationMetadata) other); + return mergeFrom((com.google.cloud.common.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -810,55 +756,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - statusDetail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - cancelRequested_ = input.readBool(); - - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + statusDetail_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + cancelRequested_ = input.readBool(); + + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,58 +813,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -938,17 +861,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -959,21 +879,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -985,15 +901,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1007,64 +919,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1072,35 +968,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1111,14 +996,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1134,16 +1016,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1154,20 +1034,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1179,14 +1056,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1200,59 +1074,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1260,20 +1123,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1282,21 +1143,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1304,61 +1164,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1366,20 +1219,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1388,21 +1239,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1410,61 +1260,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1472,20 +1315,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1494,21 +1335,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1516,70 +1356,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1588,7 +1419,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1596,8 +1426,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1606,19 +1434,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1627,11 +1452,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1639,20 +1463,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1661,21 +1483,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1683,68 +1504,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1754,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.common.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.common.OperationMetadata) private static final com.google.cloud.common.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.common.OperationMetadata(); } @@ -1768,27 +1582,27 @@ public static com.google.cloud.common.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,4 +1617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.common.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java similarity index 74% rename from java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java index 9d77fb3b23d3..03b8d68c0be5 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/common/operation_metadata.proto package com.google.cloud.common; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.common.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java new file mode 100644 index 000000000000..8b00f4c11630 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadataOuterClass.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/common/operation_metadata.proto + +package com.google.cloud.common; + +public final class OperationMetadataOuterClass { + private OperationMetadataOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_common_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/common/operation_metadata" + + ".proto\022\023google.cloud.common\032\037google/api/" + + "field_behavior.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\371\001\n\021OperationMetadata\0224\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A" + + "\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 " + + "\001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022" + + "\030\n\013api_version\030\007 \001(\tB\003\340A\003BV\n\027com.google." + + "cloud.commonP\001Z9google.golang.org/genpro" + + "to/googleapis/cloud/common;commonb\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_common_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_common_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_common_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java index 747ff66772df..7b29e1520769 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
- * A Cloud Filestore backup.
+ * A Filestore backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Backup} */ -public final class Backup extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Backup extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Backup) BackupOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Backup.newBuilder() to construct. private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Backup() { name_ = ""; description_ = ""; @@ -44,58 +26,56 @@ private Backup() { sourceInstance_ = ""; sourceFileShare_ = ""; sourceInstanceTier_ = 0; + kmsKeyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Backup(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, - com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); } /** - * - * *
    * The backup state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Backup.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -104,8 +84,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Backup is being created.
      * 
@@ -114,8 +92,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -125,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FINALIZING(2),
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -135,8 +109,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Backup is being deleted.
      * 
@@ -148,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -158,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Backup is being created.
      * 
@@ -168,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Backup has been taken and the operation is being finalized. At this
      * point, changes to the file share will not be reflected in the backup.
@@ -179,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FINALIZING_VALUE = 2;
     /**
-     *
-     *
      * 
      * Backup is available for use.
      * 
@@ -189,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Backup is being deleted.
      * 
@@ -199,6 +161,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,53 +186,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return FINALIZING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return FINALIZING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1beta1.Backup.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -289,15 +250,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -306,30 +264,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -340,15 +298,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -357,30 +312,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -391,55 +346,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Backup.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = - com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -447,15 +385,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -463,14 +397,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -478,23 +409,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -503,30 +435,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -534,12 +464,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -547,16 +476,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -564,11 +493,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -578,14 +508,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int CAPACITY_GB_FIELD_NUMBER = 6; private long capacityGb_; /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -596,15 +523,12 @@ public long getCapacityGb() { public static final int STORAGE_BYTES_FIELD_NUMBER = 7; private long storageBytes_; /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -615,16 +539,13 @@ public long getStorageBytes() { public static final int SOURCE_INSTANCE_FIELD_NUMBER = 8; private volatile java.lang.Object sourceInstance_; /** - * - * *
-   * The resource name of the source Cloud Filestore instance, in the format
+   * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
    * used to create this backup.
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ @java.lang.Override @@ -633,31 +554,31 @@ public java.lang.String getSourceInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; } } /** - * - * *
-   * The resource name of the source Cloud Filestore instance, in the format
+   * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
    * used to create this backup.
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -668,15 +589,12 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { public static final int SOURCE_FILE_SHARE_FIELD_NUMBER = 9; private volatile java.lang.Object sourceFileShare_; /** - * - * *
-   * Name of the file share in the source Cloud Filestore instance that the
+   * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ @java.lang.Override @@ -685,30 +603,30 @@ public java.lang.String getSourceFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; } } /** - * - * *
-   * Name of the file share in the source Cloud Filestore instance that the
+   * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -719,56 +637,40 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { public static final int SOURCE_INSTANCE_TIER_FIELD_NUMBER = 10; private int sourceInstanceTier_; /** - * - * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
+   * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
+   * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int DOWNLOAD_BYTES_FIELD_NUMBER = 11; private long downloadBytes_; /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -779,16 +681,11 @@ public long getDownloadBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 12; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -796,42 +693,76 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return getSatisfiesPzs(); } - private byte memoizedIsInitialized = -1; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; + private volatile java.lang.Object kmsKeyName_; + /** + *
+   * Immutable. KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + *
+   * Immutable. KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -843,7 +774,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -856,8 +788,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (capacityGb_ != 0L) { output.writeInt64(6, capacityGb_); } @@ -870,8 +806,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { @@ -880,6 +815,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != null) { output.writeMessage(12, getSatisfiesPzs()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kmsKeyName_); + } getUnknownFields().writeTo(output); } @@ -896,26 +834,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (capacityGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, capacityGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, capacityGb_); } if (storageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, storageBytes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); @@ -923,15 +865,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } - if (sourceInstanceTier_ - != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, sourceInstanceTier_); + if (sourceInstanceTier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, sourceInstanceTier_); } if (downloadBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, downloadBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, downloadBytes_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSatisfiesPzs()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -941,32 +888,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Backup)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Backup other = - (com.google.cloud.filestore.v1beta1.Backup) obj; + com.google.cloud.filestore.v1beta1.Backup other = (com.google.cloud.filestore.v1beta1.Backup) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getCapacityGb() != other.getCapacityGb()) return false; - if (getStorageBytes() != other.getStorageBytes()) return false; - if (!getSourceInstance().equals(other.getSourceInstance())) return false; - if (!getSourceFileShare().equals(other.getSourceFileShare())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getStorageBytes() + != other.getStorageBytes()) return false; + if (!getSourceInstance() + .equals(other.getSourceInstance())) return false; + if (!getSourceFileShare() + .equals(other.getSourceFileShare())) return false; if (sourceInstanceTier_ != other.sourceInstanceTier_) return false; - if (getDownloadBytes() != other.getDownloadBytes()) return false; + if (getDownloadBytes() + != other.getDownloadBytes()) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; } + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -993,9 +951,11 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); hash = (37 * hash) + STORAGE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStorageBytes()); hash = (37 * hash) + SOURCE_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getSourceInstance().hashCode(); hash = (37 * hash) + SOURCE_FILE_SHARE_FIELD_NUMBER; @@ -1003,166 +963,165 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INSTANCE_TIER_FIELD_NUMBER; hash = (53 * hash) + sourceInstanceTier_; hash = (37 * hash) + DOWNLOAD_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDownloadBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDownloadBytes()); if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Backup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Backup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Backup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Backup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * A Cloud Filestore backup.
+   * A Filestore backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Backup} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Backup) com.google.cloud.filestore.v1beta1.BackupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Backup.class, - com.google.cloud.filestore.v1beta1.Backup.Builder.class); + com.google.cloud.filestore.v1beta1.Backup.class, com.google.cloud.filestore.v1beta1.Backup.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Backup.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1197,13 +1156,15 @@ public Builder clear() { satisfiesPzs_ = null; satisfiesPzsBuilder_ = null; } + kmsKeyName_ = ""; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; } @java.lang.Override @@ -1222,8 +1183,7 @@ public com.google.cloud.filestore.v1beta1.Backup build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup buildPartial() { - com.google.cloud.filestore.v1beta1.Backup result = - new com.google.cloud.filestore.v1beta1.Backup(this); + com.google.cloud.filestore.v1beta1.Backup result = new com.google.cloud.filestore.v1beta1.Backup(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1246,6 +1206,7 @@ public com.google.cloud.filestore.v1beta1.Backup buildPartial() { } else { result.satisfiesPzs_ = satisfiesPzsBuilder_.build(); } + result.kmsKeyName_ = kmsKeyName_; onBuilt(); return result; } @@ -1254,39 +1215,38 @@ public com.google.cloud.filestore.v1beta1.Backup buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.Backup) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Backup) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Backup)other); } else { super.mergeFrom(other); return this; @@ -1309,7 +1269,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Backup other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getCapacityGb() != 0L) { setCapacityGb(other.getCapacityGb()); } @@ -1333,6 +1294,10 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Backup other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1359,90 +1324,84 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 48: - { - capacityGb_ = input.readInt64(); - - break; - } // case 48 - case 56: - { - storageBytes_ = input.readInt64(); - - break; - } // case 56 - case 66: - { - sourceInstance_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - sourceFileShare_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - sourceInstanceTier_ = input.readEnum(); - - break; - } // case 80 - case 88: - { - downloadBytes_ = input.readInt64(); - - break; - } // case 88 - case 98: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: { + capacityGb_ = input.readInt64(); + + break; + } // case 48 + case 56: { + storageBytes_ = input.readInt64(); + + break; + } // case 56 + case 66: { + sourceInstance_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + sourceFileShare_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + sourceInstanceTier_ = input.readEnum(); + + break; + } // case 80 + case 88: { + downloadBytes_ = input.readInt64(); + + break; + } // case 88 + case 98: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 106: { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1452,26 +1411,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1480,22 +1436,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1503,64 +1458,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1568,21 +1516,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1591,22 +1537,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1614,64 +1559,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the backup with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1679,73 +1617,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Backup.State result = - com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Backup.State result = com.google.cloud.filestore.v1beta1.Backup.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Backup.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1753,26 +1669,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The backup state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1780,58 +1691,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1847,17 +1739,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1868,21 +1757,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1894,15 +1779,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1916,84 +1797,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the backup was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2005,30 +1871,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2036,12 +1900,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2049,17 +1912,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2067,11 +1929,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2079,74 +1942,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ @java.lang.Override @@ -2154,52 +2017,43 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Capacity of the source file share when the backup was created.
      * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } - private long storageBytes_; + private long storageBytes_ ; /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ @java.lang.Override @@ -2207,38 +2061,32 @@ public long getStorageBytes() { return storageBytes_; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The storageBytes to set. * @return This builder for chaining. */ public Builder setStorageBytes(long value) { - + storageBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The size of the storage used by the backup. As backups share storage,
      * this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStorageBytes() { - + storageBytes_ = 0L; onChanged(); return this; @@ -2246,22 +2094,20 @@ public Builder clearStorageBytes() { private java.lang.Object sourceInstance_ = ""; /** - * - * *
-     * The resource name of the source Cloud Filestore instance, in the format
+     * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
      * used to create this backup.
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ public java.lang.String getSourceInstance() { java.lang.Object ref = sourceInstance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceInstance_ = s; return s; @@ -2270,23 +2116,22 @@ public java.lang.String getSourceInstance() { } } /** - * - * *
-     * The resource name of the source Cloud Filestore instance, in the format
+     * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
      * used to create this backup.
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - public com.google.protobuf.ByteString getSourceInstanceBytes() { + public com.google.protobuf.ByteString + getSourceInstanceBytes() { java.lang.Object ref = sourceInstance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceInstance_ = b; return b; } else { @@ -2294,67 +2139,60 @@ public com.google.protobuf.ByteString getSourceInstanceBytes() { } } /** - * - * *
-     * The resource name of the source Cloud Filestore instance, in the format
+     * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
      * used to create this backup.
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstance(java.lang.String value) { + public Builder setSourceInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceInstance_ = value; onChanged(); return this; } /** - * - * *
-     * The resource name of the source Cloud Filestore instance, in the format
+     * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
      * used to create this backup.
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceInstance() { - + sourceInstance_ = getDefaultInstance().getSourceInstance(); onChanged(); return this; } /** - * - * *
-     * The resource name of the source Cloud Filestore instance, in the format
+     * The resource name of the source Filestore instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
      * used to create this backup.
      * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceInstance to set. * @return This builder for chaining. */ - public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstance_ = value; onChanged(); return this; @@ -2362,21 +2200,19 @@ public Builder setSourceInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceFileShare_ = ""; /** - * - * *
-     * Name of the file share in the source Cloud Filestore instance that the
+     * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ public java.lang.String getSourceFileShare() { java.lang.Object ref = sourceFileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFileShare_ = s; return s; @@ -2385,22 +2221,21 @@ public java.lang.String getSourceFileShare() { } } /** - * - * *
-     * Name of the file share in the source Cloud Filestore instance that the
+     * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - public com.google.protobuf.ByteString getSourceFileShareBytes() { + public com.google.protobuf.ByteString + getSourceFileShareBytes() { java.lang.Object ref = sourceFileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFileShare_ = b; return b; } else { @@ -2408,64 +2243,57 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { } } /** - * - * *
-     * Name of the file share in the source Cloud Filestore instance that the
+     * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShare(java.lang.String value) { + public Builder setSourceFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFileShare_ = value; onChanged(); return this; } /** - * - * *
-     * Name of the file share in the source Cloud Filestore instance that the
+     * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @return This builder for chaining. */ public Builder clearSourceFileShare() { - + sourceFileShare_ = getDefaultInstance().getSourceFileShare(); onChanged(); return this; } /** - * - * *
-     * Name of the file share in the source Cloud Filestore instance that the
+     * Name of the file share in the source Filestore instance that the
      * backup is created from.
      * 
* * string source_file_share = 9; - * * @param value The bytes for sourceFileShare to set. * @return This builder for chaining. */ - public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFileShare_ = value; onChanged(); return this; @@ -2473,79 +2301,55 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { private int sourceInstanceTier_ = 0; /** - * - * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
+     * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ - @java.lang.Override - public int getSourceInstanceTierValue() { + @java.lang.Override public int getSourceInstanceTierValue() { return sourceInstanceTier_; } /** - * - * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
+     * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for sourceInstanceTier to set. * @return This builder for chaining. */ public Builder setSourceInstanceTierValue(int value) { - + sourceInstanceTier_ = value; onChanged(); return this; } /** - * - * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
+     * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(sourceInstanceTier_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
+     * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sourceInstanceTier to set. * @return This builder for chaining. */ @@ -2553,42 +2357,34 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1beta1.Instance if (value == null) { throw new NullPointerException(); } - + sourceInstanceTier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
+     * Output only. The service tier of the source Filestore instance that this backup
      * is created from.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSourceInstanceTier() { - + sourceInstanceTier_ = 0; onChanged(); return this; } - private long downloadBytes_; + private long downloadBytes_ ; /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ @java.lang.Override @@ -2596,36 +2392,30 @@ public long getDownloadBytes() { return downloadBytes_; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The downloadBytes to set. * @return This builder for chaining. */ public Builder setDownloadBytes(long value) { - + downloadBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Amount of bytes that will be downloaded if the backup is restored
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDownloadBytes() { - + downloadBytes_ = 0L; onChanged(); return this; @@ -2633,58 +2423,39 @@ public Builder clearDownloadBytes() { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -2700,17 +2471,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -2721,23 +2489,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -2749,15 +2511,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -2771,71 +2529,151 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } + private java.lang.Object kmsKeyName_ = ""; + /** + *
+     * Immutable. KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + *
+     * Immutable. KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + *
+     * Immutable. KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2845,12 +2683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Backup) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Backup) private static final com.google.cloud.filestore.v1beta1.Backup DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Backup(); } @@ -2859,27 +2697,27 @@ public static com.google.cloud.filestore.v1beta1.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Backup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2894,4 +2732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java index 3a2865c6762f..ba0f8914cd58 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java @@ -1,152 +1,103 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface BackupOrBuilder - extends +public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Backup) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the backup with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The backup state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Backup.State getState(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the backup was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface BackupOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,186 +138,163 @@ public interface BackupOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Capacity of the source file share when the backup was created.
    * 
* * int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * Output only. The size of the storage used by the backup. As backups share storage,
    * this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The storageBytes. */ long getStorageBytes(); /** - * - * *
-   * The resource name of the source Cloud Filestore instance, in the format
+   * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
    * used to create this backup.
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The sourceInstance. */ java.lang.String getSourceInstance(); /** - * - * *
-   * The resource name of the source Cloud Filestore instance, in the format
+   * The resource name of the source Filestore instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`,
    * used to create this backup.
    * 
* * string source_instance = 8 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceInstance. */ - com.google.protobuf.ByteString getSourceInstanceBytes(); + com.google.protobuf.ByteString + getSourceInstanceBytes(); /** - * - * *
-   * Name of the file share in the source Cloud Filestore instance that the
+   * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The sourceFileShare. */ java.lang.String getSourceFileShare(); /** - * - * *
-   * Name of the file share in the source Cloud Filestore instance that the
+   * Name of the file share in the source Filestore instance that the
    * backup is created from.
    * 
* * string source_file_share = 9; - * * @return The bytes for sourceFileShare. */ - com.google.protobuf.ByteString getSourceFileShareBytes(); + com.google.protobuf.ByteString + getSourceFileShareBytes(); /** - * - * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
+   * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for sourceInstanceTier. */ int getSourceInstanceTierValue(); /** - * - * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
+   * Output only. The service tier of the source Filestore instance that this backup
    * is created from.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceInstanceTier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getSourceInstanceTier(); /** - * - * *
    * Output only. Amount of bytes that will be downloaded if the backup is restored
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The downloadBytes. */ long getDownloadBytes(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ boolean hasSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ com.google.protobuf.BoolValue getSatisfiesPzs(); /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + + /** + *
+   * Immutable. KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + *
+   * Immutable. KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java new file mode 100644 index 000000000000..e2c7c65f79ee --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreServiceProto.java @@ -0,0 +1,801 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public final class CloudFilestoreServiceProto { + private CloudFilestoreServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"2/v" + + "1beta1/{parent=projects/*/locations/*}/i" + + "nstances:\010instance\332A\033parent,instance,ins" + + "tance_id\312A1\n\010Instance\022%google.cloud.comm" + + "on.OperationMetadata\022\201\002\n\016UpdateInstance\022" + + "5.google.cloud.filestore.v1beta1.UpdateI" + + "nstanceRequest\032\035.google.longrunning.Oper" + + "ation\"\230\001\202\323\344\223\002G2;/v1beta1/{instance.name=" + + "projects/*/locations/*/instances/*}:\010ins" + + "tance\332A\024instance,update_mask\312A1\n\010Instanc" + + "e\022%google.cloud.common.OperationMetadata" + + "\022\343\001\n\017RestoreInstance\0226.google.cloud.file" + + "store.v1beta1.RestoreInstanceRequest\032\035.g" + + "oogle.longrunning.Operation\"y\202\323\344\223\002?\":/v1" + + "beta1/{name=projects/*/locations/*/insta" + + "nces/*}:restore:\001*\312A1\n\010Instance\022%google." + + "cloud.common.OperationMetadata\022\340\001\n\016Rever" + + "tInstance\0225.google.cloud.filestore.v1bet" + + "a1.RevertInstanceRequest\032\035.google.longru" + + "nning.Operation\"x\202\323\344\223\002>\"9/v1beta1/{name=" + + "projects/*/locations/*/instances/*}:reve" + + "rt:\001*\312A1\n\010Instance\022%google.cloud.common." + + "OperationMetadata\022\353\001\n\016DeleteInstance\0225.g" + + "oogle.cloud.filestore.v1beta1.DeleteInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"\202\001\202\323\344\223\0024*2/v1beta1/{name=projects/*/l" + + "ocations/*/instances/*}\332A\004name\312A>\n\025googl" + + "e.protobuf.Empty\022%google.cloud.common.Op" + + "erationMetadata\022\315\001\n\rListSnapshots\0224.goog" + + "le.cloud.filestore.v1beta1.ListSnapshots" + + "Request\0325.google.cloud.filestore.v1beta1" + + ".ListSnapshotsResponse\"O\202\323\344\223\002@\022>/v1beta1" + + "/{parent=projects/*/locations/*/instance" + + "s/*}/snapshots\332A\006parent\022\272\001\n\013GetSnapshot\022" + + "2.google.cloud.filestore.v1beta1.GetSnap" + + "shotRequest\032(.google.cloud.filestore.v1b" + + "eta1.Snapshot\"M\202\323\344\223\002@\022>/v1beta1/{name=pr" + + "ojects/*/locations/*/instances/*/snapsho" + + "ts/*}\332A\004name\022\213\002\n\016CreateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.CreateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\242\001" + + "\202\323\344\223\002J\">/v1beta1/{parent=projects/*/loca" + + "tions/*/instances/*}/snapshots:\010snapshot" + + "\332A\033parent,snapshot,snapshot_id\312A1\n\010Snaps" + + "hot\022%google.cloud.common.OperationMetada" + + "ta\022\367\001\n\016DeleteSnapshot\0225.google.cloud.fil" + + "estore.v1beta1.DeleteSnapshotRequest\032\035.g" + + "oogle.longrunning.Operation\"\216\001\202\323\344\223\002@*>/v" + + "1beta1/{name=projects/*/locations/*/inst" + + "ances/*/snapshots/*}\332A\004name\312A>\n\025google.p" + + "rotobuf.Empty\022%google.cloud.common.Opera" + + "tionMetadata\022\215\002\n\016UpdateSnapshot\0225.google" + + ".cloud.filestore.v1beta1.UpdateSnapshotR" + + "equest\032\035.google.longrunning.Operation\"\244\001" + + "\202\323\344\223\002S2G/v1beta1/{snapshot.name=projects" + + "/*/locations/*/instances/*/snapshots/*}:" + + "\010snapshot\332A\024snapshot,update_mask\312A1\n\010Sna" + + "pshot\022%google.cloud.common.OperationMeta" + + "data\022\271\001\n\013ListBackups\0222.google.cloud.file" + + "store.v1beta1.ListBackupsRequest\0323.googl" + + "e.cloud.filestore.v1beta1.ListBackupsRes" + + "ponse\"A\202\323\344\223\0022\0220/v1beta1/{parent=projects" + + "/*/locations/*}/backups\332A\006parent\022\246\001\n\tGet" + + "Backup\0220.google.cloud.filestore.v1beta1." + + "GetBackupRequest\032&.google.cloud.filestor" + + "e.v1beta1.Backup\"?\202\323\344\223\0022\0220/v1beta1/{name" + + "=projects/*/locations/*/backups/*}\332A\004nam" + + "e\022\361\001\n\014CreateBackup\0223.google.cloud.filest" + + "ore.v1beta1.CreateBackupRequest\032\035.google" + + ".longrunning.Operation\"\214\001\202\323\344\223\002:\"0/v1beta" + + "1/{parent=projects/*/locations/*}/backup" + + "s:\006backup\332A\027parent,backup,backup_id\312A/\n\006" + + "Backup\022%google.cloud.common.OperationMet" + + "adata\022\345\001\n\014DeleteBackup\0223.google.cloud.fi" + + "lestore.v1beta1.DeleteBackupRequest\032\035.go" + + "ogle.longrunning.Operation\"\200\001\202\323\344\223\0022*0/v1" + + "beta1/{name=projects/*/locations/*/backu" + + "ps/*}\332A\004name\312A>\n\025google.protobuf.Empty\022%" + + "google.cloud.common.OperationMetadata\022\363\001" + + "\n\014UpdateBackup\0223.google.cloud.filestore." + + "v1beta1.UpdateBackupRequest\032\035.google.lon" + + "grunning.Operation\"\216\001\202\323\344\223\002A27/v1beta1/{b" + + "ackup.name=projects/*/locations/*/backup" + + "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" + + "ckup\022%google.cloud.common.OperationMetad" + + "ata\022\301\001\n\nListShares\0221.google.cloud.filest" + + "ore.v1beta1.ListSharesRequest\0322.google.c" + + "loud.filestore.v1beta1.ListSharesRespons" + + "e\"L\202\323\344\223\002=\022;/v1beta1/{parent=projects/*/l" + + "ocations/*/instances/*}/shares\332A\006parent\022" + + "\256\001\n\010GetShare\022/.google.cloud.filestore.v1" + + "beta1.GetShareRequest\032%.google.cloud.fil" + + "estore.v1beta1.Share\"J\202\323\344\223\002=\022;/v1beta1/{" + + "name=projects/*/locations/*/instances/*/" + + "shares/*}\332A\004name\022\366\001\n\013CreateShare\0222.googl" + + "e.cloud.filestore.v1beta1.CreateShareReq" + + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" + + "\344\223\002D\";/v1beta1/{parent=projects/*/locati" + + "ons/*/instances/*}/shares:\005share\332A\025paren" + + "t,share,share_id\312A.\n\005Share\022%google.cloud" + + ".common.OperationMetadata\022\356\001\n\013DeleteShar" + + "e\0222.google.cloud.filestore.v1beta1.Delet" + + "eShareRequest\032\035.google.longrunning.Opera" + + "tion\"\213\001\202\323\344\223\002=*;/v1beta1/{name=projects/*" + + "/locations/*/instances/*/shares/*}\332A\004nam" + + "e\312A>\n\025google.protobuf.Empty\022%google.clou" + + "d.common.OperationMetadata\022\370\001\n\013UpdateSha" + + "re\0222.google.cloud.filestore.v1beta1.Upda" + + "teShareRequest\032\035.google.longrunning.Oper" + + "ation\"\225\001\202\323\344\223\002J2A/v1beta1/{share.name=pro" + + "jects/*/locations/*/instances/*/shares/*" + + "}:\005share\332A\021share,update_mask\312A.\n\005Share\022%" + + "google.cloud.common.OperationMetadata\032G\312" + + "A\023file.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\315\001\n\"com.g" + + "oogle.cloud.filestore.v1beta1B\032CloudFile" + + "storeServiceProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/cloud/filestore/v1bet" + + "a1;filestore\252\002\036Google.Cloud.Filestore.V1" + + "Beta1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor, + new java.lang.String[] { "Network", "Modes", "ReservedIpRange", "IpAddresses", "ConnectMode", }); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor, + new java.lang.String[] { "Name", "CapacityGb", "SourceBackup", "NfsExportOptions", "Source", }); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor, + new java.lang.String[] { "IpRanges", "AccessMode", "SquashMode", "AnonUid", "AnonGid", }); + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor, + new java.lang.String[] { "Name", "Description", "State", "StatusMessage", "CreateTime", "Tier", "Labels", "FileShares", "Networks", "Etag", "SatisfiesPzs", "KmsKeyName", "SuspensionReasons", "MaxCapacityGb", "CapacityStepSizeGb", "MaxShareCount", "CapacityGb", "MultiShareEnabled", }); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor, + new java.lang.String[] { "Name", "FileShare", "SourceSnapshot", "SourceBackup", "Source", }); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor, + new java.lang.String[] { "Name", "TargetSnapshotId", }); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", "Force", }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "FilesystemUsedBytes", }); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { "Parent", "SnapshotId", "Snapshot", }); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Snapshot", }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_filestore_v1beta1_Backup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor, + new java.lang.String[] { "Name", "Description", "State", "CreateTime", "Labels", "CapacityGb", "StorageBytes", "SourceInstance", "SourceFileShare", "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", "KmsKeyName", }); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Backup_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor, + new java.lang.String[] { "Parent", "Backup", "BackupId", }); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor, + new java.lang.String[] { "Backup", "UpdateMask", }); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor, + new java.lang.String[] { "Backups", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_Share_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_descriptor, + new java.lang.String[] { "Name", "MountName", "Description", "CapacityGb", "NfsExportOptions", "State", "CreateTime", "Labels", }); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor = + internal_static_google_cloud_filestore_v1beta1_Share_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor, + new java.lang.String[] { "Parent", "ShareId", "Share", }); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor, + new java.lang.String[] { "Shares", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor, + new java.lang.String[] { "Share", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java index 87740c030692..091473c4de7b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateBackupRequest creates a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateBackupRequest} */ -public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateBackupRequest) CreateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBackupRequest.newBuilder() to construct. private CreateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBackupRequest() { parent_ = ""; backupId_ = ""; @@ -44,45 +26,39 @@ private CreateBackupRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The backup's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The backup's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,16 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BACKUP_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -145,34 +114,23 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -182,8 +140,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int BACKUP_ID_FIELD_NUMBER = 3; private volatile java.lang.Object backupId_; /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -192,7 +148,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ @java.lang.Override @@ -201,15 +156,14 @@ public java.lang.String getBackupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -218,15 +172,16 @@ public java.lang.String getBackupId() {
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ @java.lang.Override - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -235,7 +190,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -270,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBackup()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); @@ -283,20 +239,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.CreateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateBackupRequest other = - (com.google.cloud.filestore.v1beta1.CreateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.CreateBackupRequest other = (com.google.cloud.filestore.v1beta1.CreateBackupRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } - if (!getBackupId().equals(other.getBackupId())) return false; + if (!getBackupId() + .equals(other.getBackupId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,136 +280,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.CreateBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateBackupRequest creates a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateBackupRequest) com.google.cloud.filestore.v1beta1.CreateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, - com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateBackupRequest.class, com.google.cloud.filestore.v1beta1.CreateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateBackupRequest_descriptor; } @java.lang.Override @@ -490,8 +441,7 @@ public com.google.cloud.filestore.v1beta1.CreateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateBackupRequest result = - new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); + com.google.cloud.filestore.v1beta1.CreateBackupRequest result = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(this); result.parent_ = parent_; if (backupBuilder_ == null) { result.backup_ = backup_; @@ -507,39 +457,38 @@ public com.google.cloud.filestore.v1beta1.CreateBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.CreateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateBackupRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,31 +534,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - backupId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + backupId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The backup's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -649,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The backup's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -675,73 +614,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The backup's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The backup's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * backup locations map to GCP regions, for example **us-west1**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -749,58 +675,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -816,17 +723,14 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -837,23 +741,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder build return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -865,15 +763,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -887,64 +781,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -952,8 +830,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { private java.lang.Object backupId_ = ""; /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -962,13 +838,13 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ public java.lang.String getBackupId() { java.lang.Object ref = backupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backupId_ = s; return s; @@ -977,8 +853,6 @@ public java.lang.String getBackupId() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -987,14 +861,15 @@ public java.lang.String getBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - public com.google.protobuf.ByteString getBackupIdBytes() { + public com.google.protobuf.ByteString + getBackupIdBytes() { java.lang.Object ref = backupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); backupId_ = b; return b; } else { @@ -1002,8 +877,6 @@ public com.google.protobuf.ByteString getBackupIdBytes() { } } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1012,22 +885,20 @@ public com.google.protobuf.ByteString getBackupIdBytes() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The backupId to set. * @return This builder for chaining. */ - public Builder setBackupId(java.lang.String value) { + public Builder setBackupId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + backupId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1036,18 +907,15 @@ public Builder setBackupId(java.lang.String value) {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBackupId() { - + backupId_ = getDefaultInstance().getBackupId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the backup.
      * The ID must be unique within the specified project and location.
@@ -1056,23 +924,23 @@ public Builder clearBackupId() {
      * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for backupId to set. * @return This builder for chaining. */ - public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + public Builder setBackupIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1082,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateBackupRequest) private static final com.google.cloud.filestore.v1beta1.CreateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateBackupRequest(); } @@ -1096,27 +964,27 @@ public static com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java similarity index 57% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java index fcb6f4a8aeec..7b424e422780 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateBackupRequestOrBuilder - extends +public interface CreateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The backup's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The backup's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * backup locations map to GCP regions, for example **us-west1**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -108,13 +67,10 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The backupId. */ java.lang.String getBackupId(); /** - * - * *
    * Required. The ID to use for the backup.
    * The ID must be unique within the specified project and location.
@@ -123,8 +79,8 @@ public interface CreateBackupRequestOrBuilder
    * 
* * string backup_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for backupId. */ - com.google.protobuf.ByteString getBackupIdBytes(); + com.google.protobuf.ByteString + getBackupIdBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java index ff1ae26da768..ba0dd36a7877 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * CreateInstanceRequest creates an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ -public final class CreateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) CreateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstanceRequest.newBuilder() to construct. private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -44,45 +26,39 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The instance's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,33 +67,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The instance's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -138,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -147,15 +118,14 @@ public java.lang.String getInstanceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -164,15 +134,16 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -183,16 +154,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.filestore.v1beta1.Instance instance_; /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -200,34 +166,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -235,7 +190,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -273,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -283,19 +239,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = - (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.CreateInstanceRequest other = (com.google.cloud.filestore.v1beta1.CreateInstanceRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -322,136 +280,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CreateInstanceRequest creates an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.cloud.filestore.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest.class, com.google.cloud.filestore.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.CreateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -490,8 +441,7 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = - new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.CreateInstanceRequest result = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -507,39 +457,38 @@ public com.google.cloud.filestore.v1beta1.CreateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,31 +534,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The instance's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -649,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The instance's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -675,73 +614,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The instance's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The instance's project and location, in the format
-     * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+     * `projects/{project_id}/locations/{location}`. In Filestore,
      * locations map to GCP zones, for example **us-west1-b**.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -749,8 +675,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -759,13 +683,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; @@ -774,8 +698,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -784,14 +706,15 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instanceId_ = b; return b; } else { @@ -799,8 +722,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -809,22 +730,20 @@ public com.google.protobuf.ByteString getInstanceIdBytes() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -833,18 +752,15 @@ public Builder setInstanceId(java.lang.String value) {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the instance to create.
      * The ID must be unique within the specified project and location.
@@ -853,16 +769,16 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -870,58 +786,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -937,15 +834,11 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -959,23 +852,17 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -987,15 +874,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1009,71 +892,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateInstanceRequest(); } @@ -1097,27 +964,27 @@ public static com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 57% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java index 4460055d6fbf..729082e25bf3 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The instance's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The instance's project and location, in the format
-   * `projects/{project_id}/locations/{location}`. In Cloud Filestore,
+   * `projects/{project_id}/locations/{location}`. In Filestore,
    * locations map to GCP zones, for example **us-west1-b**.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -67,13 +40,10 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Required. The ID of the instance to create.
    * The ID must be unique within the specified project and location.
@@ -82,49 +52,35 @@ public interface CreateInstanceRequestOrBuilder
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** - * - * *
    * Required. An [instance resource][google.cloud.filestore.v1beta1.Instance]
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java new file mode 100644 index 000000000000..1cc76aaa7428 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequest.java @@ -0,0 +1,997 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * CreateShareRequest creates a share.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} + */ +public final class CreateShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateShareRequest) + CreateShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateShareRequest.newBuilder() to construct. + private CreateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateShareRequest() { + parent_ = ""; + shareId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The Filestore Instance to create the share for, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The Filestore Instance to create the share for, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object shareId_; + /** + *
+   * Required. The ID to use for the share.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The shareId. + */ + @java.lang.Override + public java.lang.String getShareId() { + java.lang.Object ref = shareId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareId_ = s; + return s; + } + } + /** + *
+   * Required. The ID to use for the share.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for shareId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getShareIdBytes() { + java.lang.Object ref = shareId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARE_FIELD_NUMBER = 3; + private com.google.cloud.filestore.v1beta1.Share share_; + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + @java.lang.Override + public boolean hasShare() { + return share_ != null; + } + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share getShare() { + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { + return getShare(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shareId_); + } + if (share_ != null) { + output.writeMessage(3, getShare()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareId_); + } + if (share_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getShare()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.CreateShareRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.CreateShareRequest other = (com.google.cloud.filestore.v1beta1.CreateShareRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getShareId() + .equals(other.getShareId())) return false; + if (hasShare() != other.hasShare()) return false; + if (hasShare()) { + if (!getShare() + .equals(other.getShare())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SHARE_ID_FIELD_NUMBER; + hash = (53 * hash) + getShareId().hashCode(); + if (hasShare()) { + hash = (37 * hash) + SHARE_FIELD_NUMBER; + hash = (53 * hash) + getShare().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateShareRequest creates a share.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.CreateShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateShareRequest) + com.google.cloud.filestore.v1beta1.CreateShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.CreateShareRequest.class, com.google.cloud.filestore.v1beta1.CreateShareRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.CreateShareRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + shareId_ = ""; + + if (shareBuilder_ == null) { + share_ = null; + } else { + share_ = null; + shareBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateShareRequest build() { + com.google.cloud.filestore.v1beta1.CreateShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateShareRequest buildPartial() { + com.google.cloud.filestore.v1beta1.CreateShareRequest result = new com.google.cloud.filestore.v1beta1.CreateShareRequest(this); + result.parent_ = parent_; + result.shareId_ = shareId_; + if (shareBuilder_ == null) { + result.share_ = share_; + } else { + result.share_ = shareBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.CreateShareRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateShareRequest other) { + if (other == com.google.cloud.filestore.v1beta1.CreateShareRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getShareId().isEmpty()) { + shareId_ = other.shareId_; + onChanged(); + } + if (other.hasShare()) { + mergeShare(other.getShare()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + shareId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getShareFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The Filestore Instance to create the share for, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The Filestore Instance to create the share for, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Filestore Instance to create the share for, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The Filestore Instance to create the share for, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The Filestore Instance to create the share for, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object shareId_ = ""; + /** + *
+     * Required. The ID to use for the share.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The shareId. + */ + public java.lang.String getShareId() { + java.lang.Object ref = shareId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The ID to use for the share.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for shareId. + */ + public com.google.protobuf.ByteString + getShareIdBytes() { + java.lang.Object ref = shareId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The ID to use for the share.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The shareId to set. + * @return This builder for chaining. + */ + public Builder setShareId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shareId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the share.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearShareId() { + + shareId_ = getDefaultInstance().getShareId(); + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the share.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for shareId to set. + * @return This builder for chaining. + */ + public Builder setShareIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shareId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.filestore.v1beta1.Share share_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + public boolean hasShare() { + return shareBuilder_ != null || share_ != null; + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + public com.google.cloud.filestore.v1beta1.Share getShare() { + if (shareBuilder_ == null) { + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } else { + return shareBuilder_.getMessage(); + } + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { + if (shareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + share_ = value; + onChanged(); + } else { + shareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setShare( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + if (shareBuilder_ == null) { + share_ = builderForValue.build(); + onChanged(); + } else { + shareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { + if (shareBuilder_ == null) { + if (share_ != null) { + share_ = + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); + } else { + share_ = value; + } + onChanged(); + } else { + shareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearShare() { + if (shareBuilder_ == null) { + share_ = null; + onChanged(); + } else { + share_ = null; + shareBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { + + onChanged(); + return getShareFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { + if (shareBuilder_ != null) { + return shareBuilder_.getMessageOrBuilder(); + } else { + return share_ == null ? + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } + } + /** + *
+     * Required. A share resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + getShareFieldBuilder() { + if (shareBuilder_ == null) { + shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), + getParentForChildren(), + isClean()); + share_ = null; + } + return shareBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateShareRequest) + private static final com.google.cloud.filestore.v1beta1.CreateShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateShareRequest(); + } + + public static com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java new file mode 100644 index 000000000000..f23d94c34b54 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateShareRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface CreateShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Filestore Instance to create the share for, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The Filestore Instance to create the share for, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ID to use for the share.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The shareId. + */ + java.lang.String getShareId(); + /** + *
+   * Required. The ID to use for the share.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string share_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for shareId. + */ + com.google.protobuf.ByteString + getShareIdBytes(); + + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + boolean hasShare(); + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + com.google.cloud.filestore.v1beta1.Share getShare(); + /** + *
+   * Required. A share resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java new file mode 100644 index 000000000000..e162f5f05fd3 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequest.java @@ -0,0 +1,997 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * CreateSnapshotRequest creates a snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} + */ +public final class CreateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) + CreateSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSnapshotRequest.newBuilder() to construct. + private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSnapshotRequest() { + parent_ = ""; + snapshotId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSnapshotRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The Filestore Instance to create the snapshots of, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The Filestore Instance to create the snapshots of, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object snapshotId_; + /** + *
+   * Required. The ID to use for the snapshot.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshotId. + */ + @java.lang.Override + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } + } + /** + *
+   * Required. The ID to use for the snapshot.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for snapshotId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return snapshot_ != null; + } + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { + return getSnapshot(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, snapshotId_); + } + if (snapshot_ != null) { + output.writeMessage(3, getSnapshot()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snapshotId_); + } + if (snapshot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSnapshot()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.CreateSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotId().hashCode(); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateSnapshotRequest creates a snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.CreateSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.CreateSnapshotRequest) + com.google.cloud.filestore.v1beta1.CreateSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + snapshotId_ = ""; + + if (snapshotBuilder_ == null) { + snapshot_ = null; + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_CreateSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest build() { + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest buildPartial() { + com.google.cloud.filestore.v1beta1.CreateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(this); + result.parent_ = parent_; + result.snapshotId_ = snapshotId_; + if (snapshotBuilder_ == null) { + result.snapshot_ = snapshot_; + } else { + result.snapshot_ = snapshotBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.CreateSnapshotRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.CreateSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.CreateSnapshotRequest other) { + if (other == com.google.cloud.filestore.v1beta1.CreateSnapshotRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getSnapshotId().isEmpty()) { + snapshotId_ = other.snapshotId_; + onChanged(); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + snapshotId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The Filestore Instance to create the snapshots of, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The Filestore Instance to create the snapshots of, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Filestore Instance to create the snapshots of, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The Filestore Instance to create the snapshots of, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The Filestore Instance to create the snapshots of, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object snapshotId_ = ""; + /** + *
+     * Required. The ID to use for the snapshot.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshotId. + */ + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The ID to use for the snapshot.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for snapshotId. + */ + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The ID to use for the snapshot.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + snapshotId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the snapshot.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearSnapshotId() { + + snapshotId_ = getDefaultInstance().getSnapshotId(); + onChanged(); + return this; + } + /** + *
+     * Required. The ID to use for the snapshot.
+     * The ID must be unique within the specified instance.
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for snapshotId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + snapshotId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return snapshotBuilder_ != null || snapshot_ != null; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSnapshot( + com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (snapshot_ != null) { + snapshot_ = + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + } else { + snapshot_ = value; + } + onChanged(); + } else { + snapshotBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + snapshot_ = null; + onChanged(); + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { + + onChanged(); + return getSnapshotFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null ? + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.CreateSnapshotRequest) + private static final com.google.cloud.filestore.v1beta1.CreateSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.CreateSnapshotRequest(); + } + + public static com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.CreateSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..67c4acc3e03b --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateSnapshotRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface CreateSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.CreateSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Filestore Instance to create the snapshots of, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The Filestore Instance to create the snapshots of, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ID to use for the snapshot.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshotId. + */ + java.lang.String getSnapshotId(); + /** + *
+   * Required. The ID to use for the snapshot.
+   * The ID must be unique within the specified instance.
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for snapshotId. + */ + com.google.protobuf.ByteString + getSnapshotIdBytes(); + + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java index 2f18fa6f0562..4ba5b7424cc4 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteBackupRequest deletes a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteBackupRequest} */ -public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteBackupRequest) DeleteBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBackupRequest.newBuilder() to construct. private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = - (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteBackupRequest other = (com.google.cloud.filestore.v1beta1.DeleteBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteBackupRequest deletes a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteBackupRequest) com.google.cloud.filestore.v1beta1.DeleteBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, - com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest.class, com.google.cloud.filestore.v1beta1.DeleteBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteBackupRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.DeleteBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = - new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); + com.google.cloud.filestore.v1beta1.DeleteBackupRequest result = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.DeleteBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.DeleteBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteBackupRequest) private static final com.google.cloud.filestore.v1beta1.DeleteBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteBackupRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..46bf045c3ce5 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java similarity index 60% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java index c45db5d13e27..81af58cb45f6 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * DeleteInstanceRequest deletes an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ -public final class DeleteInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) DeleteInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstanceRequest.newBuilder() to construct. private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,8 +96,23 @@ public com.google.protobuf.ByteString getNameBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_; + /** + *
+   * If set to true, any snapshots of the instance will also be deleted.
+   * (Otherwise, the request will only work if the instance has no snapshots.)
+   * 
+ * + * bool force = 2; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,10 +124,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (force_ != false) { + output.writeBool(2, force_); + } getUnknownFields().writeTo(output); } @@ -151,6 +144,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -159,15 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = - (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other = (com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,154 +180,152 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DeleteInstanceRequest deletes an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteInstanceRequest) com.google.cloud.filestore.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.class, com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; + force_ = false; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -347,9 +344,9 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = - new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.filestore.v1beta1.DeleteInstanceRequest result = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; + result.force_ = force_; onBuilt(); return result; } @@ -358,39 +355,38 @@ public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -398,12 +394,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -430,19 +428,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + force_ = input.readBool(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +456,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -480,24 +477,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -505,77 +499,110 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + private boolean force_ ; + /** + *
+     * If set to true, any snapshots of the instance will also be deleted.
+     * (Otherwise, the request will only work if the instance has no snapshots.)
+     * 
+ * + * bool force = 2; + * @return The force. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getForce() { + return force_; + } + /** + *
+     * If set to true, any snapshots of the instance will also be deleted.
+     * (Otherwise, the request will only work if the instance has no snapshots.)
+     * 
+ * + * bool force = 2; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + *
+     * If set to true, any snapshots of the instance will also be deleted.
+     * (Otherwise, the request will only work if the instance has no snapshots.)
+     * 
+ * + * bool force = 2; + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.filestore.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteInstanceRequest(); } @@ -599,27 +626,27 @@ public static com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +661,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..16096d15f7d8 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set to true, any snapshots of the instance will also be deleted.
+   * (Otherwise, the request will only work if the instance has no snapshots.)
+   * 
+ * + * bool force = 2; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java new file mode 100644 index 000000000000..f3fd2fed9f11 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * DeleteShareRequest deletes a share.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} + */ +public final class DeleteShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) + DeleteShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteShareRequest.newBuilder() to construct. + private DeleteShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteShareRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteShareRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.DeleteShareRequest other = (com.google.cloud.filestore.v1beta1.DeleteShareRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteShareRequest deletes a share.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteShareRequest) + com.google.cloud.filestore.v1beta1.DeleteShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.DeleteShareRequest.class, com.google.cloud.filestore.v1beta1.DeleteShareRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.DeleteShareRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteShareRequest build() { + com.google.cloud.filestore.v1beta1.DeleteShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteShareRequest buildPartial() { + com.google.cloud.filestore.v1beta1.DeleteShareRequest result = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.DeleteShareRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteShareRequest other) { + if (other == com.google.cloud.filestore.v1beta1.DeleteShareRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteShareRequest) + private static final com.google.cloud.filestore.v1beta1.DeleteShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteShareRequest(); + } + + public static com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java new file mode 100644 index 000000000000..567d5af85793 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteShareRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java new file mode 100644 index 000000000000..c5a0e78ba9b7 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * DeleteSnapshotRequest deletes a snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} + */ +public final class DeleteSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + DeleteSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSnapshotRequest.newBuilder() to construct. + private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSnapshotRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteSnapshotRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other = (com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteSnapshotRequest deletes a snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.DeleteSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.class, com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_DeleteSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest build() { + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest buildPartial() { + com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest result = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest other) { + if (other == com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + private static final com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest(); + } + + public static com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..cf7bb2e43c5b --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface DeleteSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java similarity index 72% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java index 11d07e9e105f..9b3a6f9848f6 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * File share configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ -public final class FileShareConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FileShareConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.FileShareConfig) FileShareConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FileShareConfig.newBuilder() to construct. private FileShareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FileShareConfig() { name_ = ""; nfsExportOptions_ = java.util.Collections.emptyList(); @@ -44,41 +26,37 @@ private FileShareConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FileShareConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_BACKUP(9), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -94,35 +72,32 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 9: - return SOURCE_BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 9: return SOURCE_BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * The name of the file share (must be 16 characters or less).
+   * The name of the file share (must be 32 characters or less for
+   * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+   * tiers).
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -131,29 +106,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * The name of the file share (must be 16 characters or less).
+   * The name of the file share (must be 32 characters or less for
+   * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+   * tiers).
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -164,15 +141,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CAPACITY_GB_FIELD_NUMBER = 2; private long capacityGb_; /** - * - * *
    * File share capacity in gigabytes (GB).
-   * Cloud Filestore defines 1 GB as 1024^3 bytes.
+   * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -182,8 +156,6 @@ public long getCapacityGb() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 9; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -191,15 +163,12 @@ public long getCapacityGb() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -207,7 +176,6 @@ public boolean hasSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -218,7 +186,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 9) { source_ = s; @@ -227,8 +196,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -236,17 +203,18 @@ public java.lang.String getSourceBackup() {
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 9) { source_ = b; } @@ -259,8 +227,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 8; private java.util.List nfsExportOptions_; /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -269,13 +235,10 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List
-      getNfsExportOptionsList() {
+  public java.util.List getNfsExportOptionsList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -284,13 +247,11 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNfsExportOptionsOrBuilderList() {
     return nfsExportOptions_;
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -303,8 +264,6 @@ public int getNfsExportOptionsCount() {
     return nfsExportOptions_.size();
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -317,8 +276,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i
     return nfsExportOptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -333,7 +290,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExport
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -345,7 +301,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -371,10 +328,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (capacityGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, capacityGb_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, capacityGb_);
     }
     for (int i = 0; i < nfsExportOptions_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, nfsExportOptions_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, nfsExportOptions_.get(i));
     }
     if (sourceCase_ == 9) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_);
@@ -387,21 +346,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.filestore.v1beta1.FileShareConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.filestore.v1beta1.FileShareConfig other =
-        (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
+    com.google.cloud.filestore.v1beta1.FileShareConfig other = (com.google.cloud.filestore.v1beta1.FileShareConfig) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getCapacityGb() != other.getCapacityGb()) return false;
-    if (!getNfsExportOptionsList().equals(other.getNfsExportOptionsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getCapacityGb()
+        != other.getCapacityGb()) return false;
+    if (!getNfsExportOptionsList()
+        .equals(other.getNfsExportOptionsList())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 9:
-        if (!getSourceBackup().equals(other.getSourceBackup())) return false;
+        if (!getSourceBackup()
+            .equals(other.getSourceBackup())) return false;
         break;
       case 0:
       default:
@@ -420,7 +382,8 @@ public int hashCode() {
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
     hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getCapacityGb());
     if (getNfsExportOptionsCount() > 0) {
       hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getNfsExportOptionsList().hashCode();
@@ -439,135 +402,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.filestore.v1beta1.FileShareConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * File share configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.FileShareConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.FileShareConfig) com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.FileShareConfig.class, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); + com.google.cloud.filestore.v1beta1.FileShareConfig.class, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.FileShareConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_FileShareConfig_descriptor; } @java.lang.Override @@ -609,8 +566,7 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.FileShareConfig buildPartial() { - com.google.cloud.filestore.v1beta1.FileShareConfig result = - new com.google.cloud.filestore.v1beta1.FileShareConfig(this); + com.google.cloud.filestore.v1beta1.FileShareConfig result = new com.google.cloud.filestore.v1beta1.FileShareConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.capacityGb_ = capacityGb_; @@ -635,39 +591,38 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.FileShareConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.FileShareConfig)other); } else { super.mergeFrom(other); return this; @@ -675,8 +630,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig other) { - if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -702,27 +656,24 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.FileShareConfig othe nfsExportOptionsBuilder_ = null; nfsExportOptions_ = other.nfsExportOptions_; bitField0_ = (bitField0_ & ~0x00000001); - nfsExportOptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsExportOptionsFieldBuilder() - : null; + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; } else { nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); } } } switch (other.getSourceCase()) { - case SOURCE_BACKUP: - { - sourceCase_ = 9; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case SOURCE_BACKUP: { + sourceCase_ = 9; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -750,46 +701,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - capacityGb_ = input.readInt64(); + break; + } // case 10 + case 16: { + capacityGb_ = input.readInt64(); - break; - } // case 16 - case 66: - { - com.google.cloud.filestore.v1beta1.NfsExportOptions m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), - extensionRegistry); - if (nfsExportOptionsBuilder_ == null) { - ensureNfsExportOptionsIsMutable(); - nfsExportOptions_.add(m); - } else { - nfsExportOptionsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 9; - source_ = s; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 66: { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 9; + source_ = s; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -799,12 +745,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -818,20 +764,20 @@ public Builder clearSource() { private java.lang.Object name_ = ""; /** - * - * *
-     * The name of the file share (must be 16 characters or less).
+     * The name of the file share (must be 32 characters or less for
+     * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+     * tiers).
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -840,21 +786,22 @@ public java.lang.String getName() { } } /** - * - * *
-     * The name of the file share (must be 16 characters or less).
+     * The name of the file share (must be 32 characters or less for
+     * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+     * tiers).
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -862,77 +809,73 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The name of the file share (must be 16 characters or less).
+     * The name of the file share (must be 32 characters or less for
+     * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+     * tiers).
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The name of the file share (must be 16 characters or less).
+     * The name of the file share (must be 32 characters or less for
+     * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+     * tiers).
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The name of the file share (must be 16 characters or less).
+     * The name of the file share (must be 32 characters or less for
+     * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+     * tiers).
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private long capacityGb_; + private long capacityGb_ ; /** - * - * *
      * File share capacity in gigabytes (GB).
-     * Cloud Filestore defines 1 GB as 1024^3 bytes.
+     * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ @java.lang.Override @@ -940,46 +883,38 @@ public long getCapacityGb() { return capacityGb_; } /** - * - * *
      * File share capacity in gigabytes (GB).
-     * Cloud Filestore defines 1 GB as 1024^3 bytes.
+     * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @param value The capacityGb to set. * @return This builder for chaining. */ public Builder setCapacityGb(long value) { - + capacityGb_ = value; onChanged(); return this; } /** - * - * *
      * File share capacity in gigabytes (GB).
-     * Cloud Filestore defines 1 GB as 1024^3 bytes.
+     * Filestore defines 1 GB as 1024^3 bytes.
      * 
* * int64 capacity_gb = 2; - * * @return This builder for chaining. */ public Builder clearCapacityGb() { - + capacityGb_ = 0L; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -987,7 +922,6 @@ public Builder clearCapacityGb() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -995,8 +929,6 @@ public boolean hasSourceBackup() { return sourceCase_ == 9; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1004,7 +936,6 @@ public boolean hasSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1014,7 +945,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 9) { source_ = s; @@ -1025,8 +957,6 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1034,18 +964,19 @@ public java.lang.String getSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 9) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 9) { source_ = b; } @@ -1055,8 +986,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1064,22 +993,20 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 9; + throw new NullPointerException(); + } + sourceCase_ = 9; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1087,7 +1014,6 @@ public Builder setSourceBackup(java.lang.String value) {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1099,8 +1025,6 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -1108,15 +1032,15 @@ public Builder clearSourceBackup() {
      * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 9; source_ = value; onChanged(); @@ -1124,36 +1048,26 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { } private java.util.List nfsExportOptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsExportOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsExportOptions_ = - new java.util.ArrayList( - nfsExportOptions_); + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> - nfsExportOptionsBuilder_; + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsList() { + public java.util.List getNfsExportOptionsList() { if (nfsExportOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nfsExportOptions_); } else { @@ -1161,15 +1075,12 @@ private void ensureNfsExportOptionsIsMutable() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public int getNfsExportOptionsCount() { if (nfsExportOptionsBuilder_ == null) { @@ -1179,15 +1090,12 @@ public int getNfsExportOptionsCount() { } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1197,15 +1105,12 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(i } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1222,15 +1127,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder setNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1244,15 +1146,12 @@ public Builder setNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { if (nfsExportOptionsBuilder_ == null) { @@ -1268,15 +1167,12 @@ public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportO return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { @@ -1293,15 +1189,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1315,15 +1208,12 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addNfsExportOptions( int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { @@ -1337,21 +1227,19 @@ public Builder addNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder addAllNfsExportOptions( java.lang.Iterable values) { if (nfsExportOptionsBuilder_ == null) { ensureNfsExportOptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsExportOptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsExportOptions_); onChanged(); } else { nfsExportOptionsBuilder_.addAllMessages(values); @@ -1359,15 +1247,12 @@ public Builder addAllNfsExportOptions( return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder clearNfsExportOptions() { if (nfsExportOptionsBuilder_ == null) { @@ -1380,15 +1265,12 @@ public Builder clearNfsExportOptions() { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public Builder removeNfsExportOptions(int index) { if (nfsExportOptionsBuilder_ == null) { @@ -1401,52 +1283,42 @@ public Builder removeNfsExportOptions(int index) { return this; } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( int index) { return getNfsExportOptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder - getNfsExportOptionsOrBuilder(int index) { + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index) { if (nfsExportOptionsBuilder_ == null) { - return nfsExportOptions_.get(index); - } else { + return nfsExportOptions_.get(index); } else { return nfsExportOptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsOrBuilderList() { + public java.util.List + getNfsExportOptionsOrBuilderList() { if (nfsExportOptionsBuilder_ != null) { return nfsExportOptionsBuilder_.getMessageOrBuilderList(); } else { @@ -1454,65 +1326,48 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportO } } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder - addNfsExportOptionsBuilder() { - return getNfsExportOptionsFieldBuilder() - .addBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( int index) { - return getNfsExportOptionsFieldBuilder() - .addBuilder( - index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + return getNfsExportOptionsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); } /** - * - * *
      * Nfs Export Options.
      * There is a limit of 10 export options per file share.
      * 
* - * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; - * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; */ - public java.util.List - getNfsExportOptionsBuilderList() { + public java.util.List + getNfsExportOptionsBuilderList() { return getNfsExportOptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> getNfsExportOptionsFieldBuilder() { if (nfsExportOptionsBuilder_ == null) { - nfsExportOptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.NfsExportOptions, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, - com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( nfsExportOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1521,9 +1376,9 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportO } return nfsExportOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1533,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.FileShareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.FileShareConfig) private static final com.google.cloud.filestore.v1beta1.FileShareConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.FileShareConfig(); } @@ -1547,27 +1402,27 @@ public static com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileShareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileShareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1582,4 +1437,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.FileShareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java index f5fe4625118e..d73700e98095 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java @@ -1,70 +1,48 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface FileShareConfigOrBuilder - extends +public interface FileShareConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.FileShareConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The name of the file share (must be 16 characters or less).
+   * The name of the file share (must be 32 characters or less for
+   * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+   * tiers).
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
-   * The name of the file share (must be 16 characters or less).
+   * The name of the file share (must be 32 characters or less for
+   * Enterprise and High Scale SSD tiers and 16 characters or less for all other
+   * tiers).
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * File share capacity in gigabytes (GB).
-   * Cloud Filestore defines 1 GB as 1024^3 bytes.
+   * Filestore defines 1 GB as 1024^3 bytes.
    * 
* * int64 capacity_gb = 2; - * * @return The capacityGb. */ long getCapacityGb(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -72,13 +50,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -86,13 +61,10 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that
@@ -100,14 +72,12 @@ public interface FileShareConfigOrBuilder
    * 
* * string source_backup = 9 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); /** - * - * *
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -115,10 +85,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List getNfsExportOptionsList();
+  java.util.List 
+      getNfsExportOptionsList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -128,8 +97,6 @@ public interface FileShareConfigOrBuilder
    */
   com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index);
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -139,8 +106,6 @@ public interface FileShareConfigOrBuilder
    */
   int getNfsExportOptionsCount();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
@@ -148,11 +113,9 @@ public interface FileShareConfigOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
    */
-  java.util.List
+  java.util.List 
       getNfsExportOptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * Nfs Export Options.
    * There is a limit of 10 export options per file share.
diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
similarity index 64%
rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
index 6f586fcba132..005a7cc4e2e8 100644
--- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
+++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java
@@ -1,86 +1,62 @@
-/*
- * Copyright 2020 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.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto
 
 package com.google.cloud.filestore.v1beta1;
 
 /**
- *
- *
  * 
  * GetBackupRequest gets the state of a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetBackupRequest} */ -public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetBackupRequest) GetBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBackupRequest.newBuilder() to construct. private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBackupRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The backup resource name, in the format
    * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetBackupRequest other = - (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; + com.google.cloud.filestore.v1beta1.GetBackupRequest other = (com.google.cloud.filestore.v1beta1.GetBackupRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetBackupRequest gets the state of a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetBackupRequest) com.google.cloud.filestore.v1beta1.GetBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetBackupRequest.class, - com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetBackupRequest.class, com.google.cloud.filestore.v1beta1.GetBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetBackupRequest_descriptor; } @java.lang.Override @@ -346,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetBackupRequest result = - new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); + com.google.cloud.filestore.v1beta1.GetBackupRequest result = new com.google.cloud.filestore.v1beta1.GetBackupRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.GetBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.GetBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -397,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetBackupRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -454,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -504,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The backup resource name, in the format
      * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetBackupRequest) private static final com.google.cloud.filestore.v1beta1.GetBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetBackupRequest(); } @@ -598,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..a64f2b9d2fdb --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetBackupRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The backup resource name, in the format
+   * `projects/{project_id}/locations/{location}/backups/{backup_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java similarity index 64% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java index 437ae7c91d16..61ab442b4faf 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * GetInstanceRequest gets the state of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The instance resource name, in the format
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.GetInstanceRequest other = - (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.GetInstanceRequest other = (com.google.cloud.filestore.v1beta1.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GetInstanceRequest gets the state of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetInstanceRequest) com.google.cloud.filestore.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, - com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.GetInstanceRequest.class, com.google.cloud.filestore.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.GetInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -347,8 +314,7 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.GetInstanceRequest result = - new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); + com.google.cloud.filestore.v1beta1.GetInstanceRequest result = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -358,39 +324,38 @@ public com.google.cloud.filestore.v1beta1.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -398,8 +363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -430,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -480,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -505,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The instance resource name, in the format
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -585,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetInstanceRequest) private static final com.google.cloud.filestore.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetInstanceRequest(); } @@ -599,27 +541,27 @@ public static com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..80e191742978 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The instance resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java new file mode 100644 index 000000000000..3aac1d4a2970 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * GetShareRequest gets the state of a share.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} + */ +public final class GetShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetShareRequest) + GetShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetShareRequest.newBuilder() to construct. + private GetShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetShareRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetShareRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.GetShareRequest other = (com.google.cloud.filestore.v1beta1.GetShareRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetShareRequest gets the state of a share.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.GetShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetShareRequest) + com.google.cloud.filestore.v1beta1.GetShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.GetShareRequest.class, com.google.cloud.filestore.v1beta1.GetShareRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.GetShareRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetShareRequest build() { + com.google.cloud.filestore.v1beta1.GetShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetShareRequest buildPartial() { + com.google.cloud.filestore.v1beta1.GetShareRequest result = new com.google.cloud.filestore.v1beta1.GetShareRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.GetShareRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.GetShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetShareRequest other) { + if (other == com.google.cloud.filestore.v1beta1.GetShareRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The share resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetShareRequest) + private static final com.google.cloud.filestore.v1beta1.GetShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetShareRequest(); + } + + public static com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java new file mode 100644 index 000000000000..00fd3ccd7c96 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetShareRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The share resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java new file mode 100644 index 000000000000..55eda1354990 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * GetSnapshotRequest gets the state of a snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} + */ +public final class GetSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) + GetSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSnapshotRequest.newBuilder() to construct. + private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSnapshotRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSnapshotRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.GetSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.GetSnapshotRequest other = (com.google.cloud.filestore.v1beta1.GetSnapshotRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.GetSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetSnapshotRequest gets the state of a snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.GetSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.GetSnapshotRequest) + com.google.cloud.filestore.v1beta1.GetSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.GetSnapshotRequest.class, com.google.cloud.filestore.v1beta1.GetSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.GetSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_GetSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetSnapshotRequest build() { + com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetSnapshotRequest buildPartial() { + com.google.cloud.filestore.v1beta1.GetSnapshotRequest result = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.GetSnapshotRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.GetSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.GetSnapshotRequest other) { + if (other == com.google.cloud.filestore.v1beta1.GetSnapshotRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource name, in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.GetSnapshotRequest) + private static final com.google.cloud.filestore.v1beta1.GetSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.GetSnapshotRequest(); + } + + public static com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.GetSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..44969c0e9600 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface GetSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The snapshot resource name, in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java similarity index 56% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java index 3450f7ec2266..d2246f7d48a1 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
- * A Cloud Filestore instance.
+ * A Filestore instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; description_ = ""; @@ -46,58 +28,57 @@ private Instance() { fileShares_ = java.util.Collections.emptyList(); networks_ = java.util.Collections.emptyList(); etag_ = ""; + kmsKeyName_ = ""; + suspensionReasons_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, - com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); } /** - * - * *
    * The instance state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -106,8 +87,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The instance is being created.
      * 
@@ -116,8 +95,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The instance is available for use.
      * 
@@ -126,8 +103,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -137,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     REPAIRING(3),
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -147,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -159,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ERROR(6),
     /**
-     *
-     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -169,12 +138,43 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      * RESTORING = 7;
      */
     RESTORING(7),
+    /**
+     * 
+     * The instance is suspended. You can get further details from
+     * the `suspension_reasons` field of the `Instance` resource.
+     * 
+ * + * SUSPENDED = 8; + */ + SUSPENDED(8), + /** + *
+     * The instance is reverting to a snapshot.
+     * 
+ * + * REVERTING = 9; + */ + REVERTING(9), + /** + *
+     * The instance is in the process of becoming suspended.
+     * 
+ * + * SUSPENDING = 10; + */ + SUSPENDING(10), + /** + *
+     * The instance is in the process of becoming active.
+     * 
+ * + * RESUMING = 11; + */ + RESUMING(11), UNRECOGNIZED(-1), ; /** - * - * *
      * State not set.
      * 
@@ -183,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The instance is being created.
      * 
@@ -193,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The instance is available for use.
      * 
@@ -203,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Work is being done on the instance. You can get further details from the
      * `statusMessage` field of the `Instance` resource.
@@ -214,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REPAIRING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The instance is shutting down.
      * 
@@ -224,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * The instance is experiencing an issue and might be unusable. You can get
      * further details from the `statusMessage` field of the `Instance`
@@ -236,8 +226,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 6;
     /**
-     *
-     *
      * 
      * The instance is restoring a snapshot or backup to an existing file share
      * and may be unusable during this time.
@@ -246,6 +234,40 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      * RESTORING = 7;
      */
     public static final int RESTORING_VALUE = 7;
+    /**
+     * 
+     * The instance is suspended. You can get further details from
+     * the `suspension_reasons` field of the `Instance` resource.
+     * 
+ * + * SUSPENDED = 8; + */ + public static final int SUSPENDED_VALUE = 8; + /** + *
+     * The instance is reverting to a snapshot.
+     * 
+ * + * REVERTING = 9; + */ + public static final int REVERTING_VALUE = 9; + /** + *
+     * The instance is in the process of becoming suspended.
+     * 
+ * + * SUSPENDING = 10; + */ + public static final int SUSPENDING_VALUE = 10; + /** + *
+     * The instance is in the process of becoming active.
+     * 
+ * + * RESUMING = 11; + */ + public static final int RESUMING_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -271,57 +293,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return REPAIRING; - case 4: - return DELETING; - case 6: - return ERROR; - case 7: - return RESTORING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return REPAIRING; + case 4: return DELETING; + case 6: return ERROR; + case 7: return RESTORING; + case 8: return SUSPENDED; + case 9: return REVERTING; + case 10: return SUSPENDING; + case 11: return RESUMING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -339,18 +361,15 @@ private State(int value) { } /** - * - * *
    * Available service tiers.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not set.
      * 
@@ -359,8 +378,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -369,8 +386,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ STANDARD(1), /** - * - * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -379,8 +394,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ PREMIUM(2), /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -391,8 +404,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_HDD(3),
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -403,8 +414,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     BASIC_SSD(4),
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -413,12 +422,19 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      * HIGH_SCALE_SSD = 6;
      */
     HIGH_SCALE_SSD(6),
+    /**
+     * 
+     * ENTERPRISE instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * ENTERPRISE = 7; + */ + ENTERPRISE(7), UNRECOGNIZED(-1), ; /** - * - * *
      * Not set.
      * 
@@ -427,8 +443,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * STANDARD tier. BASIC_HDD is the preferred term for this tier.
      * 
@@ -437,8 +451,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
      * 
@@ -447,8 +459,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREMIUM_VALUE = 2; /** - * - * *
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_HDD is an alias for STANDARD Tier, offering economical
@@ -459,8 +469,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_HDD_VALUE = 3;
     /**
-     *
-     *
      * 
      * BASIC instances offer a maximum capacity of 63.9 TB.
      * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
@@ -471,8 +479,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BASIC_SSD_VALUE = 4;
     /**
-     *
-     *
      * 
      * HIGH_SCALE instances offer expanded capacity and performance scaling
      * capabilities.
@@ -481,6 +487,16 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
      * HIGH_SCALE_SSD = 6;
      */
     public static final int HIGH_SCALE_SSD_VALUE = 6;
+    /**
+     * 
+     * ENTERPRISE instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * ENTERPRISE = 7; + */ + public static final int ENTERPRISE_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -506,55 +522,53 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return STANDARD; - case 2: - return PREMIUM; - case 3: - return BASIC_HDD; - case 4: - return BASIC_SSD; - case 6: - return HIGH_SCALE_SSD; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return STANDARD; + case 2: return PREMIUM; + case 3: return BASIC_HDD; + case 4: return BASIC_SSD; + case 6: return HIGH_SCALE_SSD; + case 7: return ENTERPRISE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -571,18 +585,143 @@ private Tier(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Instance.Tier) } + /** + *
+   * SuspensionReason contains the possible reasons for a suspension.
+   * 
+ * + * Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.SuspensionReason} + */ + public enum SuspensionReason + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * SUSPENSION_REASON_UNSPECIFIED = 0; + */ + SUSPENSION_REASON_UNSPECIFIED(0), + /** + *
+     * The KMS key used by the instance is either revoked or denied access to.
+     * 
+ * + * KMS_KEY_ISSUE = 1; + */ + KMS_KEY_ISSUE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * SUSPENSION_REASON_UNSPECIFIED = 0; + */ + public static final int SUSPENSION_REASON_UNSPECIFIED_VALUE = 0; + /** + *
+     * The KMS key used by the instance is either revoked or denied access to.
+     * 
+ * + * KMS_KEY_ISSUE = 1; + */ + public static final int KMS_KEY_ISSUE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SuspensionReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SuspensionReason forNumber(int value) { + switch (value) { + case 0: return SUSPENSION_REASON_UNSPECIFIED; + case 1: return KMS_KEY_ISSUE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SuspensionReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SuspensionReason findValueByNumber(int number) { + return SuspensionReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(2); + } + + private static final SuspensionReason[] VALUES = values(); + + public static SuspensionReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SuspensionReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Instance.SuspensionReason) + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -591,30 +730,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -625,14 +764,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -641,29 +777,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -674,54 +810,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = - com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -730,29 +850,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -763,15 +883,11 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -779,15 +895,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -795,14 +907,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -812,57 +921,49 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TIER_FIELD_NUMBER = 8; private int tier_; /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -871,30 +972,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -902,12 +1001,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -915,16 +1013,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -932,11 +1030,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -946,8 +1045,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILE_SHARES_FIELD_NUMBER = 10; private java.util.List fileShares_; /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -960,8 +1057,6 @@ public java.util.List getFil
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -970,13 +1065,11 @@ public java.util.List getFil
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getFileSharesOrBuilderList() {
     return fileShares_;
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -989,8 +1082,6 @@ public int getFileSharesCount() {
     return fileShares_.size();
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1003,8 +1094,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
     return fileShares_.get(index);
   }
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -1021,8 +1110,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
   public static final int NETWORKS_FIELD_NUMBER = 11;
   private java.util.List networks_;
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1035,8 +1122,6 @@ public java.util.List getNetwo
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1045,13 +1130,11 @@ public java.util.List getNetwo
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getNetworksOrBuilderList() {
     return networks_;
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1064,8 +1147,6 @@ public int getNetworksCount() {
     return networks_.size();
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1078,8 +1159,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
     return networks_.get(index);
   }
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -1088,22 +1167,20 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index) {
     return networks_.get(index);
   }
 
   public static final int ETAG_FIELD_NUMBER = 12;
   private volatile java.lang.Object etag_;
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ @java.lang.Override @@ -1112,30 +1189,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1146,16 +1223,11 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int SATISFIES_PZS_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue satisfiesPzs_; /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ @java.lang.Override @@ -1163,42 +1235,233 @@ public boolean hasSatisfiesPzs() { return satisfiesPzs_ != null; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ @java.lang.Override public com.google.protobuf.BoolValue getSatisfiesPzs() { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } /** - * - * *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return getSatisfiesPzs(); } - private byte memoizedIsInitialized = -1; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 14; + private volatile java.lang.Object kmsKeyName_; + /** + *
+   * KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 14; + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + *
+   * KMS key name used for data encryption.
+   * 
+ * + * string kms_key_name = 14; + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUSPENSION_REASONS_FIELD_NUMBER = 15; + private java.util.List suspensionReasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason> suspensionReasons_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>() { + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result = com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.valueOf(from); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED : result; + } + }; + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the suspensionReasons. + */ + @java.lang.Override + public java.util.List getSuspensionReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); + } + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of suspensionReasons. + */ + @java.lang.Override + public int getSuspensionReasonsCount() { + return suspensionReasons_.size(); + } + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The suspensionReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { + return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); + } + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the enum numeric values on the wire for suspensionReasons. + */ + @java.lang.Override + public java.util.List + getSuspensionReasonsValueList() { + return suspensionReasons_; + } + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suspensionReasons at the given index. + */ + @java.lang.Override + public int getSuspensionReasonsValue(int index) { + return suspensionReasons_.get(index); + } + private int suspensionReasonsMemoizedSerializedSize; + + public static final int MAX_CAPACITY_GB_FIELD_NUMBER = 16; + private long maxCapacityGb_; + /** + *
+   * Output only. The max capacity of the instance.
+   * 
+ * + * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxCapacityGb. + */ + @java.lang.Override + public long getMaxCapacityGb() { + return maxCapacityGb_; + } + + public static final int CAPACITY_STEP_SIZE_GB_FIELD_NUMBER = 17; + private long capacityStepSizeGb_; + /** + *
+   * Output only. The increase/decrease capacity step size.
+   * 
+ * + * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The capacityStepSizeGb. + */ + @java.lang.Override + public long getCapacityStepSizeGb() { + return capacityStepSizeGb_; + } + + public static final int MAX_SHARE_COUNT_FIELD_NUMBER = 18; + private long maxShareCount_; + /** + *
+   * Output only. The max number of shares allowed.
+   * 
+ * + * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxShareCount. + */ + @java.lang.Override + public long getMaxShareCount() { + return maxShareCount_; + } + + public static final int CAPACITY_GB_FIELD_NUMBER = 19; + private long capacityGb_; + /** + *
+   * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+   * This capacity can be increased up to `max_capacity_gb` GB in multipliers
+   * of `capacity_step_size_gb` GB.
+   * 
+ * + * int64 capacity_gb = 19; + * @return The capacityGb. + */ + @java.lang.Override + public long getCapacityGb() { + return capacityGb_; + } + + public static final int MULTI_SHARE_ENABLED_FIELD_NUMBER = 20; + private boolean multiShareEnabled_; + /** + *
+   * Indicates whether this instance uses a multi-share configuration with which
+   * it can have more than one file-share or none at all. File-shares are added,
+   * updated and removed through the separate file-share APIs.
+   * 
+ * + * bool multi_share_enabled = 20; + * @return The multiShareEnabled. + */ + @java.lang.Override + public boolean getMultiShareEnabled() { + return multiShareEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1210,7 +1473,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1229,8 +1494,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(8, tier_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); for (int i = 0; i < fileShares_.size(); i++) { output.writeMessage(10, fileShares_.get(i)); } @@ -1243,6 +1512,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != null) { output.writeMessage(13, getSatisfiesPzs()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, kmsKeyName_); + } + if (getSuspensionReasonsList().size() > 0) { + output.writeUInt32NoTag(122); + output.writeUInt32NoTag(suspensionReasonsMemoizedSerializedSize); + } + for (int i = 0; i < suspensionReasons_.size(); i++) { + output.writeEnumNoTag(suspensionReasons_.get(i)); + } + if (maxCapacityGb_ != 0L) { + output.writeInt64(16, maxCapacityGb_); + } + if (capacityStepSizeGb_ != 0L) { + output.writeInt64(17, capacityStepSizeGb_); + } + if (maxShareCount_ != 0L) { + output.writeInt64(18, maxShareCount_); + } + if (capacityGb_ != 0L) { + output.writeInt64(19, capacityGb_); + } + if (multiShareEnabled_ != false) { + output.writeBool(20, multiShareEnabled_); + } getUnknownFields().writeTo(output); } @@ -1259,38 +1553,79 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tier_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, tier_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, labels__); } for (int i = 0; i < fileShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, fileShares_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSatisfiesPzs()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyName_); + } + { + int dataSize = 0; + for (int i = 0; i < suspensionReasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(suspensionReasons_.get(i)); + } + size += dataSize; + if (!getSuspensionReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }suspensionReasonsMemoizedSerializedSize = dataSize; + } + if (maxCapacityGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, maxCapacityGb_); + } + if (capacityStepSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(17, capacityStepSizeGb_); + } + if (maxShareCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(18, maxShareCount_); + } + if (capacityGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(19, capacityGb_); + } + if (multiShareEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, multiShareEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1300,31 +1635,52 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Instance)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Instance other = - (com.google.cloud.filestore.v1beta1.Instance) obj; + com.google.cloud.filestore.v1beta1.Instance other = (com.google.cloud.filestore.v1beta1.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (tier_ != other.tier_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getFileSharesList().equals(other.getFileSharesList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getFileSharesList() + .equals(other.getFileSharesList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { - if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; - } + if (!getSatisfiesPzs() + .equals(other.getSatisfiesPzs())) return false; + } + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!suspensionReasons_.equals(other.suspensionReasons_)) return false; + if (getMaxCapacityGb() + != other.getMaxCapacityGb()) return false; + if (getCapacityStepSizeGb() + != other.getCapacityStepSizeGb()) return false; + if (getMaxShareCount() + != other.getMaxShareCount()) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (getMultiShareEnabled() + != other.getMultiShareEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1368,161 +1724,178 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (getSuspensionReasonsCount() > 0) { + hash = (37 * hash) + SUSPENSION_REASONS_FIELD_NUMBER; + hash = (53 * hash) + suspensionReasons_.hashCode(); + } + hash = (37 * hash) + MAX_CAPACITY_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxCapacityGb()); + hash = (37 * hash) + CAPACITY_STEP_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityStepSizeGb()); + hash = (37 * hash) + MAX_SHARE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxShareCount()); + hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); + hash = (37 * hash) + MULTI_SHARE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMultiShareEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * A Cloud Filestore instance.
+   * A Filestore instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Instance) com.google.cloud.filestore.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Instance.class, - com.google.cloud.filestore.v1beta1.Instance.Builder.class); + com.google.cloud.filestore.v1beta1.Instance.class, com.google.cloud.filestore.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Instance.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1565,13 +1938,27 @@ public Builder clear() { satisfiesPzs_ = null; satisfiesPzsBuilder_ = null; } + kmsKeyName_ = ""; + + suspensionReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + maxCapacityGb_ = 0L; + + capacityStepSizeGb_ = 0L; + + maxShareCount_ = 0L; + + capacityGb_ = 0L; + + multiShareEnabled_ = false; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor; } @java.lang.Override @@ -1590,8 +1977,7 @@ public com.google.cloud.filestore.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance buildPartial() { - com.google.cloud.filestore.v1beta1.Instance result = - new com.google.cloud.filestore.v1beta1.Instance(this); + com.google.cloud.filestore.v1beta1.Instance result = new com.google.cloud.filestore.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1629,6 +2015,17 @@ public com.google.cloud.filestore.v1beta1.Instance buildPartial() { } else { result.satisfiesPzs_ = satisfiesPzsBuilder_.build(); } + result.kmsKeyName_ = kmsKeyName_; + if (((bitField0_ & 0x00000008) != 0)) { + suspensionReasons_ = java.util.Collections.unmodifiableList(suspensionReasons_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.suspensionReasons_ = suspensionReasons_; + result.maxCapacityGb_ = maxCapacityGb_; + result.capacityStepSizeGb_ = capacityStepSizeGb_; + result.maxShareCount_ = maxShareCount_; + result.capacityGb_ = capacityGb_; + result.multiShareEnabled_ = multiShareEnabled_; onBuilt(); return result; } @@ -1637,39 +2034,38 @@ public com.google.cloud.filestore.v1beta1.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.Instance) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Instance) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Instance)other); } else { super.mergeFrom(other); return this; @@ -1699,7 +2095,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { if (other.tier_ != 0) { setTierValue(other.getTierValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (fileSharesBuilder_ == null) { if (!other.fileShares_.isEmpty()) { if (fileShares_.isEmpty()) { @@ -1718,10 +2115,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { fileSharesBuilder_ = null; fileShares_ = other.fileShares_; bitField0_ = (bitField0_ & ~0x00000002); - fileSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFileSharesFieldBuilder() - : null; + fileSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileSharesFieldBuilder() : null; } else { fileSharesBuilder_.addAllMessages(other.fileShares_); } @@ -1745,10 +2141,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1761,6 +2156,35 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + if (!other.suspensionReasons_.isEmpty()) { + if (suspensionReasons_.isEmpty()) { + suspensionReasons_ = other.suspensionReasons_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.addAll(other.suspensionReasons_); + } + onChanged(); + } + if (other.getMaxCapacityGb() != 0L) { + setMaxCapacityGb(other.getMaxCapacityGb()); + } + if (other.getCapacityStepSizeGb() != 0L) { + setCapacityStepSizeGb(other.getCapacityStepSizeGb()); + } + if (other.getMaxShareCount() != 0L) { + setMaxShareCount(other.getMaxShareCount()); + } + if (other.getCapacityGb() != 0L) { + setCapacityGb(other.getCapacityGb()); + } + if (other.getMultiShareEnabled() != false) { + setMultiShareEnabled(other.getMultiShareEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1787,129 +2211,163 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - tier_ = input.readEnum(); - - break; - } // case 64 - case 74: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 74 - case 82: - { - com.google.cloud.filestore.v1beta1.FileShareConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), - extensionRegistry); - if (fileSharesBuilder_ == null) { - ensureFileSharesIsMutable(); - fileShares_.add(m); - } else { - fileSharesBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - com.google.cloud.filestore.v1beta1.NetworkConfig m = - input.readMessage( - com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), - extensionRegistry); - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(m); - } else { - networksBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + case 10: { + name_ = input.readStringRequireUtf8(); - private int bitField0_; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of the instance, in the format
-     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + break; + } // case 18 + case 40: { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + tier_ = input.readEnum(); + + break; + } // case 64 + case 74: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 74 + case 82: { + com.google.cloud.filestore.v1beta1.FileShareConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.FileShareConfig.parser(), + extensionRegistry); + if (fileSharesBuilder_ == null) { + ensureFileSharesIsMutable(); + fileShares_.add(m); + } else { + fileSharesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: { + com.google.cloud.filestore.v1beta1.NetworkConfig m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NetworkConfig.parser(), + extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + input.readMessage( + getSatisfiesPzsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + case 114: { + kmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 120: { + int tmpRaw = input.readEnum(); + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(tmpRaw); + break; + } // case 120 + case 122: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 122 + case 128: { + maxCapacityGb_ = input.readInt64(); + + break; + } // case 128 + case 136: { + capacityStepSizeGb_ = input.readInt64(); + + break; + } // case 136 + case 144: { + maxShareCount_ = input.readInt64(); + + break; + } // case 144 + case 152: { + capacityGb_ = input.readInt64(); + + break; + } // case 152 + case 160: { + multiShareEnabled_ = input.readBool(); + + break; + } // case 160 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1918,22 +2376,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1941,64 +2398,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2006,20 +2456,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2028,21 +2476,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2050,61 +2497,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the instance (2048 characters or less).
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2112,75 +2552,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.State result = - com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.State result = com.google.cloud.filestore.v1beta1.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2188,26 +2604,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The instance state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2215,20 +2626,18 @@ public Builder clearState() { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -2237,21 +2646,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -2259,61 +2667,54 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Additional information about the instance state, if available.
      * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; @@ -2321,58 +2722,39 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2388,17 +2770,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2409,21 +2788,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2435,15 +2810,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2457,64 +2828,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the instance was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2522,67 +2877,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int tier_ = 0; /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Instance.Tier result = - com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Instance.Tier result = com.google.cloud.filestore.v1beta1.Instance.Tier.valueOf(tier_); + return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @param value The tier to set. * @return This builder for chaining. */ @@ -2590,44 +2929,42 @@ public Builder setTier(com.google.cloud.filestore.v1beta1.Instance.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The service tier of the instance.
      * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2639,30 +2976,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2670,12 +3005,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2683,17 +3017,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -2701,11 +3034,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2713,85 +3047,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 9; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List fileShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFileSharesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - fileShares_ = - new java.util.ArrayList( - fileShares_); + fileShares_ = new java.util.ArrayList(fileShares_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.FileShareConfig, - com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, - com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> - fileSharesBuilder_; + com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> fileSharesBuilder_; /** - * - * *
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2807,8 +3136,6 @@ public java.util.List getFil
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2824,8 +3151,6 @@ public int getFileSharesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2841,8 +3166,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int inde
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2865,8 +3188,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2886,8 +3207,6 @@ public Builder setFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2909,8 +3228,6 @@ public Builder addFileShares(com.google.cloud.filestore.v1beta1.FileShareConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2933,8 +3250,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2954,8 +3269,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2975,8 +3288,6 @@ public Builder addFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -2988,7 +3299,8 @@ public Builder addAllFileShares(
         java.lang.Iterable values) {
       if (fileSharesBuilder_ == null) {
         ensureFileSharesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, fileShares_);
         onChanged();
       } else {
         fileSharesBuilder_.addAllMessages(values);
@@ -2996,8 +3308,6 @@ public Builder addAllFileShares(
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3016,8 +3326,6 @@ public Builder clearFileShares() {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3036,8 +3344,6 @@ public Builder removeFileShares(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3050,8 +3356,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
       return getFileSharesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3062,14 +3366,11 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesB
     public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
         int index) {
       if (fileSharesBuilder_ == null) {
-        return fileShares_.get(index);
-      } else {
+        return fileShares_.get(index);  } else {
         return fileSharesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3077,8 +3378,8 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesOrBuilderList() {
+    public java.util.List 
+         getFileSharesOrBuilderList() {
       if (fileSharesBuilder_ != null) {
         return fileSharesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3086,8 +3387,6 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
       }
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3096,12 +3395,10 @@ public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileShares
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder() {
-      return getFileSharesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3111,13 +3408,10 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      */
     public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder(
         int index) {
-      return getFileSharesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
+      return getFileSharesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * File system shares on the instance.
      * For this version, only a single file share is supported.
@@ -3125,48 +3419,38 @@ public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesB
      *
      * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
      */
-    public java.util.List
-        getFileSharesBuilderList() {
+    public java.util.List 
+         getFileSharesBuilderList() {
       return getFileSharesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.FileShareConfig,
-            com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
-            com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
+        com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder> 
         getFileSharesFieldBuilder() {
       if (fileSharesBuilder_ == null) {
-        fileSharesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.FileShareConfig,
-                com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
-                com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
-                fileShares_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        fileSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.FileShareConfig, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder, com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
+                fileShares_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         fileShares_ = null;
       }
       return fileSharesBuilder_;
     }
 
     private java.util.List networks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureNetworksIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        networks_ =
-            new java.util.ArrayList(networks_);
+        networks_ = new java.util.ArrayList(networks_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.NetworkConfig,
-            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
-        networksBuilder_;
+        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> networksBuilder_;
 
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3182,8 +3466,6 @@ public java.util.List getNetwo
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3199,8 +3481,6 @@ public int getNetworksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3216,8 +3496,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3225,7 +3503,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder setNetworks(
+        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3239,8 +3518,6 @@ public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.Network
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3260,8 +3537,6 @@ public Builder setNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3283,8 +3558,6 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3292,7 +3565,8 @@ public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig valu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
+    public Builder addNetworks(
+        int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
       if (networksBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3306,8 +3580,6 @@ public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.Network
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3327,8 +3599,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3348,8 +3618,6 @@ public Builder addNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3361,7 +3629,8 @@ public Builder addAllNetworks(
         java.lang.Iterable values) {
       if (networksBuilder_ == null) {
         ensureNetworksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, networks_);
         onChanged();
       } else {
         networksBuilder_.addAllMessages(values);
@@ -3369,8 +3638,6 @@ public Builder addAllNetworks(
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3389,8 +3656,6 @@ public Builder clearNetworks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3409,8 +3674,6 @@ public Builder removeNetworks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3418,12 +3681,11 @@ public Builder removeNetworks(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(
+        int index) {
       return getNetworksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3434,14 +3696,11 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuild
     public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
         int index) {
       if (networksBuilder_ == null) {
-        return networks_.get(index);
-      } else {
+        return networks_.get(index);  } else {
         return networksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3449,8 +3708,8 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksOrBuilderList() {
+    public java.util.List 
+         getNetworksOrBuilderList() {
       if (networksBuilder_ != null) {
         return networksBuilder_.getMessageOrBuilderList();
       } else {
@@ -3458,8 +3717,6 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
       }
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3468,12 +3725,10 @@ public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBu
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
     public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder() {
-      return getNetworksFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+      return getNetworksFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3481,13 +3736,12 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(int index) {
-      return getNetworksFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(
+        int index) {
+      return getNetworksFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * VPC networks to which the instance is connected.
      * For this version, only a single network is supported.
@@ -3495,23 +3749,20 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
      *
      * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
      */
-    public java.util.List
-        getNetworksBuilderList() {
+    public java.util.List 
+         getNetworksBuilderList() {
       return getNetworksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.NetworkConfig,
-            com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-            com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
+        com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder> 
         getNetworksFieldBuilder() {
       if (networksBuilder_ == null) {
-        networksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.NetworkConfig,
-                com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
-                com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
-                networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.NetworkConfig, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder, com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
+                networks_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         networks_ = null;
       }
       return networksBuilder_;
@@ -3519,21 +3770,19 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuild
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3542,22 +3791,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3565,64 +3813,57 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { + public Builder setEtag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** - * - * *
      * Server-specified ETag for the instance resource to prevent simultaneous
      * updates from overwriting each other.
      * 
* * string etag = 12; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; @@ -3630,58 +3871,39 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.BoolValue satisfiesPzs_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - satisfiesPzsBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> satisfiesPzsBuilder_; /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the satisfiesPzs field is set. */ public boolean hasSatisfiesPzs() { return satisfiesPzsBuilder_ != null || satisfiesPzs_ != null; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The satisfiesPzs. */ public com.google.protobuf.BoolValue getSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } else { return satisfiesPzsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { @@ -3697,17 +3919,14 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setSatisfiesPzs( + com.google.protobuf.BoolValue.Builder builderForValue) { if (satisfiesPzsBuilder_ == null) { satisfiesPzs_ = builderForValue.build(); onChanged(); @@ -3718,23 +3937,17 @@ public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForV return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { if (satisfiesPzsBuilder_ == null) { if (satisfiesPzs_ != null) { satisfiesPzs_ = - com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.BoolValue.newBuilder(satisfiesPzs_).mergeFrom(value).buildPartial(); } else { satisfiesPzs_ = value; } @@ -3746,15 +3959,11 @@ public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSatisfiesPzs() { if (satisfiesPzsBuilder_ == null) { @@ -3768,71 +3977,566 @@ public Builder clearSatisfiesPzs() { return this; } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { - + onChanged(); return getSatisfiesPzsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { if (satisfiesPzsBuilder_ != null) { return satisfiesPzsBuilder_.getMessageOrBuilder(); } else { - return satisfiesPzs_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : satisfiesPzs_; + return satisfiesPzs_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : satisfiesPzs_; } } /** - * - * *
      * Output only. Reserved for future use.
      * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSatisfiesPzsFieldBuilder() { if (satisfiesPzsBuilder_ == null) { - satisfiesPzsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), + getParentForChildren(), + isClean()); satisfiesPzs_ = null; } return satisfiesPzsBuilder_; } + private java.lang.Object kmsKeyName_ = ""; + /** + *
+     * KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 14; + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 14; + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 14; + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + *
+     * KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 14; + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + *
+     * KMS key name used for data encryption.
+     * 
+ * + * string kms_key_name = 14; + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } + + private java.util.List suspensionReasons_ = + java.util.Collections.emptyList(); + private void ensureSuspensionReasonsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + suspensionReasons_ = new java.util.ArrayList(suspensionReasons_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the suspensionReasons. + */ + public java.util.List getSuspensionReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(suspensionReasons_, suspensionReasons_converter_); + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of suspensionReasons. + */ + public int getSuspensionReasonsCount() { + return suspensionReasons_.size(); + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The suspensionReasons at the given index. + */ + public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index) { + return suspensionReasons_converter_.convert(suspensionReasons_.get(index)); + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index to set the value at. + * @param value The suspensionReasons to set. + * @return This builder for chaining. + */ + public Builder setSuspensionReasons( + int index, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The suspensionReasons to add. + * @return This builder for chaining. + */ + public Builder addSuspensionReasons(com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param values The suspensionReasons to add. + * @return This builder for chaining. + */ + public Builder addAllSuspensionReasons( + java.lang.Iterable values) { + ensureSuspensionReasonsIsMutable(); + for (com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value : values) { + suspensionReasons_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSuspensionReasons() { + suspensionReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the enum numeric values on the wire for suspensionReasons. + */ + public java.util.List + getSuspensionReasonsValueList() { + return java.util.Collections.unmodifiableList(suspensionReasons_); + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suspensionReasons at the given index. + */ + public int getSuspensionReasonsValue(int index) { + return suspensionReasons_.get(index); + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for suspensionReasons to set. + * @return This builder for chaining. + */ + public Builder setSuspensionReasonsValue( + int index, int value) { + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for suspensionReasons to add. + * @return This builder for chaining. + */ + public Builder addSuspensionReasonsValue(int value) { + ensureSuspensionReasonsIsMutable(); + suspensionReasons_.add(value); + onChanged(); + return this; + } + /** + *
+     * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param values The enum numeric values on the wire for suspensionReasons to add. + * @return This builder for chaining. + */ + public Builder addAllSuspensionReasonsValue( + java.lang.Iterable values) { + ensureSuspensionReasonsIsMutable(); + for (int value : values) { + suspensionReasons_.add(value); + } + onChanged(); + return this; + } + + private long maxCapacityGb_ ; + /** + *
+     * Output only. The max capacity of the instance.
+     * 
+ * + * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxCapacityGb. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public long getMaxCapacityGb() { + return maxCapacityGb_; + } + /** + *
+     * Output only. The max capacity of the instance.
+     * 
+ * + * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The maxCapacityGb to set. + * @return This builder for chaining. + */ + public Builder setMaxCapacityGb(long value) { + + maxCapacityGb_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The max capacity of the instance.
+     * 
+ * + * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearMaxCapacityGb() { + + maxCapacityGb_ = 0L; + onChanged(); + return this; + } + + private long capacityStepSizeGb_ ; + /** + *
+     * Output only. The increase/decrease capacity step size.
+     * 
+ * + * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The capacityStepSizeGb. + */ + @java.lang.Override + public long getCapacityStepSizeGb() { + return capacityStepSizeGb_; + } + /** + *
+     * Output only. The increase/decrease capacity step size.
+     * 
+ * + * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The capacityStepSizeGb to set. + * @return This builder for chaining. + */ + public Builder setCapacityStepSizeGb(long value) { + + capacityStepSizeGb_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The increase/decrease capacity step size.
+     * 
+ * + * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearCapacityStepSizeGb() { + + capacityStepSizeGb_ = 0L; + onChanged(); + return this; + } + + private long maxShareCount_ ; + /** + *
+     * Output only. The max number of shares allowed.
+     * 
+ * + * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxShareCount. + */ + @java.lang.Override + public long getMaxShareCount() { + return maxShareCount_; + } + /** + *
+     * Output only. The max number of shares allowed.
+     * 
+ * + * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The maxShareCount to set. + * @return This builder for chaining. + */ + public Builder setMaxShareCount(long value) { + + maxShareCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The max number of shares allowed.
+     * 
+ * + * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearMaxShareCount() { + + maxShareCount_ = 0L; + onChanged(); + return this; + } + + private long capacityGb_ ; + /** + *
+     * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+     * This capacity can be increased up to `max_capacity_gb` GB in multipliers
+     * of `capacity_step_size_gb` GB.
+     * 
+ * + * int64 capacity_gb = 19; + * @return The capacityGb. + */ + @java.lang.Override + public long getCapacityGb() { + return capacityGb_; + } + /** + *
+     * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+     * This capacity can be increased up to `max_capacity_gb` GB in multipliers
+     * of `capacity_step_size_gb` GB.
+     * 
+ * + * int64 capacity_gb = 19; + * @param value The capacityGb to set. + * @return This builder for chaining. + */ + public Builder setCapacityGb(long value) { + + capacityGb_ = value; + onChanged(); + return this; + } + /** + *
+     * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+     * This capacity can be increased up to `max_capacity_gb` GB in multipliers
+     * of `capacity_step_size_gb` GB.
+     * 
+ * + * int64 capacity_gb = 19; + * @return This builder for chaining. + */ + public Builder clearCapacityGb() { + + capacityGb_ = 0L; + onChanged(); + return this; + } + + private boolean multiShareEnabled_ ; + /** + *
+     * Indicates whether this instance uses a multi-share configuration with which
+     * it can have more than one file-share or none at all. File-shares are added,
+     * updated and removed through the separate file-share APIs.
+     * 
+ * + * bool multi_share_enabled = 20; + * @return The multiShareEnabled. + */ + @java.lang.Override + public boolean getMultiShareEnabled() { + return multiShareEnabled_; + } + /** + *
+     * Indicates whether this instance uses a multi-share configuration with which
+     * it can have more than one file-share or none at all. File-shares are added,
+     * updated and removed through the separate file-share APIs.
+     * 
+ * + * bool multi_share_enabled = 20; + * @param value The multiShareEnabled to set. + * @return This builder for chaining. + */ + public Builder setMultiShareEnabled(boolean value) { + + multiShareEnabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Indicates whether this instance uses a multi-share configuration with which
+     * it can have more than one file-share or none at all. File-shares are added,
+     * updated and removed through the separate file-share APIs.
+     * 
+ * + * bool multi_share_enabled = 20; + * @return This builder for chaining. + */ + public Builder clearMultiShareEnabled() { + + multiShareEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3842,12 +4546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Instance) private static final com.google.cloud.filestore.v1beta1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Instance(); } @@ -3856,27 +4560,27 @@ public static com.google.cloud.filestore.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3891,4 +4595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java similarity index 59% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java index a26766cbf9da..4b21246d63cd 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java @@ -1,200 +1,140 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the instance (2048 characters or less).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The instance state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Instance.State getState(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Additional information about the instance state, if available.
    * 
* * string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the instance was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * The service tier of the instance.
    * 
* * .google.cloud.filestore.v1beta1.Instance.Tier tier = 8; - * * @return The tier. */ com.google.cloud.filestore.v1beta1.Instance.Tier getTier(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -203,31 +143,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -236,24 +175,22 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 9; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -261,10 +198,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List getFileSharesList();
+  java.util.List 
+      getFileSharesList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -274,8 +210,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int index);
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -285,8 +219,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getFileSharesCount();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -294,11 +226,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  java.util.List
+  java.util.List 
       getFileSharesOrBuilderList();
   /**
-   *
-   *
    * 
    * File system shares on the instance.
    * For this version, only a single file share is supported.
@@ -306,11 +236,10 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
    */
-  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -318,10 +247,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List getNetworksList();
+  java.util.List 
+      getNetworksList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -331,8 +259,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index);
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -342,8 +268,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getNetworksCount();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -351,11 +275,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  java.util.List
+  java.util.List 
       getNetworksOrBuilderList();
   /**
-   *
-   *
    * 
    * VPC networks to which the instance is connected.
    * For this version, only a single network is supported.
@@ -363,73 +285,178 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
    */
-  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Server-specified ETag for the instance resource to prevent simultaneous
    * updates from overwriting each other.
    * 
* * string etag = 12; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** + *
+   * Output only. Reserved for future use.
+   * 
* + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + /** + *
+   * Output only. Reserved for future use.
+   * 
* + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The satisfiesPzs. + */ + com.google.protobuf.BoolValue getSatisfiesPzs(); + /** *
    * Output only. Reserved for future use.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + + /** + *
+   * KMS key name used for data encryption.
+   * 
* - * @return Whether the satisfiesPzs field is set. + * string kms_key_name = 14; + * @return The kmsKeyName. */ - boolean hasSatisfiesPzs(); + java.lang.String getKmsKeyName(); /** + *
+   * KMS key name used for data encryption.
+   * 
* + * string kms_key_name = 14; + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString + getKmsKeyNameBytes(); + + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
* + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the suspensionReasons. + */ + java.util.List getSuspensionReasonsList(); + /** *
-   * Output only. Reserved for future use.
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The count of suspensionReasons. + */ + int getSuspensionReasonsCount(); + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
* - * @return The satisfiesPzs. + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the element to return. + * @return The suspensionReasons at the given index. */ - com.google.protobuf.BoolValue getSatisfiesPzs(); + com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(int index); /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
* + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return A list containing the enum numeric values on the wire for suspensionReasons. + */ + java.util.List + getSuspensionReasonsValueList(); + /** + *
+   * Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
+   * 
* + * repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suspensionReasons at the given index. + */ + int getSuspensionReasonsValue(int index); + + /** *
-   * Output only. Reserved for future use.
+   * Output only. The max capacity of the instance.
    * 
* - * - * .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxCapacityGb. */ - com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + long getMaxCapacityGb(); + + /** + *
+   * Output only. The increase/decrease capacity step size.
+   * 
+ * + * int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The capacityStepSizeGb. + */ + long getCapacityStepSizeGb(); + + /** + *
+   * Output only. The max number of shares allowed.
+   * 
+ * + * int64 max_share_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The maxShareCount. + */ + long getMaxShareCount(); + + /** + *
+   * The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
+   * This capacity can be increased up to `max_capacity_gb` GB in multipliers
+   * of `capacity_step_size_gb` GB.
+   * 
+ * + * int64 capacity_gb = 19; + * @return The capacityGb. + */ + long getCapacityGb(); + + /** + *
+   * Indicates whether this instance uses a multi-share configuration with which
+   * it can have more than one file-share or none at all. File-shares are added,
+   * updated and removed through the separate file-share APIs.
+   * 
+ * + * bool multi_share_enabled = 20; + * @return The multiShareEnabled. + */ + boolean getMultiShareEnabled(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java index cb9298df1137..aa3c5e864482 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListBackupsRequest lists backups.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListBackupsRequest} */ -public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListBackupsRequest) ListBackupsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsRequest.newBuilder() to construct. private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,48 +28,42 @@ private ListBackupsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
+   * In Filestore, backup locations map to GCP regions,
    * for example **us-west1**.
    * To retrieve backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -96,36 +72,34 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
+   * In Filestore, backup locations map to GCP regions,
    * for example **us-west1**.
    * To retrieve backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -136,14 +110,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -154,15 +125,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,30 +139,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -205,14 +173,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -221,29 +186,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -254,14 +219,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -270,29 +232,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -301,7 +263,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +304,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -361,19 +324,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListBackupsRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsRequest other = - (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListBackupsRequest other = (com.google.cloud.filestore.v1beta1.ListBackupsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,136 +368,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListBackupsRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListBackupsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListBackupsRequest lists backups.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListBackupsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListBackupsRequest) com.google.cloud.filestore.v1beta1.ListBackupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, - com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsRequest.class, com.google.cloud.filestore.v1beta1.ListBackupsRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsRequest_descriptor; } @java.lang.Override @@ -569,8 +529,7 @@ public com.google.cloud.filestore.v1beta1.ListBackupsRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsRequest result = - new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); + com.google.cloud.filestore.v1beta1.ListBackupsRequest result = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -584,39 +543,38 @@ public com.google.cloud.filestore.v1beta1.ListBackupsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.ListBackupsRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsRequest)other); } else { super.mergeFrom(other); return this; @@ -624,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -671,43 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -720,27 +671,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
+     * In Filestore, backup locations map to GCP regions,
      * for example **us-west1**.
      * To retrieve backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -749,28 +696,25 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
+     * In Filestore, backup locations map to GCP regions,
      * for example **us-west1**.
      * To retrieve backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -778,97 +722,81 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
+     * In Filestore, backup locations map to GCP regions,
      * for example **us-west1**.
      * To retrieve backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
+     * In Filestore, backup locations map to GCP regions,
      * for example **us-west1**.
      * To retrieve backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve backup information,
      * in the format `projects/{project_id}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
+     * In Filestore, backup locations map to GCP regions,
      * for example **us-west1**.
      * To retrieve backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -876,36 +804,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -913,21 +835,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -936,22 +856,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -959,64 +878,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1024,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1046,21 +956,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1068,61 +977,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1130,20 +1032,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1152,21 +1052,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1174,68 +1073,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1245,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsRequest) private static final com.google.cloud.filestore.v1beta1.ListBackupsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsRequest(); } @@ -1259,27 +1151,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,4 +1186,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java similarity index 63% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java index bcce4ab3ff54..74c5675cd860 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequestOrBuilder.java @@ -1,154 +1,111 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsRequestOrBuilder - extends +public interface ListBackupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
+   * In Filestore, backup locations map to GCP regions,
    * for example **us-west1**.
    * To retrieve backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve backup information,
    * in the format `projects/{project_id}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
+   * In Filestore, backup locations map to GCP regions,
    * for example **us-west1**.
    * To retrieve backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java index d01bcdb4d4f8..adb7efe41b30 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListBackupsResponse is the result of ListBackupsRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListBackupsResponse} */ -public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBackupsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListBackupsResponse) ListBackupsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBackupsResponse.newBuilder() to construct. private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBackupsResponse() { backups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListBackupsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBackupsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } public static final int BACKUPS_FIELD_NUMBER = 1; private java.util.List backups_; /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -90,8 +69,6 @@ public java.util.List getBackupsList(
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -104,13 +81,11 @@ public java.util.List getBackupsList(
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBackupsOrBuilderList() {
     return backups_;
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -127,8 +102,6 @@ public int getBackupsCount() {
     return backups_.size();
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -145,8 +118,6 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
     return backups_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -159,22 +130,20 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+      int index) {
     return backups_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -183,30 +152,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -217,42 +186,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -260,23 +221,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } @@ -308,7 +267,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < backups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, backups_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -329,17 +289,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListBackupsResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListBackupsResponse other = - (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; + com.google.cloud.filestore.v1beta1.ListBackupsResponse other = (com.google.cloud.filestore.v1beta1.ListBackupsResponse) obj; - if (!getBackupsList().equals(other.getBackupsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getBackupsList() + .equals(other.getBackupsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,136 +329,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListBackupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListBackupsResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListBackupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListBackupsResponse is the result of ListBackupsRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListBackupsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListBackupsResponse) com.google.cloud.filestore.v1beta1.ListBackupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, - com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListBackupsResponse.class, com.google.cloud.filestore.v1beta1.ListBackupsResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListBackupsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListBackupsResponse_descriptor; } @java.lang.Override @@ -536,8 +491,7 @@ public com.google.cloud.filestore.v1beta1.ListBackupsResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListBackupsResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListBackupsResponse result = - new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); + com.google.cloud.filestore.v1beta1.ListBackupsResponse result = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(this); int from_bitField0_ = bitField0_; if (backupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -562,39 +516,38 @@ public com.google.cloud.filestore.v1beta1.ListBackupsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.ListBackupsResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListBackupsResponse)other); } else { super.mergeFrom(other); return this; @@ -602,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListBackupsResponse.getDefaultInstance()) return this; if (backupsBuilder_ == null) { if (!other.backups_.isEmpty()) { if (backups_.isEmpty()) { @@ -622,10 +574,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListBackupsResponse backupsBuilder_ = null; backups_ = other.backups_; bitField0_ = (bitField0_ & ~0x00000001); - backupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBackupsFieldBuilder() - : null; + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBackupsFieldBuilder() : null; } else { backupsBuilder_.addAllMessages(other.backups_); } @@ -671,39 +622,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Backup m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Backup.parser(), extensionRegistry); - if (backupsBuilder_ == null) { - ensureBackupsIsMutable(); - backups_.add(m); - } else { - backupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Backup m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Backup.parser(), + extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,28 +661,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List backups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBackupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backups_ = new java.util.ArrayList(backups_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupsBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupsBuilder_; /** - * - * *
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -754,8 +695,6 @@ public java.util.List getBackupsList(
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -775,8 +714,6 @@ public int getBackupsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -796,8 +733,6 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -809,7 +744,8 @@ public com.google.cloud.filestore.v1beta1.Backup getBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder setBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder setBackups(
+        int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -823,8 +759,6 @@ public Builder setBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -848,8 +782,6 @@ public Builder setBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -875,8 +807,6 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -888,7 +818,8 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup value) {
+    public Builder addBackups(
+        int index, com.google.cloud.filestore.v1beta1.Backup value) {
       if (backupsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -902,8 +833,6 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -915,7 +844,8 @@ public Builder addBackups(int index, com.google.cloud.filestore.v1beta1.Backup v
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
+    public Builder addBackups(
+        com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
         backups_.add(builderForValue.build());
@@ -926,8 +856,6 @@ public Builder addBackups(com.google.cloud.filestore.v1beta1.Backup.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -951,8 +879,6 @@ public Builder addBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -968,7 +894,8 @@ public Builder addAllBackups(
         java.lang.Iterable values) {
       if (backupsBuilder_ == null) {
         ensureBackupsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, backups_);
         onChanged();
       } else {
         backupsBuilder_.addAllMessages(values);
@@ -976,8 +903,6 @@ public Builder addAllBackups(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1000,8 +925,6 @@ public Builder clearBackups() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1024,8 +947,6 @@ public Builder removeBackups(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1037,12 +958,11 @@ public Builder removeBackups(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(
+        int index) {
       return getBackupsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1054,16 +974,14 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupsBuilder(int i
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+        int index) {
       if (backupsBuilder_ == null) {
-        return backups_.get(index);
-      } else {
+        return backups_.get(index);  } else {
         return backupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1075,8 +993,8 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsOrBuilderList() {
+    public java.util.List 
+         getBackupsOrBuilderList() {
       if (backupsBuilder_ != null) {
         return backupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1084,8 +1002,6 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
       }
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1098,12 +1014,10 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(in
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
     public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
-      return getBackupsFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+      return getBackupsFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1115,13 +1029,12 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder() {
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int index) {
-      return getBackupsFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(
+        int index) {
+      return getBackupsFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of backups in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1133,23 +1046,20 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int i
      *
      * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
      */
-    public java.util.List
-        getBackupsBuilderList() {
+    public java.util.List 
+         getBackupsBuilderList() {
       return getBackupsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Backup,
-            com.google.cloud.filestore.v1beta1.Backup.Builder,
-            com.google.cloud.filestore.v1beta1.BackupOrBuilder>
+        com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> 
         getBackupsFieldBuilder() {
       if (backupsBuilder_ == null) {
-        backupsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.Backup,
-                com.google.cloud.filestore.v1beta1.Backup.Builder,
-                com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
-                backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        backupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>(
+                backups_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         backups_ = null;
       }
       return backupsBuilder_;
@@ -1157,21 +1067,19 @@ public com.google.cloud.filestore.v1beta1.Backup.Builder addBackupsBuilder(int i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1180,22 +1088,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1203,115 +1110,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1319,90 +1209,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1412,30 +1292,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1445,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListBackupsResponse) private static final com.google.cloud.filestore.v1beta1.ListBackupsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListBackupsResponse(); } @@ -1459,27 +1337,27 @@ public static com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBackupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,4 +1372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListBackupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java index 4dee374efbbd..affd6d463f13 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListBackupsResponseOrBuilder - extends +public interface ListBackupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListBackupsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -37,10 +19,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List getBackupsList();
+  java.util.List 
+      getBackupsList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -54,8 +35,6 @@ public interface ListBackupsResponseOrBuilder
    */
   com.google.cloud.filestore.v1beta1.Backup getBackups(int index);
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -69,8 +48,6 @@ public interface ListBackupsResponseOrBuilder
    */
   int getBackupsCount();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -82,11 +59,9 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  java.util.List
+  java.util.List 
       getBackupsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of backups in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -98,83 +73,69 @@ public interface ListBackupsResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Backup backups = 1;
    */
-  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java similarity index 70% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java index 2340d2777677..dad0a237fd41 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListInstancesRequest lists instances.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,35 +28,32 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -83,10 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -95,15 +71,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -112,18 +87,17 @@ public java.lang.String getParent() {
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -134,14 +108,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -152,15 +123,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,30 +137,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,14 +171,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 4; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ @java.lang.Override @@ -219,29 +184,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -252,14 +217,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ @java.lang.Override @@ -268,29 +230,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -299,7 +261,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -340,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -359,19 +322,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesRequest other = - (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.filestore.v1beta1.ListInstancesRequest other = (com.google.cloud.filestore.v1beta1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +366,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesRequest lists instances.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.cloud.filestore.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, - com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesRequest.class, com.google.cloud.filestore.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -567,8 +527,7 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesRequest result = - new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); + com.google.cloud.filestore.v1beta1.ListInstancesRequest result = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -582,39 +541,38 @@ public com.google.cloud.filestore.v1beta1.ListInstancesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -622,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -669,43 +626,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -718,8 +669,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -728,16 +677,14 @@ public Builder mergeFrom(
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -746,8 +693,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -756,17 +701,16 @@ public java.lang.String getParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -774,8 +718,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -784,25 +726,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -811,21 +749,16 @@ public Builder setParent(java.lang.String value) {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project and location for which to retrieve instance information,
      * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -834,34 +767,29 @@ public Builder clearParent() {
      * `{location}` value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -869,36 +797,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -906,21 +828,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -929,22 +849,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -952,64 +871,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The next_page_token value to use if there are additional
      * results to retrieve for this list request.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1017,20 +929,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1039,21 +949,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1061,61 +970,54 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 4; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1123,20 +1025,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1145,21 +1045,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1167,68 +1066,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 5; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1238,12 +1130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesRequest) private static final com.google.cloud.filestore.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesRequest(); } @@ -1252,27 +1144,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1287,4 +1179,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java similarity index 66% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java index 648d4ecc7726..6e6567c49c2a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -34,16 +16,11 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location for which to retrieve instance information,
    * in the format `projects/{project_id}/locations/{location}`. In Cloud
@@ -52,101 +29,81 @@ public interface ListInstancesRequestOrBuilder
    * `{location}` value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value to use if there are additional
    * results to retrieve for this list request.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 4; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 5; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java similarity index 77% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java index aa5d74c78ad1..a723180f1a77 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * ListInstancesResponse is the result of ListInstancesRequest.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,35 +27,32 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -89,8 +68,6 @@ public java.util.List getInstancesL
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -102,13 +79,11 @@ public java.util.List getInstancesL
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -124,8 +99,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -141,8 +114,6 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -154,22 +125,20 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index) {
     return instances_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -178,30 +147,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -212,42 +181,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -255,23 +216,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -303,7 +262,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -324,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.ListInstancesResponse other = - (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; + com.google.cloud.filestore.v1beta1.ListInstancesResponse other = (com.google.cloud.filestore.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,136 +324,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ListInstancesResponse is the result of ListInstancesRequest.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.cloud.filestore.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, - com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.filestore.v1beta1.ListInstancesResponse.class, com.google.cloud.filestore.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.ListInstancesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -531,8 +486,7 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.filestore.v1beta1.ListInstancesResponse result = - new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); + com.google.cloud.filestore.v1beta1.ListInstancesResponse result = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -557,39 +511,38 @@ public com.google.cloud.filestore.v1beta1.ListInstancesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -597,8 +550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -617,10 +569,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListInstancesRespons instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -666,39 +617,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.filestore.v1beta1.Instance m = - input.readMessage( - com.google.cloud.filestore.v1beta1.Instance.parser(), extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.filestore.v1beta1.Instance m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Instance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,29 +656,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -749,8 +689,6 @@ public java.util.List getInstancesL
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -769,8 +707,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -789,8 +725,6 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -801,7 +735,8 @@ public com.google.cloud.filestore.v1beta1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -815,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.filestore.v1beta1.Instan
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -839,8 +772,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -865,8 +796,6 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -877,7 +806,8 @@ public Builder addInstances(com.google.cloud.filestore.v1beta1.Instance value) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.filestore.v1beta1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.filestore.v1beta1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -891,8 +821,6 @@ public Builder addInstances(int index, com.google.cloud.filestore.v1beta1.Instan
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -915,8 +843,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -939,8 +865,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -955,7 +879,8 @@ public Builder addAllInstances(
         java.lang.Iterable values) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, instances_);
         onChanged();
       } else {
         instancesBuilder_.addAllMessages(values);
@@ -963,8 +888,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -986,8 +909,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1009,8 +930,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1021,12 +940,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1037,16 +955,14 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstancesBuilder(i
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+        int index) {
       if (instancesBuilder_ == null) {
-        return instances_.get(index);
-      } else {
+        return instances_.get(index);  } else {
         return instancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1057,8 +973,8 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1066,8 +982,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1079,12 +993,10 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilde
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
     public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1095,13 +1007,12 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder()
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
+    public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of instances in the project for the specified location.
      * If the `{location}` value in the request is "-", the response contains a
@@ -1112,23 +1023,20 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(i
      *
      * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesBuilderList() {
+    public java.util.List 
+         getInstancesBuilderList() {
       return getInstancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.filestore.v1beta1.Instance,
-            com.google.cloud.filestore.v1beta1.Instance.Builder,
-            com.google.cloud.filestore.v1beta1.InstanceOrBuilder>
+        com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.filestore.v1beta1.Instance,
-                com.google.cloud.filestore.v1beta1.Instance.Builder,
-                com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1136,21 +1044,19 @@ public com.google.cloud.filestore.v1beta1.Instance.Builder addInstancesBuilder(i
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1159,22 +1065,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1182,115 +1087,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * The token you can use to retrieve the next page of results. Not returned
      * if there are no more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1298,90 +1186,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1391,30 +1269,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1424,12 +1300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListInstancesResponse) private static final com.google.cloud.filestore.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListInstancesResponse(); } @@ -1438,27 +1314,27 @@ public static com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1473,4 +1349,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java similarity index 80% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java index 0d245132d892..40cd0d466af8 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -36,10 +18,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -52,8 +33,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.filestore.v1beta1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -66,8 +45,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -78,11 +55,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of instances in the project for the specified location.
    * If the `{location}` value in the request is "-", the response contains a
@@ -93,83 +68,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.filestore.v1beta1.Instance instances = 1;
    */
-  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The token you can use to retrieve the next page of results. Not returned
    * if there are no more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java new file mode 100644 index 000000000000..4ba08ff8f544 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequest.java @@ -0,0 +1,1170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * ListSharesRequest lists shares.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} + */ +public final class ListSharesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesRequest) + ListSharesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSharesRequest.newBuilder() to construct. + private ListSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSharesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSharesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The instance for which to retrieve share information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The instance for which to retrieve share information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + private volatile java.lang.Object orderBy_; + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListSharesRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.ListSharesRequest other = (com.google.cloud.filestore.v1beta1.ListSharesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSharesRequest lists shares.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesRequest) + com.google.cloud.filestore.v1beta1.ListSharesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSharesRequest.class, com.google.cloud.filestore.v1beta1.ListSharesRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.ListSharesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesRequest build() { + com.google.cloud.filestore.v1beta1.ListSharesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesRequest buildPartial() { + com.google.cloud.filestore.v1beta1.ListSharesRequest result = new com.google.cloud.filestore.v1beta1.ListSharesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.ListSharesRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesRequest other) { + if (other == com.google.cloud.filestore.v1beta1.ListSharesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The instance for which to retrieve share information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The instance for which to retrieve share information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The instance for which to retrieve share information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The instance for which to retrieve share information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The instance for which to retrieve share information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesRequest) + private static final com.google.cloud.filestore.v1beta1.ListSharesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesRequest(); + } + + public static com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java new file mode 100644 index 000000000000..0cc9956e9f5a --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesRequestOrBuilder.java @@ -0,0 +1,105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface ListSharesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance for which to retrieve share information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The instance for which to retrieve share information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java new file mode 100644 index 000000000000..846d1d9a5f5f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponse.java @@ -0,0 +1,1262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * ListSharesResponse is the result of ListSharesRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} + */ +public final class ListSharesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSharesResponse) + ListSharesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSharesResponse.newBuilder() to construct. + private ListSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSharesResponse() { + shares_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSharesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + } + + public static final int SHARES_FIELD_NUMBER = 1; + private java.util.List shares_; + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + @java.lang.Override + public java.util.List getSharesList() { + return shares_; + } + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + @java.lang.Override + public java.util.List + getSharesOrBuilderList() { + return shares_; + } + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + @java.lang.Override + public int getSharesCount() { + return shares_.size(); + } + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share getShares(int index) { + return shares_.get(index); + } + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index) { + return shares_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < shares_.size(); i++) { + output.writeMessage(1, shares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < shares_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, shares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListSharesResponse)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.ListSharesResponse other = (com.google.cloud.filestore.v1beta1.ListSharesResponse) obj; + + if (!getSharesList() + .equals(other.getSharesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSharesCount() > 0) { + hash = (37 * hash) + SHARES_FIELD_NUMBER; + hash = (53 * hash) + getSharesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSharesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSharesResponse is the result of ListSharesRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSharesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSharesResponse) + com.google.cloud.filestore.v1beta1.ListSharesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSharesResponse.class, com.google.cloud.filestore.v1beta1.ListSharesResponse.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.ListSharesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (sharesBuilder_ == null) { + shares_ = java.util.Collections.emptyList(); + } else { + shares_ = null; + sharesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSharesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesResponse build() { + com.google.cloud.filestore.v1beta1.ListSharesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesResponse buildPartial() { + com.google.cloud.filestore.v1beta1.ListSharesResponse result = new com.google.cloud.filestore.v1beta1.ListSharesResponse(this); + int from_bitField0_ = bitField0_; + if (sharesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + shares_ = java.util.Collections.unmodifiableList(shares_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shares_ = shares_; + } else { + result.shares_ = sharesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.ListSharesResponse) { + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSharesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSharesResponse other) { + if (other == com.google.cloud.filestore.v1beta1.ListSharesResponse.getDefaultInstance()) return this; + if (sharesBuilder_ == null) { + if (!other.shares_.isEmpty()) { + if (shares_.isEmpty()) { + shares_ = other.shares_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSharesIsMutable(); + shares_.addAll(other.shares_); + } + onChanged(); + } + } else { + if (!other.shares_.isEmpty()) { + if (sharesBuilder_.isEmpty()) { + sharesBuilder_.dispose(); + sharesBuilder_ = null; + shares_ = other.shares_; + bitField0_ = (bitField0_ & ~0x00000001); + sharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSharesFieldBuilder() : null; + } else { + sharesBuilder_.addAllMessages(other.shares_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.filestore.v1beta1.Share m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Share.parser(), + extensionRegistry); + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(m); + } else { + sharesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List shares_ = + java.util.Collections.emptyList(); + private void ensureSharesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + shares_ = new java.util.ArrayList(shares_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> sharesBuilder_; + + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public java.util.List getSharesList() { + if (sharesBuilder_ == null) { + return java.util.Collections.unmodifiableList(shares_); + } else { + return sharesBuilder_.getMessageList(); + } + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public int getSharesCount() { + if (sharesBuilder_ == null) { + return shares_.size(); + } else { + return sharesBuilder_.getCount(); + } + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public com.google.cloud.filestore.v1beta1.Share getShares(int index) { + if (sharesBuilder_ == null) { + return shares_.get(index); + } else { + return sharesBuilder_.getMessage(index); + } + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder setShares( + int index, com.google.cloud.filestore.v1beta1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.set(index, value); + onChanged(); + } else { + sharesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder setShares( + int index, com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.set(index, builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder addShares(com.google.cloud.filestore.v1beta1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.add(value); + onChanged(); + } else { + sharesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder addShares( + int index, com.google.cloud.filestore.v1beta1.Share value) { + if (sharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharesIsMutable(); + shares_.add(index, value); + onChanged(); + } else { + sharesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder addShares( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder addShares( + int index, com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.add(index, builderForValue.build()); + onChanged(); + } else { + sharesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder addAllShares( + java.lang.Iterable values) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shares_); + onChanged(); + } else { + sharesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder clearShares() { + if (sharesBuilder_ == null) { + shares_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sharesBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public Builder removeShares(int index) { + if (sharesBuilder_ == null) { + ensureSharesIsMutable(); + shares_.remove(index); + onChanged(); + } else { + sharesBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public com.google.cloud.filestore.v1beta1.Share.Builder getSharesBuilder( + int index) { + return getSharesFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index) { + if (sharesBuilder_ == null) { + return shares_.get(index); } else { + return sharesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public java.util.List + getSharesOrBuilderList() { + if (sharesBuilder_ != null) { + return sharesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shares_); + } + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder() { + return getSharesFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public com.google.cloud.filestore.v1beta1.Share.Builder addSharesBuilder( + int index) { + return getSharesFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()); + } + /** + *
+     * A list of shares in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + public java.util.List + getSharesBuilderList() { + return getSharesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + getSharesFieldBuilder() { + if (sharesBuilder_ == null) { + sharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + shares_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + shares_ = null; + } + return sharesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSharesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSharesResponse) + private static final com.google.cloud.filestore.v1beta1.ListSharesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSharesResponse(); + } + + public static com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSharesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java new file mode 100644 index 000000000000..f459e4466939 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSharesResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface ListSharesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSharesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + java.util.List + getSharesList(); + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + com.google.cloud.filestore.v1beta1.Share getShares(int index); + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + int getSharesCount(); + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + java.util.List + getSharesOrBuilderList(); + /** + *
+   * A list of shares in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Share shares = 1; + */ + com.google.cloud.filestore.v1beta1.ShareOrBuilder getSharesOrBuilder( + int index); + + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java new file mode 100644 index 000000000000..2b50752b737f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequest.java @@ -0,0 +1,1170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * ListSnapshotsRequest lists snapshots.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} + */ +public final class ListSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) + ListSnapshotsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSnapshotsRequest.newBuilder() to construct. + private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSnapshotsRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSnapshotsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The instance for which to retrieve snapshot information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The instance for which to retrieve snapshot information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + private volatile java.lang.Object orderBy_; + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListSnapshotsRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other = (com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSnapshotsRequest lists snapshots.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsRequest) + com.google.cloud.filestore.v1beta1.ListSnapshotsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.class, com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + orderBy_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest build() { + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest buildPartial() { + com.google.cloud.filestore.v1beta1.ListSnapshotsRequest result = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.orderBy_ = orderBy_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.ListSnapshotsRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsRequest other) { + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The instance for which to retrieve snapshot information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The instance for which to retrieve snapshot information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The instance for which to retrieve snapshot information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The instance for which to retrieve snapshot information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The instance for which to retrieve snapshot information,
+     * in the format
+     * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next_page_token value to use if there are additional
+     * results to retrieve for this list request.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+     * 
+ * + * string order_by = 4; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 5; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsRequest) + private static final com.google.cloud.filestore.v1beta1.ListSnapshotsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsRequest(); + } + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java new file mode 100644 index 000000000000..870bb448da11 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsRequestOrBuilder.java @@ -0,0 +1,105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface ListSnapshotsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The instance for which to retrieve snapshot information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The instance for which to retrieve snapshot information,
+   * in the format
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The next_page_token value to use if there are additional
+   * results to retrieve for this list request.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
+   * 
+ * + * string order_by = 4; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 5; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java new file mode 100644 index 000000000000..ccc374a716cc --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * ListSnapshotsResponse is the result of ListSnapshotsRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} + */ +public final class ListSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) + ListSnapshotsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSnapshotsResponse.newBuilder() to construct. + private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSnapshotsResponse() { + snapshots_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSnapshotsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + } + + public static final int SNAPSHOTS_FIELD_NUMBER = 1; + private java.util.List snapshots_; + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + @java.lang.Override + public java.util.List getSnapshotsList() { + return snapshots_; + } + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + @java.lang.Override + public java.util.List + getSnapshotsOrBuilderList() { + return snapshots_; + } + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + @java.lang.Override + public int getSnapshotsCount() { + return snapshots_.size(); + } + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { + return snapshots_.get(index); + } + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { + return snapshots_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < snapshots_.size(); i++) { + output.writeMessage(1, snapshots_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < snapshots_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, snapshots_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.ListSnapshotsResponse)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other = (com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) obj; + + if (!getSnapshotsList() + .equals(other.getSnapshotsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnapshotsCount() > 0) { + hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSnapshotsResponse is the result of ListSnapshotsRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.ListSnapshotsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.ListSnapshotsResponse) + com.google.cloud.filestore.v1beta1.ListSnapshotsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.class, com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (snapshotsBuilder_ == null) { + snapshots_ = java.util.Collections.emptyList(); + } else { + snapshots_ = null; + snapshotsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_ListSnapshotsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse build() { + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse buildPartial() { + com.google.cloud.filestore.v1beta1.ListSnapshotsResponse result = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(this); + int from_bitField0_ = bitField0_; + if (snapshotsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + snapshots_ = java.util.Collections.unmodifiableList(snapshots_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.snapshots_ = snapshots_; + } else { + result.snapshots_ = snapshotsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.ListSnapshotsResponse) { + return mergeFrom((com.google.cloud.filestore.v1beta1.ListSnapshotsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.ListSnapshotsResponse other) { + if (other == com.google.cloud.filestore.v1beta1.ListSnapshotsResponse.getDefaultInstance()) return this; + if (snapshotsBuilder_ == null) { + if (!other.snapshots_.isEmpty()) { + if (snapshots_.isEmpty()) { + snapshots_ = other.snapshots_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnapshotsIsMutable(); + snapshots_.addAll(other.snapshots_); + } + onChanged(); + } + } else { + if (!other.snapshots_.isEmpty()) { + if (snapshotsBuilder_.isEmpty()) { + snapshotsBuilder_.dispose(); + snapshotsBuilder_ = null; + snapshots_ = other.snapshots_; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSnapshotsFieldBuilder() : null; + } else { + snapshotsBuilder_.addAllMessages(other.snapshots_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.filestore.v1beta1.Snapshot m = + input.readMessage( + com.google.cloud.filestore.v1beta1.Snapshot.parser(), + extensionRegistry); + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(m); + } else { + snapshotsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List snapshots_ = + java.util.Collections.emptyList(); + private void ensureSnapshotsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + snapshots_ = new java.util.ArrayList(snapshots_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotsBuilder_; + + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public java.util.List getSnapshotsList() { + if (snapshotsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snapshots_); + } else { + return snapshotsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public int getSnapshotsCount() { + if (snapshotsBuilder_ == null) { + return snapshots_.size(); + } else { + return snapshotsBuilder_.getCount(); + } + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index) { + if (snapshotsBuilder_ == null) { + return snapshots_.get(index); + } else { + return snapshotsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder setSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.set(index, value); + onChanged(); + } else { + snapshotsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder setSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.set(index, builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder addSnapshots(com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.add(value); + onChanged(); + } else { + snapshotsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.add(index, value); + onChanged(); + } else { + snapshotsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + int index, com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(index, builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder addAllSnapshots( + java.lang.Iterable values) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); + onChanged(); + } else { + snapshotsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder clearSnapshots() { + if (snapshotsBuilder_ == null) { + snapshots_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + snapshotsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public Builder removeSnapshots(int index) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.remove(index); + onChanged(); + } else { + snapshotsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { + if (snapshotsBuilder_ == null) { + return snapshots_.get(index); } else { + return snapshotsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public java.util.List + getSnapshotsOrBuilderList() { + if (snapshotsBuilder_ != null) { + return snapshotsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snapshots_); + } + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder() { + return getSnapshotsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public com.google.cloud.filestore.v1beta1.Snapshot.Builder addSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance()); + } + /** + *
+     * A list of snapshots in the project for the specified instance.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + public java.util.List + getSnapshotsBuilderList() { + return getSnapshotsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + getSnapshotsFieldBuilder() { + if (snapshotsBuilder_ == null) { + snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + snapshots_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + snapshots_ = null; + } + return snapshotsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * The token you can use to retrieve the next page of results. Not returned
+     * if there are no more results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.ListSnapshotsResponse) + private static final com.google.cloud.filestore.v1beta1.ListSnapshotsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.ListSnapshotsResponse(); + } + + public static com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ListSnapshotsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java new file mode 100644 index 000000000000..db2f8f67e48c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListSnapshotsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface ListSnapshotsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.ListSnapshotsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + java.util.List + getSnapshotsList(); + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + com.google.cloud.filestore.v1beta1.Snapshot getSnapshots(int index); + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + int getSnapshotsCount(); + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + java.util.List + getSnapshotsOrBuilderList(); + /** + *
+   * A list of snapshots in the project for the specified instance.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.Snapshot snapshots = 1; + */ + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index); + + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The token you can use to retrieve the next page of results. Not returned
+   * if there are no more results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java index 58984418c89f..a18f34a9c251 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java @@ -1,88 +1,67 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * Network configuration for the instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NetworkConfig) NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkConfig.newBuilder() to construct. private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkConfig() { network_ = ""; modes_ = java.util.Collections.emptyList(); reservedIpRange_ = ""; ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + connectMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, - com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } /** - * - * *
-   * Internet protocol versions supported by Cloud Filestore.
+   * Internet protocol versions supported by Filestore.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.AddressMode} */ - public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AddressMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Internet protocol not set.
      * 
@@ -91,8 +70,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ ADDRESS_MODE_UNSPECIFIED(0), /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -104,8 +81,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Internet protocol not set.
      * 
@@ -114,8 +89,6 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDRESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use the IPv4 internet protocol.
      * 
@@ -124,6 +97,7 @@ public enum AddressMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODE_IPV4_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,47 +122,48 @@ public static AddressMode valueOf(int value) { */ public static AddressMode forNumber(int value) { switch (value) { - case 0: - return ADDRESS_MODE_UNSPECIFIED; - case 1: - return MODE_IPV4; - default: - return null; + case 0: return ADDRESS_MODE_UNSPECIFIED; + case 1: return MODE_IPV4; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AddressMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AddressMode findValueByNumber(int number) { + return AddressMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AddressMode findValueByNumber(int number) { - return AddressMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(0); } private static final AddressMode[] VALUES = values(); - public static AddressMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AddressMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -205,11 +180,158 @@ private AddressMode(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.NetworkConfig.AddressMode) } + /** + *
+   * Available connection modes.
+   * 
+ * + * Protobuf enum {@code google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode} + */ + public enum ConnectMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * ConnectMode not set.
+     * 
+ * + * CONNECT_MODE_UNSPECIFIED = 0; + */ + CONNECT_MODE_UNSPECIFIED(0), + /** + *
+     * Connect via direct peering to the Filestore service.
+     * 
+ * + * DIRECT_PEERING = 1; + */ + DIRECT_PEERING(1), + /** + *
+     * Connect to your Filestore instance using Private Service
+     * Access. Private services access provides an IP address range for multiple
+     * Google Cloud services, including Filestore.
+     * 
+ * + * PRIVATE_SERVICE_ACCESS = 2; + */ + PRIVATE_SERVICE_ACCESS(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * ConnectMode not set.
+     * 
+ * + * CONNECT_MODE_UNSPECIFIED = 0; + */ + public static final int CONNECT_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Connect via direct peering to the Filestore service.
+     * 
+ * + * DIRECT_PEERING = 1; + */ + public static final int DIRECT_PEERING_VALUE = 1; + /** + *
+     * Connect to your Filestore instance using Private Service
+     * Access. Private services access provides an IP address range for multiple
+     * Google Cloud services, including Filestore.
+     * 
+ * + * PRIVATE_SERVICE_ACCESS = 2; + */ + public static final int PRIVATE_SERVICE_ACCESS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConnectMode forNumber(int value) { + switch (value) { + case 0: return CONNECT_MODE_UNSPECIFIED; + case 1: return DIRECT_PEERING; + case 2: return PRIVATE_SERVICE_ACCESS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConnectMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectMode findValueByNumber(int number) { + return ConnectMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.NetworkConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final ConnectMode[] VALUES = values(); + + public static ConnectMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConnectMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode) + } + public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -217,7 +339,6 @@ private AddressMode(int value) {
    * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -226,15 +347,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -242,15 +362,16 @@ public java.lang.String getNetwork() {
    * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -261,49 +382,36 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int MODES_FIELD_NUMBER = 3; private java.util.List modes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> - modes_converter_ = + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode> modes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>() { - public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert( - java.lang.Integer from) { + public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = - com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); - return result == null - ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.valueOf(from); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode.UNRECOGNIZED : result; } }; /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ @java.lang.Override - public java.util.List - getModesList() { + public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ @java.lang.Override @@ -311,15 +419,12 @@ public int getModesCount() { return modes_.size(); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -328,31 +433,26 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ @java.lang.Override - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return modes_; } /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -360,26 +460,32 @@ public java.util.List getModesValueList() { public int getModesValue(int index) { return modes_.get(index); } - private int modesMemoizedSerializedSize; public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 4; private volatile java.lang.Object reservedIpRange_; /** - * - * *
-   * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-   * [internal IP address
+   * Optional, reserved_ip_range can have one of the following two types of
+   * values.
+   * * CIDR range value when using DIRECT_PEERING connect mode.
+   * * [Allocated IP address
+   * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+   * when using PRIVATE_SERVICE_ACCESS connect mode.
+   * When the name of an allocated IP address range is specified, it must be one
+   * of the ranges associated with the private service access connection.
+   * When specified as a direct CIDR value, it must be a /29 CIDR block for
+   * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+   * Enterprise tier in one of the [internal IP address
    * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
    * that identifies the range of IP addresses reserved for this instance. For
-   * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-   * with either existing subnets or assigned IP address ranges for other Cloud
-   * Filestore instances in the selected VPC network.
+   * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+   * range you specify can't overlap with either existing subnets or assigned IP
+   * address ranges for other Filestore instances in the selected VPC
+   * network.
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ @java.lang.Override @@ -388,35 +494,45 @@ public java.lang.String getReservedIpRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; } } /** - * - * *
-   * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-   * [internal IP address
+   * Optional, reserved_ip_range can have one of the following two types of
+   * values.
+   * * CIDR range value when using DIRECT_PEERING connect mode.
+   * * [Allocated IP address
+   * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+   * when using PRIVATE_SERVICE_ACCESS connect mode.
+   * When the name of an allocated IP address range is specified, it must be one
+   * of the ranges associated with the private service access connection.
+   * When specified as a direct CIDR value, it must be a /29 CIDR block for
+   * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+   * Enterprise tier in one of the [internal IP address
    * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
    * that identifies the range of IP addresses reserved for this instance. For
-   * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-   * with either existing subnets or assigned IP address ranges for other Cloud
-   * Filestore instances in the selected VPC network.
+   * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+   * range you specify can't overlap with either existing subnets or assigned IP
+   * address ranges for other Filestore instances in the selected VPC
+   * network.
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -427,48 +543,40 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { public static final int IP_ADDRESSES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -476,25 +584,51 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } - private byte memoizedIsInitialized = -1; + public static final int CONNECT_MODE_FIELD_NUMBER = 6; + private int connectMode_; + /** + *
+   * The network connect mode of the Filestore instance.
+   * If not provided, the connect mode defaults to DIRECT_PEERING.
+   * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The enum numeric value on the wire for connectMode. + */ + @java.lang.Override public int getConnectModeValue() { + return connectMode_; + } + /** + *
+   * The network connect mode of the Filestore instance.
+   * If not provided, the connect mode defaults to DIRECT_PEERING.
+   * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The connectMode. + */ + @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { + @SuppressWarnings("deprecation") + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -506,7 +640,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); @@ -524,6 +659,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ipAddresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ipAddresses_.getRaw(i)); } + if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, connectMode_); + } getUnknownFields().writeTo(output); } @@ -539,14 +677,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(modes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(modes_.get(i)); } size += dataSize; - if (!getModesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - modesMemoizedSerializedSize = dataSize; + if (!getModesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }modesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); @@ -559,6 +697,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpAddressesList().size(); } + if (connectMode_ != com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, connectMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -567,18 +709,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.NetworkConfig)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NetworkConfig other = - (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; + com.google.cloud.filestore.v1beta1.NetworkConfig other = (com.google.cloud.filestore.v1beta1.NetworkConfig) obj; - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; if (!modes_.equals(other.modes_)) return false; - if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getReservedIpRange() + .equals(other.getReservedIpRange())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; + if (connectMode_ != other.connectMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -602,141 +747,137 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getIpAddressesList().hashCode(); } + hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER; + hash = (53 * hash) + connectMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NetworkConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network configuration for the instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NetworkConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NetworkConfig) com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NetworkConfig.class, - com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); + com.google.cloud.filestore.v1beta1.NetworkConfig.class, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NetworkConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -748,13 +889,15 @@ public Builder clear() { ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + connectMode_ = 0; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NetworkConfig_descriptor; } @java.lang.Override @@ -773,8 +916,7 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NetworkConfig buildPartial() { - com.google.cloud.filestore.v1beta1.NetworkConfig result = - new com.google.cloud.filestore.v1beta1.NetworkConfig(this); + com.google.cloud.filestore.v1beta1.NetworkConfig result = new com.google.cloud.filestore.v1beta1.NetworkConfig(this); int from_bitField0_ = bitField0_; result.network_ = network_; if (((bitField0_ & 0x00000001) != 0)) { @@ -788,6 +930,7 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig buildPartial() { bitField0_ = (bitField0_ & ~0x00000002); } result.ipAddresses_ = ipAddresses_; + result.connectMode_ = connectMode_; onBuilt(); return result; } @@ -796,39 +939,38 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.NetworkConfig) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NetworkConfig)other); } else { super.mergeFrom(other); return this; @@ -836,8 +978,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NetworkConfig other) { - if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -866,6 +1007,9 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NetworkConfig other) } onChanged(); } + if (other.connectMode_ != 0) { + setConnectModeValue(other.getConnectModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -892,51 +1036,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: - { + case 10: { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + int tmpRaw = input.readEnum(); + ensureModesIsMutable(); + modes_.add(tmpRaw); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureModesIsMutable(); modes_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureModesIsMutable(); - modes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 34: - { - reservedIpRange_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpAddressesIsMutable(); - ipAddresses_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 26 + case 34: { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpAddressesIsMutable(); + ipAddresses_.add(s); + break; + } // case 42 + case 48: { + connectMode_ = input.readEnum(); + + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -946,13 +1089,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object network_ = ""; /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -960,13 +1100,13 @@ public Builder mergeFrom(
      * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -975,8 +1115,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -984,14 +1122,15 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -999,8 +1138,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1008,22 +1145,20 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1031,18 +1166,15 @@ public Builder setNetwork(java.lang.String value) {
      * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
      * The name of the Google Compute Engine
      * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -1050,23 +1182,23 @@ public Builder clearNetwork() {
      * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private java.util.List modes_ = java.util.Collections.emptyList(); - + private java.util.List modes_ = + java.util.Collections.emptyList(); private void ensureModesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { modes_ = new java.util.ArrayList(modes_); @@ -1074,48 +1206,37 @@ private void ensureModesIsMutable() { } } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ - public java.util.List - getModesList() { + public java.util.List getModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>( - modes_, modes_converter_); + java.lang.Integer, com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>(modes_, modes_converter_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ public int getModesCount() { return modes_.size(); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ @@ -1123,15 +1244,12 @@ public com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int return modes_converter_.convert(modes_.get(index)); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The modes to set. * @return This builder for chaining. @@ -1147,15 +1265,12 @@ public Builder setModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param value The modes to add. * @return This builder for chaining. */ @@ -1169,21 +1284,17 @@ public Builder addModes(com.google.cloud.filestore.v1beta1.NetworkConfig.Address return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param values The modes to add. * @return This builder for chaining. */ public Builder addAllModes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureModesIsMutable(); for (com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode value : values) { modes_.add(value.getNumber()); @@ -1192,15 +1303,12 @@ public Builder addAllModes( return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return This builder for chaining. */ public Builder clearModes() { @@ -1210,30 +1318,25 @@ public Builder clearModes() { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - public java.util.List getModesValueList() { + public java.util.List + getModesValueList() { return java.util.Collections.unmodifiableList(modes_); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ @@ -1241,35 +1344,30 @@ public int getModesValue(int index) { return modes_.get(index); } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for modes to set. * @return This builder for chaining. */ - public Builder setModesValue(int index, int value) { + public Builder setModesValue( + int index, int value) { ensureModesIsMutable(); modes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param value The enum numeric value on the wire for modes to add. * @return This builder for chaining. */ @@ -1280,19 +1378,17 @@ public Builder addModesValue(int value) { return this; } /** - * - * *
      * Internet protocol versions for which the instance has IP addresses
      * assigned. For this version, only MODE_IPV4 is supported.
      * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param values The enum numeric values on the wire for modes to add. * @return This builder for chaining. */ - public Builder addAllModesValue(java.lang.Iterable values) { + public Builder addAllModesValue( + java.lang.Iterable values) { ensureModesIsMutable(); for (int value : values) { modes_.add(value); @@ -1303,26 +1399,34 @@ public Builder addAllModesValue(java.lang.Iterable values) { private java.lang.Object reservedIpRange_ = ""; /** - * - * *
-     * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-     * [internal IP address
+     * Optional, reserved_ip_range can have one of the following two types of
+     * values.
+     * * CIDR range value when using DIRECT_PEERING connect mode.
+     * * [Allocated IP address
+     * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+     * when using PRIVATE_SERVICE_ACCESS connect mode.
+     * When the name of an allocated IP address range is specified, it must be one
+     * of the ranges associated with the private service access connection.
+     * When specified as a direct CIDR value, it must be a /29 CIDR block for
+     * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+     * Enterprise tier in one of the [internal IP address
      * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
      * that identifies the range of IP addresses reserved for this instance. For
-     * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-     * with either existing subnets or assigned IP address ranges for other Cloud
-     * Filestore instances in the selected VPC network.
+     * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+     * range you specify can't overlap with either existing subnets or assigned IP
+     * address ranges for other Filestore instances in the selected VPC
+     * network.
      * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -1331,27 +1435,36 @@ public java.lang.String getReservedIpRange() { } } /** - * - * *
-     * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-     * [internal IP address
+     * Optional, reserved_ip_range can have one of the following two types of
+     * values.
+     * * CIDR range value when using DIRECT_PEERING connect mode.
+     * * [Allocated IP address
+     * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+     * when using PRIVATE_SERVICE_ACCESS connect mode.
+     * When the name of an allocated IP address range is specified, it must be one
+     * of the ranges associated with the private service access connection.
+     * When specified as a direct CIDR value, it must be a /29 CIDR block for
+     * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+     * Enterprise tier in one of the [internal IP address
      * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
      * that identifies the range of IP addresses reserved for this instance. For
-     * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-     * with either existing subnets or assigned IP address ranges for other Cloud
-     * Filestore instances in the selected VPC network.
+     * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+     * range you specify can't overlap with either existing subnets or assigned IP
+     * address ranges for other Filestore instances in the selected VPC
+     * network.
      * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString getReservedIpRangeBytes() { + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1359,136 +1472,149 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() { } } /** - * - * *
-     * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-     * [internal IP address
+     * Optional, reserved_ip_range can have one of the following two types of
+     * values.
+     * * CIDR range value when using DIRECT_PEERING connect mode.
+     * * [Allocated IP address
+     * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+     * when using PRIVATE_SERVICE_ACCESS connect mode.
+     * When the name of an allocated IP address range is specified, it must be one
+     * of the ranges associated with the private service access connection.
+     * When specified as a direct CIDR value, it must be a /29 CIDR block for
+     * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+     * Enterprise tier in one of the [internal IP address
      * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
      * that identifies the range of IP addresses reserved for this instance. For
-     * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-     * with either existing subnets or assigned IP address ranges for other Cloud
-     * Filestore instances in the selected VPC network.
+     * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+     * range you specify can't overlap with either existing subnets or assigned IP
+     * address ranges for other Filestore instances in the selected VPC
+     * network.
      * 
* * string reserved_ip_range = 4; - * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange(java.lang.String value) { + public Builder setReservedIpRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** - * - * *
-     * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-     * [internal IP address
+     * Optional, reserved_ip_range can have one of the following two types of
+     * values.
+     * * CIDR range value when using DIRECT_PEERING connect mode.
+     * * [Allocated IP address
+     * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+     * when using PRIVATE_SERVICE_ACCESS connect mode.
+     * When the name of an allocated IP address range is specified, it must be one
+     * of the ranges associated with the private service access connection.
+     * When specified as a direct CIDR value, it must be a /29 CIDR block for
+     * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+     * Enterprise tier in one of the [internal IP address
      * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
      * that identifies the range of IP addresses reserved for this instance. For
-     * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-     * with either existing subnets or assigned IP address ranges for other Cloud
-     * Filestore instances in the selected VPC network.
+     * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+     * range you specify can't overlap with either existing subnets or assigned IP
+     * address ranges for other Filestore instances in the selected VPC
+     * network.
      * 
* * string reserved_ip_range = 4; - * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** - * - * *
-     * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-     * [internal IP address
+     * Optional, reserved_ip_range can have one of the following two types of
+     * values.
+     * * CIDR range value when using DIRECT_PEERING connect mode.
+     * * [Allocated IP address
+     * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+     * when using PRIVATE_SERVICE_ACCESS connect mode.
+     * When the name of an allocated IP address range is specified, it must be one
+     * of the ranges associated with the private service access connection.
+     * When specified as a direct CIDR value, it must be a /29 CIDR block for
+     * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+     * Enterprise tier in one of the [internal IP address
      * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
      * that identifies the range of IP addresses reserved for this instance. For
-     * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-     * with either existing subnets or assigned IP address ranges for other Cloud
-     * Filestore instances in the selected VPC network.
+     * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+     * range you specify can't overlap with either existing subnets or assigned IP
+     * address ranges for other Filestore instances in the selected VPC
+     * network.
      * 
* * string reserved_ip_range = 4; - * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1496,100 +1622,90 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1599,32 +1715,109 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
-     * Output only. IPv4 addresses in the format
-     * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+     * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+     * IPv6 addresses in the format
      * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } + private int connectMode_ = 0; + /** + *
+     * The network connect mode of the Filestore instance.
+     * If not provided, the connect mode defaults to DIRECT_PEERING.
+     * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The enum numeric value on the wire for connectMode. + */ + @java.lang.Override public int getConnectModeValue() { + return connectMode_; + } + /** + *
+     * The network connect mode of the Filestore instance.
+     * If not provided, the connect mode defaults to DIRECT_PEERING.
+     * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @param value The enum numeric value on the wire for connectMode to set. + * @return This builder for chaining. + */ + public Builder setConnectModeValue(int value) { + + connectMode_ = value; + onChanged(); + return this; + } + /** + *
+     * The network connect mode of the Filestore instance.
+     * If not provided, the connect mode defaults to DIRECT_PEERING.
+     * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The connectMode. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode() { + @SuppressWarnings("deprecation") + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode result = com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.valueOf(connectMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode.UNRECOGNIZED : result; + } + /** + *
+     * The network connect mode of the Filestore instance.
+     * If not provided, the connect mode defaults to DIRECT_PEERING.
+     * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @param value The connectMode to set. + * @return This builder for chaining. + */ + public Builder setConnectMode(com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode value) { + if (value == null) { + throw new NullPointerException(); + } + + connectMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The network connect mode of the Filestore instance.
+     * If not provided, the connect mode defaults to DIRECT_PEERING.
+     * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return This builder for chaining. + */ + public Builder clearConnectMode() { + + connectMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1634,12 +1827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NetworkConfig) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NetworkConfig) private static final com.google.cloud.filestore.v1beta1.NetworkConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NetworkConfig(); } @@ -1648,27 +1841,27 @@ public static com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1683,4 +1876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NetworkConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java similarity index 57% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java index 5956bb86b3b7..ad43b3781bbe 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NetworkConfigOrBuilder - extends +public interface NetworkConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NetworkConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -33,13 +15,10 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * The name of the Google Compute Engine
    * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -47,172 +26,184 @@ public interface NetworkConfigOrBuilder
    * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the modes. */ java.util.List getModesList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return The count of modes. */ int getModesCount(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the element to return. * @return The modes at the given index. */ com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode getModes(int index); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @return A list containing the enum numeric values on the wire for modes. */ - java.util.List getModesValueList(); + java.util.List + getModesValueList(); /** - * - * *
    * Internet protocol versions for which the instance has IP addresses
    * assigned. For this version, only MODE_IPV4 is supported.
    * 
* * repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of modes at the given index. */ int getModesValue(int index); /** - * - * *
-   * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-   * [internal IP address
+   * Optional, reserved_ip_range can have one of the following two types of
+   * values.
+   * * CIDR range value when using DIRECT_PEERING connect mode.
+   * * [Allocated IP address
+   * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+   * when using PRIVATE_SERVICE_ACCESS connect mode.
+   * When the name of an allocated IP address range is specified, it must be one
+   * of the ranges associated with the private service access connection.
+   * When specified as a direct CIDR value, it must be a /29 CIDR block for
+   * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+   * Enterprise tier in one of the [internal IP address
    * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
    * that identifies the range of IP addresses reserved for this instance. For
-   * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-   * with either existing subnets or assigned IP address ranges for other Cloud
-   * Filestore instances in the selected VPC network.
+   * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+   * range you specify can't overlap with either existing subnets or assigned IP
+   * address ranges for other Filestore instances in the selected VPC
+   * network.
    * 
* * string reserved_ip_range = 4; - * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** - * - * *
-   * A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the
-   * [internal IP address
+   * Optional, reserved_ip_range can have one of the following two types of
+   * values.
+   * * CIDR range value when using DIRECT_PEERING connect mode.
+   * * [Allocated IP address
+   * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
+   * when using PRIVATE_SERVICE_ACCESS connect mode.
+   * When the name of an allocated IP address range is specified, it must be one
+   * of the ranges associated with the private service access connection.
+   * When specified as a direct CIDR value, it must be a /29 CIDR block for
+   * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
+   * Enterprise tier in one of the [internal IP address
    * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
    * that identifies the range of IP addresses reserved for this instance. For
-   * example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap
-   * with either existing subnets or assigned IP address ranges for other Cloud
-   * Filestore instances in the selected VPC network.
+   * example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The
+   * range you specify can't overlap with either existing subnets or assigned IP
+   * address ranges for other Filestore instances in the selected VPC
+   * network.
    * 
* * string reserved_ip_range = 4; - * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString getReservedIpRangeBytes(); + com.google.protobuf.ByteString + getReservedIpRangeBytes(); /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
-   * Output only. IPv4 addresses in the format
-   * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
+   * Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or
+   * IPv6 addresses in the format
    * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
    * 
* * repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); + + /** + *
+   * The network connect mode of the Filestore instance.
+   * If not provided, the connect mode defaults to DIRECT_PEERING.
+   * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The enum numeric value on the wire for connectMode. + */ + int getConnectModeValue(); + /** + *
+   * The network connect mode of the Filestore instance.
+   * If not provided, the connect mode defaults to DIRECT_PEERING.
+   * 
+ * + * .google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6; + * @return The connectMode. + */ + com.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode getConnectMode(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java similarity index 75% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java index 945d52887e71..cb1fee60c8e2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptions.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * NFS export options specifications.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ -public final class NfsExportOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsExportOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.NfsExportOptions) NfsExportOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsExportOptions.newBuilder() to construct. private NfsExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsExportOptions() { ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; accessMode_ = 0; @@ -45,43 +27,39 @@ private NfsExportOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsExportOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } /** - * - * *
    * The access mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode} */ - public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { + public enum AccessMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * AccessMode not set.
      * 
@@ -90,8 +68,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_MODE_UNSPECIFIED(0), /** - * - * *
      * The client can only read the file share.
      * 
@@ -100,8 +76,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ READ_ONLY(1), /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -113,8 +87,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * AccessMode not set.
      * 
@@ -123,8 +95,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The client can only read the file share.
      * 
@@ -133,8 +103,6 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_ONLY_VALUE = 1; /** - * - * *
      * The client can read and write the file share (default).
      * 
@@ -143,6 +111,7 @@ public enum AccessMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,51 +136,49 @@ public static AccessMode valueOf(int value) { */ public static AccessMode forNumber(int value) { switch (value) { - case 0: - return ACCESS_MODE_UNSPECIFIED; - case 1: - return READ_ONLY; - case 2: - return READ_WRITE; - default: - return null; + case 0: return ACCESS_MODE_UNSPECIFIED; + case 1: return READ_ONLY; + case 2: return READ_WRITE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AccessMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessMode findValueByNumber(int number) { + return AccessMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AccessMode findValueByNumber(int number) { - return AccessMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(0); } private static final AccessMode[] VALUES = values(); - public static AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AccessMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -229,18 +196,15 @@ private AccessMode(int value) { } /** - * - * *
    * The squash mode.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode} */ - public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { + public enum SquashMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * SquashMode not set.
      * 
@@ -249,8 +213,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ SQUASH_MODE_UNSPECIFIED(0), /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -259,8 +221,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ NO_ROOT_SQUASH(1), /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -272,8 +232,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * SquashMode not set.
      * 
@@ -282,8 +240,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SQUASH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Root user has root access to the file share (default).
      * 
@@ -292,8 +248,6 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_ROOT_SQUASH_VALUE = 1; /** - * - * *
      * The Root user has squashed access to the anonymous uid/gid.
      * 
@@ -302,6 +256,7 @@ public enum SquashMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROOT_SQUASH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -326,51 +281,49 @@ public static SquashMode valueOf(int value) { */ public static SquashMode forNumber(int value) { switch (value) { - case 0: - return SQUASH_MODE_UNSPECIFIED; - case 1: - return NO_ROOT_SQUASH; - case 2: - return ROOT_SQUASH; - default: - return null; + case 0: return SQUASH_MODE_UNSPECIFIED; + case 1: return NO_ROOT_SQUASH; + case 2: return ROOT_SQUASH; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SquashMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SquashMode findValueByNumber(int number) { + return SquashMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SquashMode findValueByNumber(int number) { - return SquashMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.NfsExportOptions.getDescriptor().getEnumTypes().get(1); } private static final SquashMode[] VALUES = values(); - public static SquashMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SquashMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -390,8 +343,6 @@ private SquashMode(int value) { public static final int IP_RANGES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList ipRanges_; /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -404,15 +355,13 @@ private SquashMode(int value) {
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_; } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -425,15 +374,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -446,7 +392,6 @@ public int getIpRangesCount() {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -454,8 +399,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -468,19 +411,17 @@ public java.lang.String getIpRanges(int index) {
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } public static final int ACCESS_MODE_FIELD_NUMBER = 2; private int accessMode_; /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -488,16 +429,12 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -505,24 +442,17 @@ public int getAccessModeValue() {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } public static final int SQUASH_MODE_FIELD_NUMBER = 3; private int squashMode_; /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -530,16 +460,12 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessM
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -547,24 +473,17 @@ public int getSquashModeValue() {
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } public static final int ANON_UID_FIELD_NUMBER = 4; private long anonUid_; /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -573,7 +492,6 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashM
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -584,8 +502,6 @@ public long getAnonUid() { public static final int ANON_GID_FIELD_NUMBER = 5; private long anonGid_; /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -594,7 +510,6 @@ public long getAnonUid() {
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -603,7 +518,6 @@ public long getAnonGid() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -615,18 +529,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < ipRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipRanges_.getRaw(i)); } - if (accessMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { + if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { + if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, squashMode_); } if (anonUid_ != 0L) { @@ -652,21 +563,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getIpRangesList().size(); } - if (accessMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, accessMode_); + if (accessMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.ACCESS_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, accessMode_); } - if (squashMode_ - != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, squashMode_); + if (squashMode_ != com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.SQUASH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, squashMode_); } if (anonUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, anonUid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, anonUid_); } if (anonGid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, anonGid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, anonGid_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -676,19 +587,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.NfsExportOptions)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.NfsExportOptions other = - (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; + com.google.cloud.filestore.v1beta1.NfsExportOptions other = (com.google.cloud.filestore.v1beta1.NfsExportOptions) obj; - if (!getIpRangesList().equals(other.getIpRangesList())) return false; + if (!getIpRangesList() + .equals(other.getIpRangesList())) return false; if (accessMode_ != other.accessMode_) return false; if (squashMode_ != other.squashMode_) return false; - if (getAnonUid() != other.getAnonUid()) return false; - if (getAnonGid() != other.getAnonGid()) return false; + if (getAnonUid() + != other.getAnonUid()) return false; + if (getAnonGid() + != other.getAnonGid()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -709,144 +622,140 @@ public int hashCode() { hash = (37 * hash) + SQUASH_MODE_FIELD_NUMBER; hash = (53 * hash) + squashMode_; hash = (37 * hash) + ANON_UID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonUid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonUid()); hash = (37 * hash) + ANON_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAnonGid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAnonGid()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.NfsExportOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.NfsExportOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * NFS export options specifications.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.NfsExportOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.NfsExportOptions.class, - com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); + com.google.cloud.filestore.v1beta1.NfsExportOptions.class, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.NfsExportOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -864,9 +773,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_NfsExportOptions_descriptor; } @java.lang.Override @@ -885,8 +794,7 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions buildPartial() { - com.google.cloud.filestore.v1beta1.NfsExportOptions result = - new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); + com.google.cloud.filestore.v1beta1.NfsExportOptions result = new com.google.cloud.filestore.v1beta1.NfsExportOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { ipRanges_ = ipRanges_.getUnmodifiableView(); @@ -905,39 +813,38 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.NfsExportOptions) { - return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.NfsExportOptions)other); } else { super.mergeFrom(other); return this; @@ -945,8 +852,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.NfsExportOptions other) { - if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()) return this; if (!other.ipRanges_.isEmpty()) { if (ipRanges_.isEmpty()) { ipRanges_ = other.ipRanges_; @@ -995,44 +901,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIpRangesIsMutable(); - ipRanges_.add(s); - break; - } // case 10 - case 16: - { - accessMode_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - squashMode_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - anonUid_ = input.readInt64(); - - break; - } // case 32 - case 40: - { - anonGid_ = input.readInt64(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIpRangesIsMutable(); + ipRanges_.add(s); + break; + } // case 10 + case 16: { + accessMode_ = input.readEnum(); + + break; + } // case 16 + case 24: { + squashMode_ = input.readEnum(); + + break; + } // case 24 + case 32: { + anonUid_ = input.readInt64(); + + break; + } // case 32 + case 40: { + anonGid_ = input.readInt64(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1042,21 +942,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList ipRanges_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpRangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ipRanges_ = new com.google.protobuf.LazyStringArrayList(ipRanges_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1069,15 +964,13 @@ private void ensureIpRangesIsMutable() {
      * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - public com.google.protobuf.ProtocolStringList getIpRangesList() { + public com.google.protobuf.ProtocolStringList + getIpRangesList() { return ipRanges_.getUnmodifiableView(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1090,15 +983,12 @@ public com.google.protobuf.ProtocolStringList getIpRangesList() {
      * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ public int getIpRangesCount() { return ipRanges_.size(); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1111,7 +1001,6 @@ public int getIpRangesCount() {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ @@ -1119,8 +1008,6 @@ public java.lang.String getIpRanges(int index) { return ipRanges_.get(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1133,16 +1020,14 @@ public java.lang.String getIpRanges(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - public com.google.protobuf.ByteString getIpRangesBytes(int index) { + public com.google.protobuf.ByteString + getIpRangesBytes(int index) { return ipRanges_.getByteString(index); } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1155,23 +1040,21 @@ public com.google.protobuf.ByteString getIpRangesBytes(int index) {
      * 
* * repeated string ip_ranges = 1; - * * @param index The index to set the value at. * @param value The ipRanges to set. * @return This builder for chaining. */ - public Builder setIpRanges(int index, java.lang.String value) { + public Builder setIpRanges( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1184,22 +1067,20 @@ public Builder setIpRanges(int index, java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param value The ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRanges(java.lang.String value) { + public Builder addIpRanges( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpRangesIsMutable(); + throw new NullPointerException(); + } + ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1212,19 +1093,18 @@ public Builder addIpRanges(java.lang.String value) {
      * 
* * repeated string ip_ranges = 1; - * * @param values The ipRanges to add. * @return This builder for chaining. */ - public Builder addAllIpRanges(java.lang.Iterable values) { + public Builder addAllIpRanges( + java.lang.Iterable values) { ensureIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipRanges_); onChanged(); return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1237,7 +1117,6 @@ public Builder addAllIpRanges(java.lang.Iterable values) {
      * 
* * repeated string ip_ranges = 1; - * * @return This builder for chaining. */ public Builder clearIpRanges() { @@ -1247,8 +1126,6 @@ public Builder clearIpRanges() { return this; } /** - * - * *
      * List of either an IPv4 addresses in the format
      * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -1261,15 +1138,15 @@ public Builder clearIpRanges() {
      * 
* * repeated string ip_ranges = 1; - * * @param value The bytes of the ipRanges to add. * @return This builder for chaining. */ - public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { + public Builder addIpRangesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpRangesIsMutable(); ipRanges_.add(value); onChanged(); @@ -1278,8 +1155,6 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) { private int accessMode_ = 0; /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1287,16 +1162,12 @@ public Builder addIpRangesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ - @java.lang.Override - public int getAccessModeValue() { + @java.lang.Override public int getAccessModeValue() { return accessMode_; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1304,19 +1175,16 @@ public int getAccessModeValue() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The enum numeric value on the wire for accessMode to set. * @return This builder for chaining. */ public Builder setAccessModeValue(int value) { - + accessMode_ = value; onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1324,21 +1192,15 @@ public Builder setAccessModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.valueOf(accessMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode.UNRECOGNIZED : result; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1346,23 +1208,19 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @param value The accessMode to set. * @return This builder for chaining. */ - public Builder setAccessMode( - com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { + public Builder setAccessMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode value) { if (value == null) { throw new NullPointerException(); } - + accessMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either READ_ONLY, for allowing only read requests on the exported
      * directory, or READ_WRITE, for allowing both read and write requests.
@@ -1370,11 +1228,10 @@ public Builder setAccessMode(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return This builder for chaining. */ public Builder clearAccessMode() { - + accessMode_ = 0; onChanged(); return this; @@ -1382,8 +1239,6 @@ public Builder clearAccessMode() { private int squashMode_ = 0; /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1391,16 +1246,12 @@ public Builder clearAccessMode() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ - @java.lang.Override - public int getSquashModeValue() { + @java.lang.Override public int getSquashModeValue() { return squashMode_; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1408,19 +1259,16 @@ public int getSquashModeValue() {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The enum numeric value on the wire for squashMode to set. * @return This builder for chaining. */ public Builder setSquashModeValue(int value) { - + squashMode_ = value; onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1428,21 +1276,15 @@ public Builder setSquashModeValue(int value) {
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); - return result == null - ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode result = com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.valueOf(squashMode_); + return result == null ? com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode.UNRECOGNIZED : result; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1450,23 +1292,19 @@ public com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashM
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @param value The squashMode to set. * @return This builder for chaining. */ - public Builder setSquashMode( - com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { + public Builder setSquashMode(com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode value) { if (value == null) { throw new NullPointerException(); } - + squashMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
      * or ROOT_SQUASH, for not allowing root access. The default is
@@ -1474,20 +1312,17 @@ public Builder setSquashMode(
      * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return This builder for chaining. */ public Builder clearSquashMode() { - + squashMode_ = 0; onChanged(); return this; } - private long anonUid_; + private long anonUid_ ; /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1496,7 +1331,6 @@ public Builder clearSquashMode() {
      * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ @java.lang.Override @@ -1504,8 +1338,6 @@ public long getAnonUid() { return anonUid_; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1514,19 +1346,16 @@ public long getAnonUid() {
      * 
* * int64 anon_uid = 4; - * * @param value The anonUid to set. * @return This builder for chaining. */ public Builder setAnonUid(long value) { - + anonUid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous user id with a default value of
      * 65534.
@@ -1535,20 +1364,17 @@ public Builder setAnonUid(long value) {
      * 
* * int64 anon_uid = 4; - * * @return This builder for chaining. */ public Builder clearAnonUid() { - + anonUid_ = 0L; onChanged(); return this; } - private long anonGid_; + private long anonGid_ ; /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1557,7 +1383,6 @@ public Builder clearAnonUid() {
      * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ @java.lang.Override @@ -1565,8 +1390,6 @@ public long getAnonGid() { return anonGid_; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1575,19 +1398,16 @@ public long getAnonGid() {
      * 
* * int64 anon_gid = 5; - * * @param value The anonGid to set. * @return This builder for chaining. */ public Builder setAnonGid(long value) { - + anonGid_ = value; onChanged(); return this; } /** - * - * *
      * An integer representing the anonymous group id with a default value of
      * 65534.
@@ -1596,18 +1416,17 @@ public Builder setAnonGid(long value) {
      * 
* * int64 anon_gid = 5; - * * @return This builder for chaining. */ public Builder clearAnonGid() { - + anonGid_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1617,12 +1436,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.NfsExportOptions) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.NfsExportOptions) private static final com.google.cloud.filestore.v1beta1.NfsExportOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.NfsExportOptions(); } @@ -1631,27 +1450,27 @@ public static com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsExportOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsExportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1666,4 +1485,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.NfsExportOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java similarity index 84% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java index 26e0487d1284..785eea1ec756 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NfsExportOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface NfsExportOptionsOrBuilder - extends +public interface NfsExportOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.NfsExportOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -38,13 +20,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return A list containing the ipRanges. */ - java.util.List getIpRangesList(); + java.util.List + getIpRangesList(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -57,13 +37,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @return The count of ipRanges. */ int getIpRangesCount(); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -76,14 +53,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the element to return. * @return The ipRanges at the given index. */ java.lang.String getIpRanges(int index); /** - * - * *
    * List of either an IPv4 addresses in the format
    * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
@@ -96,15 +70,13 @@ public interface NfsExportOptionsOrBuilder
    * 
* * repeated string ip_ranges = 1; - * * @param index The index of the value to return. * @return The bytes of the ipRanges at the given index. */ - com.google.protobuf.ByteString getIpRangesBytes(int index); + com.google.protobuf.ByteString + getIpRangesBytes(int index); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -112,13 +84,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The enum numeric value on the wire for accessMode. */ int getAccessModeValue(); /** - * - * *
    * Either READ_ONLY, for allowing only read requests on the exported
    * directory, or READ_WRITE, for allowing both read and write requests.
@@ -126,14 +95,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode access_mode = 2; - * * @return The accessMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode getAccessMode(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -141,13 +107,10 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The enum numeric value on the wire for squashMode. */ int getSquashModeValue(); /** - * - * *
    * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
    * or ROOT_SQUASH, for not allowing root access. The default is
@@ -155,14 +118,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * .google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode squash_mode = 3; - * * @return The squashMode. */ com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode getSquashMode(); /** - * - * *
    * An integer representing the anonymous user id with a default value of
    * 65534.
@@ -171,14 +131,11 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_uid = 4; - * * @return The anonUid. */ long getAnonUid(); /** - * - * *
    * An integer representing the anonymous group id with a default value of
    * 65534.
@@ -187,7 +144,6 @@ public interface NfsExportOptionsOrBuilder
    * 
* * int64 anon_gid = 5; - * * @return The anonGid. */ long getAnonGid(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java similarity index 69% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java index e96f7184228f..c8be597fab01 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
- * RestoreInstanceRequest restores an existing instances's file share from a
+ * RestoreInstanceRequest restores an existing instance's file share from a
  * snapshot or backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest} */ -public final class RestoreInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RestoreInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest) RestoreInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RestoreInstanceRequest.newBuilder() to construct. private RestoreInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RestoreInstanceRequest() { name_ = ""; fileShare_ = ""; @@ -45,42 +27,38 @@ private RestoreInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RestoreInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_SNAPSHOT(3), SOURCE_BACKUP(4), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -96,40 +74,32 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 3: - return SOURCE_SNAPSHOT; - case 4: - return SOURCE_BACKUP; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 3: return SOURCE_SNAPSHOT; + case 4: return SOURCE_BACKUP; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -138,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -174,15 +142,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILE_SHARE_FIELD_NUMBER = 2; private volatile java.lang.Object fileShare_; /** - * - * *
-   * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+   * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ @java.lang.Override @@ -191,30 +156,30 @@ public java.lang.String getFileShare() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; } } /** - * - * *
-   * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+   * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ @java.lang.Override - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -224,30 +189,24 @@ public com.google.protobuf.ByteString getFileShareBytes() { public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 3; /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { @@ -258,7 +217,8 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -267,25 +227,24 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -297,30 +256,24 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { public static final int SOURCE_BACKUP_FIELD_NUMBER = 4; /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ public java.lang.String getSourceBackup() { @@ -331,7 +284,8 @@ public java.lang.String getSourceBackup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 4) { source_ = s; @@ -340,25 +294,24 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 4) { source_ = b; } @@ -369,7 +322,6 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -423,23 +376,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.RestoreInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = - (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other = (com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFileShare().equals(other.getFileShare())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFileShare() + .equals(other.getFileShare())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 3: - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; break; case 4: - if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (!getSourceBackup() + .equals(other.getSourceBackup())) return false; break; case 0: default: @@ -477,137 +433,130 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * RestoreInstanceRequest restores an existing instances's file share from a
+   * RestoreInstanceRequest restores an existing instance's file share from a
    * snapshot or backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.RestoreInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RestoreInstanceRequest) com.google.cloud.filestore.v1beta1.RestoreInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.class, com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -621,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RestoreInstanceRequest_descriptor; } @java.lang.Override @@ -642,8 +591,7 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result = - new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this); + com.google.cloud.filestore.v1beta1.RestoreInstanceRequest result = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(this); result.name_ = name_; result.fileShare_ = fileShare_; if (sourceCase_ == 3) { @@ -661,39 +609,38 @@ public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.RestoreInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -701,8 +648,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -712,24 +658,21 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RestoreInstanceReque onChanged(); } switch (other.getSourceCase()) { - case SOURCE_SNAPSHOT: - { - sourceCase_ = 3; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_BACKUP: - { - sourceCase_ = 4; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case SOURCE_SNAPSHOT: { + sourceCase_ = 3; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_BACKUP: { + sourceCase_ = 4; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -757,39 +700,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - fileShare_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + fileShare_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 3; - source_ = s; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 4; - source_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 3; + source_ = s; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 4; + source_ = s; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -799,12 +737,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -814,25 +752,22 @@ public Builder clearSource() { return this; } + private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -841,24 +776,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -866,70 +798,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the instance, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -937,21 +856,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object fileShare_ = ""; /** - * - * *
-     * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+     * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ public java.lang.String getFileShare() { java.lang.Object ref = fileShare_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileShare_ = s; return s; @@ -960,22 +877,21 @@ public java.lang.String getFileShare() { } } /** - * - * *
-     * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+     * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - public com.google.protobuf.ByteString getFileShareBytes() { + public com.google.protobuf.ByteString + getFileShareBytes() { java.lang.Object ref = fileShare_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fileShare_ = b; return b; } else { @@ -983,79 +899,69 @@ public com.google.protobuf.ByteString getFileShareBytes() { } } /** - * - * *
-     * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+     * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fileShare to set. * @return This builder for chaining. */ - public Builder setFileShare(java.lang.String value) { + public Builder setFileShare( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fileShare_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+     * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFileShare() { - + fileShare_ = getDefaultInstance().getFileShare(); onChanged(); return this; } /** - * - * *
-     * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+     * Required. Name of the file share in the Filestore instance that the snapshot
      * is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fileShare to set. * @return This builder for chaining. */ - public Builder setFileShareBytes(com.google.protobuf.ByteString value) { + public Builder setFileShareBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileShare_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ @java.lang.Override @@ -1063,15 +969,12 @@ public boolean hasSourceSnapshot() { return sourceCase_ == 3; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ @java.lang.Override @@ -1081,7 +984,8 @@ public java.lang.String getSourceSnapshot() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 3) { source_ = s; @@ -1092,26 +996,25 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = ""; if (sourceCase_ == 3) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 3) { source_ = b; } @@ -1121,37 +1024,32 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { + public Builder setSourceSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 3; + throw new NullPointerException(); + } + sourceCase_ = 3; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -1163,23 +1061,21 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
      * The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
      * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 3; source_ = value; onChanged(); @@ -1187,15 +1083,12 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ @java.lang.Override @@ -1203,15 +1096,12 @@ public boolean hasSourceBackup() { return sourceCase_ == 4; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ @java.lang.Override @@ -1221,7 +1111,8 @@ public java.lang.String getSourceBackup() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 4) { source_ = s; @@ -1232,26 +1123,25 @@ public java.lang.String getSourceBackup() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBackupBytes() { + public com.google.protobuf.ByteString + getSourceBackupBytes() { java.lang.Object ref = ""; if (sourceCase_ == 4) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 4) { source_ = b; } @@ -1261,37 +1151,32 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { } } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @param value The sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackup(java.lang.String value) { + public Builder setSourceBackup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 4; + throw new NullPointerException(); + } + sourceCase_ = 4; source_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSourceBackup() { @@ -1303,31 +1188,29 @@ public Builder clearSourceBackup() { return this; } /** - * - * *
      * The resource name of the backup, in the format
      * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
      * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. */ - public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBackupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 4; source_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1337,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RestoreInstanceRequest) private static final com.google.cloud.filestore.v1beta1.RestoreInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RestoreInstanceRequest(); } @@ -1351,27 +1234,27 @@ public static com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1386,4 +1269,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java similarity index 68% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java index 7170db12cb35..55810b5d72b0 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java @@ -1,165 +1,119 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface RestoreInstanceRequestOrBuilder - extends +public interface RestoreInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RestoreInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the instance, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+   * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fileShare. */ java.lang.String getFileShare(); /** - * - * *
-   * Required. Name of the file share in the Cloud Filestore instance that the snapshot
+   * Required. Name of the file share in the Filestore instance that the snapshot
    * is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fileShare. */ - com.google.protobuf.ByteString getFileShareBytes(); + com.google.protobuf.ByteString + getFileShareBytes(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceSnapshot field is set. */ boolean hasSourceSnapshot(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
    * The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}`.
    * 
* * string source_snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return Whether the sourceBackup field is set. */ boolean hasSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The sourceBackup. */ java.lang.String getSourceBackup(); /** - * - * *
    * The resource name of the backup, in the format
    * `projects/{project_id}/locations/{location_id}/backups/{backup_id}`.
    * 
* * string source_backup = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for sourceBackup. */ - com.google.protobuf.ByteString getSourceBackupBytes(); + com.google.protobuf.ByteString + getSourceBackupBytes(); public com.google.cloud.filestore.v1beta1.RestoreInstanceRequest.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java new file mode 100644 index 000000000000..7b1b4af04b90 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java @@ -0,0 +1,762 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * RevertInstanceRequest reverts the given instance's file share to the
+ * specified snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest} + */ +public final class RevertInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest) + RevertInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RevertInstanceRequest.newBuilder() to construct. + private RevertInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RevertInstanceRequest() { + name_ = ""; + targetSnapshotId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RevertInstanceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+   * The resource name of the instance, in the format
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+   * The resource name of the instance, in the format
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_SNAPSHOT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object targetSnapshotId_; + /** + *
+   * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+   * ID is the {snapshot_id} of the fully qualified name like
+   * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+   * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The targetSnapshotId. + */ + @java.lang.Override + public java.lang.String getTargetSnapshotId() { + java.lang.Object ref = targetSnapshotId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetSnapshotId_ = s; + return s; + } + } + /** + *
+   * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+   * ID is the {snapshot_id} of the fully qualified name like
+   * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+   * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for targetSnapshotId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetSnapshotIdBytes() { + java.lang.Object ref = targetSnapshotId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetSnapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshotId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetSnapshotId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshotId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetSnapshotId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.RevertInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.RevertInstanceRequest other = (com.google.cloud.filestore.v1beta1.RevertInstanceRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getTargetSnapshotId() + .equals(other.getTargetSnapshotId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TARGET_SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetSnapshotId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.RevertInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RevertInstanceRequest reverts the given instance's file share to the
+   * specified snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.RevertInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.RevertInstanceRequest) + com.google.cloud.filestore.v1beta1.RevertInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.RevertInstanceRequest.class, com.google.cloud.filestore.v1beta1.RevertInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.RevertInstanceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + targetSnapshotId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.RevertInstanceRequest build() { + com.google.cloud.filestore.v1beta1.RevertInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.RevertInstanceRequest buildPartial() { + com.google.cloud.filestore.v1beta1.RevertInstanceRequest result = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(this); + result.name_ = name_; + result.targetSnapshotId_ = targetSnapshotId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.RevertInstanceRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.RevertInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.RevertInstanceRequest other) { + if (other == com.google.cloud.filestore.v1beta1.RevertInstanceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getTargetSnapshotId().isEmpty()) { + targetSnapshotId_ = other.targetSnapshotId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + targetSnapshotId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+     * The resource name of the instance, in the format
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+     * The resource name of the instance, in the format
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+     * The resource name of the instance, in the format
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+     * The resource name of the instance, in the format
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+     * The resource name of the instance, in the format
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetSnapshotId_ = ""; + /** + *
+     * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+     * ID is the {snapshot_id} of the fully qualified name like
+     * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+     * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The targetSnapshotId. + */ + public java.lang.String getTargetSnapshotId() { + java.lang.Object ref = targetSnapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetSnapshotId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+     * ID is the {snapshot_id} of the fully qualified name like
+     * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+     * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for targetSnapshotId. + */ + public com.google.protobuf.ByteString + getTargetSnapshotIdBytes() { + java.lang.Object ref = targetSnapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetSnapshotId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+     * ID is the {snapshot_id} of the fully qualified name like
+     * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+     * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The targetSnapshotId to set. + * @return This builder for chaining. + */ + public Builder setTargetSnapshotId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetSnapshotId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+     * ID is the {snapshot_id} of the fully qualified name like
+     * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+     * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearTargetSnapshotId() { + + targetSnapshotId_ = getDefaultInstance().getTargetSnapshotId(); + onChanged(); + return this; + } + /** + *
+     * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+     * ID is the {snapshot_id} of the fully qualified name like
+     * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+     * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for targetSnapshotId to set. + * @return This builder for chaining. + */ + public Builder setTargetSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetSnapshotId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.RevertInstanceRequest) + private static final com.google.cloud.filestore.v1beta1.RevertInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.RevertInstanceRequest(); + } + + public static com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevertInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.RevertInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..d2183850d8a0 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface RevertInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.RevertInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+   * The resource name of the instance, in the format
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}.
+   * The resource name of the instance, in the format
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+   * ID is the {snapshot_id} of the fully qualified name like
+   * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+   * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The targetSnapshotId. + */ + java.lang.String getTargetSnapshotId(); + /** + *
+   * Required. The snapshot resource ID, in the format 'my-snapshot', where the specified
+   * ID is the {snapshot_id} of the fully qualified name like
+   * projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
+   * 
+ * + * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for targetSnapshotId. + */ + com.google.protobuf.ByteString + getTargetSnapshotIdBytes(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java new file mode 100644 index 000000000000..4a954547aea1 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Share.java @@ -0,0 +1,2316 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * A Filestore share.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.Share} + */ +public final class Share extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Share) + ShareOrBuilder { +private static final long serialVersionUID = 0L; + // Use Share.newBuilder() to construct. + private Share(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Share() { + name_ = ""; + mountName_ = ""; + description_ = ""; + nfsExportOptions_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Share(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); + } + + /** + *
+   * The share state.
+   * 
+ * + * Protobuf enum {@code google.cloud.filestore.v1beta1.Share.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * State not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * Share is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + *
+     * Share is ready for use.
+     * 
+ * + * READY = 3; + */ + READY(3), + /** + *
+     * Share is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * State not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Share is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + *
+     * Share is ready for use.
+     * 
+ * + * READY = 3; + */ + public static final int READY_VALUE = 3; + /** + *
+     * Share is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 3: return READY; + case 4: return DELETING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.Share.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Share.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The resource name of the share, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The resource name of the share, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOUNT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object mountName_; + /** + *
+   * The mount name of the share. Must be 63 characters or less and consist of
+   * uppercase or lowercase letters, numbers, and underscores.
+   * 
+ * + * string mount_name = 2; + * @return The mountName. + */ + @java.lang.Override + public java.lang.String getMountName() { + java.lang.Object ref = mountName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountName_ = s; + return s; + } + } + /** + *
+   * The mount name of the share. Must be 63 characters or less and consist of
+   * uppercase or lowercase letters, numbers, and underscores.
+   * 
+ * + * string mount_name = 2; + * @return The bytes for mountName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMountNameBytes() { + java.lang.Object ref = mountName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+   * A description of the share with 2048 characters or less. Requests with
+   * longer descriptions will be rejected.
+   * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * A description of the share with 2048 characters or less. Requests with
+   * longer descriptions will be rejected.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAPACITY_GB_FIELD_NUMBER = 4; + private long capacityGb_; + /** + *
+   * File share capacity in gigabytes (GB). Filestore defines 1 GB as
+   * 1024^3 bytes. Must be greater than 0.
+   * 
+ * + * int64 capacity_gb = 4; + * @return The capacityGb. + */ + @java.lang.Override + public long getCapacityGb() { + return capacityGb_; + } + + public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER = 5; + private java.util.List nfsExportOptions_; + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + @java.lang.Override + public java.util.List getNfsExportOptionsList() { + return nfsExportOptions_; + } + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + @java.lang.Override + public java.util.List + getNfsExportOptionsOrBuilderList() { + return nfsExportOptions_; + } + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + @java.lang.Override + public int getNfsExportOptionsCount() { + return nfsExportOptions_.size(); + } + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { + return nfsExportOptions_.get(index); + } + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index) { + return nfsExportOptions_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + *
+   * Output only. The share state.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * Output only. The share state.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override public com.google.cloud.filestore.v1beta1.Share.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mountName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (capacityGb_ != 0L) { + output.writeInt64(4, capacityGb_); + } + for (int i = 0; i < nfsExportOptions_.size(); i++) { + output.writeMessage(5, nfsExportOptions_.get(i)); + } + if (state_ != com.google.cloud.filestore.v1beta1.Share.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mountName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (capacityGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, capacityGb_); + } + for (int i = 0; i < nfsExportOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, nfsExportOptions_.get(i)); + } + if (state_ != com.google.cloud.filestore.v1beta1.Share.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.Share)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.Share other = (com.google.cloud.filestore.v1beta1.Share) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getMountName() + .equals(other.getMountName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getCapacityGb() + != other.getCapacityGb()) return false; + if (!getNfsExportOptionsList() + .equals(other.getNfsExportOptionsList())) return false; + if (state_ != other.state_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MOUNT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMountName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapacityGb()); + if (getNfsExportOptionsCount() > 0) { + hash = (37 * hash) + NFS_EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getNfsExportOptionsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.Share parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.Share parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Share prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Filestore share.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.Share} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Share) + com.google.cloud.filestore.v1beta1.ShareOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 8: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.Share.class, com.google.cloud.filestore.v1beta1.Share.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.Share.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + mountName_ = ""; + + description_ = ""; + + capacityGb_ = 0L; + + if (nfsExportOptionsBuilder_ == null) { + nfsExportOptions_ = java.util.Collections.emptyList(); + } else { + nfsExportOptions_ = null; + nfsExportOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Share_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.Share.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share build() { + com.google.cloud.filestore.v1beta1.Share result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share buildPartial() { + com.google.cloud.filestore.v1beta1.Share result = new com.google.cloud.filestore.v1beta1.Share(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.mountName_ = mountName_; + result.description_ = description_; + result.capacityGb_ = capacityGb_; + if (nfsExportOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nfsExportOptions_ = java.util.Collections.unmodifiableList(nfsExportOptions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nfsExportOptions_ = nfsExportOptions_; + } else { + result.nfsExportOptions_ = nfsExportOptionsBuilder_.build(); + } + result.state_ = state_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.Share) { + return mergeFrom((com.google.cloud.filestore.v1beta1.Share)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Share other) { + if (other == com.google.cloud.filestore.v1beta1.Share.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getMountName().isEmpty()) { + mountName_ = other.mountName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getCapacityGb() != 0L) { + setCapacityGb(other.getCapacityGb()); + } + if (nfsExportOptionsBuilder_ == null) { + if (!other.nfsExportOptions_.isEmpty()) { + if (nfsExportOptions_.isEmpty()) { + nfsExportOptions_ = other.nfsExportOptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.addAll(other.nfsExportOptions_); + } + onChanged(); + } + } else { + if (!other.nfsExportOptions_.isEmpty()) { + if (nfsExportOptionsBuilder_.isEmpty()) { + nfsExportOptionsBuilder_.dispose(); + nfsExportOptionsBuilder_ = null; + nfsExportOptions_ = other.nfsExportOptions_; + bitField0_ = (bitField0_ & ~0x00000001); + nfsExportOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsExportOptionsFieldBuilder() : null; + } else { + nfsExportOptionsBuilder_.addAllMessages(other.nfsExportOptions_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + mountName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + capacityGb_ = input.readInt64(); + + break; + } // case 32 + case 42: { + com.google.cloud.filestore.v1beta1.NfsExportOptions m = + input.readMessage( + com.google.cloud.filestore.v1beta1.NfsExportOptions.parser(), + extensionRegistry); + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(m); + } else { + nfsExportOptionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of the share, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name of the share, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name of the share, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the share, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the share, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object mountName_ = ""; + /** + *
+     * The mount name of the share. Must be 63 characters or less and consist of
+     * uppercase or lowercase letters, numbers, and underscores.
+     * 
+ * + * string mount_name = 2; + * @return The mountName. + */ + public java.lang.String getMountName() { + java.lang.Object ref = mountName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The mount name of the share. Must be 63 characters or less and consist of
+     * uppercase or lowercase letters, numbers, and underscores.
+     * 
+ * + * string mount_name = 2; + * @return The bytes for mountName. + */ + public com.google.protobuf.ByteString + getMountNameBytes() { + java.lang.Object ref = mountName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The mount name of the share. Must be 63 characters or less and consist of
+     * uppercase or lowercase letters, numbers, and underscores.
+     * 
+ * + * string mount_name = 2; + * @param value The mountName to set. + * @return This builder for chaining. + */ + public Builder setMountName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mountName_ = value; + onChanged(); + return this; + } + /** + *
+     * The mount name of the share. Must be 63 characters or less and consist of
+     * uppercase or lowercase letters, numbers, and underscores.
+     * 
+ * + * string mount_name = 2; + * @return This builder for chaining. + */ + public Builder clearMountName() { + + mountName_ = getDefaultInstance().getMountName(); + onChanged(); + return this; + } + /** + *
+     * The mount name of the share. Must be 63 characters or less and consist of
+     * uppercase or lowercase letters, numbers, and underscores.
+     * 
+ * + * string mount_name = 2; + * @param value The bytes for mountName to set. + * @return This builder for chaining. + */ + public Builder setMountNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mountName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * A description of the share with 2048 characters or less. Requests with
+     * longer descriptions will be rejected.
+     * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A description of the share with 2048 characters or less. Requests with
+     * longer descriptions will be rejected.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A description of the share with 2048 characters or less. Requests with
+     * longer descriptions will be rejected.
+     * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * A description of the share with 2048 characters or less. Requests with
+     * longer descriptions will be rejected.
+     * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * A description of the share with 2048 characters or less. Requests with
+     * longer descriptions will be rejected.
+     * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private long capacityGb_ ; + /** + *
+     * File share capacity in gigabytes (GB). Filestore defines 1 GB as
+     * 1024^3 bytes. Must be greater than 0.
+     * 
+ * + * int64 capacity_gb = 4; + * @return The capacityGb. + */ + @java.lang.Override + public long getCapacityGb() { + return capacityGb_; + } + /** + *
+     * File share capacity in gigabytes (GB). Filestore defines 1 GB as
+     * 1024^3 bytes. Must be greater than 0.
+     * 
+ * + * int64 capacity_gb = 4; + * @param value The capacityGb to set. + * @return This builder for chaining. + */ + public Builder setCapacityGb(long value) { + + capacityGb_ = value; + onChanged(); + return this; + } + /** + *
+     * File share capacity in gigabytes (GB). Filestore defines 1 GB as
+     * 1024^3 bytes. Must be greater than 0.
+     * 
+ * + * int64 capacity_gb = 4; + * @return This builder for chaining. + */ + public Builder clearCapacityGb() { + + capacityGb_ = 0L; + onChanged(); + return this; + } + + private java.util.List nfsExportOptions_ = + java.util.Collections.emptyList(); + private void ensureNfsExportOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nfsExportOptions_ = new java.util.ArrayList(nfsExportOptions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> nfsExportOptionsBuilder_; + + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public java.util.List getNfsExportOptionsList() { + if (nfsExportOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nfsExportOptions_); + } else { + return nfsExportOptionsBuilder_.getMessageList(); + } + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public int getNfsExportOptionsCount() { + if (nfsExportOptionsBuilder_ == null) { + return nfsExportOptions_.size(); + } else { + return nfsExportOptionsBuilder_.getCount(); + } + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index) { + if (nfsExportOptionsBuilder_ == null) { + return nfsExportOptions_.get(index); + } else { + return nfsExportOptionsBuilder_.getMessage(index); + } + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder setNfsExportOptions( + int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { + if (nfsExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.set(index, value); + onChanged(); + } else { + nfsExportOptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder setNfsExportOptions( + int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + nfsExportOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder addNfsExportOptions(com.google.cloud.filestore.v1beta1.NfsExportOptions value) { + if (nfsExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(value); + onChanged(); + } else { + nfsExportOptionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder addNfsExportOptions( + int index, com.google.cloud.filestore.v1beta1.NfsExportOptions value) { + if (nfsExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(index, value); + onChanged(); + } else { + nfsExportOptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder addNfsExportOptions( + com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(builderForValue.build()); + onChanged(); + } else { + nfsExportOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder addNfsExportOptions( + int index, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder builderForValue) { + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + nfsExportOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder addAllNfsExportOptions( + java.lang.Iterable values) { + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsExportOptions_); + onChanged(); + } else { + nfsExportOptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder clearNfsExportOptions() { + if (nfsExportOptionsBuilder_ == null) { + nfsExportOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nfsExportOptionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public Builder removeNfsExportOptions(int index) { + if (nfsExportOptionsBuilder_ == null) { + ensureNfsExportOptionsIsMutable(); + nfsExportOptions_.remove(index); + onChanged(); + } else { + nfsExportOptionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder getNfsExportOptionsBuilder( + int index) { + return getNfsExportOptionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index) { + if (nfsExportOptionsBuilder_ == null) { + return nfsExportOptions_.get(index); } else { + return nfsExportOptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public java.util.List + getNfsExportOptionsOrBuilderList() { + if (nfsExportOptionsBuilder_ != null) { + return nfsExportOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nfsExportOptions_); + } + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder() { + return getNfsExportOptionsFieldBuilder().addBuilder( + com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder addNfsExportOptionsBuilder( + int index) { + return getNfsExportOptionsFieldBuilder().addBuilder( + index, com.google.cloud.filestore.v1beta1.NfsExportOptions.getDefaultInstance()); + } + /** + *
+     * Nfs Export Options.
+     * There is a limit of 10 export options per file share.
+     * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + public java.util.List + getNfsExportOptionsBuilderList() { + return getNfsExportOptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder> + getNfsExportOptionsFieldBuilder() { + if (nfsExportOptionsBuilder_ == null) { + nfsExportOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.filestore.v1beta1.NfsExportOptions, com.google.cloud.filestore.v1beta1.NfsExportOptions.Builder, com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder>( + nfsExportOptions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nfsExportOptions_ = null; + } + return nfsExportOptionsBuilder_; + } + + private int state_ = 0; + /** + *
+     * Output only. The share state.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * Output only. The share state.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The share state.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.filestore.v1beta1.Share.State result = com.google.cloud.filestore.v1beta1.Share.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Share.State.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The share state.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.filestore.v1beta1.Share.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. The share state.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Output only. The time when the share was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Resource labels to represent user provided metadata.
+     * 
+ * + * map<string, string> labels = 8; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Share) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Share) + private static final com.google.cloud.filestore.v1beta1.Share DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Share(); + } + + public static com.google.cloud.filestore.v1beta1.Share getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Share parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java new file mode 100644 index 000000000000..f0adfda3222f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2022 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.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ShareName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_SHARE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/shares/{share}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String share; + + @Deprecated + protected ShareName() { + project = null; + location = null; + instance = null; + share = null; + } + + private ShareName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + share = Preconditions.checkNotNull(builder.getShare()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getShare() { + return share; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ShareName of(String project, String location, String instance, String share) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setShare(share) + .build(); + } + + public static String format(String project, String location, String instance, String share) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setShare(share) + .build() + .toString(); + } + + public static ShareName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_SHARE.validatedMatch( + formattedString, "ShareName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("share")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ShareName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_SHARE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (share != null) { + fieldMapBuilder.put("share", share); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_SHARE.instantiate( + "project", project, "location", location, "instance", instance, "share", share); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ShareName that = ((ShareName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.share, that.share); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(instance); + h *= 1000003; + h ^= Objects.hashCode(share); + return h; + } + + /** Builder for projects/{project}/locations/{location}/instances/{instance}/shares/{share}. */ + public static class Builder { + private String project; + private String location; + private String instance; + private String share; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getShare() { + return share; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setShare(String share) { + this.share = share; + return this; + } + + private Builder(ShareName shareName) { + this.project = shareName.project; + this.location = shareName.location; + this.instance = shareName.instance; + this.share = shareName.share; + } + + public ShareName build() { + return new ShareName(this); + } + } +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java new file mode 100644 index 000000000000..86c3e91b5eac --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareOrBuilder.java @@ -0,0 +1,237 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface ShareOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Share) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The resource name of the share, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. The resource name of the share, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The mount name of the share. Must be 63 characters or less and consist of
+   * uppercase or lowercase letters, numbers, and underscores.
+   * 
+ * + * string mount_name = 2; + * @return The mountName. + */ + java.lang.String getMountName(); + /** + *
+   * The mount name of the share. Must be 63 characters or less and consist of
+   * uppercase or lowercase letters, numbers, and underscores.
+   * 
+ * + * string mount_name = 2; + * @return The bytes for mountName. + */ + com.google.protobuf.ByteString + getMountNameBytes(); + + /** + *
+   * A description of the share with 2048 characters or less. Requests with
+   * longer descriptions will be rejected.
+   * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * A description of the share with 2048 characters or less. Requests with
+   * longer descriptions will be rejected.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * File share capacity in gigabytes (GB). Filestore defines 1 GB as
+   * 1024^3 bytes. Must be greater than 0.
+   * 
+ * + * int64 capacity_gb = 4; + * @return The capacityGb. + */ + long getCapacityGb(); + + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + java.util.List + getNfsExportOptionsList(); + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + com.google.cloud.filestore.v1beta1.NfsExportOptions getNfsExportOptions(int index); + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + int getNfsExportOptionsCount(); + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + java.util.List + getNfsExportOptionsOrBuilderList(); + /** + *
+   * Nfs Export Options.
+   * There is a limit of 10 export options per file share.
+   * 
+ * + * repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5; + */ + com.google.cloud.filestore.v1beta1.NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder( + int index); + + /** + *
+   * Output only. The share state.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * Output only. The share state.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.cloud.filestore.v1beta1.Share.State getState(); + + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. The time when the share was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + int getLabelsCount(); + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Resource labels to represent user provided metadata.
+   * 
+ * + * map<string, string> labels = 8; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java index 4aab9492e94a..72494c37924a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Snapshot.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
- * A Cloud Filestore snapshot.
+ * A Filestore snapshot.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ -public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Snapshot extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Snapshot) SnapshotOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Snapshot() { name_ = ""; description_ = ""; @@ -45,54 +27,51 @@ private Snapshot() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Snapshot(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, - com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } /** - * - * *
    * The snapshot state.
    * 
* * Protobuf enum {@code google.cloud.filestore.v1beta1.Snapshot.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -101,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Snapshot is being created.
      * 
@@ -111,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Snapshot is available for use.
      * 
@@ -121,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * Snapshot is being deleted.
      * 
@@ -134,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -144,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Snapshot is being created.
      * 
@@ -154,8 +123,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Snapshot is available for use.
      * 
@@ -164,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * Snapshot is being deleted.
      * 
@@ -174,6 +139,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -198,51 +164,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.filestore.v1beta1.Snapshot.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -262,15 +227,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -279,30 +241,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -313,15 +275,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -330,30 +289,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -364,55 +323,38 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { + @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = - com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -420,15 +362,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -436,14 +374,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -451,23 +386,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -476,30 +412,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -507,12 +441,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -520,16 +453,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -537,11 +470,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -551,14 +485,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int FILESYSTEM_USED_BYTES_FIELD_NUMBER = 12; private long filesystemUsedBytes_; /** - * - * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -567,7 +498,6 @@ public long getFilesystemUsedBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -579,7 +509,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -592,8 +523,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); if (filesystemUsedBytes_ != 0L) { output.writeInt64(12, filesystemUsedBytes_); } @@ -613,23 +548,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Snapshot.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } if (filesystemUsedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, filesystemUsedBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, filesystemUsedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -639,23 +577,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.Snapshot)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.Snapshot other = - (com.google.cloud.filestore.v1beta1.Snapshot) obj; + com.google.cloud.filestore.v1beta1.Snapshot other = (com.google.cloud.filestore.v1beta1.Snapshot) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getFilesystemUsedBytes() != other.getFilesystemUsedBytes()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getFilesystemUsedBytes() + != other.getFilesystemUsedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -682,162 +624,159 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + FILESYSTEM_USED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFilesystemUsedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFilesystemUsedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.filestore.v1beta1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * A Cloud Filestore snapshot.
+   * A Filestore snapshot.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.Snapshot} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Snapshot) com.google.cloud.filestore.v1beta1.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.Snapshot.class, - com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); + com.google.cloud.filestore.v1beta1.Snapshot.class, com.google.cloud.filestore.v1beta1.Snapshot.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.Snapshot.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -860,9 +799,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_Snapshot_descriptor; } @java.lang.Override @@ -881,8 +820,7 @@ public com.google.cloud.filestore.v1beta1.Snapshot build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot buildPartial() { - com.google.cloud.filestore.v1beta1.Snapshot result = - new com.google.cloud.filestore.v1beta1.Snapshot(this); + com.google.cloud.filestore.v1beta1.Snapshot result = new com.google.cloud.filestore.v1beta1.Snapshot(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -903,39 +841,38 @@ public com.google.cloud.filestore.v1beta1.Snapshot buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.Snapshot) { - return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.Snapshot)other); } else { super.mergeFrom(other); return this; @@ -958,7 +895,8 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Snapshot other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getFilesystemUsedBytes() != 0L) { setFilesystemUsedBytes(other.getFilesystemUsedBytes()); } @@ -988,54 +926,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 42 - case 96: - { - filesystemUsedBytes_ = input.readInt64(); - - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 96: { + filesystemUsedBytes_ = input.readInt64(); + + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1045,26 +976,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1073,22 +1001,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1096,64 +1023,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the snapshot, in the format
      * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1161,21 +1081,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1184,22 +1102,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1207,64 +1124,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the snapshot with 2048 characters or less.
      * Requests with longer descriptions will be rejected.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1272,75 +1182,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Snapshot.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.filestore.v1beta1.Snapshot.State result = - com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); - return result == null - ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED - : result; + com.google.cloud.filestore.v1beta1.Snapshot.State result = com.google.cloud.filestore.v1beta1.Snapshot.State.valueOf(state_); + return result == null ? com.google.cloud.filestore.v1beta1.Snapshot.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1348,26 +1234,21 @@ public Builder setState(com.google.cloud.filestore.v1beta1.Snapshot.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The snapshot state.
      * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1375,58 +1256,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1442,17 +1304,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1463,21 +1322,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1489,15 +1344,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1511,84 +1362,69 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time when the snapshot was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1600,30 +1436,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1631,12 +1465,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1644,17 +1477,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
@@ -1662,11 +1494,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1674,74 +1507,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Resource labels to represent user provided metadata.
      * 
* * map<string, string> labels = 5; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private long filesystemUsedBytes_; + private long filesystemUsedBytes_ ; /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ @java.lang.Override @@ -1749,43 +1582,37 @@ public long getFilesystemUsedBytes() { return filesystemUsedBytes_; } /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The filesystemUsedBytes to set. * @return This builder for chaining. */ public Builder setFilesystemUsedBytes(long value) { - + filesystemUsedBytes_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
      * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearFilesystemUsedBytes() { - + filesystemUsedBytes_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1795,12 +1622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.Snapshot) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Snapshot) private static final com.google.cloud.filestore.v1beta1.Snapshot DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Snapshot(); } @@ -1809,27 +1636,27 @@ public static com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1844,4 +1671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java similarity index 100% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java similarity index 68% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java index f2176d6460f5..78e1e0397201 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotOrBuilder.java @@ -1,152 +1,103 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface SnapshotOrBuilder - extends +public interface SnapshotOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.Snapshot) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the snapshot, in the format
    * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the snapshot with 2048 characters or less.
    * Requests with longer descriptions will be rejected.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The snapshot state.
    * 
* - * - * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.filestore.v1beta1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.filestore.v1beta1.Snapshot.State getState(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time when the snapshot was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -155,31 +106,30 @@ public interface SnapshotOrBuilder */ int getLabelsCount(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
@@ -188,30 +138,27 @@ public interface SnapshotOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Resource labels to represent user provided metadata.
    * 
* * map<string, string> labels = 5; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    * 
* * int64 filesystem_used_bytes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The filesystemUsedBytes. */ long getFilesystemUsedBytes(); diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java similarity index 65% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java index 2a86c38d221a..9378610c9c25 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequest.java @@ -1,83 +1,60 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateBackupRequest updates description and/or labels for a backup.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateBackupRequest} */ -public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBackupRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateBackupRequest) UpdateBackupRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBackupRequest.newBuilder() to construct. private UpdateBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBackupRequest() {} + private UpdateBackupRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } public static final int BACKUP_FIELD_NUMBER = 1; private com.google.cloud.filestore.v1beta1.Backup backup_; /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ @java.lang.Override @@ -85,34 +62,23 @@ public boolean hasBackup() { return backup_ != null; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Backup getBackup() { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { @@ -122,16 +88,12 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -139,16 +101,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -156,15 +114,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -172,7 +127,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (backup_ != null) { output.writeMessage(1, getBackup()); } @@ -201,10 +156,12 @@ public int getSerializedSize() { size = 0; if (backup_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackup()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBackup()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,21 +171,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.UpdateBackupRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = - (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateBackupRequest other = (com.google.cloud.filestore.v1beta1.UpdateBackupRequest) obj; if (hasBackup() != other.hasBackup()) return false; if (hasBackup()) { - if (!getBackup().equals(other.getBackup())) return false; + if (!getBackup() + .equals(other.getBackup())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,136 +213,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateBackupRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateBackupRequest updates description and/or labels for a backup.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateBackupRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateBackupRequest) com.google.cloud.filestore.v1beta1.UpdateBackupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, - com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest.class, com.google.cloud.filestore.v1beta1.UpdateBackupRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateBackupRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateBackupRequest_descriptor; } @java.lang.Override @@ -425,8 +376,7 @@ public com.google.cloud.filestore.v1beta1.UpdateBackupRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateBackupRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = - new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); + com.google.cloud.filestore.v1beta1.UpdateBackupRequest result = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(this); if (backupBuilder_ == null) { result.backup_ = backup_; } else { @@ -445,39 +395,38 @@ public com.google.cloud.filestore.v1beta1.UpdateBackupRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.UpdateBackupRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateBackupRequest)other); } else { super.mergeFrom(other); return this; @@ -485,8 +434,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateBackupRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateBackupRequest.getDefaultInstance()) return this; if (other.hasBackup()) { mergeBackup(other.getBackup()); } @@ -519,25 +467,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBackupFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBackupFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,58 +499,39 @@ public Builder mergeFrom( private com.google.cloud.filestore.v1beta1.Backup backup_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> - backupBuilder_; + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> backupBuilder_; /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ public boolean hasBackup() { return backupBuilder_ != null || backup_ != null; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ public com.google.cloud.filestore.v1beta1.Backup getBackup() { if (backupBuilder_ == null) { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } else { return backupBuilder_.getMessage(); } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { @@ -617,17 +547,14 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { + public Builder setBackup( + com.google.cloud.filestore.v1beta1.Backup.Builder builderForValue) { if (backupBuilder_ == null) { backup_ = builderForValue.build(); onChanged(); @@ -638,23 +565,17 @@ public Builder setBackup(com.google.cloud.filestore.v1beta1.Backup.Builder build return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { if (backupBuilder_ == null) { if (backup_ != null) { backup_ = - com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Backup.newBuilder(backup_).mergeFrom(value).buildPartial(); } else { backup_ = value; } @@ -666,15 +587,11 @@ public Builder mergeBackup(com.google.cloud.filestore.v1beta1.Backup value) { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBackup() { if (backupBuilder_ == null) { @@ -688,64 +605,48 @@ public Builder clearBackup() { return this; } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Backup.Builder getBackupBuilder() { - + onChanged(); return getBackupFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { if (backupBuilder_ != null) { return backupBuilder_.getMessageOrBuilder(); } else { - return backup_ == null - ? com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() - : backup_; + return backup_ == null ? + com.google.cloud.filestore.v1beta1.Backup.getDefaultInstance() : backup_; } } /** - * - * *
      * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
      * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder> + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder> getBackupFieldBuilder() { if (backupBuilder_ == null) { - backupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Backup, - com.google.cloud.filestore.v1beta1.Backup.Builder, - com.google.cloud.filestore.v1beta1.BackupOrBuilder>( - getBackup(), getParentForChildren(), isClean()); + backupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Backup, com.google.cloud.filestore.v1beta1.Backup.Builder, com.google.cloud.filestore.v1beta1.BackupOrBuilder>( + getBackup(), + getParentForChildren(), + isClean()); backup_ = null; } return backupBuilder_; @@ -753,58 +654,42 @@ public com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -820,17 +705,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -841,21 +724,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -867,15 +747,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -889,71 +766,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -963,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateBackupRequest) private static final com.google.cloud.filestore.v1beta1.UpdateBackupRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateBackupRequest(); } @@ -977,27 +841,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBackupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateBackupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java index dd5cc07160c0..e08fe71d8455 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateBackupRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateBackupRequestOrBuilder - extends +public interface UpdateBackupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateBackupRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the backup field is set. */ boolean hasBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The backup. */ com.google.cloud.filestore.v1beta1.Backup getBackup(); /** - * - * *
    * Required. A [backup resource][google.cloud.filestore.v1beta1.Backup]
    * 
* - * - * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.BackupOrBuilder getBackupOrBuilder(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java similarity index 67% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java index a0246d44b722..ac8bce9e9a4f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequest.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; /** - * - * *
  * UpdateInstanceRequest updates the settings of an instance.
  * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -79,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -89,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -100,9 +76,7 @@ public boolean hasUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +84,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -121,8 +93,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -132,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.filestore.v1beta1.Instance instance_; /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -149,34 +115,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.filestore.v1beta1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -184,7 +139,6 @@ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -213,10 +168,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (instance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,21 +183,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.filestore.v1beta1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = - (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other = (com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { - if (!getInstance().equals(other.getInstance())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,136 +225,129 @@ public int hashCode() { } public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * UpdateInstanceRequest updates the settings of an instance.
    * 
* * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.cloud.filestore.v1beta1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.class, com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto - .internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -437,8 +388,7 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest buildPartial() { - com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = - new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); + com.google.cloud.filestore.v1beta1.UpdateInstanceRequest result = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -457,39 +407,38 @@ public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -497,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateInstanceRequest other) { - if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.filestore.v1beta1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -531,25 +479,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 10 - case 18: - { - input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,13 +511,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -578,17 +522,13 @@ public Builder mergeFrom(
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -598,23 +538,17 @@ public boolean hasUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -624,8 +558,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -641,8 +574,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -652,10 +583,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -666,8 +597,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -677,14 +606,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -696,8 +624,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -707,8 +633,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -722,8 +647,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -733,17 +656,14 @@ public Builder clearUpdateMask() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -753,21 +673,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.  At least one path must be supplied in this
      * field.  The elements of the repeated paths field may only include these
@@ -777,21 +693,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * * "labels"
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -799,58 +711,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.filestore.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.filestore.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -866,15 +759,11 @@ public Builder setInstance(com.google.cloud.filestore.v1beta1.Instance value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.filestore.v1beta1.Instance.Builder builderForValue) { @@ -888,23 +777,17 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.filestore.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -916,15 +799,11 @@ public Builder mergeInstance(com.google.cloud.filestore.v1beta1.Instance value) return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -938,71 +817,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder> + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.filestore.v1beta1.Instance, - com.google.cloud.filestore.v1beta1.Instance.Builder, - com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Instance, com.google.cloud.filestore.v1beta1.Instance.Builder, com.google.cloud.filestore.v1beta1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1012,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateInstanceRequest) private static final com.google.cloud.filestore.v1beta1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateInstanceRequest(); } @@ -1026,27 +889,27 @@ public static com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.filestore.v1beta1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java similarity index 62% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java index ab4b44b8e29c..64763ee21151 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateInstanceRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto package com.google.cloud.filestore.v1beta1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -35,15 +17,11 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -53,15 +31,11 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.  At least one path must be supplied in this
    * field.  The elements of the repeated paths field may only include these
@@ -71,49 +45,34 @@ public interface UpdateInstanceRequestOrBuilder
    * * "labels"
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.filestore.v1beta1.Instance getInstance(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.filestore.v1beta1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.filestore.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java new file mode 100644 index 000000000000..59294230de77 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequest.java @@ -0,0 +1,953 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * UpdateShareRequest updates the settings of a share.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} + */ +public final class UpdateShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) + UpdateShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateShareRequest.newBuilder() to construct. + private UpdateShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateShareRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + } + + public static final int SHARE_FIELD_NUMBER = 1; + private com.google.cloud.filestore.v1beta1.Share share_; + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + @java.lang.Override + public boolean hasShare() { + return share_ != null; + } + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Share getShare() { + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { + return getShare(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (share_ != null) { + output.writeMessage(1, getShare()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (share_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getShare()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.UpdateShareRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.UpdateShareRequest other = (com.google.cloud.filestore.v1beta1.UpdateShareRequest) obj; + + if (hasShare() != other.hasShare()) return false; + if (hasShare()) { + if (!getShare() + .equals(other.getShare())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasShare()) { + hash = (37 * hash) + SHARE_FIELD_NUMBER; + hash = (53 * hash) + getShare().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateShareRequest updates the settings of a share.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateShareRequest) + com.google.cloud.filestore.v1beta1.UpdateShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.UpdateShareRequest.class, com.google.cloud.filestore.v1beta1.UpdateShareRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.UpdateShareRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (shareBuilder_ == null) { + share_ = null; + } else { + share_ = null; + shareBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateShareRequest build() { + com.google.cloud.filestore.v1beta1.UpdateShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateShareRequest buildPartial() { + com.google.cloud.filestore.v1beta1.UpdateShareRequest result = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(this); + if (shareBuilder_ == null) { + result.share_ = share_; + } else { + result.share_ = shareBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.UpdateShareRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateShareRequest other) { + if (other == com.google.cloud.filestore.v1beta1.UpdateShareRequest.getDefaultInstance()) return this; + if (other.hasShare()) { + mergeShare(other.getShare()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getShareFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.filestore.v1beta1.Share share_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> shareBuilder_; + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + public boolean hasShare() { + return shareBuilder_ != null || share_ != null; + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + public com.google.cloud.filestore.v1beta1.Share getShare() { + if (shareBuilder_ == null) { + return share_ == null ? com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } else { + return shareBuilder_.getMessage(); + } + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setShare(com.google.cloud.filestore.v1beta1.Share value) { + if (shareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + share_ = value; + onChanged(); + } else { + shareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setShare( + com.google.cloud.filestore.v1beta1.Share.Builder builderForValue) { + if (shareBuilder_ == null) { + share_ = builderForValue.build(); + onChanged(); + } else { + shareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeShare(com.google.cloud.filestore.v1beta1.Share value) { + if (shareBuilder_ == null) { + if (share_ != null) { + share_ = + com.google.cloud.filestore.v1beta1.Share.newBuilder(share_).mergeFrom(value).buildPartial(); + } else { + share_ = value; + } + onChanged(); + } else { + shareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearShare() { + if (shareBuilder_ == null) { + share_ = null; + onChanged(); + } else { + share_ = null; + shareBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.Share.Builder getShareBuilder() { + + onChanged(); + return getShareFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder() { + if (shareBuilder_ != null) { + return shareBuilder_.getMessageOrBuilder(); + } else { + return share_ == null ? + com.google.cloud.filestore.v1beta1.Share.getDefaultInstance() : share_; + } + } + /** + *
+     * Required. A share resource.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder> + getShareFieldBuilder() { + if (shareBuilder_ == null) { + shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Share, com.google.cloud.filestore.v1beta1.Share.Builder, com.google.cloud.filestore.v1beta1.ShareOrBuilder>( + getShare(), + getParentForChildren(), + isClean()); + share_ = null; + } + return shareBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in this
+     * field.
+     * The elements of the repeated paths field may only include these fields:
+     * * "description"
+     * * "capacity_gb"
+     * * "labels"
+     * * "nfs_export_options"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateShareRequest) + private static final com.google.cloud.filestore.v1beta1.UpdateShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateShareRequest(); + } + + public static com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java new file mode 100644 index 000000000000..bd3761e15bc2 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateShareRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface UpdateShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the share field is set. + */ + boolean hasShare(); + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The share. + */ + com.google.cloud.filestore.v1beta1.Share getShare(); + /** + *
+   * Required. A share resource.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.filestore.v1beta1.Share share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.filestore.v1beta1.ShareOrBuilder getShareOrBuilder(); + + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in this
+   * field.
+   * The elements of the repeated paths field may only include these fields:
+   * * "description"
+   * * "capacity_gb"
+   * * "labels"
+   * * "nfs_export_options"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java new file mode 100644 index 000000000000..fee35b60fc13 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequest.java @@ -0,0 +1,881 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +/** + *
+ * UpdateSnapshotRequest updates description and/or labels for a snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} + */ +public final class UpdateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) + UpdateSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSnapshotRequest.newBuilder() to construct. + private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSnapshotRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateSnapshotRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 2; + private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return snapshot_ != null; + } + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { + return getSnapshot(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (snapshot_ != null) { + output.writeMessage(2, getSnapshot()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); + } + if (snapshot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSnapshot()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other = (com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpdateSnapshotRequest updates description and/or labels for a snapshot.
+   * 
+ * + * Protobuf type {@code google.cloud.filestore.v1beta1.UpdateSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.class, com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (snapshotBuilder_ == null) { + snapshot_ = null; + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto.internal_static_google_cloud_filestore_v1beta1_UpdateSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest build() { + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest buildPartial() { + com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest result = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (snapshotBuilder_ == null) { + result.snapshot_ = snapshot_; + } else { + result.snapshot_ = snapshotBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest) { + return mergeFrom((com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest other) { + if (other == com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Required. Mask of fields to update.  At least one path must be supplied in this
+     * field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.filestore.v1beta1.Snapshot snapshot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> snapshotBuilder_; + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return snapshotBuilder_ != null || snapshot_ != null; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + public com.google.cloud.filestore.v1beta1.Snapshot getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null ? com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSnapshot( + com.google.cloud.filestore.v1beta1.Snapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSnapshot(com.google.cloud.filestore.v1beta1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (snapshot_ != null) { + snapshot_ = + com.google.cloud.filestore.v1beta1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + } else { + snapshot_ = value; + } + onChanged(); + } else { + snapshotBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + snapshot_ = null; + onChanged(); + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.Snapshot.Builder getSnapshotBuilder() { + + onChanged(); + return getSnapshotFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null ? + com.google.cloud.filestore.v1beta1.Snapshot.getDefaultInstance() : snapshot_; + } + } + /** + *
+     * Required. A snapshot resource
+     * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.filestore.v1beta1.Snapshot, com.google.cloud.filestore.v1beta1.Snapshot.Builder, com.google.cloud.filestore.v1beta1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) + private static final com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest(); + } + + public static com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..c6cc75a0f414 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/UpdateSnapshotRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/filestore/v1beta1/cloud_filestore_service.proto + +package com.google.cloud.filestore.v1beta1; + +public interface UpdateSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1beta1.UpdateSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask of fields to update.  At least one path must be supplied in this
+   * field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The snapshot. + */ + com.google.cloud.filestore.v1beta1.Snapshot getSnapshot(); + /** + *
+   * Required. A snapshot resource
+   * 
+ * + * .google.cloud.filestore.v1beta1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.filestore.v1beta1.SnapshotOrBuilder getSnapshotOrBuilder(); +} diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto similarity index 58% rename from java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto rename to owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto index eff84710592b..bf600312e2d4 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto +++ b/owl-bot-staging/java-filestore/v1beta1/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/common/operation_metadata.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -32,17 +33,17 @@ option java_outer_classname = "CloudFilestoreServiceProto"; option java_package = "com.google.cloud.filestore.v1beta1"; option php_namespace = "Google\\Cloud\\Filestore\\V1beta1"; -// Configures and manages Cloud Filestore resources. +// Configures and manages Filestore resources. // -// Cloud Filestore Manager v1beta1. +// Filestore Manager v1beta1. // -// The `file.googleapis.com` service implements the Cloud Filestore API and +// The `file.googleapis.com` service implements the Filestore API and // defines the following model for managing resources: // * 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, Cloud Filestore instances are resources of the form: +// * As such, Filestore instances are resources of the form: // `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` // backups are resources of the form: // `/projects/{project_id}/locations/{location_id}/backup/{backup_id}` @@ -120,6 +121,18 @@ service CloudFilestoreManager { }; } + // Revert an existing instance's file system to a specified snapshot. + rpc RevertInstance(RevertInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/instances/*}:revert" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + // Deletes an instance. rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -132,6 +145,61 @@ service CloudFilestoreManager { }; } + // Lists all snapshots in a project for either a specified location + // or for all locations. + rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific snapshot. + rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a snapshot. + rpc CreateSnapshot(CreateSnapshotRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots" + body: "snapshot" + }; + option (google.api.method_signature) = "parent,snapshot,snapshot_id"; + option (google.longrunning.operation_info) = { + response_type: "Snapshot" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + + // Deletes a snapshot. + rpc DeleteSnapshot(DeleteSnapshotRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/instances/*/snapshots/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + + // Updates the settings of a specific snapshot. + rpc UpdateSnapshot(UpdateSnapshotRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}" + body: "snapshot" + }; + option (google.api.method_signature) = "snapshot,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Snapshot" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + // Lists all backups in a project for either a specified location or for all // locations. rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { @@ -186,11 +254,65 @@ service CloudFilestoreManager { metadata_type: "google.cloud.common.OperationMetadata" }; } + + // Lists all shares for a specified instance. + rpc ListShares(ListSharesRequest) returns (ListSharesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific share. + rpc GetShare(GetShareRequest) returns (Share) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a share. + rpc CreateShare(CreateShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/instances/*}/shares" + body: "share" + }; + option (google.api.method_signature) = "parent,share,share_id"; + option (google.longrunning.operation_info) = { + response_type: "Share" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + + // Deletes a share. + rpc DeleteShare(DeleteShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/instances/*/shares/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } + + // Updates the settings of a specific share. + rpc UpdateShare(UpdateShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{share.name=projects/*/locations/*/instances/*/shares/*}" + body: "share" + }; + option (google.api.method_signature) = "share,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Share" + metadata_type: "google.cloud.common.OperationMetadata" + }; + } } // Network configuration for the instance. message NetworkConfig { - // Internet protocol versions supported by Cloud Filestore. + // Internet protocol versions supported by Filestore. enum AddressMode { // Internet protocol not set. ADDRESS_MODE_UNSPECIFIED = 0; @@ -199,6 +321,20 @@ message NetworkConfig { MODE_IPV4 = 1; } + // Available connection modes. + enum ConnectMode { + // ConnectMode not set. + CONNECT_MODE_UNSPECIFIED = 0; + + // Connect via direct peering to the Filestore service. + DIRECT_PEERING = 1; + + // Connect to your Filestore instance using Private Service + // Access. Private services access provides an IP address range for multiple + // Google Cloud services, including Filestore. + PRIVATE_SERVICE_ACCESS = 2; + } + // The name of the Google Compute Engine // [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the // instance is connected. @@ -208,28 +344,46 @@ message NetworkConfig { // assigned. For this version, only MODE_IPV4 is supported. repeated AddressMode modes = 3; - // A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the - // [internal IP address + // Optional, reserved_ip_range can have one of the following two types of + // values. + // + // * CIDR range value when using DIRECT_PEERING connect mode. + // * [Allocated IP address + // range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) + // when using PRIVATE_SERVICE_ACCESS connect mode. + // + // When the name of an allocated IP address range is specified, it must be one + // of the ranges associated with the private service access connection. + // When specified as a direct CIDR value, it must be a /29 CIDR block for + // Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for + // Enterprise tier in one of the [internal IP address // ranges](https://www.arin.net/reference/research/statistics/address_filters/) // that identifies the range of IP addresses reserved for this instance. For - // example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap - // with either existing subnets or assigned IP address ranges for other Cloud - // Filestore instances in the selected VPC network. + // example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The + // range you specify can't overlap with either existing subnets or assigned IP + // address ranges for other Filestore instances in the selected VPC + // network. string reserved_ip_range = 4; - // Output only. IPv4 addresses in the format - // `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format + // Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or + // IPv6 addresses in the format // `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`. repeated string ip_addresses = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The network connect mode of the Filestore instance. + // If not provided, the connect mode defaults to DIRECT_PEERING. + ConnectMode connect_mode = 6; } // File share configuration for the instance. message FileShareConfig { - // The name of the file share (must be 16 characters or less). + // The name of the file share (must be 32 characters or less for + // Enterprise and High Scale SSD tiers and 16 characters or less for all other + // tiers). string name = 1; // File share capacity in gigabytes (GB). - // Cloud Filestore defines 1 GB as 1024^3 bytes. + // Filestore defines 1 GB as 1024^3 bytes. int64 capacity_gb = 2; // The source that this file share has been restored from. Empty if the file @@ -307,7 +461,7 @@ message NfsExportOptions { int64 anon_gid = 5; } -// A Cloud Filestore instance. +// A Filestore instance. message Instance { option (google.api.resource) = { type: "file.googleapis.com/Instance" @@ -340,6 +494,19 @@ message Instance { // The instance is restoring a snapshot or backup to an existing file share // and may be unusable during this time. RESTORING = 7; + + // The instance is suspended. You can get further details from + // the `suspension_reasons` field of the `Instance` resource. + SUSPENDED = 8; + + // The instance is reverting to a snapshot. + REVERTING = 9; + + // The instance is in the process of becoming suspended. + SUSPENDING = 10; + + // The instance is in the process of becoming active. + RESUMING = 11; } // Available service tiers. @@ -366,6 +533,19 @@ message Instance { // HIGH_SCALE instances offer expanded capacity and performance scaling // capabilities. HIGH_SCALE_SSD = 6; + + // ENTERPRISE instances offer the features and availability needed for + // mission-critical workloads. + ENTERPRISE = 7; + } + + // SuspensionReason contains the possible reasons for a suspension. + enum SuspensionReason { + // Not set. + SUSPENSION_REASON_UNSPECIFIED = 0; + + // The KMS key used by the instance is either revoked or denied access to. + KMS_KEY_ISSUE = 1; } // Output only. The resource name of the instance, in the format @@ -404,12 +584,37 @@ message Instance { // Output only. Reserved for future use. google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // KMS key name used for data encryption. + string kms_key_name = 14; + + // Output only. Field indicates all the reasons the instance is in "SUSPENDED" state. + repeated SuspensionReason suspension_reasons = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The max capacity of the instance. + int64 max_capacity_gb = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The increase/decrease capacity step size. + int64 capacity_step_size_gb = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The max number of shares allowed. + int64 max_share_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The storage capacity of the instance in gigabytes (GB = 1024^3 bytes). + // This capacity can be increased up to `max_capacity_gb` GB in multipliers + // of `capacity_step_size_gb` GB. + int64 capacity_gb = 19; + + // Indicates whether this instance uses a multi-share configuration with which + // it can have more than one file-share or none at all. File-shares are added, + // updated and removed through the separate file-share APIs. + bool multi_share_enabled = 20; } // CreateInstanceRequest creates an instance. message CreateInstanceRequest { // Required. The instance's project and location, in the format - // `projects/{project_id}/locations/{location}`. In Cloud Filestore, + // `projects/{project_id}/locations/{location}`. In Filestore, // locations map to GCP zones, for example **us-west1-b**. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -456,7 +661,7 @@ message UpdateInstanceRequest { Instance instance = 2 [(google.api.field_behavior) = REQUIRED]; } -// RestoreInstanceRequest restores an existing instances's file share from a +// RestoreInstanceRequest restores an existing instance's file share from a // snapshot or backup. message RestoreInstanceRequest { // Required. The resource name of the instance, in the format @@ -468,7 +673,7 @@ message RestoreInstanceRequest { } ]; - // Required. Name of the file share in the Cloud Filestore instance that the snapshot + // Required. Name of the file share in the Filestore instance that the snapshot // is being restored to. string file_share = 2 [(google.api.field_behavior) = REQUIRED]; @@ -487,6 +692,24 @@ message RestoreInstanceRequest { } } +// RevertInstanceRequest reverts the given instance's file share to the +// specified snapshot. +message RevertInstanceRequest { + // Required. projects/{project_id}/locations/{location_id}/instances/{instance_id}. + // The resource name of the instance, in the format + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Instance" + } + ]; + + // Required. The snapshot resource ID, in the format 'my-snapshot', where the specified + // ID is the {snapshot_id} of the fully qualified name like + // projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id} + string target_snapshot_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + // DeleteInstanceRequest deletes an instance. message DeleteInstanceRequest { // Required. The instance resource name, in the format @@ -497,6 +720,10 @@ message DeleteInstanceRequest { type: "file.googleapis.com/Instance" } ]; + + // If set to true, any snapshots of the instance will also be deleted. + // (Otherwise, the request will only work if the instance has no snapshots.) + bool force = 2; } // ListInstancesRequest lists instances. @@ -545,7 +772,7 @@ message ListInstancesResponse { repeated string unreachable = 3; } -// A Cloud Filestore snapshot. +// A Filestore snapshot. message Snapshot { option (google.api.resource) = { type: "file.googleapis.com/Snapshot" @@ -588,7 +815,99 @@ message Snapshot { int64 filesystem_used_bytes = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A Cloud Filestore backup. +// CreateSnapshotRequest creates a snapshot. +message CreateSnapshotRequest { + // Required. The Filestore Instance to create the snapshots of, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Instance" + } + ]; + + // Required. The ID to use for the snapshot. + // The ID must be unique within the specified instance. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + string snapshot_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A snapshot resource + Snapshot snapshot = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// GetSnapshotRequest gets the state of a snapshot. +message GetSnapshotRequest { + // Required. The snapshot resource name, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Snapshot" + } + ]; +} + +// DeleteSnapshotRequest deletes a snapshot. +message DeleteSnapshotRequest { + // Required. The snapshot resource name, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Snapshot" + } + ]; +} + +// UpdateSnapshotRequest updates description and/or labels for a snapshot. +message UpdateSnapshotRequest { + // Required. Mask of fields to update. At least one path must be supplied in this + // field. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A snapshot resource + Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ListSnapshotsRequest lists snapshots. +message ListSnapshotsRequest { + // Required. The instance for which to retrieve snapshot information, + // in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Instance" + } + ]; + + // The maximum number of items to return. + int32 page_size = 2; + + // The next_page_token value to use if there are additional + // results to retrieve for this list request. + string page_token = 3; + + // Sort results. Supported values are "name", "name desc" or "" (unsorted). + string order_by = 4; + + // List filter. + string filter = 5; +} + +// ListSnapshotsResponse is the result of ListSnapshotsRequest. +message ListSnapshotsResponse { + // A list of snapshots in the project for the specified instance. + repeated Snapshot snapshots = 1; + + // The token you can use to retrieve the next page of results. Not returned + // if there are no more results in the list. + string next_page_token = 2; +} + +// A Filestore backup. message Backup { option (google.api.resource) = { type: "file.googleapis.com/Backup" @@ -638,18 +957,18 @@ message Backup { // this number is expected to change with backup creation/deletion. int64 storage_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The resource name of the source Cloud Filestore instance, in the format + // The resource name of the source Filestore instance, in the format // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`, // used to create this backup. string source_instance = 8 [(google.api.resource_reference) = { type: "file.googleapis.com/Instance" }]; - // Name of the file share in the source Cloud Filestore instance that the + // Name of the file share in the source Filestore instance that the // backup is created from. string source_file_share = 9; - // Output only. The service tier of the source Cloud Filestore instance that this backup + // Output only. The service tier of the source Filestore instance that this backup // is created from. Instance.Tier source_instance_tier = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -658,12 +977,15 @@ message Backup { // Output only. Reserved for future use. google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. KMS key name used for data encryption. + string kms_key_name = 13 [(google.api.field_behavior) = IMMUTABLE]; } // CreateBackupRequest creates a backup. message CreateBackupRequest { // Required. The backup's project and location, in the format - // `projects/{project_id}/locations/{location}`. In Cloud Filestore, + // `projects/{project_id}/locations/{location}`. In Filestore, // backup locations map to GCP regions, for example **us-west1**. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -721,7 +1043,7 @@ message GetBackupRequest { message ListBackupsRequest { // Required. The project and location for which to retrieve backup information, // in the format `projects/{project_id}/locations/{location}`. - // In Cloud Filestore, backup locations map to GCP regions, + // In Filestore, backup locations map to GCP regions, // for example **us-west1**. // To retrieve backup information for all locations, use "-" for the // `{location}` value. @@ -764,3 +1086,157 @@ message ListBackupsResponse { // Locations that could not be reached. repeated string unreachable = 3; } + +// A Filestore share. +message Share { + option (google.api.resource) = { + type: "file.googleapis.com/Share" + pattern: "projects/{project}/locations/{location}/instances/{instance}/shares/{share}" + }; + + // The share state. + enum State { + // State not set. + STATE_UNSPECIFIED = 0; + + // Share is being created. + CREATING = 1; + + // Share is ready for use. + READY = 3; + + // Share is being deleted. + DELETING = 4; + } + + // Output only. The resource name of the share, in the format + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The mount name of the share. Must be 63 characters or less and consist of + // uppercase or lowercase letters, numbers, and underscores. + string mount_name = 2; + + // A description of the share with 2048 characters or less. Requests with + // longer descriptions will be rejected. + string description = 3; + + // File share capacity in gigabytes (GB). Filestore defines 1 GB as + // 1024^3 bytes. Must be greater than 0. + int64 capacity_gb = 4; + + // Nfs Export Options. + // There is a limit of 10 export options per file share. + repeated NfsExportOptions nfs_export_options = 5; + + // Output only. The share state. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the share was created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Resource labels to represent user provided metadata. + map labels = 8; +} + +// CreateShareRequest creates a share. +message CreateShareRequest { + // Required. The Filestore Instance to create the share for, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Instance" + } + ]; + + // Required. The ID to use for the share. + // The ID must be unique within the specified instance. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + string share_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A share resource + Share share = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// GetShareRequest gets the state of a share. +message GetShareRequest { + // Required. The share resource name, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Share" + } + ]; +} + +// DeleteShareRequest deletes a share. +message DeleteShareRequest { + // Required. The share resource name, in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Share" + } + ]; +} + +// ListSharesRequest lists shares. +message ListSharesRequest { + // Required. The instance for which to retrieve share information, + // in the format + // `projects/{project_id}/locations/{location}/instances/{instance_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "file.googleapis.com/Instance" + } + ]; + + // The maximum number of items to return. + int32 page_size = 2; + + // The next_page_token value to use if there are additional + // results to retrieve for this list request. + string page_token = 3; + + // Sort results. Supported values are "name", "name desc" or "" (unsorted). + string order_by = 4; + + // List filter. + string filter = 5; +} + +// ListSharesResponse is the result of ListSharesRequest. +message ListSharesResponse { + // A list of shares in the project for the specified instance. + repeated Share shares = 1; + + // The token you can use to retrieve the next page of results. Not returned + // if there are no more results in the list. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// UpdateShareRequest updates the settings of a share. +message UpdateShareRequest { + // Required. A share resource. + // Only fields specified in update_mask are updated. + Share share = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask of fields to update. At least one path must be supplied in this + // field. + // The elements of the repeated paths field may only include these fields: + // + // * "description" + // * "capacity_gb" + // * "labels" + // * "nfs_export_options" + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/create/SyncCreateSetEndpoint.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/AsyncCreateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupLocationnameBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createbackup/SyncCreateBackupStringBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/AsyncCreateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java new file mode 100644 index 000000000000..52e1197484ff --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShare.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.longrunning.Operation; + +public class AsyncCreateShare { + + public static void main(String[] args) throws Exception { + asyncCreateShare(); + } + + public static void asyncCreateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.createShareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateShare_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java new file mode 100644 index 000000000000..a862eecf047c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/AsyncCreateShareLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class AsyncCreateShareLRO { + + public static void main(String[] args) throws Exception { + asyncCreateShareLRO(); + } + + public static void asyncCreateShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.createShareOperationCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateShare_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java new file mode 100644 index 000000000000..df4790cd868e --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShare.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateShare_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateShareRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncCreateShare { + + public static void main(String[] args) throws Exception { + syncCreateShare(); + } + + public static void syncCreateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateShareRequest request = + CreateShareRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setShareId("shareId2054217050") + .setShare(Share.newBuilder().build()) + .build(); + Share response = cloudFilestoreManagerClient.createShareAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateShare_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java new file mode 100644 index 000000000000..bff80f3fa576 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareInstancenameShareString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateShare_InstancenameShareString_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncCreateShareInstancenameShareString { + + public static void main(String[] args) throws Exception { + syncCreateShareInstancenameShareString(); + } + + public static void syncCreateShareInstancenameShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + Share response = cloudFilestoreManagerClient.createShareAsync(parent, share, shareId).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateShare_InstancenameShareString_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java new file mode 100644 index 000000000000..3764ebb7fdb5 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createshare/SyncCreateShareStringShareString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateShare_StringShareString_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncCreateShareStringShareString { + + public static void main(String[] args) throws Exception { + syncCreateShareStringShareString(); + } + + public static void syncCreateShareStringShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + Share share = Share.newBuilder().build(); + String shareId = "shareId2054217050"; + Share response = cloudFilestoreManagerClient.createShareAsync(parent, share, shareId).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateShare_StringShareString_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java new file mode 100644 index 000000000000..068682cdfa28 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshot.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.longrunning.Operation; + +public class AsyncCreateSnapshot { + + public static void main(String[] args) throws Exception { + asyncCreateSnapshot(); + } + + public static void asyncCreateSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSnapshotId("snapshotId-1113817601") + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.createSnapshotCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java new file mode 100644 index 000000000000..e834f4350f40 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/AsyncCreateSnapshotLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class AsyncCreateSnapshotLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSnapshotLRO(); + } + + public static void asyncCreateSnapshotLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSnapshotId("snapshotId-1113817601") + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.createSnapshotOperationCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java new file mode 100644 index 000000000000..22ee6c9ab889 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshot.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.CreateSnapshotRequest; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncCreateSnapshot { + + public static void main(String[] args) throws Exception { + syncCreateSnapshot(); + } + + public static void syncCreateSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSnapshotId("snapshotId-1113817601") + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + Snapshot response = cloudFilestoreManagerClient.createSnapshotAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java new file mode 100644 index 000000000000..6526bdd0ce36 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotInstancenameSnapshotString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_InstancenameSnapshotString_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncCreateSnapshotInstancenameSnapshotString { + + public static void main(String[] args) throws Exception { + syncCreateSnapshotInstancenameSnapshotString(); + } + + public static void syncCreateSnapshotInstancenameSnapshotString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + Snapshot response = + cloudFilestoreManagerClient.createSnapshotAsync(parent, snapshot, snapshotId).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_InstancenameSnapshotString_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java new file mode 100644 index 000000000000..00cdb400bbc7 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/createsnapshot/SyncCreateSnapshotStringSnapshotString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_StringSnapshotString_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncCreateSnapshotStringSnapshotString { + + public static void main(String[] args) throws Exception { + syncCreateSnapshotStringSnapshotString(); + } + + public static void syncCreateSnapshotStringSnapshotString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + Snapshot snapshot = Snapshot.newBuilder().build(); + String snapshotId = "snapshotId-1113817601"; + Snapshot response = + cloudFilestoreManagerClient.createSnapshotAsync(parent, snapshot, snapshotId).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_StringSnapshotString_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/AsyncDeleteBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletebackup/SyncDeleteBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java similarity index 98% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java index 1ef8e4fffd70..e2f1b3e96ceb 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstance.java @@ -40,6 +40,7 @@ public static void asyncDeleteInstance() throws Exception { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setForce(true) .build(); ApiFuture future = cloudFilestoreManagerClient.deleteInstanceCallable().futureCall(request); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 98% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java index 4dfb99a86039..228ff88c39c1 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/AsyncDeleteInstanceLRO.java @@ -41,6 +41,7 @@ public static void asyncDeleteInstanceLRO() throws Exception { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setForce(true) .build(); OperationFuture future = cloudFilestoreManagerClient.deleteInstanceOperationCallable().futureCall(request); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java similarity index 98% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java index 8b09f2e70569..10ed7a3d55b1 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstance.java @@ -39,6 +39,7 @@ public static void syncDeleteInstance() throws Exception { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setForce(true) .build(); cloudFilestoreManagerClient.deleteInstanceAsync(request).get(); } diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java new file mode 100644 index 000000000000..38d78d2044ca --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShare.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.ShareName; +import com.google.longrunning.Operation; + +public class AsyncDeleteShare { + + public static void main(String[] args) throws Exception { + asyncDeleteShare(); + } + + public static void asyncDeleteShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.deleteShareCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteShare_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java new file mode 100644 index 000000000000..bc35b35a2f4a --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/AsyncDeleteShareLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.ShareName; +import com.google.protobuf.Empty; + +public class AsyncDeleteShareLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteShareLRO(); + } + + public static void asyncDeleteShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.deleteShareOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteShare_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java new file mode 100644 index 000000000000..4d89e6181235 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShare.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteShare_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteShareRequest; +import com.google.cloud.filestore.v1beta1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShare { + + public static void main(String[] args) throws Exception { + syncDeleteShare(); + } + + public static void syncDeleteShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteShareRequest request = + DeleteShareRequest.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .build(); + cloudFilestoreManagerClient.deleteShareAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteShare_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java new file mode 100644 index 000000000000..14326cd20d4f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareSharename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteShare_Sharename_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShareSharename { + + public static void main(String[] args) throws Exception { + syncDeleteShareSharename(); + } + + public static void syncDeleteShareSharename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + cloudFilestoreManagerClient.deleteShareAsync(name).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteShare_Sharename_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java new file mode 100644 index 000000000000..b17ad8e436e2 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deleteshare/SyncDeleteShareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteShare_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.ShareName; +import com.google.protobuf.Empty; + +public class SyncDeleteShareString { + + public static void main(String[] args) throws Exception { + syncDeleteShareString(); + } + + public static void syncDeleteShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString(); + cloudFilestoreManagerClient.deleteShareAsync(name).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteShare_String_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java new file mode 100644 index 000000000000..d5ec8e356fc8 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshot.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; +import com.google.cloud.filestore.v1beta1.SnapshotName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSnapshot { + + public static void main(String[] args) throws Exception { + asyncDeleteSnapshot(); + } + + public static void asyncDeleteSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.deleteSnapshotCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java new file mode 100644 index 000000000000..7a9d8f3ce65b --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/AsyncDeleteSnapshotLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; +import com.google.cloud.filestore.v1beta1.SnapshotName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSnapshotLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSnapshotLRO(); + } + + public static void asyncDeleteSnapshotLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.deleteSnapshotOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java new file mode 100644 index 000000000000..ce1654943624 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshot.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.DeleteSnapshotRequest; +import com.google.cloud.filestore.v1beta1.SnapshotName; +import com.google.protobuf.Empty; + +public class SyncDeleteSnapshot { + + public static void main(String[] args) throws Exception { + syncDeleteSnapshot(); + } + + public static void syncDeleteSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) + .build(); + cloudFilestoreManagerClient.deleteSnapshotAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java new file mode 100644 index 000000000000..c40de0057191 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotSnapshotname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_Snapshotname_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.SnapshotName; +import com.google.protobuf.Empty; + +public class SyncDeleteSnapshotSnapshotname { + + public static void main(String[] args) throws Exception { + syncDeleteSnapshotSnapshotname(); + } + + public static void syncDeleteSnapshotSnapshotname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + cloudFilestoreManagerClient.deleteSnapshotAsync(name).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_Snapshotname_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java new file mode 100644 index 000000000000..487efa6d510e --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/deletesnapshot/SyncDeleteSnapshotString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.SnapshotName; +import com.google.protobuf.Empty; + +public class SyncDeleteSnapshotString { + + public static void main(String[] args) throws Exception { + syncDeleteSnapshotString(); + } + + public static void syncDeleteSnapshotString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String name = + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString(); + cloudFilestoreManagerClient.deleteSnapshotAsync(name).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_String_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/AsyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupBackupname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getbackup/SyncGetBackupString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/AsyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceInstancename.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java new file mode 100644 index 000000000000..9fcaa61af89f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/AsyncGetShare.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.ShareName; + +public class AsyncGetShare { + + public static void main(String[] args) throws Exception { + asyncGetShare(); + } + + public static void asyncGetShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + GetShareRequest request = + GetShareRequest.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .build(); + ApiFuture future = cloudFilestoreManagerClient.getShareCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetShare_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java new file mode 100644 index 000000000000..16cc52589186 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShare.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetShare_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.GetShareRequest; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.ShareName; + +public class SyncGetShare { + + public static void main(String[] args) throws Exception { + syncGetShare(); + } + + public static void syncGetShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + GetShareRequest request = + GetShareRequest.newBuilder() + .setName(ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString()) + .build(); + Share response = cloudFilestoreManagerClient.getShare(request); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetShare_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java new file mode 100644 index 000000000000..1b3ccd13c842 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareSharename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetShare_Sharename_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.ShareName; + +public class SyncGetShareSharename { + + public static void main(String[] args) throws Exception { + syncGetShareSharename(); + } + + public static void syncGetShareSharename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ShareName name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]"); + Share response = cloudFilestoreManagerClient.getShare(name); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetShare_Sharename_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java new file mode 100644 index 000000000000..a3de992b84b0 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getshare/SyncGetShareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetShare_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.ShareName; + +public class SyncGetShareString { + + public static void main(String[] args) throws Exception { + syncGetShareString(); + } + + public static void syncGetShareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String name = ShareName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SHARE]").toString(); + Share response = cloudFilestoreManagerClient.getShare(name); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetShare_String_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java new file mode 100644 index 000000000000..ddbb51b55ba5 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/AsyncGetSnapshot.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.SnapshotName; + +public class AsyncGetSnapshot { + + public static void main(String[] args) throws Exception { + asyncGetSnapshot(); + } + + public static void asyncGetSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.getSnapshotCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java new file mode 100644 index 000000000000..6e272616bb1c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshot.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.GetSnapshotRequest; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.SnapshotName; + +public class SyncGetSnapshot { + + public static void main(String[] args) throws Exception { + syncGetSnapshot(); + } + + public static void syncGetSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setName( + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString()) + .build(); + Snapshot response = cloudFilestoreManagerClient.getSnapshot(request); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java new file mode 100644 index 000000000000..fa8bacb22fb1 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotSnapshotname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_Snapshotname_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.SnapshotName; + +public class SyncGetSnapshotSnapshotname { + + public static void main(String[] args) throws Exception { + syncGetSnapshotSnapshotname(); + } + + public static void syncGetSnapshotSnapshotname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + SnapshotName name = SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]"); + Snapshot response = cloudFilestoreManagerClient.getSnapshot(name); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_Snapshotname_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java new file mode 100644 index 000000000000..5427d856564c --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/getsnapshot/SyncGetSnapshotString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.SnapshotName; + +public class SyncGetSnapshotString { + + public static void main(String[] args) throws Exception { + syncGetSnapshotString(); + } + + public static void syncGetSnapshotString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String name = + SnapshotName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[SNAPSHOT]").toString(); + Snapshot response = cloudFilestoreManagerClient.getSnapshot(name); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_String_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/AsyncListBackupsPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackups.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listbackups/SyncListBackupsString.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/AsyncListInstancesPaged.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstances.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesLocationname.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java new file mode 100644 index 000000000000..8c2b69480469 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListShares.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.Share; + +public class AsyncListShares { + + public static void main(String[] args) throws Exception { + asyncListShares(); + } + + public static void asyncListShares() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + cloudFilestoreManagerClient.listSharesPagedCallable().futureCall(request); + // Do something. + for (Share element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListShares_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java new file mode 100644 index 000000000000..85bdcabe5c08 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/AsyncListSharesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_Paged_async] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.ListSharesResponse; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.common.base.Strings; + +public class AsyncListSharesPaged { + + public static void main(String[] args) throws Exception { + asyncListSharesPaged(); + } + + public static void asyncListSharesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListSharesResponse response = + cloudFilestoreManagerClient.listSharesCallable().call(request); + for (Share element : response.getSharesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListShares_Paged_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java new file mode 100644 index 000000000000..e43e36f65243 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListShares.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSharesRequest; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncListShares { + + public static void main(String[] args) throws Exception { + syncListShares(); + } + + public static void syncListShares() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSharesRequest request = + ListSharesRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (Share element : cloudFilestoreManagerClient.listShares(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListShares_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java new file mode 100644 index 000000000000..8af882feca79 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesInstancename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_Instancename_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncListSharesInstancename { + + public static void main(String[] args) throws Exception { + syncListSharesInstancename(); + } + + public static void syncListSharesInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (Share element : cloudFilestoreManagerClient.listShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListShares_Instancename_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java new file mode 100644 index 000000000000..73014024d1f7 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listshares/SyncListSharesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Share; + +public class SyncListSharesString { + + public static void main(String[] args) throws Exception { + syncListSharesString(); + } + + public static void syncListSharesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (Share element : cloudFilestoreManagerClient.listShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListShares_String_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java new file mode 100644 index 000000000000..6b9250c5b567 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshots.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class AsyncListSnapshots { + + public static void main(String[] args) throws Exception { + asyncListSnapshots(); + } + + public static void asyncListSnapshots() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + cloudFilestoreManagerClient.listSnapshotsPagedCallable().futureCall(request); + // Do something. + for (Snapshot element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java new file mode 100644 index 000000000000..eefd08c7d51f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/AsyncListSnapshotsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_Paged_async] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.ListSnapshotsResponse; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.common.base.Strings; + +public class AsyncListSnapshotsPaged { + + public static void main(String[] args) throws Exception { + asyncListSnapshotsPaged(); + } + + public static void asyncListSnapshotsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListSnapshotsResponse response = + cloudFilestoreManagerClient.listSnapshotsCallable().call(request); + for (Snapshot element : response.getSnapshotsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_Paged_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java new file mode 100644 index 000000000000..a7d58c23e39a --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshots.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.ListSnapshotsRequest; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncListSnapshots { + + public static void main(String[] args) throws Exception { + syncListSnapshots(); + } + + public static void syncListSnapshots() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java new file mode 100644 index 000000000000..35c14ea538ce --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsInstancename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_Instancename_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncListSnapshotsInstancename { + + public static void main(String[] args) throws Exception { + syncListSnapshotsInstancename(); + } + + public static void syncListSnapshotsInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_Instancename_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java new file mode 100644 index 000000000000..126232d512f9 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/listsnapshots/SyncListSnapshotsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_String_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.Snapshot; + +public class SyncListSnapshotsString { + + public static void main(String[] args) throws Exception { + syncListSnapshotsString(); + } + + public static void syncListSnapshotsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (Snapshot element : cloudFilestoreManagerClient.listSnapshots(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_String_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/AsyncRestoreInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/restoreinstance/SyncRestoreInstance.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java new file mode 100644 index 000000000000..32129b57f3a6 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_RevertInstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncRevertInstance { + + public static void main(String[] args) throws Exception { + asyncRevertInstance(); + } + + public static void asyncRevertInstance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + ApiFuture future = + cloudFilestoreManagerClient.revertInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_RevertInstance_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java new file mode 100644 index 000000000000..2ff04350485f --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_RevertInstance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Instance; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; + +public class AsyncRevertInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncRevertInstanceLRO(); + } + + public static void asyncRevertInstanceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + OperationFuture future = + cloudFilestoreManagerClient.revertInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_RevertInstance_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java new file mode 100644 index 000000000000..7caff794ed04 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_RevertInstance_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Instance; +import com.google.cloud.filestore.v1beta1.InstanceName; +import com.google.cloud.filestore.v1beta1.RevertInstanceRequest; + +public class SyncRevertInstance { + + public static void main(String[] args) throws Exception { + syncRevertInstance(); + } + + public static void syncRevertInstance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + RevertInstanceRequest request = + RevertInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setTargetSnapshotId("targetSnapshotId-2099459472") + .build(); + Instance response = cloudFilestoreManagerClient.revertInstanceAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_RevertInstance_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/AsyncUpdateBackupLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackup.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatebackup/SyncUpdateBackupBackupFieldmask.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java new file mode 100644 index 000000000000..c3b8d827d376 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShare.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateShare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateShare { + + public static void main(String[] args) throws Exception { + asyncUpdateShare(); + } + + public static void asyncUpdateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateShareRequest request = + UpdateShareRequest.newBuilder() + .setShare(Share.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.updateShareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateShare_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java new file mode 100644 index 000000000000..0b7f4d8b0a56 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/AsyncUpdateShareLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateShare_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateShareLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateShareLRO(); + } + + public static void asyncUpdateShareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateShareRequest request = + UpdateShareRequest.newBuilder() + .setShare(Share.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.updateShareOperationCallable().futureCall(request); + // Do something. + Share response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateShare_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java new file mode 100644 index 000000000000..50280a11ab94 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShare.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateShare_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.cloud.filestore.v1beta1.UpdateShareRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateShare { + + public static void main(String[] args) throws Exception { + syncUpdateShare(); + } + + public static void syncUpdateShare() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateShareRequest request = + UpdateShareRequest.newBuilder() + .setShare(Share.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Share response = cloudFilestoreManagerClient.updateShareAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateShare_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java new file mode 100644 index 000000000000..90e84eba75d7 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updateshare/SyncUpdateShareShareFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateShare_ShareFieldmask_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Share; +import com.google.protobuf.FieldMask; + +public class SyncUpdateShareShareFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateShareShareFieldmask(); + } + + public static void syncUpdateShareShareFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + Share share = Share.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Share response = cloudFilestoreManagerClient.updateShareAsync(share, updateMask).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateShare_ShareFieldmask_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java new file mode 100644 index 000000000000..cf59de062098 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshot.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSnapshot { + + public static void main(String[] args) throws Exception { + asyncUpdateSnapshot(); + } + + public static void asyncUpdateSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + ApiFuture future = + cloudFilestoreManagerClient.updateSnapshotCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java new file mode 100644 index 000000000000..d6333b076c0e --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/AsyncUpdateSnapshotLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSnapshotLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSnapshotLRO(); + } + + public static void asyncUpdateSnapshotLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + OperationFuture future = + cloudFilestoreManagerClient.updateSnapshotOperationCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_LRO_async] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java new file mode 100644 index 000000000000..eb9eed6104b1 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshot.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.cloud.filestore.v1beta1.UpdateSnapshotRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSnapshot { + + public static void main(String[] args) throws Exception { + syncUpdateSnapshot(); + } + + public static void syncUpdateSnapshot() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSnapshot(Snapshot.newBuilder().build()) + .build(); + Snapshot response = cloudFilestoreManagerClient.updateSnapshotAsync(request).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_sync] diff --git a/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java new file mode 100644 index 000000000000..5fb1021a2d50 --- /dev/null +++ b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanager/updatesnapshot/SyncUpdateSnapshotSnapshotFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v1beta1.samples; + +// [START file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_SnapshotFieldmask_sync] +import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1beta1.Snapshot; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSnapshotSnapshotFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSnapshotSnapshotFieldmask(); + } + + public static void syncUpdateSnapshotSnapshotFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudFilestoreManagerClient cloudFilestoreManagerClient = + CloudFilestoreManagerClient.create()) { + Snapshot snapshot = Snapshot.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Snapshot response = + cloudFilestoreManagerClient.updateSnapshotAsync(snapshot, updateMask).get(); + } + } +} +// [END file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_SnapshotFieldmask_sync] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/java-filestore/v1beta1/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java