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
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+ */ + public final OperationCallablefuture = + * cloudFilestoreManagerClient.revertInstanceOperationCallable().futureCall(request); + * // Do something. + * Instance response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * cloudFilestoreManagerClient.revertInstanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
+ * 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
+ * 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
+ * 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
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- * 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+ * 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
+ * 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+ * 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- * 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.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]