Class StorageSource.Builder (3.16.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.16.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  StorageSource . Builder   extends   GeneratedMessageV3 . Builder<StorageSource . Builder >  implements   StorageSourceOrBuilder  
   Location of the source in an archive file in Google Cloud Storage.
 Protobuf type google.devtools.cloudbuild.v1.StorageSource
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   StorageSource . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   StorageSource   build ()  
  
  buildPartial() 
  
    
public   StorageSource   buildPartial ()  
  
  clear() 
  
    
public   StorageSource . Builder   clear ()  
  
  Overrides 
  
  clearBucket() 
  
    
public   StorageSource . Builder   clearBucket ()  
  
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   StorageSource . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearGeneration() 
  
    
public   StorageSource . Builder   clearGeneration ()  
   Google Cloud Storage generation for the object. If the generation is
 omitted, the latest generation will be used.
 int64 generation = 3;
clearObject() 
  
    
public   StorageSource . Builder   clearObject ()  
   Google Cloud Storage object containing the source.
 This object must be a gzipped archive file (.tar.gz) containing source to
 build.
 string object = 2;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   StorageSource . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   StorageSource . Builder   clone ()  
  
  Overrides 
  
  getBucket() 
  
    
public   String   getBucket ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The bucket.
 
     
  
  getBucketBytes() 
  
    
public   ByteString   getBucketBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for bucket.
 
     
  
  getDefaultInstanceForType() 
  
    
public   StorageSource   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getGeneration() 
  
    
public   long   getGeneration ()  
   Google Cloud Storage generation for the object. If the generation is
 omitted, the latest generation will be used.
 int64 generation = 3;
    
      
        Returns  
      
        Type Description  
      
        long The generation.
 
     
  
  getObject() 
  
    
public   String   getObject ()  
   Google Cloud Storage object containing the source.
 This object must be a gzipped archive file (.tar.gz) containing source to
 build.
 string object = 2;
    
      
        Returns  
      
        Type Description  
      
        String The object.
 
     
  
  getObjectBytes() 
  
    
public   ByteString   getObjectBytes ()  
   Google Cloud Storage object containing the source.
 This object must be a gzipped archive file (.tar.gz) containing source to
 build.
 string object = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for object.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(StorageSource other) 
  
    
public   StorageSource . Builder   mergeFrom ( StorageSource   other )  
  
  
  
    
public   StorageSource . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   StorageSource . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   StorageSource . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setBucket(String value) 
  
    
public   StorageSource . Builder   setBucket ( String   value )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        valueString The bucket to set.
 
     
  
  
  setBucketBytes(ByteString value) 
  
    
public   StorageSource . Builder   setBucketBytes ( ByteString   value )  
  
  
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for bucket to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   StorageSource . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setGeneration(long value) 
  
    
public   StorageSource . Builder   setGeneration ( long   value )  
   Google Cloud Storage generation for the object. If the generation is
 omitted, the latest generation will be used.
 int64 generation = 3;
    
      
        Parameter  
      
        Name Description  
      
        valuelong The generation to set.
 
     
  
  
  setObject(String value) 
  
    
public   StorageSource . Builder   setObject ( String   value )  
   Google Cloud Storage object containing the source.
 This object must be a gzipped archive file (.tar.gz) containing source to
 build.
 string object = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The object to set.
 
     
  
  
  setObjectBytes(ByteString value) 
  
    
public   StorageSource . Builder   setObjectBytes ( ByteString   value )  
   Google Cloud Storage object containing the source.
 This object must be a gzipped archive file (.tar.gz) containing source to
 build.
 string object = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for object to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   StorageSource . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   StorageSource . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]