Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 20d3623

Browse files
chore(filestore): add common_java_proto dep to java_assembly_pkg (#79)
- [x] Regenerate this pull request now. PiperOrigin-RevId: 403182344 Source-Link: googleapis/googleapis@b44c45c Source-Link: https://github.com/googleapis/googleapis-gen/commit/35bc860f6a1b0c4330fd895bd30a7faa446b28b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzViYzg2MGY2YTFiMGM0MzMwZmQ4OTViZDMwYTdmYWE0NDZiMjhiMSJ9 fix(filestore): add missing operation_metadata.proto import
1 parent 5b7aac4 commit 20d3623

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+541
-530
lines changed

google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*/
1616

1717
/**
18-
* The interfaces provided are listed below, along with usage samples.
18+
* A client to Cloud Filestore API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
1921
*
2022
* <p>======================= CloudFilestoreManagerClient =======================
2123
*

google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ public static List<String> getDefaultServiceScopes() {
380380

381381
/** Returns a builder for the default credentials for this service. */
382382
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
383-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
383+
return GoogleCredentialsProvider.newBuilder()
384+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
385+
.setUseJwtAccessWithScope(true);
384386
}
385387

386388
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ public static List<String> getDefaultServiceScopes() {
381381

382382
/** Returns a builder for the default credentials for this service. */
383383
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
384-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
384+
return GoogleCredentialsProvider.newBuilder()
385+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
386+
.setUseJwtAccessWithScope(true);
385387
}
386388

387389
/** Returns a builder for the default ChannelProvider for this service. */

proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/common/OperationMetadata.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -505,19 +505,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
505505
if (endTime_ != null) {
506506
output.writeMessage(2, getEndTime());
507507
}
508-
if (!getTargetBytes().isEmpty()) {
508+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
509509
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_);
510510
}
511-
if (!getVerbBytes().isEmpty()) {
511+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) {
512512
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_);
513513
}
514-
if (!getStatusDetailBytes().isEmpty()) {
514+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) {
515515
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_);
516516
}
517517
if (cancelRequested_ != false) {
518518
output.writeBool(6, cancelRequested_);
519519
}
520-
if (!getApiVersionBytes().isEmpty()) {
520+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) {
521521
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_);
522522
}
523523
unknownFields.writeTo(output);
@@ -535,19 +535,19 @@ public int getSerializedSize() {
535535
if (endTime_ != null) {
536536
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
537537
}
538-
if (!getTargetBytes().isEmpty()) {
538+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) {
539539
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
540540
}
541-
if (!getVerbBytes().isEmpty()) {
541+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) {
542542
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_);
543543
}
544-
if (!getStatusDetailBytes().isEmpty()) {
544+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) {
545545
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_);
546546
}
547547
if (cancelRequested_ != false) {
548548
size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_);
549549
}
550-
if (!getApiVersionBytes().isEmpty()) {
550+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) {
551551
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_);
552552
}
553553
size += unknownFields.getSerializedSize();

proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/Backup.java

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ public long getCapacityGb() {
737737
*
738738
*
739739
* <pre>
740-
* Output only. The size of the storage used by the backup. As backups share storage,
741-
* this number is expected to change with backup creation/deletion.
740+
* Output only. The size of the storage used by the backup. As backups share
741+
* storage, this number is expected to change with backup creation/deletion.
742742
* </pre>
743743
*
744744
* <code>int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -860,8 +860,8 @@ public com.google.protobuf.ByteString getSourceFileShareBytes() {
860860
*
861861
*
862862
* <pre>
863-
* Output only. The service tier of the source Cloud Filestore instance that this backup
864-
* is created from.
863+
* Output only. The service tier of the source Cloud Filestore instance that
864+
* this backup is created from.
865865
* </pre>
866866
*
867867
* <code>
@@ -878,8 +878,8 @@ public int getSourceInstanceTierValue() {
878878
*
879879
*
880880
* <pre>
881-
* Output only. The service tier of the source Cloud Filestore instance that this backup
882-
* is created from.
881+
* Output only. The service tier of the source Cloud Filestore instance that
882+
* this backup is created from.
883883
* </pre>
884884
*
885885
* <code>
@@ -902,9 +902,9 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() {
902902
*
903903
*
904904
* <pre>
905-
* Output only. Amount of bytes that will be downloaded if the backup is restored. This
906-
* may be different than storage bytes, since sequential backups of the same
907-
* disk will share storage.
905+
* Output only. Amount of bytes that will be downloaded if the backup is
906+
* restored. This may be different than storage bytes, since sequential
907+
* backups of the same disk will share storage.
908908
* </pre>
909909
*
910910
* <code>int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -984,10 +984,10 @@ public final boolean isInitialized() {
984984

985985
@java.lang.Override
986986
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
987-
if (!getNameBytes().isEmpty()) {
987+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
988988
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
989989
}
990-
if (!getDescriptionBytes().isEmpty()) {
990+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
991991
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
992992
}
993993
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
10041004
if (storageBytes_ != 0L) {
10051005
output.writeInt64(7, storageBytes_);
10061006
}
1007-
if (!getSourceInstanceBytes().isEmpty()) {
1007+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) {
10081008
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sourceInstance_);
10091009
}
1010-
if (!getSourceFileShareBytes().isEmpty()) {
1010+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) {
10111011
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceFileShare_);
10121012
}
10131013
if (sourceInstanceTier_
@@ -1029,10 +1029,10 @@ public int getSerializedSize() {
10291029
if (size != -1) return size;
10301030

10311031
size = 0;
1032-
if (!getNameBytes().isEmpty()) {
1032+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
10331033
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
10341034
}
1035-
if (!getDescriptionBytes().isEmpty()) {
1035+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
10361036
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
10371037
}
10381038
if (state_ != com.google.cloud.filestore.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) {
@@ -1057,10 +1057,10 @@ public int getSerializedSize() {
10571057
if (storageBytes_ != 0L) {
10581058
size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, storageBytes_);
10591059
}
1060-
if (!getSourceInstanceBytes().isEmpty()) {
1060+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceInstance_)) {
10611061
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceInstance_);
10621062
}
1063-
if (!getSourceFileShareBytes().isEmpty()) {
1063+
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFileShare_)) {
10641064
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceFileShare_);
10651065
}
10661066
if (sourceInstanceTier_
@@ -2246,8 +2246,8 @@ public Builder clearCapacityGb() {
22462246
*
22472247
*
22482248
* <pre>
2249-
* Output only. The size of the storage used by the backup. As backups share storage,
2250-
* this number is expected to change with backup creation/deletion.
2249+
* Output only. The size of the storage used by the backup. As backups share
2250+
* storage, this number is expected to change with backup creation/deletion.
22512251
* </pre>
22522252
*
22532253
* <code>int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -2262,8 +2262,8 @@ public long getStorageBytes() {
22622262
*
22632263
*
22642264
* <pre>
2265-
* Output only. The size of the storage used by the backup. As backups share storage,
2266-
* this number is expected to change with backup creation/deletion.
2265+
* Output only. The size of the storage used by the backup. As backups share
2266+
* storage, this number is expected to change with backup creation/deletion.
22672267
* </pre>
22682268
*
22692269
* <code>int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -2281,8 +2281,8 @@ public Builder setStorageBytes(long value) {
22812281
*
22822282
*
22832283
* <pre>
2284-
* Output only. The size of the storage used by the backup. As backups share storage,
2285-
* this number is expected to change with backup creation/deletion.
2284+
* Output only. The size of the storage used by the backup. As backups share
2285+
* storage, this number is expected to change with backup creation/deletion.
22862286
* </pre>
22872287
*
22882288
* <code>int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -2528,8 +2528,8 @@ public Builder setSourceFileShareBytes(com.google.protobuf.ByteString value) {
25282528
*
25292529
*
25302530
* <pre>
2531-
* Output only. The service tier of the source Cloud Filestore instance that this backup
2532-
* is created from.
2531+
* Output only. The service tier of the source Cloud Filestore instance that
2532+
* this backup is created from.
25332533
* </pre>
25342534
*
25352535
* <code>
@@ -2546,8 +2546,8 @@ public int getSourceInstanceTierValue() {
25462546
*
25472547
*
25482548
* <pre>
2549-
* Output only. The service tier of the source Cloud Filestore instance that this backup
2550-
* is created from.
2549+
* Output only. The service tier of the source Cloud Filestore instance that
2550+
* this backup is created from.
25512551
* </pre>
25522552
*
25532553
* <code>
@@ -2567,8 +2567,8 @@ public Builder setSourceInstanceTierValue(int value) {
25672567
*
25682568
*
25692569
* <pre>
2570-
* Output only. The service tier of the source Cloud Filestore instance that this backup
2571-
* is created from.
2570+
* Output only. The service tier of the source Cloud Filestore instance that
2571+
* this backup is created from.
25722572
* </pre>
25732573
*
25742574
* <code>
@@ -2588,8 +2588,8 @@ public com.google.cloud.filestore.v1.Instance.Tier getSourceInstanceTier() {
25882588
*
25892589
*
25902590
* <pre>
2591-
* Output only. The service tier of the source Cloud Filestore instance that this backup
2592-
* is created from.
2591+
* Output only. The service tier of the source Cloud Filestore instance that
2592+
* this backup is created from.
25932593
* </pre>
25942594
*
25952595
* <code>
@@ -2612,8 +2612,8 @@ public Builder setSourceInstanceTier(com.google.cloud.filestore.v1.Instance.Tier
26122612
*
26132613
*
26142614
* <pre>
2615-
* Output only. The service tier of the source Cloud Filestore instance that this backup
2616-
* is created from.
2615+
* Output only. The service tier of the source Cloud Filestore instance that
2616+
* this backup is created from.
26172617
* </pre>
26182618
*
26192619
* <code>
@@ -2634,9 +2634,9 @@ public Builder clearSourceInstanceTier() {
26342634
*
26352635
*
26362636
* <pre>
2637-
* Output only. Amount of bytes that will be downloaded if the backup is restored. This
2638-
* may be different than storage bytes, since sequential backups of the same
2639-
* disk will share storage.
2637+
* Output only. Amount of bytes that will be downloaded if the backup is
2638+
* restored. This may be different than storage bytes, since sequential
2639+
* backups of the same disk will share storage.
26402640
* </pre>
26412641
*
26422642
* <code>int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -2651,9 +2651,9 @@ public long getDownloadBytes() {
26512651
*
26522652
*
26532653
* <pre>
2654-
* Output only. Amount of bytes that will be downloaded if the backup is restored. This
2655-
* may be different than storage bytes, since sequential backups of the same
2656-
* disk will share storage.
2654+
* Output only. Amount of bytes that will be downloaded if the backup is
2655+
* restored. This may be different than storage bytes, since sequential
2656+
* backups of the same disk will share storage.
26572657
* </pre>
26582658
*
26592659
* <code>int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -2671,9 +2671,9 @@ public Builder setDownloadBytes(long value) {
26712671
*
26722672
*
26732673
* <pre>
2674-
* Output only. Amount of bytes that will be downloaded if the backup is restored. This
2675-
* may be different than storage bytes, since sequential backups of the same
2676-
* disk will share storage.
2674+
* Output only. Amount of bytes that will be downloaded if the backup is
2675+
* restored. This may be different than storage bytes, since sequential
2676+
* backups of the same disk will share storage.
26772677
* </pre>
26782678
*
26792679
* <code>int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupOrBuilder.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ public interface BackupOrBuilder
215215
*
216216
*
217217
* <pre>
218-
* Output only. The size of the storage used by the backup. As backups share storage,
219-
* this number is expected to change with backup creation/deletion.
218+
* Output only. The size of the storage used by the backup. As backups share
219+
* storage, this number is expected to change with backup creation/deletion.
220220
* </pre>
221221
*
222222
* <code>int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -285,8 +285,8 @@ public interface BackupOrBuilder
285285
*
286286
*
287287
* <pre>
288-
* Output only. The service tier of the source Cloud Filestore instance that this backup
289-
* is created from.
288+
* Output only. The service tier of the source Cloud Filestore instance that
289+
* this backup is created from.
290290
* </pre>
291291
*
292292
* <code>
@@ -300,8 +300,8 @@ public interface BackupOrBuilder
300300
*
301301
*
302302
* <pre>
303-
* Output only. The service tier of the source Cloud Filestore instance that this backup
304-
* is created from.
303+
* Output only. The service tier of the source Cloud Filestore instance that
304+
* this backup is created from.
305305
* </pre>
306306
*
307307
* <code>
@@ -316,9 +316,9 @@ public interface BackupOrBuilder
316316
*
317317
*
318318
* <pre>
319-
* Output only. Amount of bytes that will be downloaded if the backup is restored. This
320-
* may be different than storage bytes, since sequential backups of the same
321-
* disk will share storage.
319+
* Output only. Amount of bytes that will be downloaded if the backup is
320+
* restored. This may be different than storage bytes, since sequential
321+
* backups of the same disk will share storage.
322322
* </pre>
323323
*
324324
* <code>int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

0 commit comments

Comments
 (0)