@@ -84,6 +84,7 @@ public com.google.api.services.storage.model.Bucket apply(BucketInfo bucketInfo)
84
84
private final List <LifecycleRule > lifecycleRules ;
85
85
private final String etag ;
86
86
private final Long createTime ;
87
+ private final Long updateTime ;
87
88
private final Long metageneration ;
88
89
private final List <Cors > cors ;
89
90
private final List <Acl > acl ;
@@ -1005,6 +1006,8 @@ public abstract static class Builder {
1005
1006
1006
1007
abstract Builder setCreateTime (Long createTime );
1007
1008
1009
+ abstract Builder setUpdateTime (Long updateTime );
1010
+
1008
1011
abstract Builder setMetageneration (Long metageneration );
1009
1012
1010
1013
abstract Builder setLocationType (String locationType );
@@ -1090,6 +1093,7 @@ static final class BuilderImpl extends Builder {
1090
1093
private String location ;
1091
1094
private String etag ;
1092
1095
private Long createTime ;
1096
+ private Long updateTime ;
1093
1097
private Long metageneration ;
1094
1098
private List <Cors > cors ;
1095
1099
private List <Acl > acl ;
@@ -1113,6 +1117,7 @@ static final class BuilderImpl extends Builder {
1113
1117
name = bucketInfo .name ;
1114
1118
etag = bucketInfo .etag ;
1115
1119
createTime = bucketInfo .createTime ;
1120
+ updateTime = bucketInfo .updateTime ;
1116
1121
metageneration = bucketInfo .metageneration ;
1117
1122
location = bucketInfo .location ;
1118
1123
storageClass = bucketInfo .storageClass ;
@@ -1232,6 +1237,12 @@ Builder setCreateTime(Long createTime) {
1232
1237
return this ;
1233
1238
}
1234
1239
1240
+ @ Override
1241
+ Builder setUpdateTime (Long updateTime ) {
1242
+ this .updateTime = updateTime ;
1243
+ return this ;
1244
+ }
1245
+
1235
1246
@ Override
1236
1247
Builder setMetageneration (Long metageneration ) {
1237
1248
this .metageneration = metageneration ;
@@ -1337,6 +1348,7 @@ public BucketInfo build() {
1337
1348
name = builder .name ;
1338
1349
etag = builder .etag ;
1339
1350
createTime = builder .createTime ;
1351
+ updateTime = builder .updateTime ;
1340
1352
metageneration = builder .metageneration ;
1341
1353
location = builder .location ;
1342
1354
storageClass = builder .storageClass ;
@@ -1468,6 +1480,14 @@ public Long getCreateTime() {
1468
1480
return createTime ;
1469
1481
}
1470
1482
1483
+ /**
1484
+ * Returns the last modification time of the bucket's metadata expressed as the number of
1485
+ * milliseconds since the Unix epoch.
1486
+ */
1487
+ public Long getUpdateTime () {
1488
+ return updateTime ;
1489
+ }
1490
+
1471
1491
/** Returns the metadata generation of this bucket. */
1472
1492
public Long getMetageneration () {
1473
1493
return metageneration ;
@@ -1650,6 +1670,9 @@ com.google.api.services.storage.model.Bucket toPb() {
1650
1670
if (createTime != null ) {
1651
1671
bucketPb .setTimeCreated (new DateTime (createTime ));
1652
1672
}
1673
+ if (updateTime != null ) {
1674
+ bucketPb .setUpdated (new DateTime (updateTime ));
1675
+ }
1653
1676
if (metageneration != null ) {
1654
1677
bucketPb .setMetageneration (metageneration );
1655
1678
}
@@ -1797,6 +1820,9 @@ static BucketInfo fromPb(com.google.api.services.storage.model.Bucket bucketPb)
1797
1820
if (bucketPb .getTimeCreated () != null ) {
1798
1821
builder .setCreateTime (bucketPb .getTimeCreated ().getValue ());
1799
1822
}
1823
+ if (bucketPb .getUpdated () != null ) {
1824
+ builder .setUpdateTime (bucketPb .getUpdated ().getValue ());
1825
+ }
1800
1826
if (bucketPb .getLocation () != null ) {
1801
1827
builder .setLocation (bucketPb .getLocation ());
1802
1828
}
0 commit comments