@@ -97,7 +97,7 @@ public Set<Entry<K, V>> entrySet() {
9797 }
9898 }
9999
100- public static abstract class Builder {
100+ public abstract static class Builder {
101101
102102 /**
103103 * Sets the blob identity.
@@ -245,9 +245,6 @@ static final class BuilderImpl extends Builder {
245245 updateTime = blobInfo .updateTime ;
246246 }
247247
248- /**
249- * Sets the blob identity.
250- */
251248 @ Override
252249 public Builder blobId (BlobId blobId ) {
253250 this .blobId = checkNotNull (blobId );
@@ -260,44 +257,24 @@ Builder id(String id) {
260257 return this ;
261258 }
262259
263- /**
264- * Sets the blob's data content type.
265- *
266- * @see <a href="https://tools.ietf.org/html/rfc2616#section-14.17">Content-Type</a>
267- */
268260 @ Override
269261 public Builder contentType (String contentType ) {
270262 this .contentType = firstNonNull (contentType , Data .<String >nullOf (String .class ));
271263 return this ;
272264 }
273265
274- /**
275- * Sets the blob's data content disposition.
276- *
277- * @see <a href="https://tools.ietf.org/html/rfc6266">Content-Disposition</a>
278- */
279266 @ Override
280267 public Builder contentDisposition (String contentDisposition ) {
281268 this .contentDisposition = firstNonNull (contentDisposition , Data .<String >nullOf (String .class ));
282269 return this ;
283270 }
284271
285- /**
286- * Sets the blob's data content language.
287- *
288- * @see <a href="http://tools.ietf.org/html/bcp47">Content-Language</a>
289- */
290272 @ Override
291273 public Builder contentLanguage (String contentLanguage ) {
292274 this .contentLanguage = firstNonNull (contentLanguage , Data .<String >nullOf (String .class ));
293275 return this ;
294276 }
295277
296- /**
297- * Sets the blob's data content encoding.
298- *
299- * @see <a href="https://tools.ietf.org/html/rfc7231#section-3.1.2.2">Content-Encoding</a>
300- */
301278 @ Override
302279 public Builder contentEncoding (String contentEncoding ) {
303280 this .contentEncoding = firstNonNull (contentEncoding , Data .<String >nullOf (String .class ));
@@ -310,23 +287,12 @@ Builder componentCount(Integer componentCount) {
310287 return this ;
311288 }
312289
313- /**
314- * Sets the blob's data cache control.
315- *
316- * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2">Cache-Control</a>
317- */
318290 @ Override
319291 public Builder cacheControl (String cacheControl ) {
320292 this .cacheControl = firstNonNull (cacheControl , Data .<String >nullOf (String .class ));
321293 return this ;
322294 }
323295
324- /**
325- * Sets the blob's access control configuration.
326- *
327- * @see <a href="https://cloud.google.com/storage/docs/access-control#About-Access-Control-Lists">
328- * About Access Control Lists</a>
329- */
330296 @ Override
331297 public Builder acl (List <Acl > acl ) {
332298 this .acl = acl != null ? ImmutableList .copyOf (acl ) : null ;
@@ -357,26 +323,12 @@ Builder selfLink(String selfLink) {
357323 return this ;
358324 }
359325
360- /**
361- * Sets the MD5 hash of blob's data. MD5 value must be encoded in base64.
362- *
363- * @see <a href="https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI">
364- * Hashes and ETags: Best Practices</a>
365- */
366326 @ Override
367327 public Builder md5 (String md5 ) {
368328 this .md5 = firstNonNull (md5 , Data .<String >nullOf (String .class ));
369329 return this ;
370330 }
371331
372- /**
373- * Sets the CRC32C checksum of blob's data as described in
374- * <a href="http://tools.ietf.org/html/rfc4960#appendix-B">RFC 4960, Appendix B;</a> encoded in
375- * base64 in big-endian order.
376- *
377- * @see <a href="https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI">
378- * Hashes and ETags: Best Practices</a>
379- */
380332 @ Override
381333 public Builder crc32c (String crc32c ) {
382334 this .crc32c = firstNonNull (crc32c , Data .<String >nullOf (String .class ));
@@ -389,9 +341,6 @@ Builder mediaLink(String mediaLink) {
389341 return this ;
390342 }
391343
392- /**
393- * Sets the blob's user provided metadata.
394- */
395344 @ Override
396345 public Builder metadata (Map <String , String > metadata ) {
397346 this .metadata = metadata != null
@@ -417,9 +366,6 @@ Builder updateTime(Long updateTime) {
417366 return this ;
418367 }
419368
420- /**
421- * Creates a {@code BlobInfo} object.
422- */
423369 @ Override
424370 public BlobInfo build () {
425371 checkNotNull (blobId );
@@ -731,7 +677,7 @@ public static Builder builder(BucketInfo bucketInfo, String name) {
731677 * Returns a {@code BlobInfo} builder where blob identity is set using the provided values.
732678 */
733679 public static Builder builder (String bucket , String name ) {
734- return new BuilderImpl (). blobId (BlobId .of (bucket , name ));
680+ return builder (BlobId .of (bucket , name ));
735681 }
736682
737683 /**
@@ -745,7 +691,7 @@ public static Builder builder(BucketInfo bucketInfo, String name, Long generatio
745691 * Returns a {@code BlobInfo} builder where blob identity is set using the provided values.
746692 */
747693 public static Builder builder (String bucket , String name , Long generation ) {
748- return new BuilderImpl (). blobId (BlobId .of (bucket , name , generation ));
694+ return builder (BlobId .of (bucket , name , generation ));
749695 }
750696
751697 public static Builder builder (BlobId blobId ) {
0 commit comments