From 20d3623d36ad9f919ce2d4a727b50fc9692adfa0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 21:40:14 +0000 Subject: [PATCH] chore(filestore): add common_java_proto dep to java_assembly_pkg (#79) - [x] Regenerate this pull request now. PiperOrigin-RevId: 403182344 Source-Link: https://github.com/googleapis/googleapis/commit/b44c45ca32db478554a3b8e2e04d317ed2f466f4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/35bc860f6a1b0c4330fd895bd30a7faa446b28b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzViYzg2MGY2YTFiMGM0MzMwZmQ4OTViZDMwYTdmYWE0NDZiMjhiMSJ9 fix(filestore): add missing operation_metadata.proto import --- .../cloud/filestore/v1/package-info.java | 4 +- .../CloudFilestoreManagerStubSettings.java | 4 +- .../CloudFilestoreManagerStubSettings.java | 4 +- .../cloud/common/OperationMetadata.java | 16 +- .../com/google/cloud/filestore/v1/Backup.java | 84 ++--- .../cloud/filestore/v1/BackupOrBuilder.java | 18 +- .../v1/CloudFilestoreServiceProto.java | 343 +++++++++--------- .../filestore/v1/CreateBackupRequest.java | 8 +- .../filestore/v1/CreateInstanceRequest.java | 8 +- .../filestore/v1/DeleteBackupRequest.java | 4 +- .../filestore/v1/DeleteInstanceRequest.java | 4 +- .../cloud/filestore/v1/FileShareConfig.java | 4 +- .../cloud/filestore/v1/GetBackupRequest.java | 4 +- .../filestore/v1/GetInstanceRequest.java | 4 +- .../google/cloud/filestore/v1/Instance.java | 16 +- .../filestore/v1/ListBackupsRequest.java | 86 ++--- .../v1/ListBackupsRequestOrBuilder.java | 20 +- .../filestore/v1/ListBackupsResponse.java | 4 +- .../filestore/v1/ListInstancesRequest.java | 58 +-- .../v1/ListInstancesRequestOrBuilder.java | 12 +- .../filestore/v1/ListInstancesResponse.java | 4 +- .../cloud/filestore/v1/NetworkConfig.java | 8 +- .../filestore/v1/RestoreInstanceRequest.java | 36 +- .../v1/RestoreInstanceRequestOrBuilder.java | 8 +- .../filestore/v1/UpdateBackupRequest.java | 48 +-- .../v1/UpdateBackupRequestOrBuilder.java | 12 +- .../v1/cloud_filestore_service.proto | 110 +++--- .../cloud/common/OperationMetadata.java | 16 +- .../cloud/filestore/v1beta1/Backup.java | 16 +- .../v1beta1/CreateBackupRequest.java | 8 +- .../v1beta1/CreateInstanceRequest.java | 8 +- .../v1beta1/DeleteBackupRequest.java | 4 +- .../v1beta1/DeleteInstanceRequest.java | 4 +- .../filestore/v1beta1/FileShareConfig.java | 4 +- .../filestore/v1beta1/GetBackupRequest.java | 4 +- .../filestore/v1beta1/GetInstanceRequest.java | 4 +- .../cloud/filestore/v1beta1/Instance.java | 16 +- .../filestore/v1beta1/ListBackupsRequest.java | 16 +- .../v1beta1/ListBackupsResponse.java | 4 +- .../v1beta1/ListInstancesRequest.java | 16 +- .../v1beta1/ListInstancesResponse.java | 4 +- .../filestore/v1beta1/NetworkConfig.java | 8 +- .../v1beta1/RestoreInstanceRequest.java | 8 +- 43 files changed, 541 insertions(+), 530 deletions(-) diff --git a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java index 0978e29f..37c701c0 100644 --- a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java +++ b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Filestore API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= CloudFilestoreManagerClient ======================= * diff --git a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index 6356e47a..8d6b90c7 100644 --- a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java @@ -380,7 +380,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index d9122516..1902e320 100644 --- a/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -381,7 +381,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java index 965742be..36effc86 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java @@ -505,19 +505,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getStatusDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); } if (cancelRequested_ != false) { output.writeBool(6, cancelRequested_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } unknownFields.writeTo(output); @@ -535,19 +535,19 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getStatusDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java index a6324a03..9537d62d 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java @@ -737,8 +737,8 @@ public long getCapacityGb() { * * *

-   * Output only. The size of the storage used by the backup. As backups share storage,
-   * this number is expected to change with backup creation/deletion.
+   * Output only. The size of the storage used by the backup. As backups share
+   * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -860,8 +860,8 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() { * * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
-   * is created from.
+   * Output only. The service tier of the source Cloud Filestore instance that
+   * this backup is created from.
    * 
* * @@ -878,8 +878,8 @@ public int getSourceInstanceTierValue() { * * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
-   * is created from.
+   * Output only. The service tier of the source Cloud Filestore instance that
+   * this backup is created from.
    * 
* * @@ -902,9 +902,9 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { * * *
-   * Output only. Amount of bytes that will be downloaded if the backup is restored. This
-   * may be different than storage bytes, since sequential backups of the same
-   * disk will share storage.
+   * Output only. Amount of bytes that will be downloaded if the backup is
+   * restored. This may be different than storage bytes, since sequential
+   * backups of the same disk will share storage.
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -984,10 +984,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -1004,10 +1004,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (storageBytes_ != 0L) { output.writeInt64(7, storageBytes_); } - if (!getSourceInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sourceInstance_); } - if (!getSourceFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } if (sourceInstanceTier_ @@ -1029,10 +1029,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -1057,10 +1057,10 @@ public int getSerializedSize() { if (storageBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); } - if (!getSourceInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); } - if (!getSourceFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } if (sourceInstanceTier_ @@ -2246,8 +2246,8 @@ public Builder clearCapacityGb() { * * *
-     * Output only. The size of the storage used by the backup. As backups share storage,
-     * this number is expected to change with backup creation/deletion.
+     * Output only. The size of the storage used by the backup. As backups share
+     * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2262,8 +2262,8 @@ public long getStorageBytes() { * * *
-     * Output only. The size of the storage used by the backup. As backups share storage,
-     * this number is expected to change with backup creation/deletion.
+     * Output only. The size of the storage used by the backup. As backups share
+     * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2281,8 +2281,8 @@ public Builder setStorageBytes(long value) { * * *
-     * Output only. The size of the storage used by the backup. As backups share storage,
-     * this number is expected to change with backup creation/deletion.
+     * Output only. The size of the storage used by the backup. As backups share
+     * storage, this number is expected to change with backup creation/deletion.
      * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2528,8 +2528,8 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
-     * is created from.
+     * Output only. The service tier of the source Cloud Filestore instance that
+     * this backup is created from.
      * 
* * @@ -2546,8 +2546,8 @@ public int getSourceInstanceTierValue() { * * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
-     * is created from.
+     * Output only. The service tier of the source Cloud Filestore instance that
+     * this backup is created from.
      * 
* * @@ -2567,8 +2567,8 @@ public Builder setSourceInstanceTierValue(int value) { * * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
-     * is created from.
+     * Output only. The service tier of the source Cloud Filestore instance that
+     * this backup is created from.
      * 
* * @@ -2588,8 +2588,8 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() { * * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
-     * is created from.
+     * Output only. The service tier of the source Cloud Filestore instance that
+     * this backup is created from.
      * 
* * @@ -2612,8 +2612,8 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1.Instance.Tier * * *
-     * Output only. The service tier of the source Cloud Filestore instance that this backup
-     * is created from.
+     * Output only. The service tier of the source Cloud Filestore instance that
+     * this backup is created from.
      * 
* * @@ -2634,9 +2634,9 @@ public Builder clearSourceInstanceTier() { * * *
-     * Output only. Amount of bytes that will be downloaded if the backup is restored. This
-     * may be different than storage bytes, since sequential backups of the same
-     * disk will share storage.
+     * Output only. Amount of bytes that will be downloaded if the backup is
+     * restored. This may be different than storage bytes, since sequential
+     * backups of the same disk will share storage.
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2651,9 +2651,9 @@ public long getDownloadBytes() { * * *
-     * Output only. Amount of bytes that will be downloaded if the backup is restored. This
-     * may be different than storage bytes, since sequential backups of the same
-     * disk will share storage.
+     * Output only. Amount of bytes that will be downloaded if the backup is
+     * restored. This may be different than storage bytes, since sequential
+     * backups of the same disk will share storage.
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2671,9 +2671,9 @@ public Builder setDownloadBytes(long value) { * * *
-     * Output only. Amount of bytes that will be downloaded if the backup is restored. This
-     * may be different than storage bytes, since sequential backups of the same
-     * disk will share storage.
+     * Output only. Amount of bytes that will be downloaded if the backup is
+     * restored. This may be different than storage bytes, since sequential
+     * backups of the same disk will share storage.
      * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java index b95431d1..2c7cf378 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java @@ -215,8 +215,8 @@ public interface BackupOrBuilder * * *
-   * Output only. The size of the storage used by the backup. As backups share storage,
-   * this number is expected to change with backup creation/deletion.
+   * Output only. The size of the storage used by the backup. As backups share
+   * storage, this number is expected to change with backup creation/deletion.
    * 
* * int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -285,8 +285,8 @@ public interface BackupOrBuilder * * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
-   * is created from.
+   * Output only. The service tier of the source Cloud Filestore instance that
+   * this backup is created from.
    * 
* * @@ -300,8 +300,8 @@ public interface BackupOrBuilder * * *
-   * Output only. The service tier of the source Cloud Filestore instance that this backup
-   * is created from.
+   * Output only. The service tier of the source Cloud Filestore instance that
+   * this backup is created from.
    * 
* * @@ -316,9 +316,9 @@ public interface BackupOrBuilder * * *
-   * Output only. Amount of bytes that will be downloaded if the backup is restored. This
-   * may be different than storage bytes, since sequential backups of the same
-   * disk will share storage.
+   * Output only. Amount of bytes that will be downloaded if the backup is
+   * restored. This may be different than storage bytes, since sequential
+   * backups of the same disk will share storage.
    * 
* * int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java index 8ad23d1e..108e446f 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreServiceProto.java @@ -121,176 +121,177 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.v1\032\034google/api/annotations.proto\032\027goog" + "le/api/client.proto\032\037google/api/field_be" + "havior.proto\032\031google/api/resource.proto\032" - + "#google/longrunning/operations.proto\032 go" - + "ogle/protobuf/field_mask.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\"\327\001\n\rNetworkConfig\022\017\n\007net" - + "work\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google.cloud" - + ".filestore.v1.NetworkConfig.AddressMode\022" - + "\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_address" - + "es\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030ADDRESS_" - + "MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"\301\001\n\017Fi" - + "leShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013capacity_" - + "gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372A\034\n\032fi" - + "le.googleapis.com/BackupH\000\022G\n\022nfs_export" - + "_options\030\007 \003(\0132+.google.cloud.filestore." - + "v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020NfsExp" - + "ortOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013access_" - + "mode\030\002 \001(\01626.google.cloud.filestore.v1.N" - + "fsExportOptions.AccessMode\022K\n\013squash_mod" - + "e\030\003 \001(\01626.google.cloud.filestore.v1.NfsE" - + "xportOptions.SquashMode\022\020\n\010anon_uid\030\004 \001(" - + "\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022\033\n\027ACC" - + "ESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n" - + "\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQUASH_MO" - + "DE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH\020\001\022\017\n\013" - + "ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005state\030\005 \001(" - + "\0162).google.cloud.filestore.v1.Instance.S" - + "tateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB\003\340A\003\0224" - + "\n\013create_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.google.clou" - + "d.filestore.v1.Instance.Tier\022?\n\006labels\030\t" - + " \003(\0132/.google.cloud.filestore.v1.Instanc" - + "e.LabelsEntry\022?\n\013file_shares\030\n \003(\0132*.goo" - + "gle.cloud.filestore.v1.FileShareConfig\022:" - + "\n\010networks\030\013 \003(\0132(.google.cloud.filestor" - + "e.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226\n\rsati" - + "sfies_pzs\030\r \001(\0132\032.google.protobuf.BoolVa" - + "lueB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"n\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r\n\tREPA" - + "IRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r\n\tREST" - + "ORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\014\n" - + "\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_HDD\020\003\022" - + "\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005:_\352A\\\n" - + "\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{parent=proj" - + "ects/*/locations/*}/instances\332A\006parent\022\237" - + "\001\n\013GetInstance\022-.google.cloud.filestore." - + "v1.GetInstanceRequest\032#.google.cloud.fil" - + "estore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{name=pr" - + "ojects/*/locations/*/instances/*}\332A\004name" - + "\022\365\001\n\016CreateInstance\0220.google.cloud.files" - + "tore.v1.CreateInstanceRequest\032\035.google.l" - + "ongrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1/{pare" - + "nt=projects/*/locations/*}/instances:\010in" - + "stance\332A\033parent,instance,instance_id\312A1\n" - + "\010Instance\022%google.cloud.common.Operation" - + "Metadata\022\367\001\n\016UpdateInstance\0220.google.clo" - + "ud.filestore.v1.UpdateInstanceRequest\032\035." - + "google.longrunning.Operation\"\223\001\202\323\344\223\002B26/" - + "v1/{instance.name=projects/*/locations/*" - + "/instances/*}:\010instance\332A\024instance,updat" - + "e_mask\312A1\n\010Instance\022%google.cloud.common" - + ".OperationMetadata\022\331\001\n\017RestoreInstance\0221" - + ".google.cloud.filestore.v1.RestoreInstan" - + "ceRequest\032\035.google.longrunning.Operation" - + "\"t\202\323\344\223\002:\"5/v1/{name=projects/*/locations" - + "/*/instances/*}:restore:\001*\312A1\n\010Instance\022" - + "%google.cloud.common.OperationMetadata\022\340" - + "\001\n\016DeleteInstance\0220.google.cloud.filesto" - + "re.v1.DeleteInstanceRequest\032\035.google.lon" - + "grunning.Operation\"}\202\323\344\223\002/*-/v1/{name=pr" - + "ojects/*/locations/*/instances/*}\332A\004name" - + "\312A>\n\025google.protobuf.Empty\022%google.cloud" - + ".common.OperationMetadata\022\252\001\n\013ListBackup" - + "s\022-.google.cloud.filestore.v1.ListBackup" - + "sRequest\032..google.cloud.filestore.v1.Lis" - + "tBackupsResponse\"<\202\323\344\223\002-\022+/v1/{parent=pr" - + "ojects/*/locations/*}/backups\332A\006parent\022\227" - + "\001\n\tGetBackup\022+.google.cloud.filestore.v1" - + ".GetBackupRequest\032!.google.cloud.filesto" - + "re.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=projects" - + "/*/locations/*/backups/*}\332A\004name\022\347\001\n\014Cre" - + "ateBackup\022..google.cloud.filestore.v1.Cr" - + "eateBackupRequest\032\035.google.longrunning.O" - + "peration\"\207\001\202\323\344\223\0025\"+/v1/{parent=projects/" - + "*/locations/*}/backups:\006backup\332A\027parent," - + "backup,backup_id\312A/\n\006Backup\022%google.clou" - + "d.common.OperationMetadata\022\332\001\n\014DeleteBac" - + "kup\022..google.cloud.filestore.v1.DeleteBa" - + "ckupRequest\032\035.google.longrunning.Operati" - + "on\"{\202\323\344\223\002-*+/v1/{name=projects/*/locatio" - + "ns/*/backups/*}\332A\004name\312A>\n\025google.protob" - + "uf.Empty\022%google.cloud.common.OperationM" - + "etadata\022\351\001\n\014UpdateBackup\022..google.cloud." - + "filestore.v1.UpdateBackupRequest\032\035.googl" - + "e.longrunning.Operation\"\211\001\202\323\344\223\002<22/v1/{b" - + "ackup.name=projects/*/locations/*/backup" - + "s/*}:\006backup\332A\022backup,update_mask\312A/\n\006Ba" - + "ckup\022%google.cloud.common.OperationMetad" - + "ata\032G\312A\023file.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\271\001\n" - + "\035com.google.cloud.filestore.v1B\032CloudFil" - + "estoreServiceProtoP\001ZBgoogle.golang.org/" - + "genproto/googleapis/cloud/filestore/v1;f" - + "ilestore\252\002\031Google.Cloud.Filestore.V1\312\002\031G" - + "oogle\\Cloud\\Filestore\\V1b\006proto3" + + ",google/cloud/common/operation_metadata." + + "proto\032#google/longrunning/operations.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\036google/pr" + + "otobuf/wrappers.proto\"\327\001\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022C\n\005modes\030\003 \003(\01624.google" + + ".cloud.filestore.v1.NetworkConfig.Addres" + + "sMode\022\031\n\021reserved_ip_range\030\004 \001(\t\022\031\n\014ip_a" + + "ddresses\030\005 \003(\tB\003\340A\003\":\n\013AddressMode\022\034\n\030AD" + + "DRESS_MODE_UNSPECIFIED\020\000\022\r\n\tMODE_IPV4\020\001\"" + + "\301\001\n\017FileShareConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013cap" + + "acity_gb\030\002 \001(\003\0228\n\rsource_backup\030\010 \001(\tB\037\372" + + "A\034\n\032file.googleapis.com/BackupH\000\022G\n\022nfs_" + + "export_options\030\007 \003(\0132+.google.cloud.file" + + "store.v1.NfsExportOptionsB\010\n\006source\"\375\002\n\020" + + "NfsExportOptions\022\021\n\tip_ranges\030\001 \003(\t\022K\n\013a" + + "ccess_mode\030\002 \001(\01626.google.cloud.filestor" + + "e.v1.NfsExportOptions.AccessMode\022K\n\013squa" + + "sh_mode\030\003 \001(\01626.google.cloud.filestore.v" + + "1.NfsExportOptions.SquashMode\022\020\n\010anon_ui" + + "d\030\004 \001(\003\022\020\n\010anon_gid\030\005 \001(\003\"H\n\nAccessMode\022" + + "\033\n\027ACCESS_MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONL" + + "Y\020\001\022\016\n\nREAD_WRITE\020\002\"N\n\nSquashMode\022\033\n\027SQU" + + "ASH_MODE_UNSPECIFIED\020\000\022\022\n\016NO_ROOT_SQUASH" + + "\020\001\022\017\n\013ROOT_SQUASH\020\002\"\353\006\n\010Instance\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022=\n\005stat" + + "e\030\005 \001(\0162).google.cloud.filestore.v1.Inst" + + "ance.StateB\003\340A\003\022\033\n\016status_message\030\006 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0226\n\004tier\030\010 \001(\0162(.googl" + + "e.cloud.filestore.v1.Instance.Tier\022?\n\006la" + + "bels\030\t \003(\0132/.google.cloud.filestore.v1.I" + + "nstance.LabelsEntry\022?\n\013file_shares\030\n \003(\013" + + "2*.google.cloud.filestore.v1.FileShareCo" + + "nfig\022:\n\010networks\030\013 \003(\0132(.google.cloud.fi" + + "lestore.v1.NetworkConfig\022\014\n\004etag\030\014 \001(\t\0226" + + "\n\rsatisfies_pzs\030\r \001(\0132\032.google.protobuf." + + "BoolValueB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"n\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\r" + + "\n\tREPAIRING\020\003\022\014\n\010DELETING\020\004\022\t\n\005ERROR\020\006\022\r" + + "\n\tRESTORING\020\007\"i\n\004Tier\022\024\n\020TIER_UNSPECIFIE" + + "D\020\000\022\014\n\010STANDARD\020\001\022\013\n\007PREMIUM\020\002\022\r\n\tBASIC_" + + "HDD\020\003\022\r\n\tBASIC_SSD\020\004\022\022\n\016HIGH_SCALE_SSD\020\005" + + ":_\352A\\\n\034file.googleapis.com/Instance\022\202\323\344\223\002/\022-/v1/{paren" + + "t=projects/*/locations/*}/instances\332A\006pa" + + "rent\022\237\001\n\013GetInstance\022-.google.cloud.file" + + "store.v1.GetInstanceRequest\032#.google.clo" + + "ud.filestore.v1.Instance\"<\202\323\344\223\002/\022-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\022\365\001\n\016CreateInstance\0220.google.cloud" + + ".filestore.v1.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\221\001\202\323\344\223\0029\"-/v1" + + "/{parent=projects/*/locations/*}/instanc" + + "es:\010instance\332A\033parent,instance,instance_" + + "id\312A1\n\010Instance\022%google.cloud.common.Ope" + + "rationMetadata\022\367\001\n\016UpdateInstance\0220.goog" + + "le.cloud.filestore.v1.UpdateInstanceRequ" + + "est\032\035.google.longrunning.Operation\"\223\001\202\323\344" + + "\223\002B26/v1/{instance.name=projects/*/locat" + + "ions/*/instances/*}:\010instance\332A\024instance" + + ",update_mask\312A1\n\010Instance\022%google.cloud." + + "common.OperationMetadata\022\331\001\n\017RestoreInst" + + "ance\0221.google.cloud.filestore.v1.Restore" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"t\202\323\344\223\002:\"5/v1/{name=projects/*/loc" + + "ations/*/instances/*}:restore:\001*\312A1\n\010Ins" + + "tance\022%google.cloud.common.OperationMeta" + + "data\022\340\001\n\016DeleteInstance\0220.google.cloud.f" + + "ilestore.v1.DeleteInstanceRequest\032\035.goog" + + "le.longrunning.Operation\"}\202\323\344\223\002/*-/v1/{n" + + "ame=projects/*/locations/*/instances/*}\332" + + "A\004name\312A>\n\025google.protobuf.Empty\022%google" + + ".cloud.common.OperationMetadata\022\252\001\n\013List" + + "Backups\022-.google.cloud.filestore.v1.List" + + "BackupsRequest\032..google.cloud.filestore." + + "v1.ListBackupsResponse\"<\202\323\344\223\002-\022+/v1/{par" + + "ent=projects/*/locations/*}/backups\332A\006pa" + + "rent\022\227\001\n\tGetBackup\022+.google.cloud.filest" + + "ore.v1.GetBackupRequest\032!.google.cloud.f" + + "ilestore.v1.Backup\":\202\323\344\223\002-\022+/v1/{name=pr" + + "ojects/*/locations/*/backups/*}\332A\004name\022\347" + + "\001\n\014CreateBackup\022..google.cloud.filestore" + + ".v1.CreateBackupRequest\032\035.google.longrun" + + "ning.Operation\"\207\001\202\323\344\223\0025\"+/v1/{parent=pro" + + "jects/*/locations/*}/backups:\006backup\332A\027p" + + "arent,backup,backup_id\312A/\n\006Backup\022%googl" + + "e.cloud.common.OperationMetadata\022\332\001\n\014Del" + + "eteBackup\022..google.cloud.filestore.v1.De" + + "leteBackupRequest\032\035.google.longrunning.O" + + "peration\"{\202\323\344\223\002-*+/v1/{name=projects/*/l" + + "ocations/*/backups/*}\332A\004name\312A>\n\025google." + + "protobuf.Empty\022%google.cloud.common.Oper" + + "ationMetadata\022\351\001\n\014UpdateBackup\022..google." + + "cloud.filestore.v1.UpdateBackupRequest\032\035" + + ".google.longrunning.Operation\"\211\001\202\323\344\223\002<22" + + "/v1/{backup.name=projects/*/locations/*/" + + "backups/*}:\006backup\332A\022backup,update_mask\312" + + "A/\n\006Backup\022%google.cloud.common.Operatio" + + "nMetadata\032G\312A\023file.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\271\001\n\035com.google.cloud.filestore.v1B\032Cl" + + "oudFilestoreServiceProtoP\001ZBgoogle.golan" + + "g.org/genproto/googleapis/cloud/filestor" + + "e/v1;filestore\252\002\031Google.Cloud.Filestore." + + "V1\312\002\031Google\\Cloud\\Filestore\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -300,6 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -502,6 +504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.common.OperationMetadataOuterClass.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java index 69fad85a..f6a3e60d 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateBackupRequest.java @@ -314,13 +314,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (backup_ != null) { output.writeMessage(2, getBackup()); } - if (!getBackupIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_); } unknownFields.writeTo(output); @@ -332,13 +332,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); } - if (!getBackupIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java index 92b66f50..c3dfd876 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/CreateInstanceRequest.java @@ -311,10 +311,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } if (instance_ != null) { @@ -329,10 +329,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java index 9019af40..c4657f29 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteBackupRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java index 48e9ad63..77da1e67 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/DeleteInstanceRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java index 7f985441..0ffd7ef3 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/FileShareConfig.java @@ -417,7 +417,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (capacityGb_ != 0L) { @@ -438,7 +438,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (capacityGb_ != 0L) { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java index 6c5f9477..4f98b964 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetBackupRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java index 8464dd6a..f84e99c5 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/GetInstanceRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java index a00b6d0f..e452cae3 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Instance.java @@ -1362,16 +1362,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.filestore.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, statusMessage_); } if (createTime_ != null) { @@ -1388,7 +1388,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < networks_.size(); i++) { output.writeMessage(11, networks_.get(i)); } - if (!getEtagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, etag_); } if (satisfiesPzs_ != null) { @@ -1403,16 +1403,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { @@ -1437,7 +1437,7 @@ public int getSerializedSize() { for (int i = 0; i < networks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); } - if (!getEtagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java index d60f53cc..fdff6dca 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequest.java @@ -146,11 +146,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location for which to retrieve backup information,
-   * in the format `projects/{project_number}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
-   * for example **us-west1**.
-   * To retrieve backup information for all locations, use "-" for the
+   * Required. The project and location for which to retrieve backup
+   * information, in the format
+   * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+   * backup locations map to GCP regions, for example **us-west1**. To retrieve
+   * backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* @@ -176,11 +176,11 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location for which to retrieve backup information,
-   * in the format `projects/{project_number}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
-   * for example **us-west1**.
-   * To retrieve backup information for all locations, use "-" for the
+   * Required. The project and location for which to retrieve backup
+   * information, in the format
+   * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+   * backup locations map to GCP regions, for example **us-west1**. To retrieve
+   * backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* @@ -384,19 +384,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -408,19 +408,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); @@ -755,11 +755,11 @@ public Builder mergeFrom( * * *
-     * Required. The project and location for which to retrieve backup information,
-     * in the format `projects/{project_number}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
-     * for example **us-west1**.
-     * To retrieve backup information for all locations, use "-" for the
+     * Required. The project and location for which to retrieve backup
+     * information, in the format
+     * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+     * backup locations map to GCP regions, for example **us-west1**. To retrieve
+     * backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* @@ -784,11 +784,11 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location for which to retrieve backup information,
-     * in the format `projects/{project_number}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
-     * for example **us-west1**.
-     * To retrieve backup information for all locations, use "-" for the
+     * Required. The project and location for which to retrieve backup
+     * information, in the format
+     * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+     * backup locations map to GCP regions, for example **us-west1**. To retrieve
+     * backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* @@ -813,11 +813,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location for which to retrieve backup information,
-     * in the format `projects/{project_number}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
-     * for example **us-west1**.
-     * To retrieve backup information for all locations, use "-" for the
+     * Required. The project and location for which to retrieve backup
+     * information, in the format
+     * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+     * backup locations map to GCP regions, for example **us-west1**. To retrieve
+     * backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* @@ -841,11 +841,11 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location for which to retrieve backup information,
-     * in the format `projects/{project_number}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
-     * for example **us-west1**.
-     * To retrieve backup information for all locations, use "-" for the
+     * Required. The project and location for which to retrieve backup
+     * information, in the format
+     * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+     * backup locations map to GCP regions, for example **us-west1**. To retrieve
+     * backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* @@ -865,11 +865,11 @@ public Builder clearParent() { * * *
-     * Required. The project and location for which to retrieve backup information,
-     * in the format `projects/{project_number}/locations/{location}`.
-     * In Cloud Filestore, backup locations map to GCP regions,
-     * for example **us-west1**.
-     * To retrieve backup information for all locations, use "-" for the
+     * Required. The project and location for which to retrieve backup
+     * information, in the format
+     * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+     * backup locations map to GCP regions, for example **us-west1**. To retrieve
+     * backup information for all locations, use "-" for the
      * `{location}` value.
      * 
* diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java index 0c9ed2a6..06e25d2c 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsRequestOrBuilder.java @@ -27,11 +27,11 @@ public interface ListBackupsRequestOrBuilder * * *
-   * Required. The project and location for which to retrieve backup information,
-   * in the format `projects/{project_number}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
-   * for example **us-west1**.
-   * To retrieve backup information for all locations, use "-" for the
+   * Required. The project and location for which to retrieve backup
+   * information, in the format
+   * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+   * backup locations map to GCP regions, for example **us-west1**. To retrieve
+   * backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* @@ -46,11 +46,11 @@ public interface ListBackupsRequestOrBuilder * * *
-   * Required. The project and location for which to retrieve backup information,
-   * in the format `projects/{project_number}/locations/{location}`.
-   * In Cloud Filestore, backup locations map to GCP regions,
-   * for example **us-west1**.
-   * To retrieve backup information for all locations, use "-" for the
+   * Required. The project and location for which to retrieve backup
+   * information, in the format
+   * `projects/{project_number}/locations/{location}`. In Cloud Filestore,
+   * backup locations map to GCP regions, for example **us-west1**. To retrieve
+   * backup information for all locations, use "-" for the
    * `{location}` value.
    * 
* diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java index 0eba95ac..0cac5c96 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListBackupsResponse.java @@ -364,7 +364,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -382,7 +382,7 @@ public int getSerializedSize() { for (int i = 0; i < backups_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java index 042dec6b..d206fb67 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequest.java @@ -146,9 +146,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location for which to retrieve instance information,
-   * in the format `projects/{project_id}/locations/{location}`. In Cloud
-   * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+   * Required. The project and location for which to retrieve instance
+   * information, in the format `projects/{project_id}/locations/{location}`. In
+   * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
    * retrieve instance information for all locations, use "-" for the
    * `{location}` value.
    * 
@@ -175,9 +175,9 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location for which to retrieve instance information,
-   * in the format `projects/{project_id}/locations/{location}`. In Cloud
-   * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+   * Required. The project and location for which to retrieve instance
+   * information, in the format `projects/{project_id}/locations/{location}`. In
+   * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
    * retrieve instance information for all locations, use "-" for the
    * `{location}` value.
    * 
@@ -382,19 +382,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -406,19 +406,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); @@ -754,9 +754,9 @@ public Builder mergeFrom( * * *
-     * Required. The project and location for which to retrieve instance information,
-     * in the format `projects/{project_id}/locations/{location}`. In Cloud
-     * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+     * Required. The project and location for which to retrieve instance
+     * information, in the format `projects/{project_id}/locations/{location}`. In
+     * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
      * retrieve instance information for all locations, use "-" for the
      * `{location}` value.
      * 
@@ -782,9 +782,9 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location for which to retrieve instance information,
-     * in the format `projects/{project_id}/locations/{location}`. In Cloud
-     * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+     * Required. The project and location for which to retrieve instance
+     * information, in the format `projects/{project_id}/locations/{location}`. In
+     * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
      * retrieve instance information for all locations, use "-" for the
      * `{location}` value.
      * 
@@ -810,9 +810,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location for which to retrieve instance information,
-     * in the format `projects/{project_id}/locations/{location}`. In Cloud
-     * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+     * Required. The project and location for which to retrieve instance
+     * information, in the format `projects/{project_id}/locations/{location}`. In
+     * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
      * retrieve instance information for all locations, use "-" for the
      * `{location}` value.
      * 
@@ -837,9 +837,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location for which to retrieve instance information,
-     * in the format `projects/{project_id}/locations/{location}`. In Cloud
-     * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+     * Required. The project and location for which to retrieve instance
+     * information, in the format `projects/{project_id}/locations/{location}`. In
+     * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
      * retrieve instance information for all locations, use "-" for the
      * `{location}` value.
      * 
@@ -860,9 +860,9 @@ public Builder clearParent() { * * *
-     * Required. The project and location for which to retrieve instance information,
-     * in the format `projects/{project_id}/locations/{location}`. In Cloud
-     * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+     * Required. The project and location for which to retrieve instance
+     * information, in the format `projects/{project_id}/locations/{location}`. In
+     * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
      * retrieve instance information for all locations, use "-" for the
      * `{location}` value.
      * 
diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java index ddd5035c..b58fed45 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface ListInstancesRequestOrBuilder * * *
-   * Required. The project and location for which to retrieve instance information,
-   * in the format `projects/{project_id}/locations/{location}`. In Cloud
-   * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+   * Required. The project and location for which to retrieve instance
+   * information, in the format `projects/{project_id}/locations/{location}`. In
+   * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
    * retrieve instance information for all locations, use "-" for the
    * `{location}` value.
    * 
@@ -45,9 +45,9 @@ public interface ListInstancesRequestOrBuilder * * *
-   * Required. The project and location for which to retrieve instance information,
-   * in the format `projects/{project_id}/locations/{location}`. In Cloud
-   * Filestore, locations map to GCP zones, for example **us-west1-b**. To
+   * Required. The project and location for which to retrieve instance
+   * information, in the format `projects/{project_id}/locations/{location}`. In
+   * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To
    * retrieve instance information for all locations, use "-" for the
    * `{location}` value.
    * 
diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java index ac040ee7..02be4ecc 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/ListInstancesResponse.java @@ -359,7 +359,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -377,7 +377,7 @@ public int getSerializedSize() { for (int i = 0; i < instances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java index 436bacc1..1173c25d 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/NetworkConfig.java @@ -604,7 +604,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } if (getModesList().size() > 0) { @@ -614,7 +614,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < modes_.size(); i++) { output.writeEnumNoTag(modes_.get(i)); } - if (!getReservedIpRangeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reservedIpRange_); } for (int i = 0; i < ipAddresses_.size(); i++) { @@ -629,7 +629,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); } { @@ -644,7 +644,7 @@ public int getSerializedSize() { } modesMemoizedSerializedSize = dataSize; } - if (!getReservedIpRangeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); } { diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java index d33a9e5c..1d163d47 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequest.java @@ -232,8 +232,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Name of the file share in the Cloud Filestore instance that the backup
-   * is being restored to.
+   * Required. Name of the file share in the Cloud Filestore instance that the
+   * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -256,8 +256,8 @@ public java.lang.String getFileShare() { * * *
-   * Required. Name of the file share in the Cloud Filestore instance that the backup
-   * is being restored to.
+   * Required. Name of the file share in the Cloud Filestore instance that the
+   * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -364,10 +364,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileShare_); } if (sourceCase_ == 3) { @@ -382,10 +382,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileShare_); } if (sourceCase_ == 3) { @@ -866,8 +866,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Name of the file share in the Cloud Filestore instance that the backup
-     * is being restored to.
+     * Required. Name of the file share in the Cloud Filestore instance that the
+     * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -889,8 +889,8 @@ public java.lang.String getFileShare() { * * *
-     * Required. Name of the file share in the Cloud Filestore instance that the backup
-     * is being restored to.
+     * Required. Name of the file share in the Cloud Filestore instance that the
+     * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -912,8 +912,8 @@ public com.google.protobuf.ByteString getFileShareBytes() { * * *
-     * Required. Name of the file share in the Cloud Filestore instance that the backup
-     * is being restored to.
+     * Required. Name of the file share in the Cloud Filestore instance that the
+     * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -934,8 +934,8 @@ public Builder setFileShare(java.lang.String value) { * * *
-     * Required. Name of the file share in the Cloud Filestore instance that the backup
-     * is being restored to.
+     * Required. Name of the file share in the Cloud Filestore instance that the
+     * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -952,8 +952,8 @@ public Builder clearFileShare() { * * *
-     * Required. Name of the file share in the Cloud Filestore instance that the backup
-     * is being restored to.
+     * Required. Name of the file share in the Cloud Filestore instance that the
+     * backup is being restored to.
      * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java index a81d9a92..41594ba1 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/RestoreInstanceRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface RestoreInstanceRequestOrBuilder * * *
-   * Required. Name of the file share in the Cloud Filestore instance that the backup
-   * is being restored to.
+   * Required. Name of the file share in the Cloud Filestore instance that the
+   * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,8 +71,8 @@ public interface RestoreInstanceRequestOrBuilder * * *
-   * Required. Name of the file share in the Cloud Filestore instance that the backup
-   * is being restored to.
+   * Required. Name of the file share in the Cloud Filestore instance that the
+   * backup is being restored to.
    * 
* * string file_share = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java index 5954ef11..7d4f3f2f 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequest.java @@ -188,8 +188,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -205,8 +205,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -222,8 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -796,8 +796,8 @@ public com.google.cloud.filestore.v1.BackupOrBuilder getBackupOrBuilder() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -812,8 +812,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -834,8 +834,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -858,8 +858,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -879,8 +879,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -905,8 +905,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -927,8 +927,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -943,8 +943,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -963,8 +963,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Mask of fields to update.  At least one path must be supplied in this
-     * field.
+     * Required. Mask of fields to update.  At least one path must be supplied in
+     * this field.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java index 34ffeeb6..5922964a 100644 --- a/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java +++ b/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/UpdateBackupRequestOrBuilder.java @@ -65,8 +65,8 @@ public interface UpdateBackupRequestOrBuilder * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -79,8 +79,8 @@ public interface UpdateBackupRequestOrBuilder * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -93,8 +93,8 @@ public interface UpdateBackupRequestOrBuilder * * *
-   * Required. Mask of fields to update.  At least one path must be supplied in this
-   * field.
+   * Required. Mask of fields to update.  At least one path must be supplied in
+   * this field.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto b/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto index 3afd7e45..676fa0b2 100644 --- a/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto +++ b/proto-google-cloud-filestore-v1/src/main/proto/google/cloud/filestore/v1/cloud_filestore_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/common/operation_metadata.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -53,7 +54,8 @@ option php_namespace = "Google\\Cloud\\Filestore\\V1"; // * `projects/12345/locations/us-central1/backups/my-backup` service CloudFilestoreManager { option (google.api.default_host) = "file.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists all instances in a project for either a specified location // or for all locations. @@ -76,7 +78,8 @@ service CloudFilestoreManager { // When creating from a backup, the capacity of the new instance needs to be // equal to or larger than the capacity of the backup (and also equal to or // larger than the minimum capacity of the tier). - rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { + rpc CreateInstance(CreateInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/instances" body: "instance" @@ -89,7 +92,8 @@ service CloudFilestoreManager { } // Updates the settings of a specific instance. - rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { + rpc UpdateInstance(UpdateInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{instance.name=projects/*/locations/*/instances/*}" body: "instance" @@ -106,7 +110,8 @@ service CloudFilestoreManager { // The capacity of the instance needs to be equal to or larger than the // capacity of the backup (and also equal to or larger than the minimum // capacity of the tier). - rpc RestoreInstance(RestoreInstanceRequest) returns (google.longrunning.Operation) { + rpc RestoreInstance(RestoreInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/instances/*}:restore" body: "*" @@ -118,7 +123,8 @@ service CloudFilestoreManager { } // Deletes an instance. - rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + rpc DeleteInstance(DeleteInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/instances/*}" }; @@ -236,9 +242,9 @@ message FileShareConfig { // The resource name of the backup, in the format // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, // that this file share has been restored from. - string source_backup = 8 [(google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - }]; + string source_backup = 8 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } + ]; } // Nfs Export Options. @@ -380,7 +386,8 @@ message Instance { string status_message = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the instance was created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The service tier of the instance. Tier tier = 8; @@ -401,7 +408,8 @@ message Instance { string etag = 12; // Output only. Reserved for future use. - google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.BoolValue satisfies_pzs = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CreateInstanceRequest creates an instance. @@ -430,9 +438,7 @@ message GetInstanceRequest { // `projects/{project_id}/locations/{location}/instances/{instance_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; } @@ -458,21 +464,19 @@ message RestoreInstanceRequest { // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; - // Required. Name of the file share in the Cloud Filestore instance that the backup - // is being restored to. + // Required. Name of the file share in the Cloud Filestore instance that the + // backup is being restored to. string file_share = 2 [(google.api.field_behavior) = REQUIRED]; oneof source { // The resource name of the backup, in the format // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`. - string source_backup = 3 [(google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - }]; + string source_backup = 3 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } + ]; } } @@ -482,17 +486,15 @@ message DeleteInstanceRequest { // `projects/{project_id}/locations/{location}/instances/{instance_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; } // ListInstancesRequest lists instances. message ListInstancesRequest { - // Required. The project and location for which to retrieve instance information, - // in the format `projects/{project_id}/locations/{location}`. In Cloud - // Filestore, locations map to GCP zones, for example **us-west1-b**. To + // Required. The project and location for which to retrieve instance + // information, in the format `projects/{project_id}/locations/{location}`. In + // Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To // retrieve instance information for all locations, use "-" for the // `{location}` value. string parent = 1 [ @@ -572,7 +574,8 @@ message Backup { State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the backup was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Resource labels to represent user provided metadata. map labels = 5; @@ -580,32 +583,34 @@ message Backup { // Output only. Capacity of the source file share when the backup was created. int64 capacity_gb = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The size of the storage used by the backup. As backups share storage, - // this number is expected to change with backup creation/deletion. + // Output only. The size of the storage used by the backup. As backups share + // storage, this number is expected to change with backup creation/deletion. int64 storage_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // The resource name of the source Cloud Filestore instance, in the format // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`, // used to create this backup. - string source_instance = 8 [(google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - }]; + string source_instance = 8 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } + ]; // Name of the file share in the source Cloud Filestore instance that the // backup is created from. string source_file_share = 9; - // Output only. The service tier of the source Cloud Filestore instance that this backup - // is created from. - Instance.Tier source_instance_tier = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The service tier of the source Cloud Filestore instance that + // this backup is created from. + Instance.Tier source_instance_tier = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Amount of bytes that will be downloaded if the backup is restored. This - // may be different than storage bytes, since sequential backups of the same - // disk will share storage. + // Output only. Amount of bytes that will be downloaded if the backup is + // restored. This may be different than storage bytes, since sequential + // backups of the same disk will share storage. int64 download_bytes = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Reserved for future use. - google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.BoolValue satisfies_pzs = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CreateBackupRequest creates a backup. @@ -639,9 +644,7 @@ message DeleteBackupRequest { // `projects/{project_number}/locations/{location}/backups/{backup_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } ]; } @@ -650,9 +653,10 @@ message UpdateBackupRequest { // Required. A [backup resource][google.cloud.filestore.v1.Backup] Backup backup = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Mask of fields to update. At least one path must be supplied in this - // field. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. Mask of fields to update. At least one path must be supplied in + // this field. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // GetBackupRequest gets the state of a backup. @@ -661,19 +665,17 @@ message GetBackupRequest { // `projects/{project_number}/locations/{location}/backups/{backup_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } ]; } // ListBackupsRequest lists backups. message ListBackupsRequest { - // Required. The project and location for which to retrieve backup information, - // in the format `projects/{project_number}/locations/{location}`. - // In Cloud Filestore, backup locations map to GCP regions, - // for example **us-west1**. - // To retrieve backup information for all locations, use "-" for the + // Required. The project and location for which to retrieve backup + // information, in the format + // `projects/{project_number}/locations/{location}`. In Cloud Filestore, + // backup locations map to GCP regions, for example **us-west1**. To retrieve + // backup information for all locations, use "-" for the // `{location}` value. string parent = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java index 965742be..36effc86 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/common/OperationMetadata.java @@ -505,19 +505,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getStatusDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); } if (cancelRequested_ != false) { output.writeBool(6, cancelRequested_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } unknownFields.writeTo(output); @@ -535,19 +535,19 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getStatusDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java index 57efc35a..599c922d 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Backup.java @@ -982,10 +982,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -1002,10 +1002,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (storageBytes_ != 0L) { output.writeInt64(7, storageBytes_); } - if (!getSourceInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sourceInstance_); } - if (!getSourceFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_); } if (sourceInstanceTier_ @@ -1027,10 +1027,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -1055,10 +1055,10 @@ public int getSerializedSize() { if (storageBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_); } - if (!getSourceInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_); } - if (!getSourceFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_); } if (sourceInstanceTier_ diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java index d9ad7a34..08a374a7 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateBackupRequest.java @@ -315,13 +315,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (backup_ != null) { output.writeMessage(2, getBackup()); } - if (!getBackupIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_); } unknownFields.writeTo(output); @@ -333,13 +333,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (backup_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); } - if (!getBackupIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java index f9018181..77707c8d 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/CreateInstanceRequest.java @@ -315,10 +315,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } if (instance_ != null) { @@ -333,10 +333,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java index e3cb32a6..dd6adc96 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteBackupRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java index 0bc8e2dd..4008b7ba 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/DeleteInstanceRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java index e538d621..f850872a 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/FileShareConfig.java @@ -419,7 +419,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (capacityGb_ != 0L) { @@ -440,7 +440,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (capacityGb_ != 0L) { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java index 4ec1dd4e..b5205d99 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetBackupRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java index 2640cc7e..4a967936 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/GetInstanceRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java index 1127d62c..a737e5f0 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/Instance.java @@ -1366,16 +1366,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, statusMessage_); } if (createTime_ != null) { @@ -1392,7 +1392,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < networks_.size(); i++) { output.writeMessage(11, networks_.get(i)); } - if (!getEtagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, etag_); } if (satisfiesPzs_ != null) { @@ -1407,16 +1407,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (createTime_ != null) { @@ -1441,7 +1441,7 @@ public int getSerializedSize() { for (int i = 0; i < networks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i)); } - if (!getEtagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (satisfiesPzs_ != null) { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java index 66eed80c..1a9af12d 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsRequest.java @@ -384,19 +384,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -408,19 +408,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java index 7521de23..dde2c332 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListBackupsResponse.java @@ -364,7 +364,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < backups_.size(); i++) { output.writeMessage(1, backups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -382,7 +382,7 @@ public int getSerializedSize() { for (int i = 0; i < backups_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java index 43d710f8..cf4c0951 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesRequest.java @@ -382,19 +382,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -406,19 +406,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java index d7a3bd44..58e25e29 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ListInstancesResponse.java @@ -359,7 +359,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -377,7 +377,7 @@ public int getSerializedSize() { for (int i = 0; i < instances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java index bfb043e3..61fcbbbd 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/NetworkConfig.java @@ -601,7 +601,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } if (getModesList().size() > 0) { @@ -611,7 +611,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < modes_.size(); i++) { output.writeEnumNoTag(modes_.get(i)); } - if (!getReservedIpRangeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reservedIpRange_); } for (int i = 0; i < ipAddresses_.size(); i++) { @@ -626,7 +626,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); } { @@ -641,7 +641,7 @@ public int getSerializedSize() { } modesMemoizedSerializedSize = dataSize; } - if (!getReservedIpRangeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reservedIpRange_); } { diff --git a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java index 7af4eb1f..3ba0bc18 100644 --- a/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java +++ b/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/RestoreInstanceRequest.java @@ -447,10 +447,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileShare_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileShare_); } if (sourceCase_ == 3) { @@ -468,10 +468,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFileShareBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileShare_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileShare_); } if (sourceCase_ == 3) {