From 7d1f4fe6c044fd7328c5fdd78ba16c166e801e00 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:02:16 +0000 Subject: [PATCH] feat: [file] Added REGIONAL tier support in the v1beta1 API (#10058) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 582440606 Source-Link: https://togithub.com/googleapis/googleapis/commit/2428362137f0833a0d98c797b1b0a4a0f940af62 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/9b508258fbc5e8a77600aa73e88cbfec22319d82 Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjliNTA4MjU4ZmJjNWU4YTc3NjAwYWE3M2U4OGNiZmVjMjIzMTlkODIifQ== BEGIN_NESTED_COMMIT feat: [file] Added REGIONAL tier support in the v1 API PiperOrigin-RevId: 582440290 Source-Link: https://togithub.com/googleapis/googleapis/commit/d30f933277432525fbcff1a33ebede1baa53f684 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/7872d2e759a679b8b35f93991abb6120102c9095 Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6Ijc4NzJkMmU3NTlhNjc5YjhiMzVmOTM5OTFhYmI2MTIwMTAyYzkwOTUifQ== END_NESTED_COMMIT --- java-filestore/README.md | 4 +- .../v1/CloudFilestoreManagerClient.java | 92 ++ .../v1/CloudFilestoreManagerSettings.java | 23 + .../cloud/filestore/v1/gapic_metadata.json | 3 + .../v1/stub/CloudFilestoreManagerStub.java | 10 + .../CloudFilestoreManagerStubSettings.java | 75 +- .../stub/GrpcCloudFilestoreManagerStub.java | 44 + .../HttpJsonCloudFilestoreManagerStub.java | 76 ++ .../reflect-config.json | 18 + ...oudFilestoreManagerClientHttpJsonTest.java | 83 ++ .../v1/CloudFilestoreManagerClientTest.java | 77 ++ .../v1/MockCloudFilestoreManagerImpl.java | 21 + ...oudFilestoreManagerClientHttpJsonTest.java | 16 + .../CloudFilestoreManagerClientTest.java | 12 + .../v1/CloudFilestoreManagerGrpc.java | 134 ++- .../com/google/cloud/filestore/v1/Backup.java | 127 ++- .../cloud/filestore/v1/BackupOrBuilder.java | 13 + .../v1/CloudFilestoreServiceProto.java | 461 +++++----- .../cloud/filestore/v1/FileShareConfig.java | 35 +- .../v1/FileShareConfigOrBuilder.java | 10 +- .../google/cloud/filestore/v1/Instance.java | 187 +++- .../cloud/filestore/v1/InstanceOrBuilder.java | 13 + .../filestore/v1/RevertInstanceRequest.java | 850 ++++++++++++++++++ .../v1/RevertInstanceRequestOrBuilder.java | 87 ++ .../v1/cloud_filestore_service.proto | 56 +- .../cloud/filestore/v1beta1/Backup.java | 103 ++- .../filestore/v1beta1/BackupOrBuilder.java | 13 + .../v1beta1/CloudFilestoreServiceProto.java | 587 ++++++------ .../filestore/v1beta1/FileShareConfig.java | 49 +- .../v1beta1/FileShareConfigOrBuilder.java | 14 +- .../cloud/filestore/v1beta1/Instance.java | 209 ++++- .../filestore/v1beta1/InstanceOrBuilder.java | 13 + .../v1beta1/RestoreInstanceRequest.java | 18 +- .../RestoreInstanceRequestOrBuilder.java | 6 +- .../v1beta1/RevertInstanceRequest.java | 42 +- .../RevertInstanceRequestOrBuilder.java | 12 +- .../v1beta1/cloud_filestore_service.proto | 23 +- .../revertinstance/AsyncRevertInstance.java | 52 ++ .../AsyncRevertInstanceLRO.java | 53 ++ .../revertinstance/SyncRevertInstance.java | 48 + 40 files changed, 3093 insertions(+), 676 deletions(-) create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequest.java create mode 100644 java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequestOrBuilder.java create mode 100644 java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java create mode 100644 java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java create mode 100644 java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java diff --git a/java-filestore/README.md b/java-filestore/README.md index 33a53cd1208d..c723efb0afca 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.27.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java index 6b6a1c56d62f..333eb6b5dc02 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java @@ -955,6 +955,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. diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index 0d1ff5168255..74a8aec86f79 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -129,6 +129,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(); @@ -393,6 +405,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(); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json index 34fa2a27528a..652c9898540d 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json @@ -49,6 +49,9 @@ "RestoreInstance": { "methods": ["restoreInstanceAsync", "restoreInstanceOperationCallable", "restoreInstanceCallable"] }, + "RevertInstance": { + "methods": ["revertInstanceAsync", "revertInstanceOperationCallable", "revertInstanceCallable"] + }, "UpdateBackup": { "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] }, diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java index b3e5f7af2ef0..2cbd38cf3035 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java @@ -42,6 +42,7 @@ import com.google.cloud.filestore.v1.ListSnapshotsRequest; import com.google.cloud.filestore.v1.ListSnapshotsResponse; import com.google.cloud.filestore.v1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1.RevertInstanceRequest; import com.google.cloud.filestore.v1.Snapshot; import com.google.cloud.filestore.v1.UpdateBackupRequest; import com.google.cloud.filestore.v1.UpdateInstanceRequest; @@ -108,6 +109,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()"); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index 6abc3c080963..fb55b965a001 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java @@ -68,6 +68,7 @@ import com.google.cloud.filestore.v1.ListSnapshotsRequest; import com.google.cloud.filestore.v1.ListSnapshotsResponse; import com.google.cloud.filestore.v1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1.RevertInstanceRequest; import com.google.cloud.filestore.v1.Snapshot; import com.google.cloud.filestore.v1.UpdateBackupRequest; import com.google.cloud.filestore.v1.UpdateInstanceRequest; @@ -141,6 +142,9 @@ 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; @@ -373,6 +377,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; @@ -586,6 +601,8 @@ 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(); @@ -626,6 +643,10 @@ 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 @@ -672,9 +693,9 @@ 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())); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -710,6 +731,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)) @@ -718,8 +741,6 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(600000L)) .build(); definitions.put("no_retry_3_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -738,6 +759,8 @@ 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); @@ -764,6 +787,7 @@ protected Builder(ClientContext clientContext) { createInstanceSettings, updateInstanceSettings, restoreInstanceSettings, + revertInstanceSettings, deleteInstanceSettings, listSnapshotsSettings, getSnapshotSettings, @@ -789,6 +813,8 @@ 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(); @@ -815,6 +841,7 @@ protected Builder(CloudFilestoreManagerStubSettings settings) { createInstanceSettings, updateInstanceSettings, restoreInstanceSettings, + revertInstanceSettings, deleteInstanceSettings, listSnapshotsSettings, getSnapshotSettings, @@ -880,6 +907,11 @@ 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")) @@ -1007,6 +1039,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .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( @@ -1244,6 +1300,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; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java index 1b8876381fd8..4542c5d0b983 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/GrpcCloudFilestoreManagerStub.java @@ -47,6 +47,7 @@ import com.google.cloud.filestore.v1.ListSnapshotsRequest; import com.google.cloud.filestore.v1.ListSnapshotsResponse; import com.google.cloud.filestore.v1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1.RevertInstanceRequest; import com.google.cloud.filestore.v1.Snapshot; import com.google.cloud.filestore.v1.UpdateBackupRequest; import com.google.cloud.filestore.v1.UpdateInstanceRequest; @@ -117,6 +118,16 @@ 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.v1.CloudFilestoreManager/RevertInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(RevertInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -234,6 +245,9 @@ 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; @@ -358,6 +372,16 @@ protected GrpcCloudFilestoreManagerStub( return builder.build(); }) .build(); + GrpcCallSettings revertInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(revertInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -505,6 +529,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); @@ -644,6 +677,17 @@ public UnaryCallable restoreInstanceCallable( return restoreInstanceOperationCallable; } + @Override + public UnaryCallable revertInstanceCallable() { + return revertInstanceCallable; + } + + @Override + public OperationCallable + revertInstanceOperationCallable() { + return revertInstanceOperationCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java index 2af4d405b07d..ebaad48648ad 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -56,6 +56,7 @@ import com.google.cloud.filestore.v1.ListSnapshotsRequest; import com.google.cloud.filestore.v1.ListSnapshotsResponse; import com.google.cloud.filestore.v1.RestoreInstanceRequest; +import com.google.cloud.filestore.v1.RevertInstanceRequest; import com.google.cloud.filestore.v1.Snapshot; import com.google.cloud.filestore.v1.UpdateBackupRequest; import com.google.cloud.filestore.v1.UpdateInstanceRequest; @@ -285,6 +286,46 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + revertInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.filestore.v1.CloudFilestoreManager/RevertInstance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{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(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .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() @@ -719,6 +760,9 @@ 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; @@ -877,6 +921,17 @@ protected HttpJsonCloudFilestoreManagerStub( return builder.build(); }) .build(); + HttpJsonCallSettings revertInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(revertInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -1036,6 +1091,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); @@ -1130,6 +1194,7 @@ 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); @@ -1197,6 +1262,17 @@ public UnaryCallable restoreInstanceCallable( return restoreInstanceOperationCallable; } + @Override + public UnaryCallable revertInstanceCallable() { + return revertInstanceCallable; + } + + @Override + public OperationCallable + revertInstanceOperationCallable() { + return revertInstanceOperationCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json index 5386e94da701..4fa499eb1d25 100644 --- a/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json +++ b/java-filestore/google-cloud-filestore/src/main/resources/META-INF/native-image/com.google.cloud.filestore.v1/reflect-config.json @@ -845,6 +845,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.filestore.v1.RevertInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.filestore.v1.RevertInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.filestore.v1.Snapshot", "queryAllDeclaredConstructors": true, diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java index b95c6286e767..7459b5f0e273 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java +++ b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientHttpJsonTest.java @@ -199,6 +199,7 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -253,6 +254,7 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -307,6 +309,7 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -370,6 +373,7 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -433,6 +437,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -455,6 +460,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -497,6 +503,7 @@ public void updateInstanceExceptionTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -520,6 +527,7 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -574,6 +582,74 @@ 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()) + .setSatisfiesPzi(true) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .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(); @@ -1258,6 +1334,7 @@ public void getBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); mockService.addResponse(expectedResponse); @@ -1312,6 +1389,7 @@ public void getBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); mockService.addResponse(expectedResponse); @@ -1366,6 +1444,7 @@ public void createBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = @@ -1429,6 +1508,7 @@ public void createBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = @@ -1582,6 +1662,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = @@ -1604,6 +1685,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1647,6 +1729,7 @@ public void updateBackupExceptionTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java index 477672146763..9f0878b9a3f8 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java +++ b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClientTest.java @@ -192,6 +192,7 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -240,6 +241,7 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -288,6 +290,7 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -350,6 +353,7 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -412,6 +416,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -471,6 +476,7 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .build(); @@ -524,6 +530,72 @@ 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()) + .setSatisfiesPzi(true) + .setKmsKeyName("kmsKeyName412586233") + .addAllSuspensionReasons(new ArrayList()) + .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(); @@ -1136,6 +1208,7 @@ public void getBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -1184,6 +1257,7 @@ public void getBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -1232,6 +1306,7 @@ public void createBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = @@ -1294,6 +1369,7 @@ public void createBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = @@ -1440,6 +1516,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKey("kmsKey-1127483058") .build(); Operation resultOperation = diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java index 62a19a9cf9f7..c65e6a682be4 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/MockCloudFilestoreManagerImpl.java +++ b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1/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) { diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java index 0f9d4623e6ce..8ce35577eb77 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java +++ b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientHttpJsonTest.java @@ -200,6 +200,7 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -260,6 +261,7 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -320,6 +322,7 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -389,6 +392,7 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -458,6 +462,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -486,6 +491,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -534,6 +540,7 @@ public void updateInstanceExceptionTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -563,6 +570,7 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -636,6 +644,7 @@ public void revertInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -1380,6 +1389,7 @@ public void getBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); mockService.addResponse(expectedResponse); @@ -1434,6 +1444,7 @@ public void getBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); mockService.addResponse(expectedResponse); @@ -1488,6 +1499,7 @@ public void createBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = @@ -1551,6 +1563,7 @@ public void createBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = @@ -1704,6 +1717,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = @@ -1726,6 +1740,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1769,6 +1784,7 @@ public void updateBackupExceptionTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java index e3a09fae463a..48253ceb8e54 100644 --- a/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java +++ b/java-filestore/google-cloud-filestore/src/test/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClientTest.java @@ -193,6 +193,7 @@ public void getInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -247,6 +248,7 @@ public void getInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -301,6 +303,7 @@ public void createInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -369,6 +372,7 @@ public void createInstanceTest2() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -437,6 +441,7 @@ public void updateInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -502,6 +507,7 @@ public void restoreInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -575,6 +581,7 @@ public void revertInstanceTest() throws Exception { .addAllNetworks(new ArrayList()) .setEtag("etag3123477") .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .addAllSuspensionReasons(new ArrayList()) .setMaxCapacityGb(220559397) @@ -1245,6 +1252,7 @@ public void getBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -1293,6 +1301,7 @@ public void getBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); mockCloudFilestoreManager.addResponse(expectedResponse); @@ -1341,6 +1350,7 @@ public void createBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = @@ -1403,6 +1413,7 @@ public void createBackupTest2() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = @@ -1549,6 +1560,7 @@ public void updateBackupTest() throws Exception { .setSourceFileShare("sourceFileShare-646832664") .setDownloadBytes(971924980) .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .setKmsKeyName("kmsKeyName412586233") .build(); Operation resultOperation = 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 index 2b391f4cce76..3703ef2f8e0f 100644 --- 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 @@ -272,6 +272,49 @@ private CloudFilestoreManagerGrpc() {} return getRestoreInstanceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> + getRevertInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevertInstance", + requestType = com.google.cloud.filestore.v1.RevertInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> + getRevertInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.filestore.v1.RevertInstanceRequest, com.google.longrunning.Operation> + getRevertInstanceMethod; + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + synchronized (CloudFilestoreManagerGrpc.class) { + if ((getRevertInstanceMethod = CloudFilestoreManagerGrpc.getRevertInstanceMethod) == null) { + CloudFilestoreManagerGrpc.getRevertInstanceMethod = + getRevertInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevertInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.filestore.v1.RevertInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFilestoreManagerMethodDescriptorSupplier("RevertInstance")) + .build(); + } + } + } + return getRevertInstanceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.filestore.v1.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod; @@ -896,6 +939,20 @@ default void restoreInstance( getRestoreInstanceMethod(), responseObserver); } + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + default void revertInstance( + com.google.cloud.filestore.v1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevertInstanceMethod(), responseObserver); + } + /** * * @@ -1207,6 +1264,22 @@ public void restoreInstance( responseObserver); } + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public void revertInstance( + com.google.cloud.filestore.v1.RevertInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1493,6 +1566,19 @@ public com.google.longrunning.Operation restoreInstance( getChannel(), getRestoreInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.longrunning.Operation revertInstance( + com.google.cloud.filestore.v1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevertInstanceMethod(), getCallOptions(), request); + } + /** * * @@ -1749,6 +1835,19 @@ protected CloudFilestoreManagerFutureStub build( getChannel().newCall(getRestoreInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Revert an existing instance's file system to a specified snapshot.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + revertInstance(com.google.cloud.filestore.v1.RevertInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevertInstanceMethod(), getCallOptions()), request); + } + /** * * @@ -1903,17 +2002,18 @@ protected CloudFilestoreManagerFutureStub build( 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_SNAPSHOTS = 6; - private static final int METHODID_GET_SNAPSHOT = 7; - private static final int METHODID_CREATE_SNAPSHOT = 8; - private static final int METHODID_DELETE_SNAPSHOT = 9; - private static final int METHODID_UPDATE_SNAPSHOT = 10; - private static final int METHODID_LIST_BACKUPS = 11; - private static final int METHODID_GET_BACKUP = 12; - private static final int METHODID_CREATE_BACKUP = 13; - private static final int METHODID_DELETE_BACKUP = 14; - private static final int METHODID_UPDATE_BACKUP = 15; + private static final int METHODID_REVERT_INSTANCE = 5; + private static final int METHODID_DELETE_INSTANCE = 6; + private static final int METHODID_LIST_SNAPSHOTS = 7; + private static final int METHODID_GET_SNAPSHOT = 8; + private static final int METHODID_CREATE_SNAPSHOT = 9; + private static final int METHODID_DELETE_SNAPSHOT = 10; + private static final int METHODID_UPDATE_SNAPSHOT = 11; + private static final int METHODID_LIST_BACKUPS = 12; + private static final int METHODID_GET_BACKUP = 13; + private static final int METHODID_CREATE_BACKUP = 14; + private static final int METHODID_DELETE_BACKUP = 15; + private static final int METHODID_UPDATE_BACKUP = 16; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1959,6 +2059,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.filestore.v1.RestoreInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_REVERT_INSTANCE: + serviceImpl.revertInstance( + (com.google.cloud.filestore.v1.RevertInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_INSTANCE: serviceImpl.deleteInstance( (com.google.cloud.filestore.v1.DeleteInstanceRequest) request, @@ -2066,6 +2171,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.filestore.v1.RestoreInstanceRequest, com.google.longrunning.Operation>(service, METHODID_RESTORE_INSTANCE))) + .addMethod( + getRevertInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.filestore.v1.RevertInstanceRequest, + com.google.longrunning.Operation>(service, METHODID_REVERT_INSTANCE))) .addMethod( getDeleteInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2190,6 +2301,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateInstanceMethod()) .addMethod(getUpdateInstanceMethod()) .addMethod(getRestoreInstanceMethod()) + .addMethod(getRevertInstanceMethod()) .addMethod(getDeleteInstanceMethod()) .addMethod(getListSnapshotsMethod()) .addMethod(getGetSnapshotMethod()) diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java index ed53f8e96c1b..cf6ee9970e95 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java @@ -140,6 +140,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ DELETING(4), + /** + * + * + *
+     * Backup is not valid and cannot be used for creating new instances or
+     * restoring existing instances.
+     * 
+ * + * INVALID = 5; + */ + INVALID(5), UNRECOGNIZED(-1), ; @@ -194,6 +205,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * Backup is not valid and cannot be used for creating new instances or
+     * restoring existing instances.
+     * 
+ * + * INVALID = 5; + */ + public static final int INVALID_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -229,6 +251,8 @@ public static State forNumber(int value) { return READY; case 4: return DELETING; + case 5: + return INVALID; default: return null; } @@ -840,6 +864,24 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { : satisfiesPzs_; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 14; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + public static final int KMS_KEY_FIELD_NUMBER = 13; @SuppressWarnings("serial") @@ -944,6 +986,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kmsKey_); } + if (satisfiesPzi_ != false) { + output.writeBool(14, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1000,6 +1045,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKey_); } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1033,6 +1081,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getKmsKey().equals(other.getKmsKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1075,6 +1124,8 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1255,6 +1306,7 @@ public Builder clear() { satisfiesPzsBuilder_.dispose(); satisfiesPzsBuilder_ = null; } + satisfiesPzi_ = false; kmsKey_ = ""; return this; } @@ -1330,6 +1382,9 @@ private void buildPartial0(com.google.cloud.filestore.v1.Backup result) { satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.kmsKey_ = kmsKey_; } } @@ -1422,9 +1477,12 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Backup other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1534,9 +1592,15 @@ public Builder mergeFrom( case 106: { kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 + case 112: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2943,6 +3007,59 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return satisfiesPzsBuilder_; } + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00001000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + private java.lang.Object kmsKey_ = ""; /** * @@ -3005,7 +3122,7 @@ public Builder setKmsKey(java.lang.String value) { throw new NullPointerException(); } kmsKey_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3022,7 +3139,7 @@ public Builder setKmsKey(java.lang.String value) { */ public Builder clearKmsKey() { kmsKey_ = getDefaultInstance().getKmsKey(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -3044,7 +3161,7 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKey_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java index d51c282f6ab8..f9b1a6770c02 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java @@ -372,6 +372,19 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + /** * * 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 index 0e279ec09e18..30905bd01502 100644 --- 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 @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_RevertInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_filestore_v1_RevertInstanceRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -182,7 +186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY" + "\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQUA" + "SH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH\020" - + "\001\022\017\n\013ROOT_SQUASH\020\002\"\346\010\n\010Instance\022\022\n\004name\030" + + "\001\022\017\n\013ROOT_SQUASH\020\002\"\254\t\n\010Instance\022\022\n\004name\030" + "\001 \001(\tB\004\342A\001\003\022\023\n\013description\030\002 \001(\t\022>\n\005stat" + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + "ance.StateB\004\342A\001\003\022\034\n\016status_message\030\006 \001(\t" @@ -195,207 +199,218 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eConfig\022:\n\010networks\030\013 \003(\0132(.google.cloud" + ".filestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(" + "\t\0227\n\rsatisfies_pzs\030\r \001(\0132\032.google.protob" - + "uf.BoolValueB\004\342A\001\003\022\024\n\014kms_key_name\030\016 \001(\t" - + "\022V\n\022suspension_reasons\030\017 \003(\01624.google.cl" - + "oud.filestore.v1.Instance.SuspensionReas" - + "onB\004\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\233\001\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r\n\tREP" - + "AIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r\n\tRES" - + "TORING\020\007\022\r\n\tSUSPENDED\020\010\022\016\n\nSUSPENDING\020\t\022" - + "\014\n\010RESUMING\020\n\"y\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" - + "\022\016\n\nENTERPRISE\020\006\"H\n\020SuspensionReason\022!\n\035" - + "SUSPENSION_REASON_UNSPECIFIED\020\000\022\021\n\rKMS_K" - + "EY_ISSUE\020\001:_\352A\\\n\034file.googleapis.com/Ins" - + "tance\022\n\005state\030\003 \001(\0162).google.clou" - + "d.filestore.v1.Snapshot.StateB\004\342A\001\003\0225\n\013c" - + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\022?\n\006labels\030\005 \003(\0132/.google.clou" - + "d.filestore.v1.Snapshot.LabelsEntry\022#\n\025f" - + "ilesystem_used_bytes\030\006 \001(\003B\004\342A\001\003\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" - + "ING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003:t\352Aq\n\034fil" - + "e.googleapis.com/Snapshot\022Qprojects/{pro" - + "ject}/locations/{location}/instances/{in" - + "stance}/snapshots/{snapshot}\"\246\001\n\025CreateS" - + "napshotRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n" - + "\034file.googleapis.com/Instance\022\031\n\013snapsho" - + "t_id\030\002 \001(\tB\004\342A\001\002\022;\n\010snapshot\030\003 \001(\0132#.goo" - + "gle.cloud.filestore.v1.SnapshotB\004\342A\001\002\"I\n" - + "\022GetSnapshotRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372" - + "A\036\n\034file.googleapis.com/Snapshot\"L\n\025Dele" - + "teSnapshotRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036" - + "\n\034file.googleapis.com/Snapshot\"\213\001\n\025Updat" - + "eSnapshotRequest\0225\n\013update_mask\030\001 \001(\0132\032." - + "google.protobuf.FieldMaskB\004\342A\001\002\022;\n\010snaps" - + "hot\030\002 \001(\0132#.google.cloud.filestore.v1.Sn" - + "apshotB\004\342A\001\002\"\226\001\n\024ListSnapshotsRequest\0225\n" - + "\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis." - + "com/Instance\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030" - + "\005 \001(\t\"h\n\025ListSnapshotsResponse\0226\n\tsnapsh" - + "ots\030\001 \003(\0132#.google.cloud.filestore.v1.Sn" - + "apshot\022\027\n\017next_page_token\030\002 \001(\t\"\221\006\n\006Back" - + "up\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\023\n\013description\030\002 " - + "\001(\t\022<\n\005state\030\003 \001(\0162\'.google.cloud.filest" - + "ore.v1.Backup.StateB\004\342A\001\003\0225\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\022=\n\006labels\030\005 \003(\0132-.google.cloud.filestor" - + "e.v1.Backup.LabelsEntry\022\031\n\013capacity_gb\030\006" - + " \001(\003B\004\342A\001\003\022\033\n\rstorage_bytes\030\007 \001(\003B\004\342A\001\003\022" - + ":\n\017source_instance\030\010 \001(\tB!\372A\036\n\034file.goog" - + "leapis.com/Instance\022\031\n\021source_file_share" - + "\030\t \001(\t\022L\n\024source_instance_tier\030\n \001(\0162(.g" - + "oogle.cloud.filestore.v1.Instance.TierB\004" - + "\342A\001\003\022\034\n\016download_bytes\030\013 \001(\003B\004\342A\001\003\0227\n\rsa" - + "tisfies_pzs\030\014 \001(\0132\032.google.protobuf.Bool" - + "ValueB\004\342A\001\003\022\025\n\007kms_key\030\r \001(\tB\004\342A\001\005\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"U\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CRE" - + "ATING\020\001\022\016\n\nFINALIZING\020\002\022\t\n\005READY\020\003\022\014\n\010DE" - + "LETING\020\004:Y\352AV\n\032file.googleapis.com/Backu" - + "p\0228projects/{project}/locations/{locatio" - + "n}/backups/{backup}\"\243\001\n\023CreateBackupRequ" + + "uf.BoolValueB\004\342A\001\003\022\033\n\rsatisfies_pzi\030\022 \001(" + + "\010B\004\342A\001\003\022\024\n\014kms_key_name\030\016 \001(\t\022V\n\022suspens" + + "ion_reasons\030\017 \003(\01624.google.cloud.filesto" + + "re.v1.Instance.SuspensionReasonB\004\342A\001\003\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\252\001\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\022\r\n" + + "\tSUSPENDED\020\010\022\016\n\nSUSPENDING\020\t\022\014\n\010RESUMING" + + "\020\n\022\r\n\tREVERTING\020\014\"\222\001\n\004Tier\022\024\n\020TIER_UNSPE" + + "CIFIED\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tB" + + "ASIC_HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_" + + "SSD\020\005\022\016\n\nENTERPRISE\020\006\022\t\n\005ZONAL\020\007\022\014\n\010REGI" + + "ONAL\020\010\"H\n\020SuspensionReason\022!\n\035SUSPENSION" + + "_REASON_UNSPECIFIED\020\000\022\021\n\rKMS_KEY_ISSUE\020\001" + + ":_\352A\\\n\034file.googleapis.com/Instance\022\332A\006parent\202\323\344\223\002/\022-/v1/{parent=pro" - + "jects/*/locations/*}/instances\022\237\001\n\013GetIn" - + "stance\022-.google.cloud.filestore.v1.GetIn" - + "stanceRequest\032#.google.cloud.filestore.v" - + "1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=pro" - + "jects/*/locations/*/instances/*}\022\365\001\n\016Cre" - + "ateInstance\0220.google.cloud.filestore.v1." - + "CreateInstanceRequest\032\035.google.longrunni" - + "ng.Operation\"\221\001\312A1\n\010Instance\022%google.clo" - + "ud.common.OperationMetadata\332A\033parent,ins" - + "tance,instance_id\202\323\344\223\0029\"-/v1/{parent=pro" - + "jects/*/locations/*}/instances:\010instance" - + "\022\367\001\n\016UpdateInstance\0220.google.cloud.files" - + "tore.v1.UpdateInstanceRequest\032\035.google.l" - + "ongrunning.Operation\"\223\001\312A1\n\010Instance\022%go" - + "ogle.cloud.common.OperationMetadata\332A\024in" - + "stance,update_mask\202\323\344\223\002B26/v1/{instance." - + "name=projects/*/locations/*/instances/*}" - + ":\010instance\022\331\001\n\017RestoreInstance\0221.google." - + "cloud.filestore.v1.RestoreInstanceReques" - + "t\032\035.google.longrunning.Operation\"t\312A1\n\010I" - + "nstance\022%google.cloud.common.OperationMe" - + "tadata\202\323\344\223\002:\"5/v1/{name=projects/*/locat" - + "ions/*/instances/*}:restore:\001*\022\340\001\n\016Delet" - + "eInstance\0220.google.cloud.filestore.v1.De" - + "leteInstanceRequest\032\035.google.longrunning" - + ".Operation\"}\312A>\n\025google.protobuf.Empty\022%" - + "google.cloud.common.OperationMetadata\332A\004" - + "name\202\323\344\223\002/*-/v1/{name=projects/*/locatio" - + "ns/*/instances/*}\022\276\001\n\rListSnapshots\022/.go" - + "ogle.cloud.filestore.v1.ListSnapshotsReq" - + "uest\0320.google.cloud.filestore.v1.ListSna" - + "pshotsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pa" - + "rent=projects/*/locations/*/instances/*}" - + "/snapshots\022\253\001\n\013GetSnapshot\022-.google.clou" - + "d.filestore.v1.GetSnapshotRequest\032#.goog" - + "le.cloud.filestore.v1.Snapshot\"H\332A\004name\202" - + "\323\344\223\002;\0229/v1/{name=projects/*/locations/*/" - + "instances/*/snapshots/*}\022\201\002\n\016CreateSnaps" - + "hot\0220.google.cloud.filestore.v1.CreateSn" - + "apshotRequest\032\035.google.longrunning.Opera" - + "tion\"\235\001\312A1\n\010Snapshot\022%google.cloud.commo" - + "n.OperationMetadata\332A\033parent,snapshot,sn" - + "apshot_id\202\323\344\223\002E\"9/v1/{parent=projects/*/" - + "locations/*/instances/*}/snapshots:\010snap" - + "shot\022\355\001\n\016DeleteSnapshot\0220.google.cloud.f" - + "ilestore.v1.DeleteSnapshotRequest\032\035.goog" - + "le.longrunning.Operation\"\211\001\312A>\n\025google.p" - + "rotobuf.Empty\022%google.cloud.common.Opera" - + "tionMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=pro" - + "jects/*/locations/*/instances/*/snapshot" - + "s/*}\022\203\002\n\016UpdateSnapshot\0220.google.cloud.f" - + "ilestore.v1.UpdateSnapshotRequest\032\035.goog" - + "le.longrunning.Operation\"\237\001\312A1\n\010Snapshot" - + "\022%google.cloud.common.OperationMetadata\332" - + "A\024snapshot,update_mask\202\323\344\223\002N2B/v1/{snaps" - + "hot.name=projects/*/locations/*/instance" - + "s/*/snapshots/*}:\010snapshot\022\252\001\n\013ListBacku" - + "ps\022-.google.cloud.filestore.v1.ListBacku" - + "psRequest\032..google.cloud.filestore.v1.Li" - + "stBackupsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/" - + "{parent=projects/*/locations/*}/backups\022" - + "\227\001\n\tGetBackup\022+.google.cloud.filestore.v" - + "1.GetBackupRequest\032!.google.cloud.filest" - + "ore.v1.Backup\":\332A\004name\202\323\344\223\002-\022+/v1/{name=" - + "projects/*/locations/*/backups/*}\022\347\001\n\014Cr" - + "eateBackup\022..google.cloud.filestore.v1.C" - + "reateBackupRequest\032\035.google.longrunning." - + "Operation\"\207\001\312A/\n\006Backup\022%google.cloud.co" - + "mmon.OperationMetadata\332A\027parent,backup,b" - + "ackup_id\202\323\344\223\0025\"+/v1/{parent=projects/*/l" - + "ocations/*}/backups:\006backup\022\332\001\n\014DeleteBa" - + "ckup\022..google.cloud.filestore.v1.DeleteB" - + "ackupRequest\032\035.google.longrunning.Operat" - + "ion\"{\312A>\n\025google.protobuf.Empty\022%google." - + "cloud.common.OperationMetadata\332A\004name\202\323\344" - + "\223\002-*+/v1/{name=projects/*/locations/*/ba" - + "ckups/*}\022\351\001\n\014UpdateBackup\022..google.cloud" - + ".filestore.v1.UpdateBackupRequest\032\035.goog" - + "le.longrunning.Operation\"\211\001\312A/\n\006Backup\022%" - + "google.cloud.common.OperationMetadata\332A\022" - + "backup,update_mask\202\323\344\223\002<22/v1/{backup.na" - + "me=projects/*/locations/*/backups/*}:\006ba" - + "ckup\032G\312A\023file.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\262\001" - + "\n\035com.google.cloud.filestore.v1B\032CloudFi" - + "lestoreServiceProtoP\001Z;cloud.google.com/" - + "go/filestore/apiv1/filestorepb;filestore" - + "pb\252\002\031Google.Cloud.Filestore.V1\312\002\031Google\\" - + "Cloud\\Filestore\\V1b\006proto3" + + "googleapis.com/Location\022\031\n\013instance_id\030\002" + + " \001(\tB\004\342A\001\002\022;\n\010instance\030\003 \001(\0132#.google.cl" + + "oud.filestore.v1.InstanceB\004\342A\001\002\"I\n\022GetIn" + + "stanceRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034fi" + + "le.googleapis.com/Instance\"\177\n\025UpdateInst" + + "anceRequest\022/\n\013update_mask\030\001 \001(\0132\032.googl" + + "e.protobuf.FieldMask\0225\n\010instance\030\002 \001(\0132#" + + ".google.cloud.filestore.v1.Instance\"\253\001\n\026" + + "RestoreInstanceRequest\0223\n\004name\030\001 \001(\tB%\342A" + + "\001\002\372A\036\n\034file.googleapis.com/Instance\022\030\n\nf" + + "ile_share\030\002 \001(\tB\004\342A\001\002\0228\n\rsource_backup\030\003" + + " \001(\tB\037\372A\034\n\032file.googleapis.com/BackupH\000B" + + "\010\n\006source\"n\n\025RevertInstanceRequest\0223\n\004na" + + "me\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis.com/I" + + "nstance\022 \n\022target_snapshot_id\030\002 \001(\tB\004\342A\001" + + "\002\"[\n\025DeleteInstanceRequest\0223\n\004name\030\001 \001(\t" + + "B%\342A\001\002\372A\036\n\034file.googleapis.com/Instance\022" + + "\r\n\005force\030\002 \001(\010\"\233\001\n\024ListInstancesRequest\022" + + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\022\020\n\010order_by\030\004 \001(\t\022\016\n\006" + + "filter\030\005 \001(\t\"}\n\025ListInstancesResponse\0226\n" + + "\tinstances\030\001 \003(\0132#.google.cloud.filestor" + + "e.v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\022\023" + + "\n\013unreachable\030\003 \003(\t\"\374\003\n\010Snapshot\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\003\022\023\n\013description\030\002 \001(\t\022>\n\005sta" + + "te\030\003 \001(\0162).google.cloud.filestore.v1.Sna" + + "pshot.StateB\004\342A\001\003\0225\n\013create_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022?\n\006labe" + + "ls\030\005 \003(\0132/.google.cloud.filestore.v1.Sna" + + "pshot.LabelsEntry\022#\n\025filesystem_used_byt" + + "es\030\006 \001(\003B\004\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014" + + "\n\010DELETING\020\003:t\352Aq\n\034file.googleapis.com/S" + + "napshot\022Qprojects/{project}/locations/{l" + + "ocation}/instances/{instance}/snapshots/" + + "{snapshot}\"\246\001\n\025CreateSnapshotRequest\0225\n\006" + + "parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis.c" + + "om/Instance\022\031\n\013snapshot_id\030\002 \001(\tB\004\342A\001\002\022;" + + "\n\010snapshot\030\003 \001(\0132#.google.cloud.filestor" + + "e.v1.SnapshotB\004\342A\001\002\"I\n\022GetSnapshotReques" + + "t\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapi" + + "s.com/Snapshot\"L\n\025DeleteSnapshotRequest\022" + + "3\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis." + + "com/Snapshot\"\213\001\n\025UpdateSnapshotRequest\0225" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\022;\n\010snapshot\030\002 \001(\0132#.google" + + ".cloud.filestore.v1.SnapshotB\004\342A\001\002\"\226\001\n\024L" + + "istSnapshotsRequest\0225\n\006parent\030\001 \001(\tB%\342A\001" + + "\002\372A\036\n\034file.googleapis.com/Instance\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\010ord" + + "er_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"h\n\025ListSnaps" + + "hotsResponse\0226\n\tsnapshots\030\001 \003(\0132#.google" + + ".cloud.filestore.v1.Snapshot\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\273\006\n\006Backup\022\022\n\004name\030\001 \001(\tB\004" + + "\342A\001\003\022\023\n\013description\030\002 \001(\t\022<\n\005state\030\003 \001(\016" + + "2\'.google.cloud.filestore.v1.Backup.Stat" + + "eB\004\342A\001\003\0225\n\013create_time\030\004 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\022=\n\006labels\030\005 \003(\0132-" + + ".google.cloud.filestore.v1.Backup.Labels" + + "Entry\022\031\n\013capacity_gb\030\006 \001(\003B\004\342A\001\003\022\033\n\rstor" + + "age_bytes\030\007 \001(\003B\004\342A\001\003\022:\n\017source_instance" + + "\030\010 \001(\tB!\372A\036\n\034file.googleapis.com/Instanc" + + "e\022\031\n\021source_file_share\030\t \001(\t\022L\n\024source_i" + + "nstance_tier\030\n \001(\0162(.google.cloud.filest" + + "ore.v1.Instance.TierB\004\342A\001\003\022\034\n\016download_b" + + "ytes\030\013 \001(\003B\004\342A\001\003\0227\n\rsatisfies_pzs\030\014 \001(\0132" + + "\032.google.protobuf.BoolValueB\004\342A\001\003\022\033\n\rsat" + + "isfies_pzi\030\016 \001(\010B\004\342A\001\003\022\025\n\007kms_key\030\r \001(\tB" + + "\004\342A\001\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"b\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\014\n\010CREATING\020\001\022\016\n\nFINALIZING\020\002\022\t\n\005RE" + + "ADY\020\003\022\014\n\010DELETING\020\004\022\013\n\007INVALID\020\005:Y\352AV\n\032f" + + "ile.googleapis.com/Backup\0228projects/{pro" + + "ject}/locations/{location}/backups/{back" + + "up}\"\243\001\n\023CreateBackupRequest\022:\n\006parent\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/L" + + "ocation\0227\n\006backup\030\002 \001(\0132!.google.cloud.f" + + "ilestore.v1.BackupB\004\342A\001\002\022\027\n\tbackup_id\030\003 " + + "\001(\tB\004\342A\001\002\"H\n\023DeleteBackupRequest\0221\n\004name" + + "\030\001 \001(\tB#\342A\001\002\372A\034\n\032file.googleapis.com/Bac" + + "kup\"\205\001\n\023UpdateBackupRequest\0227\n\006backup\030\001 " + + "\001(\0132!.google.cloud.filestore.v1.BackupB\004" + + "\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\004\342A\001\002\"E\n\020GetBackupRequest\022" + + "1\n\004name\030\001 \001(\tB#\342A\001\002\372A\034\n\032file.googleapis." + + "com/Backup\"\231\001\n\022ListBackupsRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis" + + ".com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter" + + "\030\005 \001(\t\"w\n\023ListBackupsResponse\0222\n\007backups" + + "\030\001 \003(\0132!.google.cloud.filestore.v1.Backu" + + "p\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t2\244\035\n\025CloudFilestoreManager\022\262\001\n\rLi" + + "stInstances\022/.google.cloud.filestore.v1." + + "ListInstancesRequest\0320.google.cloud.file" + + "store.v1.ListInstancesResponse\">\332A\006paren" + + "t\202\323\344\223\002/\022-/v1/{parent=projects/*/location" + + "s/*}/instances\022\237\001\n\013GetInstance\022-.google." + + "cloud.filestore.v1.GetInstanceRequest\032#." + + "google.cloud.filestore.v1.Instance\"<\332A\004n" + + "ame\202\323\344\223\002/\022-/v1/{name=projects/*/location" + + "s/*/instances/*}\022\365\001\n\016CreateInstance\0220.go" + + "ogle.cloud.filestore.v1.CreateInstanceRe" + + "quest\032\035.google.longrunning.Operation\"\221\001\312" + + "A1\n\010Instance\022%google.cloud.common.Operat" + + "ionMetadata\332A\033parent,instance,instance_i" + + "d\202\323\344\223\0029\"-/v1/{parent=projects/*/location" + + "s/*}/instances:\010instance\022\367\001\n\016UpdateInsta" + + "nce\0220.google.cloud.filestore.v1.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\223\001\312A1\n\010Instance\022%google.cloud.commo" + + "n.OperationMetadata\332A\024instance,update_ma" + + "sk\202\323\344\223\002B26/v1/{instance.name=projects/*/" + + "locations/*/instances/*}:\010instance\022\331\001\n\017R" + + "estoreInstance\0221.google.cloud.filestore." + + "v1.RestoreInstanceRequest\032\035.google.longr" + + "unning.Operation\"t\312A1\n\010Instance\022%google." + + "cloud.common.OperationMetadata\202\323\344\223\002:\"5/v" + + "1/{name=projects/*/locations/*/instances" + + "/*}:restore:\001*\022\326\001\n\016RevertInstance\0220.goog" + + "le.cloud.filestore.v1.RevertInstanceRequ" + + "est\032\035.google.longrunning.Operation\"s\312A1\n" + + "\010Instance\022%google.cloud.common.Operation" + + "Metadata\202\323\344\223\0029\"4/v1/{name=projects/*/loc" + + "ations/*/instances/*}:revert:\001*\022\340\001\n\016Dele" + + "teInstance\0220.google.cloud.filestore.v1.D" + + "eleteInstanceRequest\032\035.google.longrunnin" + + "g.Operation\"}\312A>\n\025google.protobuf.Empty\022" + + "%google.cloud.common.OperationMetadata\332A" + + "\004name\202\323\344\223\002/*-/v1/{name=projects/*/locati" + + "ons/*/instances/*}\022\276\001\n\rListSnapshots\022/.g" + + "oogle.cloud.filestore.v1.ListSnapshotsRe" + + "quest\0320.google.cloud.filestore.v1.ListSn" + + "apshotsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{p" + + "arent=projects/*/locations/*/instances/*" + + "}/snapshots\022\253\001\n\013GetSnapshot\022-.google.clo" + + "ud.filestore.v1.GetSnapshotRequest\032#.goo" + + "gle.cloud.filestore.v1.Snapshot\"H\332A\004name" + + "\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*" + + "/instances/*/snapshots/*}\022\201\002\n\016CreateSnap" + + "shot\0220.google.cloud.filestore.v1.CreateS" + + "napshotRequest\032\035.google.longrunning.Oper" + + "ation\"\235\001\312A1\n\010Snapshot\022%google.cloud.comm" + + "on.OperationMetadata\332A\033parent,snapshot,s" + + "napshot_id\202\323\344\223\002E\"9/v1/{parent=projects/*" + + "/locations/*/instances/*}/snapshots:\010sna" + + "pshot\022\355\001\n\016DeleteSnapshot\0220.google.cloud." + + "filestore.v1.DeleteSnapshotRequest\032\035.goo" + + "gle.longrunning.Operation\"\211\001\312A>\n\025google." + + "protobuf.Empty\022%google.cloud.common.Oper" + + "ationMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=pr" + + "ojects/*/locations/*/instances/*/snapsho" + + "ts/*}\022\203\002\n\016UpdateSnapshot\0220.google.cloud." + + "filestore.v1.UpdateSnapshotRequest\032\035.goo" + + "gle.longrunning.Operation\"\237\001\312A1\n\010Snapsho" + + "t\022%google.cloud.common.OperationMetadata" + + "\332A\024snapshot,update_mask\202\323\344\223\002N2B/v1/{snap" + + "shot.name=projects/*/locations/*/instanc" + + "es/*/snapshots/*}:\010snapshot\022\252\001\n\013ListBack" + + "ups\022-.google.cloud.filestore.v1.ListBack" + + "upsRequest\032..google.cloud.filestore.v1.L" + + "istBackupsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1" + + "/{parent=projects/*/locations/*}/backups" + + "\022\227\001\n\tGetBackup\022+.google.cloud.filestore." + + "v1.GetBackupRequest\032!.google.cloud.files" + + "tore.v1.Backup\":\332A\004name\202\323\344\223\002-\022+/v1/{name" + + "=projects/*/locations/*/backups/*}\022\347\001\n\014C" + + "reateBackup\022..google.cloud.filestore.v1." + + "CreateBackupRequest\032\035.google.longrunning" + + ".Operation\"\207\001\312A/\n\006Backup\022%google.cloud.c" + + "ommon.OperationMetadata\332A\027parent,backup," + + "backup_id\202\323\344\223\0025\"+/v1/{parent=projects/*/" + + "locations/*}/backups:\006backup\022\332\001\n\014DeleteB" + + "ackup\022..google.cloud.filestore.v1.Delete" + + "BackupRequest\032\035.google.longrunning.Opera" + + "tion\"{\312A>\n\025google.protobuf.Empty\022%google" + + ".cloud.common.OperationMetadata\332A\004name\202\323" + + "\344\223\002-*+/v1/{name=projects/*/locations/*/b" + + "ackups/*}\022\351\001\n\014UpdateBackup\022..google.clou" + + "d.filestore.v1.UpdateBackupRequest\032\035.goo" + + "gle.longrunning.Operation\"\211\001\312A/\n\006Backup\022" + + "%google.cloud.common.OperationMetadata\332A" + + "\022backup,update_mask\202\323\344\223\002<22/v1/{backup.n" + + "ame=projects/*/locations/*/backups/*}:\006b" + + "ackup\032G\312A\023file.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\262" + + "\001\n\035com.google.cloud.filestore.v1B\032CloudF" + + "ilestoreServiceProtoP\001Z;cloud.google.com" + + "/go/filestore/apiv1/filestorepb;filestor" + + "epb\252\002\031Google.Cloud.Filestore.V1\312\002\031Google" + + "\\Cloud\\Filestore\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -453,6 +468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Networks", "Etag", "SatisfiesPzs", + "SatisfiesPzi", "KmsKeyName", "SuspensionReasons", }); @@ -496,8 +512,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "FileShare", "SourceBackup", "Source", }); - internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = + internal_static_google_cloud_filestore_v1_RevertInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_filestore_v1_RevertInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_filestore_v1_RevertInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "TargetSnapshotId", + }); + internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_DeleteInstanceRequest_descriptor, @@ -505,7 +529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_filestore_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListInstancesRequest_descriptor, @@ -513,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_filestore_v1_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListInstancesResponse_descriptor, @@ -521,7 +545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", "NextPageToken", "Unreachable", }); internal_static_google_cloud_filestore_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_filestore_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_Snapshot_descriptor, @@ -537,7 +561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_filestore_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_filestore_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_CreateSnapshotRequest_descriptor, @@ -545,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SnapshotId", "Snapshot", }); internal_static_google_cloud_filestore_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_filestore_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_GetSnapshotRequest_descriptor, @@ -553,7 +577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_filestore_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_filestore_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_DeleteSnapshotRequest_descriptor, @@ -561,7 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_filestore_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_filestore_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_UpdateSnapshotRequest_descriptor, @@ -569,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Snapshot", }); internal_static_google_cloud_filestore_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_filestore_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListSnapshotsRequest_descriptor, @@ -577,7 +601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_filestore_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_filestore_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListSnapshotsResponse_descriptor, @@ -585,7 +609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_cloud_filestore_v1_Backup_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_filestore_v1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_Backup_descriptor, @@ -602,6 +626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", + "SatisfiesPzi", "KmsKey", }); internal_static_google_cloud_filestore_v1_Backup_LabelsEntry_descriptor = @@ -613,7 +638,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_filestore_v1_CreateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_CreateBackupRequest_descriptor, @@ -621,7 +646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Backup", "BackupId", }); internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_filestore_v1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_DeleteBackupRequest_descriptor, @@ -629,7 +654,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_filestore_v1_UpdateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_UpdateBackupRequest_descriptor, @@ -637,7 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backup", "UpdateMask", }); internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_filestore_v1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_GetBackupRequest_descriptor, @@ -645,7 +670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_filestore_v1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListBackupsRequest_descriptor, @@ -653,7 +678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_filestore_v1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_filestore_v1_ListBackupsResponse_descriptor, diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java index 797197339721..9a4d8fd5a746 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java @@ -117,7 +117,10 @@ public SourceCase getSourceCase() { * * *
-   * The name of the file share (must be 16 characters or less).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -140,7 +143,10 @@ public java.lang.String getName() { * * *
-   * The name of the file share (must be 16 characters or less).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -835,7 +841,10 @@ public Builder clearSource() { * * *
-     * The name of the file share (must be 16 characters or less).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -857,7 +866,10 @@ public java.lang.String getName() { * * *
-     * The name of the file share (must be 16 characters or less).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -879,7 +891,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the file share (must be 16 characters or less).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -900,7 +915,10 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the file share (must be 16 characters or less).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -917,7 +935,10 @@ public Builder clearName() { * * *
-     * The name of the file share (must be 16 characters or less).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java index 592b0be16e74..964e5da5fe6e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfigOrBuilder.java @@ -27,7 +27,10 @@ public interface FileShareConfigOrBuilder * * *
-   * The name of the file share (must be 16 characters or less).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -39,7 +42,10 @@ public interface FileShareConfigOrBuilder * * *
-   * The name of the file share (must be 16 characters or less).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java index a36311609a60..a78738a721dd 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java @@ -197,6 +197,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * RESUMING = 10; */ RESUMING(10), + /** + * + * + *
+     * The instance is reverting to a snapshot.
+     * 
+ * + * REVERTING = 12; + */ + REVERTING(12), UNRECOGNIZED(-1), ; @@ -305,6 +315,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * RESUMING = 10; */ public static final int RESUMING_VALUE = 10; + /** + * + * + *
+     * The instance is reverting to a snapshot.
+     * 
+ * + * REVERTING = 12; + */ + public static final int REVERTING_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -350,6 +370,8 @@ public static State forNumber(int value) { return SUSPENDING; case 10: return RESUMING; + case 12: + return REVERTING; default: return null; } @@ -489,6 +511,28 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { * ENTERPRISE = 6; */ ENTERPRISE(6), + /** + * + * + *
+     * ZONAL instances offer expanded capacity and performance scaling
+     * capabilities.
+     * 
+ * + * ZONAL = 7; + */ + ZONAL(7), + /** + * + * + *
+     * REGIONAL instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * REGIONAL = 8; + */ + REGIONAL(8), UNRECOGNIZED(-1), ; @@ -568,6 +612,28 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { * ENTERPRISE = 6; */ public static final int ENTERPRISE_VALUE = 6; + /** + * + * + *
+     * ZONAL instances offer expanded capacity and performance scaling
+     * capabilities.
+     * 
+ * + * ZONAL = 7; + */ + public static final int ZONAL_VALUE = 7; + /** + * + * + *
+     * REGIONAL instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * REGIONAL = 8; + */ + public static final int REGIONAL_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -607,6 +673,10 @@ public static Tier forNumber(int value) { return HIGH_SCALE_SSD; case 6: return ENTERPRISE; + case 7: + return ZONAL; + case 8: + return REGIONAL; default: return null; } @@ -1438,6 +1508,24 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { : satisfiesPzs_; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 18; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -1663,6 +1751,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < suspensionReasons_.size(); i++) { output.writeEnumNoTag(suspensionReasons_.get(i)); } + if (satisfiesPzi_ != false) { + output.writeBool(18, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1728,6 +1819,9 @@ public int getSerializedSize() { } suspensionReasonsMemoizedSerializedSize = dataSize; } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1760,6 +1854,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!suspensionReasons_.equals(other.suspensionReasons_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1805,6 +1900,8 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); if (getSuspensionReasonsCount() > 0) { @@ -2001,9 +2098,10 @@ public Builder clear() { satisfiesPzsBuilder_.dispose(); satisfiesPzsBuilder_ = null; } + satisfiesPzi_ = false; kmsKeyName_ = ""; suspensionReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); return this; } @@ -2058,9 +2156,9 @@ private void buildPartialRepeatedFields(com.google.cloud.filestore.v1.Instance r } else { result.networks_ = networksBuilder_.build(); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { suspensionReasons_ = java.util.Collections.unmodifiableList(suspensionReasons_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.suspensionReasons_ = suspensionReasons_; } @@ -2097,6 +2195,9 @@ private void buildPartial0(com.google.cloud.filestore.v1.Instance result) { satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.kmsKeyName_ = kmsKeyName_; } } @@ -2234,15 +2335,18 @@ public Builder mergeFrom(com.google.cloud.filestore.v1.Instance other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.suspensionReasons_.isEmpty()) { if (suspensionReasons_.isEmpty()) { suspensionReasons_ = other.suspensionReasons_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureSuspensionReasonsIsMutable(); suspensionReasons_.addAll(other.suspensionReasons_); @@ -2364,7 +2468,7 @@ public Builder mergeFrom( case 114: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 114 case 120: @@ -2386,6 +2490,12 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 122 + case 144: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4332,6 +4442,59 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return satisfiesPzsBuilder_; } + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000800); + satisfiesPzi_ = false; + onChanged(); + return this; + } + private java.lang.Object kmsKeyName_ = ""; /** * @@ -4394,7 +4557,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4411,7 +4574,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4433,7 +4596,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4442,9 +4605,9 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSuspensionReasonsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { suspensionReasons_ = new java.util.ArrayList(suspensionReasons_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } /** @@ -4594,7 +4757,7 @@ public Builder addAllSuspensionReasons( */ public Builder clearSuspensionReasons() { suspensionReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java index 58815f4d1286..83a69c9b7a76 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceOrBuilder.java @@ -432,6 +432,19 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + /** * * diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequest.java new file mode 100644 index 000000000000..dc0186904b2f --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequest.java @@ -0,0 +1,850 @@ +/* + * Copyright 2023 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; + +/** + * + * + *
+ * RevertInstanceRequest reverts the given instance's file share to the
+ * specified snapshot.
+ * 
+ * + * Protobuf type {@code google.cloud.filestore.v1.RevertInstanceRequest} + */ +public final class RevertInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.filestore.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_RevertInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1.RevertInstanceRequest.class, + com.google.cloud.filestore.v1.RevertInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + 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; + + @SuppressWarnings("serial") + 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.v1.RevertInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.filestore.v1.RevertInstanceRequest other = + (com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.filestore.v1.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.v1.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.v1.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.v1.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.v1.RevertInstanceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1.RevertInstanceRequest) + com.google.cloud.filestore.v1.RevertInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_RevertInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.filestore.v1.RevertInstanceRequest.class, + com.google.cloud.filestore.v1.RevertInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.filestore.v1.RevertInstanceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + targetSnapshotId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.filestore.v1.CloudFilestoreServiceProto + .internal_static_google_cloud_filestore_v1_RevertInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.filestore.v1.RevertInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.filestore.v1.RevertInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.filestore.v1.RevertInstanceRequest build() { + com.google.cloud.filestore.v1.RevertInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.filestore.v1.RevertInstanceRequest buildPartial() { + com.google.cloud.filestore.v1.RevertInstanceRequest result = + new com.google.cloud.filestore.v1.RevertInstanceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.filestore.v1.RevertInstanceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetSnapshotId_ = targetSnapshotId_; + } + } + + @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.v1.RevertInstanceRequest) { + return mergeFrom((com.google.cloud.filestore.v1.RevertInstanceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.filestore.v1.RevertInstanceRequest other) { + if (other == com.google.cloud.filestore.v1.RevertInstanceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTargetSnapshotId().isEmpty()) { + targetSnapshotId_ = other.targetSnapshotId_; + bitField0_ |= 0x00000002; + 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(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetSnapshotId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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.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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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.v1.RevertInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.filestore.v1.RevertInstanceRequest) + private static final com.google.cloud.filestore.v1.RevertInstanceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.filestore.v1.RevertInstanceRequest(); + } + + public static com.google.cloud.filestore.v1.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.v1.RevertInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..059bdf5991cf --- /dev/null +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RevertInstanceRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2023 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 RevertInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.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/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto b/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto index 0cd1a295e146..1981d345945d 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto @@ -123,6 +123,19 @@ 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: "/v1/{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) { @@ -317,7 +330,10 @@ message NetworkConfig { // File share configuration for the instance. message FileShareConfig { - // The name of the file share (must be 16 characters or less). + // Required. The name of the file share. Must use 1-16 characters for the + // basic service tier and 1-63 characters for all other service tiers. + // Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must + // start with a letter. Immutable. string name = 1; // File share capacity in gigabytes (GB). @@ -442,6 +458,9 @@ message Instance { // The instance is in the process of becoming active. RESUMING = 10; + + // The instance is reverting to a snapshot. + REVERTING = 12; } // Available service tiers. @@ -472,6 +491,14 @@ message Instance { // ENTERPRISE instances offer the features and availability needed for // mission-critical workloads. ENTERPRISE = 6; + + // ZONAL instances offer expanded capacity and performance scaling + // capabilities. + ZONAL = 7; + + // REGIONAL instances offer the features and availability needed for + // mission-critical workloads. + REGIONAL = 8; } // SuspensionReason contains the possible reasons for a suspension. @@ -522,6 +549,9 @@ message Instance { google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzi = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + // KMS key name used for data encryption. string kms_key_name = 14; @@ -599,6 +629,23 @@ 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 @@ -814,6 +861,10 @@ message Backup { // Backup is being deleted. DELETING = 4; + + // Backup is not valid and cannot be used for creating new instances or + // restoring existing instances. + INVALID = 5; } // Output only. The resource name of the backup, in the format @@ -866,6 +917,9 @@ message Backup { google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzi = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. KMS key name used for data encryption. string kms_key = 13 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java index 7ce2cd8c6606..71db74e68b82 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java @@ -863,6 +863,24 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { : satisfiesPzs_; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 14; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; @SuppressWarnings("serial") @@ -967,6 +985,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kmsKeyName_); } + if (satisfiesPzi_ != false) { + output.writeBool(14, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1023,6 +1044,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1057,6 +1081,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1099,6 +1124,8 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1280,6 +1307,7 @@ public Builder clear() { satisfiesPzsBuilder_.dispose(); satisfiesPzsBuilder_ = null; } + satisfiesPzi_ = false; kmsKeyName_ = ""; return this; } @@ -1356,6 +1384,9 @@ private void buildPartial0(com.google.cloud.filestore.v1beta1.Backup result) { satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.kmsKeyName_ = kmsKeyName_; } } @@ -1448,9 +1479,12 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Backup other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1560,9 +1594,15 @@ public Builder mergeFrom( case 106: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 + case 112: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2968,6 +3008,59 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return satisfiesPzsBuilder_; } + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00001000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + private java.lang.Object kmsKeyName_ = ""; /** * @@ -3030,7 +3123,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3047,7 +3140,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -3069,7 +3162,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java index a01d24d1c398..0d17bcbbe785 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupOrBuilder.java @@ -371,6 +371,19 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + /** * * 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 index 0f24672374f5..c0de91e04ab5 100644 --- 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 @@ -237,7 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "yServicesConfig\022`\n\030managed_active_direct" + "ory\030\001 \001(\0132<.google.cloud.filestore.v1bet" + "a1.ManagedActiveDirectoryConfigH\000B\010\n\006con" - + "fig\"\233\014\n\010Instance\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\023\n\013" + + "fig\"\306\014\n\010Instance\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\023\n\013" + "description\030\002 \001(\t\022C\n\005state\030\005 \001(\0162..googl" + "e.cloud.filestore.v1beta1.Instance.State" + "B\004\342A\001\003\022\034\n\016status_message\030\006 \001(\tB\004\342A\001\003\0225\n\013" @@ -250,298 +250,299 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eShareConfig\022?\n\010networks\030\013 \003(\0132-.google." + "cloud.filestore.v1beta1.NetworkConfig\022\014\n" + "\004etag\030\014 \001(\t\0227\n\rsatisfies_pzs\030\r \001(\0132\032.goo" - + "gle.protobuf.BoolValueB\004\342A\001\003\022\024\n\014kms_key_" - + "name\030\016 \001(\t\022[\n\022suspension_reasons\030\017 \003(\01629" - + ".google.cloud.filestore.v1beta1.Instance" - + ".SuspensionReasonB\004\342A\001\003\022\035\n\017max_capacity_" - + "gb\030\020 \001(\003B\004\342A\001\003\022#\n\025capacity_step_size_gb\030" - + "\021 \001(\003B\004\342A\001\003\022\027\n\017max_share_count\030\022 \001(\003\022\023\n\013" - + "capacity_gb\030\023 \001(\003\022\033\n\023multi_share_enabled" - + "\030\024 \001(\010\022M\n\010protocol\030\025 \001(\01625.google.cloud." - + "filestore.v1beta1.Instance.FileProtocolB" - + "\004\342A\001\005\022S\n\022directory_services\030\030 \001(\01327.goog" - + "le.cloud.filestore.v1beta1.DirectoryServ" - + "icesConfig\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r\n\tR" - + "EPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r\n\tR" - + "ESTORING\020\007\022\r\n\tSUSPENDED\020\010\022\r\n\tREVERTING\020\t" - + "\022\016\n\nSUSPENDING\020\n\022\014\n\010RESUMING\020\013\"\204\001\n\004Tier\022" - + "\024\n\020TIER_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\013\n\007P" - + "REMIUM\020\002\022\r\n\tBASIC_HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022" - + "\n\016HIGH_SCALE_SSD\020\006\022\016\n\nENTERPRISE\020\007\022\t\n\005ZO" - + "NAL\020\010\"H\n\020SuspensionReason\022!\n\035SUSPENSION_" - + "REASON_UNSPECIFIED\020\000\022\021\n\rKMS_KEY_ISSUE\020\001\"" - + "G\n\014FileProtocol\022\035\n\031FILE_PROTOCOL_UNSPECI" - + "FIED\020\000\022\n\n\006NFS_V3\020\001\022\014\n\010NFS_V4_1\020\002:_\352A\\\n\034f" - + "ile.googleapis.com/Instance\022\n\017" - + "source_snapshot\030\003 \001(\tB#\030\001\372A\036\n\034file.googl" - + "eapis.com/SnapshotH\000\0228\n\rsource_backup\030\004 " - + "\001(\tB\037\372A\034\n\032file.googleapis.com/BackupH\000B\010" - + "\n\006source\"n\n\025RevertInstanceRequest\0223\n\004nam" - + "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis.com/In" - + "stance\022 \n\022target_snapshot_id\030\002 \001(\tB\004\342A\001\002" - + "\"[\n\025DeleteInstanceRequest\0223\n\004name\030\001 \001(\tB" - + "%\342A\001\002\372A\036\n\034file.googleapis.com/Instance\022\r" - + "\n\005force\030\002 \001(\010\"\233\001\n\024ListInstancesRequest\022:" + + "gle.protobuf.BoolValueB\004\342A\001\003\022\033\n\rsatisfie" + + "s_pzi\030\032 \001(\010B\004\342A\001\003\022\024\n\014kms_key_name\030\016 \001(\t\022" + + "[\n\022suspension_reasons\030\017 \003(\01629.google.clo" + + "ud.filestore.v1beta1.Instance.Suspension" + + "ReasonB\004\342A\001\003\022\035\n\017max_capacity_gb\030\020 \001(\003B\004\342" + + "A\001\003\022#\n\025capacity_step_size_gb\030\021 \001(\003B\004\342A\001\003" + + "\022\027\n\017max_share_count\030\022 \001(\003\022\023\n\013capacity_gb" + + "\030\023 \001(\003\022\033\n\023multi_share_enabled\030\024 \001(\010\022M\n\010p" + + "rotocol\030\025 \001(\01625.google.cloud.filestore.v" + + "1beta1.Instance.FileProtocolB\004\342A\001\005\022S\n\022di" + + "rectory_services\030\030 \001(\01327.google.cloud.fi" + + "lestore.v1beta1.DirectoryServicesConfig\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\252\001\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\022" + + "\r\n\tSUSPENDED\020\010\022\r\n\tREVERTING\020\t\022\016\n\nSUSPEND" + + "ING\020\n\022\014\n\010RESUMING\020\013\"\222\001\n\004Tier\022\024\n\020TIER_UNS" + + "PECIFIED\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_SCAL" + + "E_SSD\020\006\022\016\n\nENTERPRISE\020\007\022\t\n\005ZONAL\020\010\022\014\n\010RE" + + "GIONAL\020\t\"H\n\020SuspensionReason\022!\n\035SUSPENSI" + + "ON_REASON_UNSPECIFIED\020\000\022\021\n\rKMS_KEY_ISSUE" + + "\020\001\"G\n\014FileProtocol\022\035\n\031FILE_PROTOCOL_UNSP" + + "ECIFIED\020\000\022\n\n\006NFS_V3\020\001\022\014\n\010NFS_V4_1\020\002:_\352A\\" + + "\n\034file.googleapis.com/Instance\022\"2/v1beta1/{parent=projects/*/location" - + "s/*}/instances:\010instance\022\201\002\n\016UpdateInsta" - + "nce\0225.google.cloud.filestore.v1beta1.Upd" - + "ateInstanceRequest\032\035.google.longrunning." - + "Operation\"\230\001\312A1\n\010Instance\022%google.cloud." - + "common.OperationMetadata\332A\024instance,upda" - + "te_mask\202\323\344\223\002G2;/v1beta1/{instance.name=p" - + "rojects/*/locations/*/instances/*}:\010inst" - + "ance\022\343\001\n\017RestoreInstance\0226.google.cloud." - + "filestore.v1beta1.RestoreInstanceRequest" - + "\032\035.google.longrunning.Operation\"y\312A1\n\010In" - + "stance\022%google.cloud.common.OperationMet" - + "adata\202\323\344\223\002?\":/v1beta1/{name=projects/*/l" - + "ocations/*/instances/*}:restore:\001*\022\340\001\n\016R" - + "evertInstance\0225.google.cloud.filestore.v" - + "1beta1.RevertInstanceRequest\032\035.google.lo" - + "ngrunning.Operation\"x\312A1\n\010Instance\022%goog" - + "le.cloud.common.OperationMetadata\202\323\344\223\002>\"" - + "9/v1beta1/{name=projects/*/locations/*/i" - + "nstances/*}:revert:\001*\022\353\001\n\016DeleteInstance" - + "\0225.google.cloud.filestore.v1beta1.Delete" - + "InstanceRequest\032\035.google.longrunning.Ope" - + "ration\"\202\001\312A>\n\025google.protobuf.Empty\022%goo" - + "gle.cloud.common.OperationMetadata\332A\004nam" - + "e\202\323\344\223\0024*2/v1beta1/{name=projects/*/locat" - + "ions/*/instances/*}\022\315\001\n\rListSnapshots\0224." - + "google.cloud.filestore.v1beta1.ListSnaps" - + "hotsRequest\0325.google.cloud.filestore.v1b" - + "eta1.ListSnapshotsResponse\"O\332A\006parent\202\323\344" - + "\223\002@\022>/v1beta1/{parent=projects/*/locatio" - + "ns/*/instances/*}/snapshots\022\272\001\n\013GetSnaps" - + "hot\0222.google.cloud.filestore.v1beta1.Get" - + "SnapshotRequest\032(.google.cloud.filestore" - + ".v1beta1.Snapshot\"M\332A\004name\202\323\344\223\002@\022>/v1bet" - + "a1/{name=projects/*/locations/*/instance" - + "s/*/snapshots/*}\022\213\002\n\016CreateSnapshot\0225.go" - + "ogle.cloud.filestore.v1beta1.CreateSnaps" - + "hotRequest\032\035.google.longrunning.Operatio" - + "n\"\242\001\312A1\n\010Snapshot\022%google.cloud.common.O" - + "perationMetadata\332A\033parent,snapshot,snaps" - + "hot_id\202\323\344\223\002J\">/v1beta1/{parent=projects/" - + "*/locations/*/instances/*}/snapshots:\010sn" - + "apshot\022\367\001\n\016DeleteSnapshot\0225.google.cloud" - + ".filestore.v1beta1.DeleteSnapshotRequest" - + "\032\035.google.longrunning.Operation\"\216\001\312A>\n\025g" - + "oogle.protobuf.Empty\022%google.cloud.commo" - + "n.OperationMetadata\332A\004name\202\323\344\223\002@*>/v1bet" - + "a1/{name=projects/*/locations/*/instance" - + "s/*/snapshots/*}\022\215\002\n\016UpdateSnapshot\0225.go" - + "ogle.cloud.filestore.v1beta1.UpdateSnaps" - + "hotRequest\032\035.google.longrunning.Operatio" - + "n\"\244\001\312A1\n\010Snapshot\022%google.cloud.common.O" - + "perationMetadata\332A\024snapshot,update_mask\202" - + "\323\344\223\002S2G/v1beta1/{snapshot.name=projects/" - + "*/locations/*/instances/*/snapshots/*}:\010" - + "snapshot\022\271\001\n\013ListBackups\0222.google.cloud." - + "filestore.v1beta1.ListBackupsRequest\0323.g" - + "oogle.cloud.filestore.v1beta1.ListBackup" - + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1beta1/{pa" - + "rent=projects/*/locations/*}/backups\022\246\001\n" - + "\tGetBackup\0220.google.cloud.filestore.v1be" - + "ta1.GetBackupRequest\032&.google.cloud.file" - + "store.v1beta1.Backup\"?\332A\004name\202\323\344\223\0022\0220/v1" - + "beta1/{name=projects/*/locations/*/backu" - + "ps/*}\022\361\001\n\014CreateBackup\0223.google.cloud.fi" - + "lestore.v1beta1.CreateBackupRequest\032\035.go" - + "ogle.longrunning.Operation\"\214\001\312A/\n\006Backup" - + "\022%google.cloud.common.OperationMetadata\332" - + "A\027parent,backup,backup_id\202\323\344\223\002:\"0/v1beta" - + "1/{parent=projects/*/locations/*}/backup" - + "s:\006backup\022\345\001\n\014DeleteBackup\0223.google.clou" - + "d.filestore.v1beta1.DeleteBackupRequest\032" - + "\035.google.longrunning.Operation\"\200\001\312A>\n\025go" - + "ogle.protobuf.Empty\022%google.cloud.common" - + ".OperationMetadata\332A\004name\202\323\344\223\0022*0/v1beta" - + "1/{name=projects/*/locations/*/backups/*" - + "}\022\363\001\n\014UpdateBackup\0223.google.cloud.filest" - + "ore.v1beta1.UpdateBackupRequest\032\035.google" - + ".longrunning.Operation\"\216\001\312A/\n\006Backup\022%go" - + "ogle.cloud.common.OperationMetadata\332A\022ba" - + "ckup,update_mask\202\323\344\223\002A27/v1beta1/{backup" - + ".name=projects/*/locations/*/backups/*}:" - + "\006backup\022\301\001\n\nListShares\0221.google.cloud.fi" - + "lestore.v1beta1.ListSharesRequest\0322.goog" - + "le.cloud.filestore.v1beta1.ListSharesRes" - + "ponse\"L\332A\006parent\202\323\344\223\002=\022;/v1beta1/{parent" - + "=projects/*/locations/*/instances/*}/sha" - + "res\022\256\001\n\010GetShare\022/.google.cloud.filestor" - + "e.v1beta1.GetShareRequest\032%.google.cloud" - + ".filestore.v1beta1.Share\"J\332A\004name\202\323\344\223\002=\022" - + ";/v1beta1/{name=projects/*/locations/*/i" - + "nstances/*/shares/*}\022\366\001\n\013CreateShare\0222.g" - + "oogle.cloud.filestore.v1beta1.CreateShar" - + "eRequest\032\035.google.longrunning.Operation\"" - + "\223\001\312A.\n\005Share\022%google.cloud.common.Operat" - + "ionMetadata\332A\025parent,share,share_id\202\323\344\223\002" - + "D\";/v1beta1/{parent=projects/*/locations" - + "/*/instances/*}/shares:\005share\022\356\001\n\013Delete" - + "Share\0222.google.cloud.filestore.v1beta1.D" - + "eleteShareRequest\032\035.google.longrunning.O" - + "peration\"\213\001\312A>\n\025google.protobuf.Empty\022%g" - + "oogle.cloud.common.OperationMetadata\332A\004n" - + "ame\202\323\344\223\002=*;/v1beta1/{name=projects/*/loc" - + "ations/*/instances/*/shares/*}\022\370\001\n\013Updat" - + "eShare\0222.google.cloud.filestore.v1beta1." - + "UpdateShareRequest\032\035.google.longrunning." - + "Operation\"\225\001\312A.\n\005Share\022%google.cloud.com" - + "mon.OperationMetadata\332A\021share,update_mas" - + "k\202\323\344\223\002J2A/v1beta1/{share.name=projects/*" - + "/locations/*/instances/*/shares/*}:\005shar" - + "e\032G\312A\023file.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\306\001\n\"c" - + "om.google.cloud.filestore.v1beta1B\032Cloud" - + "FilestoreServiceProtoP\001Z@cloud.google.co" - + "m/go/filestore/apiv1beta1/filestorepb;fi" - + "lestorepb\252\002\036Google.Cloud.Filestore.V1Bet" - + "a1\312\002\036Google\\Cloud\\Filestore\\V1beta1b\006pro" - + "to3" + + "eapis.com/Location\022\031\n\013instance_id\030\002 \001(\tB" + + "\004\342A\001\002\022@\n\010instance\030\003 \001(\0132(.google.cloud.f" + + "ilestore.v1beta1.InstanceB\004\342A\001\002\"I\n\022GetIn" + + "stanceRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034fi" + + "le.googleapis.com/Instance\"\220\001\n\025UpdateIns" + + "tanceRequest\0225\n\013update_mask\030\001 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\004\342A\001\002\022@\n\010instance\030" + + "\002 \001(\0132(.google.cloud.filestore.v1beta1.I" + + "nstanceB\004\342A\001\002\"\353\001\n\026RestoreInstanceRequest" + + "\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis" + + ".com/Instance\022\030\n\nfile_share\030\002 \001(\tB\004\342A\001\002\022" + + ">\n\017source_snapshot\030\003 \001(\tB#\030\001\372A\036\n\034file.go" + + "ogleapis.com/SnapshotH\000\0228\n\rsource_backup" + + "\030\004 \001(\tB\037\372A\034\n\032file.googleapis.com/BackupH" + + "\000B\010\n\006source\"n\n\025RevertInstanceRequest\0223\n\004" + + "name\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.googleapis.com" + + "/Instance\022 \n\022target_snapshot_id\030\002 \001(\tB\004\342" + + "A\001\002\"[\n\025DeleteInstanceRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034file.googleapis.com/Instanc" + + "e\022\r\n\005force\030\002 \001(\010\"\233\001\n\024ListInstancesReques" + + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\022\020\n\010order_by\030\004 \001(\t\022\016" + + "\n\006filter\030\005 \001(\t\"\202\001\n\025ListInstancesResponse" + + "\022;\n\tinstances\030\001 \003(\0132(.google.cloud.files" + + "tore.v1beta1.Instance\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\004\n\010Snapshot" + + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\023\n\013description\030\002 \001(" + + "\t\022C\n\005state\030\003 \001(\0162..google.cloud.filestor" + + "e.v1beta1.Snapshot.StateB\004\342A\001\003\0225\n\013create" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\004\342A\001\003\022D\n\006labels\030\005 \003(\01324.google.cloud.fil" + + "estore.v1beta1.Snapshot.LabelsEntry\022#\n\025f" + + "ilesystem_used_bytes\030\014 \001(\003B\004\342A\001\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" + + "ING\020\001\022\t\n\005READY\020\003\022\014\n\010DELETING\020\004:t\352Aq\n\034fil" + + "e.googleapis.com/Snapshot\022Qprojects/{pro" + + "ject}/locations/{location}/instances/{in" + + "stance}/snapshots/{snapshot}\"\253\001\n\025CreateS" + + "napshotRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n" + + "\034file.googleapis.com/Instance\022\031\n\013snapsho" + + "t_id\030\002 \001(\tB\004\342A\001\002\022@\n\010snapshot\030\003 \001(\0132(.goo" + + "gle.cloud.filestore.v1beta1.SnapshotB\004\342A" + + "\001\002\"I\n\022GetSnapshotRequest\0223\n\004name\030\001 \001(\tB%" + + "\342A\001\002\372A\036\n\034file.googleapis.com/Snapshot\"L\n" + + "\025DeleteSnapshotRequest\0223\n\004name\030\001 \001(\tB%\342A" + + "\001\002\372A\036\n\034file.googleapis.com/Snapshot\"\220\001\n\025" + + "UpdateSnapshotRequest\0225\n\013update_mask\030\001 \001" + + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022@\n\010" + + "snapshot\030\002 \001(\0132(.google.cloud.filestore." + + "v1beta1.SnapshotB\004\342A\001\002\"\226\001\n\024ListSnapshots" + + "Request\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034file.g" + + "oogleapis.com/Instance\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\010order_by\030\004 \001(\t\022" + + "\016\n\006filter\030\005 \001(\t\"m\n\025ListSnapshotsResponse" + + "\022;\n\tsnapshots\030\001 \003(\0132(.google.cloud.files" + + "tore.v1beta1.Snapshot\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\317\006\n\006Backup\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\023\n" + + "\013description\030\002 \001(\t\022A\n\005state\030\003 \001(\0162,.goog" + + "le.cloud.filestore.v1beta1.Backup.StateB" + + "\004\342A\001\003\0225\n\013create_time\030\004 \001(\0132\032.google.prot" + + "obuf.TimestampB\004\342A\001\003\022B\n\006labels\030\005 \003(\01322.g" + + "oogle.cloud.filestore.v1beta1.Backup.Lab" + + "elsEntry\022\031\n\013capacity_gb\030\006 \001(\003B\004\342A\001\003\022\033\n\rs" + + "torage_bytes\030\007 \001(\003B\004\342A\001\003\022:\n\017source_insta" + + "nce\030\010 \001(\tB!\372A\036\n\034file.googleapis.com/Inst" + + "ance\022\031\n\021source_file_share\030\t \001(\t\022Q\n\024sourc" + + "e_instance_tier\030\n \001(\0162-.google.cloud.fil" + + "estore.v1beta1.Instance.TierB\004\342A\001\003\022\034\n\016do" + + "wnload_bytes\030\013 \001(\003B\004\342A\001\003\0227\n\rsatisfies_pz" + + "s\030\014 \001(\0132\032.google.protobuf.BoolValueB\004\342A\001" + + "\003\022\033\n\rsatisfies_pzi\030\016 \001(\010B\004\342A\001\003\022\032\n\014kms_ke" + + "y_name\030\r \001(\tB\004\342A\001\005\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"b\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\016\n\nFINAL" + + "IZING\020\002\022\t\n\005READY\020\003\022\014\n\010DELETING\020\004\022\013\n\007INVA" + + "LID\020\005:Y\352AV\n\032file.googleapis.com/Backup\0228" + + "projects/{project}/locations/{location}/" + + "backups/{backup}\"\250\001\n\023CreateBackupRequest" + + "\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goo" + + "gleapis.com/Location\022<\n\006backup\030\002 \001(\0132&.g" + + "oogle.cloud.filestore.v1beta1.BackupB\004\342A" + + "\001\002\022\027\n\tbackup_id\030\003 \001(\tB\004\342A\001\002\"H\n\023DeleteBac" + + "kupRequest\0221\n\004name\030\001 \001(\tB#\342A\001\002\372A\034\n\032file." + + "googleapis.com/Backup\"\212\001\n\023UpdateBackupRe" + + "quest\022<\n\006backup\030\001 \001(\0132&.google.cloud.fil" + + "estore.v1beta1.BackupB\004\342A\001\002\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\002\"E\n\020GetBackupRequest\0221\n\004name\030\001 \001(\tB#\342A" + + "\001\002\372A\034\n\032file.googleapis.com/Backup\"\231\001\n\022Li" + + "stBackupsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" + + "#\n!locations.googleapis.com/Location\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\010o" + + "rder_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"|\n\023ListBac" + + "kupsResponse\0227\n\007backups\030\001 \003(\0132&.google.c" + + "loud.filestore.v1beta1.Backup\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\207\005\n\005" + + "Share\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\022\n\nmount_name\030" + + "\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\023\n\013capacity_g" + + "b\030\004 \001(\003\022L\n\022nfs_export_options\030\005 \003(\01320.go" + + "ogle.cloud.filestore.v1beta1.NfsExportOp" + + "tions\022@\n\005state\030\006 \001(\0162+.google.cloud.file" + + "store.v1beta1.Share.StateB\004\342A\001\003\0225\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\022A\n\006labels\030\010 \003(\01321.google.cloud.fi" + + "lestore.v1beta1.Share.LabelsEntry\0225\n\006bac" + + "kup\030\t \001(\tB#\342A\001\005\372A\034\n\032file.googleapis.com/" + + "BackupH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\003\022\014\n\010DELE" + + "TING\020\004:k\352Ah\n\031file.googleapis.com/Share\022K" + + "projects/{project}/locations/{location}/" + + "instances/{instance}/shares/{share}B\010\n\006s" + + "ource\"\237\001\n\022CreateShareRequest\0225\n\006parent\030\001" + + " \001(\tB%\342A\001\002\372A\036\n\034file.googleapis.com/Insta" + + "nce\022\026\n\010share_id\030\002 \001(\tB\004\342A\001\002\022:\n\005share\030\003 \001" + + "(\0132%.google.cloud.filestore.v1beta1.Shar" + + "eB\004\342A\001\002\"C\n\017GetShareRequest\0220\n\004name\030\001 \001(\t" + + "B\"\342A\001\002\372A\033\n\031file.googleapis.com/Share\"F\n\022" + + "DeleteShareRequest\0220\n\004name\030\001 \001(\tB\"\342A\001\002\372A" + + "\033\n\031file.googleapis.com/Share\"\223\001\n\021ListSha" + + "resRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\n\034fil" + + "e.googleapis.com/Instance\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\020\n\010order_by\030\004 \001" + + "(\t\022\016\n\006filter\030\005 \001(\t\"y\n\022ListSharesResponse" + + "\0225\n\006shares\030\001 \003(\0132%.google.cloud.filestor" + + "e.v1beta1.Share\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"\207\001\n\022UpdateShareReq" + + "uest\022:\n\005share\030\001 \001(\0132%.google.cloud.files" + + "tore.v1beta1.ShareB\004\342A\001\002\0225\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\0022" + + "\310\'\n\025CloudFilestoreManager\022\301\001\n\rListInstan" + + "ces\0224.google.cloud.filestore.v1beta1.Lis" + + "tInstancesRequest\0325.google.cloud.filesto" + + "re.v1beta1.ListInstancesResponse\"C\332A\006par" + + "ent\202\323\344\223\0024\0222/v1beta1/{parent=projects/*/l" + + "ocations/*}/instances\022\256\001\n\013GetInstance\0222." + + "google.cloud.filestore.v1beta1.GetInstan" + + "ceRequest\032(.google.cloud.filestore.v1bet" + + "a1.Instance\"A\332A\004name\202\323\344\223\0024\0222/v1beta1/{na" + + "me=projects/*/locations/*/instances/*}\022\377" + + "\001\n\016CreateInstance\0225.google.cloud.filesto" + + "re.v1beta1.CreateInstanceRequest\032\035.googl" + + "e.longrunning.Operation\"\226\001\312A1\n\010Instance\022" + + "%google.cloud.common.OperationMetadata\332A" + + "\033parent,instance,instance_id\202\323\344\223\002>\"2/v1b" + + "eta1/{parent=projects/*/locations/*}/ins" + + "tances:\010instance\022\201\002\n\016UpdateInstance\0225.go" + + "ogle.cloud.filestore.v1beta1.UpdateInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"\230\001\312A1\n\010Instance\022%google.cloud.common.O" + + "perationMetadata\332A\024instance,update_mask\202" + + "\323\344\223\002G2;/v1beta1/{instance.name=projects/" + + "*/locations/*/instances/*}:\010instance\022\343\001\n" + + "\017RestoreInstance\0226.google.cloud.filestor" + + "e.v1beta1.RestoreInstanceRequest\032\035.googl" + + "e.longrunning.Operation\"y\312A1\n\010Instance\022%" + + "google.cloud.common.OperationMetadata\202\323\344" + + "\223\002?\":/v1beta1/{name=projects/*/locations" + + "/*/instances/*}:restore:\001*\022\340\001\n\016RevertIns" + + "tance\0225.google.cloud.filestore.v1beta1.R" + + "evertInstanceRequest\032\035.google.longrunnin" + + "g.Operation\"x\312A1\n\010Instance\022%google.cloud" + + ".common.OperationMetadata\202\323\344\223\002>\"9/v1beta" + + "1/{name=projects/*/locations/*/instances" + + "/*}:revert:\001*\022\353\001\n\016DeleteInstance\0225.googl" + + "e.cloud.filestore.v1beta1.DeleteInstance" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\312A>\n\025google.protobuf.Empty\022%google.clou" + + "d.common.OperationMetadata\332A\004name\202\323\344\223\0024*" + + "2/v1beta1/{name=projects/*/locations/*/i" + + "nstances/*}\022\315\001\n\rListSnapshots\0224.google.c" + + "loud.filestore.v1beta1.ListSnapshotsRequ" + + "est\0325.google.cloud.filestore.v1beta1.Lis" + + "tSnapshotsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1" + + "beta1/{parent=projects/*/locations/*/ins" + + "tances/*}/snapshots\022\272\001\n\013GetSnapshot\0222.go" + + "ogle.cloud.filestore.v1beta1.GetSnapshot" + + "Request\032(.google.cloud.filestore.v1beta1" + + ".Snapshot\"M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name" + + "=projects/*/locations/*/instances/*/snap" + + "shots/*}\022\213\002\n\016CreateSnapshot\0225.google.clo" + + "ud.filestore.v1beta1.CreateSnapshotReque" + + "st\032\035.google.longrunning.Operation\"\242\001\312A1\n" + + "\010Snapshot\022%google.cloud.common.Operation" + + "Metadata\332A\033parent,snapshot,snapshot_id\202\323" + + "\344\223\002J\">/v1beta1/{parent=projects/*/locati" + + "ons/*/instances/*}/snapshots:\010snapshot\022\367" + + "\001\n\016DeleteSnapshot\0225.google.cloud.filesto" + + "re.v1beta1.DeleteSnapshotRequest\032\035.googl" + + "e.longrunning.Operation\"\216\001\312A>\n\025google.pr" + + "otobuf.Empty\022%google.cloud.common.Operat" + + "ionMetadata\332A\004name\202\323\344\223\002@*>/v1beta1/{name" + + "=projects/*/locations/*/instances/*/snap" + + "shots/*}\022\215\002\n\016UpdateSnapshot\0225.google.clo" + + "ud.filestore.v1beta1.UpdateSnapshotReque" + + "st\032\035.google.longrunning.Operation\"\244\001\312A1\n" + + "\010Snapshot\022%google.cloud.common.Operation" + + "Metadata\332A\024snapshot,update_mask\202\323\344\223\002S2G/" + + "v1beta1/{snapshot.name=projects/*/locati" + + "ons/*/instances/*/snapshots/*}:\010snapshot" + + "\022\271\001\n\013ListBackups\0222.google.cloud.filestor" + + "e.v1beta1.ListBackupsRequest\0323.google.cl" + + "oud.filestore.v1beta1.ListBackupsRespons" + + "e\"A\332A\006parent\202\323\344\223\0022\0220/v1beta1/{parent=pro" + + "jects/*/locations/*}/backups\022\246\001\n\tGetBack" + + "up\0220.google.cloud.filestore.v1beta1.GetB" + + "ackupRequest\032&.google.cloud.filestore.v1" + + "beta1.Backup\"?\332A\004name\202\323\344\223\0022\0220/v1beta1/{n" + + "ame=projects/*/locations/*/backups/*}\022\361\001" + + "\n\014CreateBackup\0223.google.cloud.filestore." + + "v1beta1.CreateBackupRequest\032\035.google.lon" + + "grunning.Operation\"\214\001\312A/\n\006Backup\022%google" + + ".cloud.common.OperationMetadata\332A\027parent" + + ",backup,backup_id\202\323\344\223\002:\"0/v1beta1/{paren" + + "t=projects/*/locations/*}/backups:\006backu" + + "p\022\345\001\n\014DeleteBackup\0223.google.cloud.filest" + + "ore.v1beta1.DeleteBackupRequest\032\035.google" + + ".longrunning.Operation\"\200\001\312A>\n\025google.pro" + + "tobuf.Empty\022%google.cloud.common.Operati" + + "onMetadata\332A\004name\202\323\344\223\0022*0/v1beta1/{name=" + + "projects/*/locations/*/backups/*}\022\363\001\n\014Up" + + "dateBackup\0223.google.cloud.filestore.v1be" + + "ta1.UpdateBackupRequest\032\035.google.longrun" + + "ning.Operation\"\216\001\312A/\n\006Backup\022%google.clo" + + "ud.common.OperationMetadata\332A\022backup,upd" + + "ate_mask\202\323\344\223\002A27/v1beta1/{backup.name=pr" + + "ojects/*/locations/*/backups/*}:\006backup\022" + + "\301\001\n\nListShares\0221.google.cloud.filestore." + + "v1beta1.ListSharesRequest\0322.google.cloud" + + ".filestore.v1beta1.ListSharesResponse\"L\332" + + "A\006parent\202\323\344\223\002=\022;/v1beta1/{parent=project" + + "s/*/locations/*/instances/*}/shares\022\256\001\n\010" + + "GetShare\022/.google.cloud.filestore.v1beta" + + "1.GetShareRequest\032%.google.cloud.filesto" + + "re.v1beta1.Share\"J\332A\004name\202\323\344\223\002=\022;/v1beta" + + "1/{name=projects/*/locations/*/instances" + + "/*/shares/*}\022\366\001\n\013CreateShare\0222.google.cl" + + "oud.filestore.v1beta1.CreateShareRequest" + + "\032\035.google.longrunning.Operation\"\223\001\312A.\n\005S" + + "hare\022%google.cloud.common.OperationMetad" + + "ata\332A\025parent,share,share_id\202\323\344\223\002D\";/v1be" + + "ta1/{parent=projects/*/locations/*/insta" + + "nces/*}/shares:\005share\022\356\001\n\013DeleteShare\0222." + + "google.cloud.filestore.v1beta1.DeleteSha" + + "reRequest\032\035.google.longrunning.Operation" + + "\"\213\001\312A>\n\025google.protobuf.Empty\022%google.cl" + + "oud.common.OperationMetadata\332A\004name\202\323\344\223\002" + + "=*;/v1beta1/{name=projects/*/locations/*" + + "/instances/*/shares/*}\022\370\001\n\013UpdateShare\0222" + + ".google.cloud.filestore.v1beta1.UpdateSh" + + "areRequest\032\035.google.longrunning.Operatio" + + "n\"\225\001\312A.\n\005Share\022%google.cloud.common.Oper" + + "ationMetadata\332A\021share,update_mask\202\323\344\223\002J2" + + "A/v1beta1/{share.name=projects/*/locatio" + + "ns/*/instances/*/shares/*}:\005share\032G\312A\023fi" + + "le.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\306\001\n\"com.googl" + + "e.cloud.filestore.v1beta1B\032CloudFilestor" + + "eServiceProtoP\001Z@cloud.google.com/go/fil" + + "estore/apiv1beta1/filestorepb;filestorep" + + "b\252\002\036Google.Cloud.Filestore.V1Beta1\312\002\036Goo" + + "gle\\Cloud\\Filestore\\V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -615,6 +616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Networks", "Etag", "SatisfiesPzs", + "SatisfiesPzi", "KmsKeyName", "SuspensionReasons", "MaxCapacityGb", @@ -779,6 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceInstanceTier", "DownloadBytes", "SatisfiesPzs", + "SatisfiesPzi", "KmsKeyName", }); internal_static_google_cloud_filestore_v1beta1_Backup_LabelsEntry_descriptor = diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java index 380f0f8b8658..ac2470923d95 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java @@ -117,9 +117,10 @@ public SourceCase getSourceCase() { * * *
-   * 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).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -142,9 +143,10 @@ public java.lang.String getName() { * * *
-   * 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).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -843,9 +845,10 @@ public Builder clearSource() { * * *
-     * 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).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -867,9 +870,10 @@ public java.lang.String getName() { * * *
-     * 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).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -891,9 +895,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * 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).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -914,9 +919,10 @@ public Builder setName(java.lang.String value) { * * *
-     * 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).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; @@ -933,9 +939,10 @@ public Builder clearName() { * * *
-     * 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).
+     * Required. The name of the file share. Must use 1-16 characters for the
+     * basic service tier and 1-63 characters for all other service tiers.
+     * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+     * start with a letter. Immutable.
      * 
* * string name = 1; diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java index ea0791315fc5..cab645b43e1b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfigOrBuilder.java @@ -27,9 +27,10 @@ public interface FileShareConfigOrBuilder * * *
-   * 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).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; @@ -41,9 +42,10 @@ public interface FileShareConfigOrBuilder * * *
-   * 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).
+   * Required. The name of the file share. Must use 1-16 characters for the
+   * basic service tier and 1-63 characters for all other service tiers.
+   * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
+   * start with a letter. Immutable.
    * 
* * string name = 1; diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java index b842cc100e8e..978a5465865c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java @@ -523,6 +523,17 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { * ZONAL = 8; */ ZONAL(8), + /** + * + * + *
+     * REGIONAL instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * REGIONAL = 9; + */ + REGIONAL(9), UNRECOGNIZED(-1), ; @@ -613,6 +624,17 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { * ZONAL = 8; */ public static final int ZONAL_VALUE = 8; + /** + * + * + *
+     * REGIONAL instances offer the features and availability needed for
+     * mission-critical workloads.
+     * 
+ * + * REGIONAL = 9; + */ + public static final int REGIONAL_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -654,6 +676,8 @@ public static Tier forNumber(int value) { return ENTERPRISE; case 8: return ZONAL; + case 9: + return REGIONAL; default: return null; } @@ -1645,6 +1669,24 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { : satisfiesPzs_; } + public static final int SATISFIES_PZI_FIELD_NUMBER = 26; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -2087,6 +2129,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (directoryServices_ != null) { output.writeMessage(24, getDirectoryServices()); } + if (satisfiesPzi_ != false) { + output.writeBool(26, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -2175,6 +2220,9 @@ public int getSerializedSize() { if (directoryServices_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getDirectoryServices()); } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2208,6 +2256,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; } + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!suspensionReasons_.equals(other.suspensionReasons_)) return false; if (getMaxCapacityGb() != other.getMaxCapacityGb()) return false; @@ -2263,6 +2312,8 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + getSatisfiesPzs().hashCode(); } + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); if (getSuspensionReasonsCount() > 0) { @@ -2475,9 +2526,10 @@ public Builder clear() { satisfiesPzsBuilder_.dispose(); satisfiesPzsBuilder_ = null; } + satisfiesPzi_ = false; kmsKeyName_ = ""; suspensionReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); maxCapacityGb_ = 0L; capacityStepSizeGb_ = 0L; maxShareCount_ = 0L; @@ -2543,9 +2595,9 @@ private void buildPartialRepeatedFields(com.google.cloud.filestore.v1beta1.Insta } else { result.networks_ = networksBuilder_.build(); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { suspensionReasons_ = java.util.Collections.unmodifiableList(suspensionReasons_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.suspensionReasons_ = suspensionReasons_; } @@ -2582,27 +2634,30 @@ private void buildPartial0(com.google.cloud.filestore.v1beta1.Instance result) { satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.kmsKeyName_ = kmsKeyName_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.maxCapacityGb_ = maxCapacityGb_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.capacityStepSizeGb_ = capacityStepSizeGb_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.maxShareCount_ = maxShareCount_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.capacityGb_ = capacityGb_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.multiShareEnabled_ = multiShareEnabled_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.protocol_ = protocol_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.directoryServices_ = directoryServicesBuilder_ == null ? directoryServices_ @@ -2743,15 +2798,18 @@ public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) { if (other.hasSatisfiesPzs()) { mergeSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.suspensionReasons_.isEmpty()) { if (suspensionReasons_.isEmpty()) { suspensionReasons_ = other.suspensionReasons_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureSuspensionReasonsIsMutable(); suspensionReasons_.addAll(other.suspensionReasons_); @@ -2896,7 +2954,7 @@ public Builder mergeFrom( case 114: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 114 case 120: @@ -2921,46 +2979,52 @@ public Builder mergeFrom( case 128: { maxCapacityGb_ = input.readInt64(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 128 case 136: { capacityStepSizeGb_ = input.readInt64(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 136 case 144: { maxShareCount_ = input.readInt64(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 144 case 152: { capacityGb_ = input.readInt64(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 152 case 160: { multiShareEnabled_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 160 case 168: { protocol_ = input.readEnum(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 168 case 194: { input.readMessage( getDirectoryServicesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 194 + case 208: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4919,6 +4983,59 @@ public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { return satisfiesPzsBuilder_; } + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000800); + satisfiesPzi_ = false; + onChanged(); + return this; + } + private java.lang.Object kmsKeyName_ = ""; /** * @@ -4981,7 +5098,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4998,7 +5115,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -5020,7 +5137,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5029,9 +5146,9 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSuspensionReasonsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { suspensionReasons_ = new java.util.ArrayList(suspensionReasons_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } /** @@ -5182,7 +5299,7 @@ public Builder addAllSuspensionReasons( */ public Builder clearSuspensionReasons() { suspensionReasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -5319,7 +5436,7 @@ public long getMaxCapacityGb() { public Builder setMaxCapacityGb(long value) { maxCapacityGb_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5335,7 +5452,7 @@ public Builder setMaxCapacityGb(long value) { * @return This builder for chaining. */ public Builder clearMaxCapacityGb() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); maxCapacityGb_ = 0L; onChanged(); return this; @@ -5372,7 +5489,7 @@ public long getCapacityStepSizeGb() { public Builder setCapacityStepSizeGb(long value) { capacityStepSizeGb_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5388,7 +5505,7 @@ public Builder setCapacityStepSizeGb(long value) { * @return This builder for chaining. */ public Builder clearCapacityStepSizeGb() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); capacityStepSizeGb_ = 0L; onChanged(); return this; @@ -5425,7 +5542,7 @@ public long getMaxShareCount() { public Builder setMaxShareCount(long value) { maxShareCount_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5441,7 +5558,7 @@ public Builder setMaxShareCount(long value) { * @return This builder for chaining. */ public Builder clearMaxShareCount() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); maxShareCount_ = 0L; onChanged(); return this; @@ -5482,7 +5599,7 @@ public long getCapacityGb() { public Builder setCapacityGb(long value) { capacityGb_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5500,7 +5617,7 @@ public Builder setCapacityGb(long value) { * @return This builder for chaining. */ public Builder clearCapacityGb() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); capacityGb_ = 0L; onChanged(); return this; @@ -5541,7 +5658,7 @@ public boolean getMultiShareEnabled() { public Builder setMultiShareEnabled(boolean value) { multiShareEnabled_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5559,7 +5676,7 @@ public Builder setMultiShareEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearMultiShareEnabled() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); multiShareEnabled_ = false; onChanged(); return this; @@ -5603,7 +5720,7 @@ public int getProtocolValue() { */ public Builder setProtocolValue(int value) { protocol_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5650,7 +5767,7 @@ public Builder setProtocol(com.google.cloud.filestore.v1beta1.Instance.FileProto if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; protocol_ = value.getNumber(); onChanged(); return this; @@ -5671,7 +5788,7 @@ public Builder setProtocol(com.google.cloud.filestore.v1beta1.Instance.FileProto * @return This builder for chaining. */ public Builder clearProtocol() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); protocol_ = 0; onChanged(); return this; @@ -5696,7 +5813,7 @@ public Builder clearProtocol() { * @return Whether the directoryServices field is set. */ public boolean hasDirectoryServices() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -5739,7 +5856,7 @@ public Builder setDirectoryServices( } else { directoryServicesBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5760,7 +5877,7 @@ public Builder setDirectoryServices( } else { directoryServicesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5777,7 +5894,7 @@ public Builder setDirectoryServices( public Builder mergeDirectoryServices( com.google.cloud.filestore.v1beta1.DirectoryServicesConfig value) { if (directoryServicesBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && directoryServices_ != null && directoryServices_ != com.google.cloud.filestore.v1beta1.DirectoryServicesConfig @@ -5789,7 +5906,7 @@ public Builder mergeDirectoryServices( } else { directoryServicesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5804,7 +5921,7 @@ public Builder mergeDirectoryServices( * .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24; */ public Builder clearDirectoryServices() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); directoryServices_ = null; if (directoryServicesBuilder_ != null) { directoryServicesBuilder_.dispose(); @@ -5825,7 +5942,7 @@ public Builder clearDirectoryServices() { */ public com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder getDirectoryServicesBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getDirectoryServicesFieldBuilder().getBuilder(); } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java index 0cd0595bb30a..a655c522547c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceOrBuilder.java @@ -432,6 +432,19 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + /** * * diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java index 21123b650f09..30f613d66726 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java @@ -237,7 +237,7 @@ public com.google.protobuf.ByteString getFileShareBytes() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return Whether the sourceSnapshot field is set. */ @java.lang.Deprecated @@ -256,7 +256,7 @@ public boolean hasSourceSnapshot() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The sourceSnapshot. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public java.lang.String getSourceSnapshot() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The bytes for sourceSnapshot. */ @java.lang.Deprecated @@ -1087,7 +1087,7 @@ public Builder setFileShareBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return Whether the sourceSnapshot field is set. */ @java.lang.Override @@ -1108,7 +1108,7 @@ public boolean hasSourceSnapshot() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The sourceSnapshot. */ @java.lang.Override @@ -1142,7 +1142,7 @@ public java.lang.String getSourceSnapshot() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The bytes for sourceSnapshot. */ @java.lang.Override @@ -1176,7 +1176,7 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @param value The sourceSnapshot to set. * @return This builder for chaining. */ @@ -1203,7 +1203,7 @@ public Builder setSourceSnapshot(java.lang.String value) { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1228,7 +1228,7 @@ public Builder clearSourceSnapshot() { * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java index 98ec52a67c4b..ebbe7e938a1b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequestOrBuilder.java @@ -93,7 +93,7 @@ public interface RestoreInstanceRequestOrBuilder * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return Whether the sourceSnapshot field is set. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RestoreInstanceRequestOrBuilder * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The sourceSnapshot. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface RestoreInstanceRequestOrBuilder * * * @deprecated google.cloud.filestore.v1beta1.RestoreInstanceRequest.source_snapshot is - * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=765 + * deprecated. See google/cloud/filestore/v1beta1/cloud_filestore_service.proto;l=773 * @return The bytes for sourceSnapshot. */ @java.lang.Deprecated diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java index b80adbc7b294..4c29c7899593 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-   * resource name of the instance, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+   * The resource name of the instance, in the format
    * 
* * @@ -100,8 +100,8 @@ public java.lang.String getName() { * *
    * Required.
-   * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-   * resource name of the instance, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+   * The resource name of the instance, in the format
    * 
* * @@ -133,7 +133,7 @@ public 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}
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -158,7 +158,7 @@ public 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}
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -552,8 +552,8 @@ public Builder mergeFrom( * *
      * Required.
-     * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-     * resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * The resource name of the instance, in the format
      * 
* * @@ -578,8 +578,8 @@ public java.lang.String getName() { * *
      * Required.
-     * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-     * resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * The resource name of the instance, in the format
      * 
* * @@ -604,8 +604,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required.
-     * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-     * resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * The resource name of the instance, in the format
      * 
* * @@ -629,8 +629,8 @@ public Builder setName(java.lang.String value) { * *
      * Required.
-     * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-     * resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * The resource name of the instance, in the format
      * 
* * @@ -650,8 +650,8 @@ public Builder clearName() { * *
      * Required.
-     * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-     * resource name of the instance, in the format
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+     * The resource name of the instance, in the format
      * 
* * @@ -679,7 +679,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * 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}
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -703,7 +703,7 @@ public 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}
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -727,7 +727,7 @@ public com.google.protobuf.ByteString getTargetSnapshotIdBytes() { *
      * 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}
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -750,7 +750,7 @@ public Builder setTargetSnapshotId(java.lang.String value) { *
      * 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}
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -769,7 +769,7 @@ public Builder clearTargetSnapshotId() { *
      * 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}
+     * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
      * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java index bec6724c23fe..1964d7b26b5b 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RevertInstanceRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface RevertInstanceRequestOrBuilder * *
    * Required.
-   * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-   * resource name of the instance, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+   * The resource name of the instance, in the format
    * 
* * @@ -44,8 +44,8 @@ public interface RevertInstanceRequestOrBuilder * *
    * Required.
-   * projects/{project_id}/locations/{location_id}/instances/{instance_id}. The
-   * resource name of the instance, in the format
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
+   * The resource name of the instance, in the format
    * 
* * @@ -62,7 +62,7 @@ public interface RevertInstanceRequestOrBuilder *
    * 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}
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -76,7 +76,7 @@ public interface RevertInstanceRequestOrBuilder *
    * 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}
+   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
    * 
* * string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto index 5c11d8cc04b8..07ce66e3b698 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/proto/google/cloud/filestore/v1beta1/cloud_filestore_service.proto @@ -385,9 +385,10 @@ message NetworkConfig { // File share configuration for the instance. message FileShareConfig { - // 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). + // Required. The name of the file share. Must use 1-16 characters for the + // basic service tier and 1-63 characters for all other service tiers. + // Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must + // start with a letter. Immutable. string name = 1; // File share capacity in gigabytes (GB). @@ -597,6 +598,10 @@ message Instance { // ZONAL instances offer expanded capacity and performance scaling // capabilities. ZONAL = 8; + + // REGIONAL instances offer the features and availability needed for + // mission-critical workloads. + REGIONAL = 9; } // SuspensionReason contains the possible reasons for a suspension. @@ -660,6 +665,9 @@ message Instance { google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzi = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + // KMS key name used for data encryption. string kms_key_name = 14; @@ -780,8 +788,8 @@ message RestoreInstanceRequest { // specified snapshot. message RevertInstanceRequest { // Required. - // projects/{project_id}/locations/{location_id}/instances/{instance_id}. The - // resource name of the instance, in the format + // `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" } @@ -789,7 +797,7 @@ message RevertInstanceRequest { // 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} + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}` string target_snapshot_id = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1063,6 +1071,9 @@ message Backup { google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzi = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. KMS key name used for data encryption. string kms_key_name = 13 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java new file mode 100644 index 000000000000..7e123a456919 --- /dev/null +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstance.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 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.samples; + +// [START file_v1_generated_CloudFilestoreManager_RevertInstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.filestore.v1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1.InstanceName; +import com.google.cloud.filestore.v1.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_v1_generated_CloudFilestoreManager_RevertInstance_async] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java new file mode 100644 index 000000000000..7c0e7c2c4ee4 --- /dev/null +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/AsyncRevertInstanceLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 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.samples; + +// [START file_v1_generated_CloudFilestoreManager_RevertInstance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.common.OperationMetadata; +import com.google.cloud.filestore.v1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1.Instance; +import com.google.cloud.filestore.v1.InstanceName; +import com.google.cloud.filestore.v1.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_v1_generated_CloudFilestoreManager_RevertInstance_LRO_async] diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java new file mode 100644 index 000000000000..a2210bf6abdb --- /dev/null +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanager/revertinstance/SyncRevertInstance.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 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.samples; + +// [START file_v1_generated_CloudFilestoreManager_RevertInstance_sync] +import com.google.cloud.filestore.v1.CloudFilestoreManagerClient; +import com.google.cloud.filestore.v1.Instance; +import com.google.cloud.filestore.v1.InstanceName; +import com.google.cloud.filestore.v1.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_v1_generated_CloudFilestoreManager_RevertInstance_sync]