Skip to content

Commit 3f11775

Browse files
chore: update googleapis commit at Fri May 17 02:15:54 UTC 2024 (#10852)
* chore: update googleapis commit at Fri May 17 02:15:54 UTC 2024 * chore: generate libraries at Fri May 17 02:19:04 UTC 2024 * retrigger ci --------- Co-authored-by: Joe Wang <joewa@google.com>
1 parent 22a145b commit 3f11775

File tree

17 files changed

+2753
-76
lines changed

17 files changed

+2753
-76
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.40.0
22
protoc_version: '25.3'
3-
googleapis_commitish: 998ade8d5e34d18df5ce36ce2baefdd57f4da375
3+
googleapis_commitish: a07bf82eb48d79bc113620b3fb517a3ebe92989c
44
libraries_bom_version: 26.39.0
55
template_excludes:
66
- .github/*

java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,24 @@
15291529
"allDeclaredClasses": true,
15301530
"allPublicClasses": true
15311531
},
1532+
{
1533+
"name": "com.google.cloud.netapp.v1.LocationMetadata",
1534+
"queryAllDeclaredConstructors": true,
1535+
"queryAllPublicConstructors": true,
1536+
"queryAllDeclaredMethods": true,
1537+
"allPublicMethods": true,
1538+
"allDeclaredClasses": true,
1539+
"allPublicClasses": true
1540+
},
1541+
{
1542+
"name": "com.google.cloud.netapp.v1.LocationMetadata$Builder",
1543+
"queryAllDeclaredConstructors": true,
1544+
"queryAllPublicConstructors": true,
1545+
"queryAllDeclaredMethods": true,
1546+
"allPublicMethods": true,
1547+
"allDeclaredClasses": true,
1548+
"allPublicClasses": true
1549+
},
15321550
{
15331551
"name": "com.google.cloud.netapp.v1.MonthlySchedule",
15341552
"queryAllDeclaredConstructors": true,
@@ -1862,6 +1880,33 @@
18621880
"allDeclaredClasses": true,
18631881
"allPublicClasses": true
18641882
},
1883+
{
1884+
"name": "com.google.cloud.netapp.v1.TieringPolicy",
1885+
"queryAllDeclaredConstructors": true,
1886+
"queryAllPublicConstructors": true,
1887+
"queryAllDeclaredMethods": true,
1888+
"allPublicMethods": true,
1889+
"allDeclaredClasses": true,
1890+
"allPublicClasses": true
1891+
},
1892+
{
1893+
"name": "com.google.cloud.netapp.v1.TieringPolicy$Builder",
1894+
"queryAllDeclaredConstructors": true,
1895+
"queryAllPublicConstructors": true,
1896+
"queryAllDeclaredMethods": true,
1897+
"allPublicMethods": true,
1898+
"allDeclaredClasses": true,
1899+
"allPublicClasses": true
1900+
},
1901+
{
1902+
"name": "com.google.cloud.netapp.v1.TieringPolicy$TierAction",
1903+
"queryAllDeclaredConstructors": true,
1904+
"queryAllPublicConstructors": true,
1905+
"queryAllDeclaredMethods": true,
1906+
"allPublicMethods": true,
1907+
"allDeclaredClasses": true,
1908+
"allPublicClasses": true
1909+
},
18651910
{
18661911
"name": "com.google.cloud.netapp.v1.TransferStats",
18671912
"queryAllDeclaredConstructors": true,

java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ public void getVolumeTest() throws Exception {
787787
.setHasReplication(true)
788788
.setBackupConfig(BackupConfig.newBuilder().build())
789789
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
790+
.setTieringPolicy(TieringPolicy.newBuilder().build())
790791
.build();
791792
mockService.addResponse(expectedResponse);
792793

@@ -862,6 +863,7 @@ public void getVolumeTest2() throws Exception {
862863
.setHasReplication(true)
863864
.setBackupConfig(BackupConfig.newBuilder().build())
864865
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
866+
.setTieringPolicy(TieringPolicy.newBuilder().build())
865867
.build();
866868
mockService.addResponse(expectedResponse);
867869

@@ -937,6 +939,7 @@ public void createVolumeTest() throws Exception {
937939
.setHasReplication(true)
938940
.setBackupConfig(BackupConfig.newBuilder().build())
939941
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
942+
.setTieringPolicy(TieringPolicy.newBuilder().build())
940943
.build();
941944
Operation resultOperation =
942945
Operation.newBuilder()
@@ -1021,6 +1024,7 @@ public void createVolumeTest2() throws Exception {
10211024
.setHasReplication(true)
10221025
.setBackupConfig(BackupConfig.newBuilder().build())
10231026
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1027+
.setTieringPolicy(TieringPolicy.newBuilder().build())
10241028
.build();
10251029
Operation resultOperation =
10261030
Operation.newBuilder()
@@ -1105,6 +1109,7 @@ public void updateVolumeTest() throws Exception {
11051109
.setHasReplication(true)
11061110
.setBackupConfig(BackupConfig.newBuilder().build())
11071111
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1112+
.setTieringPolicy(TieringPolicy.newBuilder().build())
11081113
.build();
11091114
Operation resultOperation =
11101115
Operation.newBuilder()
@@ -1148,6 +1153,7 @@ public void updateVolumeTest() throws Exception {
11481153
.setHasReplication(true)
11491154
.setBackupConfig(BackupConfig.newBuilder().build())
11501155
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1156+
.setTieringPolicy(TieringPolicy.newBuilder().build())
11511157
.build();
11521158
FieldMask updateMask = FieldMask.newBuilder().build();
11531159

@@ -1212,6 +1218,7 @@ public void updateVolumeExceptionTest() throws Exception {
12121218
.setHasReplication(true)
12131219
.setBackupConfig(BackupConfig.newBuilder().build())
12141220
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1221+
.setTieringPolicy(TieringPolicy.newBuilder().build())
12151222
.build();
12161223
FieldMask updateMask = FieldMask.newBuilder().build();
12171224
client.updateVolumeAsync(volume, updateMask).get();
@@ -1346,6 +1353,7 @@ public void revertVolumeTest() throws Exception {
13461353
.setHasReplication(true)
13471354
.setBackupConfig(BackupConfig.newBuilder().build())
13481355
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1356+
.setTieringPolicy(TieringPolicy.newBuilder().build())
13491357
.build();
13501358
Operation resultOperation =
13511359
Operation.newBuilder()

java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ public void getVolumeTest() throws Exception {
710710
.setHasReplication(true)
711711
.setBackupConfig(BackupConfig.newBuilder().build())
712712
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
713+
.setTieringPolicy(TieringPolicy.newBuilder().build())
713714
.build();
714715
mockNetApp.addResponse(expectedResponse);
715716

@@ -779,6 +780,7 @@ public void getVolumeTest2() throws Exception {
779780
.setHasReplication(true)
780781
.setBackupConfig(BackupConfig.newBuilder().build())
781782
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
783+
.setTieringPolicy(TieringPolicy.newBuilder().build())
782784
.build();
783785
mockNetApp.addResponse(expectedResponse);
784786

@@ -848,6 +850,7 @@ public void createVolumeTest() throws Exception {
848850
.setHasReplication(true)
849851
.setBackupConfig(BackupConfig.newBuilder().build())
850852
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
853+
.setTieringPolicy(TieringPolicy.newBuilder().build())
851854
.build();
852855
Operation resultOperation =
853856
Operation.newBuilder()
@@ -931,6 +934,7 @@ public void createVolumeTest2() throws Exception {
931934
.setHasReplication(true)
932935
.setBackupConfig(BackupConfig.newBuilder().build())
933936
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
937+
.setTieringPolicy(TieringPolicy.newBuilder().build())
934938
.build();
935939
Operation resultOperation =
936940
Operation.newBuilder()
@@ -1014,6 +1018,7 @@ public void updateVolumeTest() throws Exception {
10141018
.setHasReplication(true)
10151019
.setBackupConfig(BackupConfig.newBuilder().build())
10161020
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1021+
.setTieringPolicy(TieringPolicy.newBuilder().build())
10171022
.build();
10181023
Operation resultOperation =
10191024
Operation.newBuilder()
@@ -1178,6 +1183,7 @@ public void revertVolumeTest() throws Exception {
11781183
.setHasReplication(true)
11791184
.setBackupConfig(BackupConfig.newBuilder().build())
11801185
.addAllRestrictedActions(new ArrayList<RestrictedAction>())
1186+
.setTieringPolicy(TieringPolicy.newBuilder().build())
11811187
.build();
11821188
Operation resultOperation =
11831189
Operation.newBuilder()

java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupConfig.java

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,43 @@ public boolean getScheduledBackupEnabled() {
237237
return scheduledBackupEnabled_;
238238
}
239239

240+
public static final int BACKUP_CHAIN_BYTES_FIELD_NUMBER = 4;
241+
private long backupChainBytes_ = 0L;
242+
/**
243+
*
244+
*
245+
* <pre>
246+
* Output only. Total size of all backups in a chain in bytes = baseline
247+
* backup size + sum(incremental backup size).
248+
* </pre>
249+
*
250+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
251+
* </code>
252+
*
253+
* @return Whether the backupChainBytes field is set.
254+
*/
255+
@java.lang.Override
256+
public boolean hasBackupChainBytes() {
257+
return ((bitField0_ & 0x00000002) != 0);
258+
}
259+
/**
260+
*
261+
*
262+
* <pre>
263+
* Output only. Total size of all backups in a chain in bytes = baseline
264+
* backup size + sum(incremental backup size).
265+
* </pre>
266+
*
267+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
268+
* </code>
269+
*
270+
* @return The backupChainBytes.
271+
*/
272+
@java.lang.Override
273+
public long getBackupChainBytes() {
274+
return backupChainBytes_;
275+
}
276+
240277
private byte memoizedIsInitialized = -1;
241278

242279
@java.lang.Override
@@ -260,6 +297,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
260297
if (((bitField0_ & 0x00000001) != 0)) {
261298
output.writeBool(3, scheduledBackupEnabled_);
262299
}
300+
if (((bitField0_ & 0x00000002) != 0)) {
301+
output.writeInt64(4, backupChainBytes_);
302+
}
263303
getUnknownFields().writeTo(output);
264304
}
265305

@@ -283,6 +323,9 @@ public int getSerializedSize() {
283323
if (((bitField0_ & 0x00000001) != 0)) {
284324
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, scheduledBackupEnabled_);
285325
}
326+
if (((bitField0_ & 0x00000002) != 0)) {
327+
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, backupChainBytes_);
328+
}
286329
size += getUnknownFields().getSerializedSize();
287330
memoizedSize = size;
288331
return size;
@@ -304,6 +347,10 @@ public boolean equals(final java.lang.Object obj) {
304347
if (hasScheduledBackupEnabled()) {
305348
if (getScheduledBackupEnabled() != other.getScheduledBackupEnabled()) return false;
306349
}
350+
if (hasBackupChainBytes() != other.hasBackupChainBytes()) return false;
351+
if (hasBackupChainBytes()) {
352+
if (getBackupChainBytes() != other.getBackupChainBytes()) return false;
353+
}
307354
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
308355
return true;
309356
}
@@ -325,6 +372,10 @@ public int hashCode() {
325372
hash = (37 * hash) + SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER;
326373
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getScheduledBackupEnabled());
327374
}
375+
if (hasBackupChainBytes()) {
376+
hash = (37 * hash) + BACKUP_CHAIN_BYTES_FIELD_NUMBER;
377+
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBackupChainBytes());
378+
}
328379
hash = (29 * hash) + getUnknownFields().hashCode();
329380
memoizedHashCode = hash;
330381
return hash;
@@ -467,6 +518,7 @@ public Builder clear() {
467518
backupPolicies_ = com.google.protobuf.LazyStringArrayList.emptyList();
468519
backupVault_ = "";
469520
scheduledBackupEnabled_ = false;
521+
backupChainBytes_ = 0L;
470522
return this;
471523
}
472524

@@ -515,6 +567,10 @@ private void buildPartial0(com.google.cloud.netapp.v1.BackupConfig result) {
515567
result.scheduledBackupEnabled_ = scheduledBackupEnabled_;
516568
to_bitField0_ |= 0x00000001;
517569
}
570+
if (((from_bitField0_ & 0x00000008) != 0)) {
571+
result.backupChainBytes_ = backupChainBytes_;
572+
to_bitField0_ |= 0x00000002;
573+
}
518574
result.bitField0_ |= to_bitField0_;
519575
}
520576

@@ -581,6 +637,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.BackupConfig other) {
581637
if (other.hasScheduledBackupEnabled()) {
582638
setScheduledBackupEnabled(other.getScheduledBackupEnabled());
583639
}
640+
if (other.hasBackupChainBytes()) {
641+
setBackupChainBytes(other.getBackupChainBytes());
642+
}
584643
this.mergeUnknownFields(other.getUnknownFields());
585644
onChanged();
586645
return this;
@@ -626,6 +685,12 @@ public Builder mergeFrom(
626685
bitField0_ |= 0x00000004;
627686
break;
628687
} // case 24
688+
case 32:
689+
{
690+
backupChainBytes_ = input.readInt64();
691+
bitField0_ |= 0x00000008;
692+
break;
693+
} // case 32
629694
default:
630695
{
631696
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1048,6 +1113,82 @@ public Builder clearScheduledBackupEnabled() {
10481113
return this;
10491114
}
10501115

1116+
private long backupChainBytes_;
1117+
/**
1118+
*
1119+
*
1120+
* <pre>
1121+
* Output only. Total size of all backups in a chain in bytes = baseline
1122+
* backup size + sum(incremental backup size).
1123+
* </pre>
1124+
*
1125+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1126+
* </code>
1127+
*
1128+
* @return Whether the backupChainBytes field is set.
1129+
*/
1130+
@java.lang.Override
1131+
public boolean hasBackupChainBytes() {
1132+
return ((bitField0_ & 0x00000008) != 0);
1133+
}
1134+
/**
1135+
*
1136+
*
1137+
* <pre>
1138+
* Output only. Total size of all backups in a chain in bytes = baseline
1139+
* backup size + sum(incremental backup size).
1140+
* </pre>
1141+
*
1142+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1143+
* </code>
1144+
*
1145+
* @return The backupChainBytes.
1146+
*/
1147+
@java.lang.Override
1148+
public long getBackupChainBytes() {
1149+
return backupChainBytes_;
1150+
}
1151+
/**
1152+
*
1153+
*
1154+
* <pre>
1155+
* Output only. Total size of all backups in a chain in bytes = baseline
1156+
* backup size + sum(incremental backup size).
1157+
* </pre>
1158+
*
1159+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1160+
* </code>
1161+
*
1162+
* @param value The backupChainBytes to set.
1163+
* @return This builder for chaining.
1164+
*/
1165+
public Builder setBackupChainBytes(long value) {
1166+
1167+
backupChainBytes_ = value;
1168+
bitField0_ |= 0x00000008;
1169+
onChanged();
1170+
return this;
1171+
}
1172+
/**
1173+
*
1174+
*
1175+
* <pre>
1176+
* Output only. Total size of all backups in a chain in bytes = baseline
1177+
* backup size + sum(incremental backup size).
1178+
* </pre>
1179+
*
1180+
* <code>optional int64 backup_chain_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1181+
* </code>
1182+
*
1183+
* @return This builder for chaining.
1184+
*/
1185+
public Builder clearBackupChainBytes() {
1186+
bitField0_ = (bitField0_ & ~0x00000008);
1187+
backupChainBytes_ = 0L;
1188+
onChanged();
1189+
return this;
1190+
}
1191+
10511192
@java.lang.Override
10521193
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
10531194
return super.setUnknownFields(unknownFields);

0 commit comments

Comments
 (0)