@@ -57,9 +57,9 @@ public StorageObject apply(BlobInfo blobInfo) {
5757 }
5858 };
5959
60- private static final long serialVersionUID = 2228487739943277159L ;
60+ private static final long serialVersionUID = - 5625857076205028976L ;
6161 private final BlobId blobId ;
62- private final String id ;
62+ private final String generatedId ;
6363 private final String selfLink ;
6464 private final String cacheControl ;
6565 private final List <Acl > acl ;
@@ -101,7 +101,7 @@ public abstract static class Builder {
101101 */
102102 public abstract Builder blobId (BlobId blobId );
103103
104- abstract Builder id (String id );
104+ abstract Builder generatedId (String generatedId );
105105
106106 /**
107107 * Sets the blob's data content type.
@@ -199,7 +199,7 @@ public abstract static class Builder {
199199 static final class BuilderImpl extends Builder {
200200
201201 private BlobId blobId ;
202- private String id ;
202+ private String generatedId ;
203203 private String contentType ;
204204 private String contentEncoding ;
205205 private String contentDisposition ;
@@ -226,7 +226,7 @@ static final class BuilderImpl extends Builder {
226226
227227 BuilderImpl (BlobInfo blobInfo ) {
228228 blobId = blobInfo .blobId ;
229- id = blobInfo .id ;
229+ generatedId = blobInfo .generatedId ;
230230 cacheControl = blobInfo .cacheControl ;
231231 contentEncoding = blobInfo .contentEncoding ;
232232 contentType = blobInfo .contentType ;
@@ -255,8 +255,8 @@ public Builder blobId(BlobId blobId) {
255255 }
256256
257257 @ Override
258- Builder id (String id ) {
259- this .id = id ;
258+ Builder generatedId (String generatedId ) {
259+ this .generatedId = generatedId ;
260260 return this ;
261261 }
262262
@@ -384,7 +384,7 @@ public BlobInfo build() {
384384
385385 BlobInfo (BuilderImpl builder ) {
386386 blobId = builder .blobId ;
387- id = builder .id ;
387+ generatedId = builder .generatedId ;
388388 cacheControl = builder .cacheControl ;
389389 contentEncoding = builder .contentEncoding ;
390390 contentType = builder .contentType ;
@@ -421,10 +421,10 @@ public String bucket() {
421421 }
422422
423423 /**
424- * Returns the blob's id .
424+ * Returns the service-generated for the blob .
425425 */
426- public String id () {
427- return id ;
426+ public String generatedId () {
427+ return generatedId ;
428428 }
429429
430430 /**
@@ -684,7 +684,7 @@ public ObjectAccessControl apply(Acl acl) {
684684 storageObject .setComponentCount (componentCount );
685685 storageObject .setContentLanguage (contentLanguage );
686686 storageObject .setEtag (etag );
687- storageObject .setId (id );
687+ storageObject .setId (generatedId );
688688 storageObject .setSelfLink (selfLink );
689689 return storageObject ;
690690 }
@@ -757,7 +757,7 @@ static BlobInfo fromPb(StorageObject storageObject) {
757757 builder .etag (storageObject .getEtag ());
758758 }
759759 if (storageObject .getId () != null ) {
760- builder .id (storageObject .getId ());
760+ builder .generatedId (storageObject .getId ());
761761 }
762762 if (storageObject .getSelfLink () != null ) {
763763 builder .selfLink (storageObject .getSelfLink ());
0 commit comments