Class ComposeObjectRequest.SourceObject.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ComposeObjectRequest.SourceObjectOrBuilder, Cloneable
Enclosing class:
ComposeObjectRequest.SourceObject

public static final class ComposeObjectRequest.SourceObject.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder> implements ComposeObjectRequest.SourceObjectOrBuilder
 Description of a source object for a composition request.
 
Protobuf type google.storage.v2.ComposeObjectRequest.SourceObject
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
    • getDefaultInstanceForType

      public ComposeObjectRequest.SourceObject getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ComposeObjectRequest.SourceObject buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ComposeObjectRequest.SourceObject.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
    • mergeFrom

      public ComposeObjectRequest.SourceObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComposeObjectRequest.SourceObject.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The source object's name. All source objects must reside in the
       same bucket.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ComposeObjectRequest.SourceObjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The source object's name. All source objects must reside in the
       same bucket.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ComposeObjectRequest.SourceObjectOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The source object's name. All source objects must reside in the
       same bucket.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The source object's name. All source objects must reside in the
       same bucket.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ComposeObjectRequest.SourceObject.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The source object's name. All source objects must reside in the
       same bucket.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getGeneration

      public long getGeneration()
       Optional. The generation of this object to use as the source.
       
      int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGeneration in interface ComposeObjectRequest.SourceObjectOrBuilder
      Returns:
      The generation.
    • setGeneration

      public ComposeObjectRequest.SourceObject.Builder setGeneration(long value)
       Optional. The generation of this object to use as the source.
       
      int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The generation to set.
      Returns:
      This builder for chaining.
    • clearGeneration

       Optional. The generation of this object to use as the source.
       
      int64 generation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasObjectPreconditions

      public boolean hasObjectPreconditions()
       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasObjectPreconditions in interface ComposeObjectRequest.SourceObjectOrBuilder
      Returns:
      Whether the objectPreconditions field is set.
    • getObjectPreconditions

       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectPreconditions in interface ComposeObjectRequest.SourceObjectOrBuilder
      Returns:
      The objectPreconditions.
    • setObjectPreconditions

       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setObjectPreconditions

       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeObjectPreconditions

       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearObjectPreconditions

      public ComposeObjectRequest.SourceObject.Builder clearObjectPreconditions()
       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getObjectPreconditionsBuilder

      public ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder getObjectPreconditionsBuilder()
       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getObjectPreconditionsOrBuilder

      public ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder()
       Optional. Conditions that must be met for this operation to execute.
       
      .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectPreconditionsOrBuilder in interface ComposeObjectRequest.SourceObjectOrBuilder