Class AddBatchJobOperationsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
com.google.ads.googleads.v18.services.AddBatchJobOperationsRequest.Builder
All Implemented Interfaces:
AddBatchJobOperationsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AddBatchJobOperationsRequest

public static final class AddBatchJobOperationsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder> implements AddBatchJobOperationsRequestOrBuilder
 Request message for
 [BatchJobService.AddBatchJobOperations][google.ads.googleads.v18.services.BatchJobService.AddBatchJobOperations].
 
Protobuf type google.ads.googleads.v18.services.AddBatchJobOperationsRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.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.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.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.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • getDefaultInstanceForType

      public AddBatchJobOperationsRequest 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 AddBatchJobOperationsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • setField

      public AddBatchJobOperationsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • clearField

      public AddBatchJobOperationsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • clearOneof

      public AddBatchJobOperationsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • setRepeatedField

      public AddBatchJobOperationsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • addRepeatedField

      public AddBatchJobOperationsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • mergeFrom

      public AddBatchJobOperationsRequest.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<AddBatchJobOperationsRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public AddBatchJobOperationsRequest.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<AddBatchJobOperationsRequest.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Required. The resource name of the batch job.
       
      string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface AddBatchJobOperationsRequestOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Required. The resource name of the batch job.
       
      string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface AddBatchJobOperationsRequestOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public AddBatchJobOperationsRequest.Builder setResourceName(String value)
       Required. The resource name of the batch job.
       
      string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public AddBatchJobOperationsRequest.Builder clearResourceName()
       Required. The resource name of the batch job.
       
      string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public AddBatchJobOperationsRequest.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the batch job.
       
      string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getSequenceToken

      public String getSequenceToken()
       A token used to enforce sequencing.
      
       The first AddBatchJobOperations request for a batch job should not set
       sequence_token. Subsequent requests must set sequence_token to the value of
       next_sequence_token received in the previous AddBatchJobOperations
       response.
       
      string sequence_token = 2;
      Specified by:
      getSequenceToken in interface AddBatchJobOperationsRequestOrBuilder
      Returns:
      The sequenceToken.
    • getSequenceTokenBytes

      public com.google.protobuf.ByteString getSequenceTokenBytes()
       A token used to enforce sequencing.
      
       The first AddBatchJobOperations request for a batch job should not set
       sequence_token. Subsequent requests must set sequence_token to the value of
       next_sequence_token received in the previous AddBatchJobOperations
       response.
       
      string sequence_token = 2;
      Specified by:
      getSequenceTokenBytes in interface AddBatchJobOperationsRequestOrBuilder
      Returns:
      The bytes for sequenceToken.
    • setSequenceToken

      public AddBatchJobOperationsRequest.Builder setSequenceToken(String value)
       A token used to enforce sequencing.
      
       The first AddBatchJobOperations request for a batch job should not set
       sequence_token. Subsequent requests must set sequence_token to the value of
       next_sequence_token received in the previous AddBatchJobOperations
       response.
       
      string sequence_token = 2;
      Parameters:
      value - The sequenceToken to set.
      Returns:
      This builder for chaining.
    • clearSequenceToken

      public AddBatchJobOperationsRequest.Builder clearSequenceToken()
       A token used to enforce sequencing.
      
       The first AddBatchJobOperations request for a batch job should not set
       sequence_token. Subsequent requests must set sequence_token to the value of
       next_sequence_token received in the previous AddBatchJobOperations
       response.
       
      string sequence_token = 2;
      Returns:
      This builder for chaining.
    • setSequenceTokenBytes

      public AddBatchJobOperationsRequest.Builder setSequenceTokenBytes(com.google.protobuf.ByteString value)
       A token used to enforce sequencing.
      
       The first AddBatchJobOperations request for a batch job should not set
       sequence_token. Subsequent requests must set sequence_token to the value of
       next_sequence_token received in the previous AddBatchJobOperations
       response.
       
      string sequence_token = 2;
      Parameters:
      value - The bytes for sequenceToken to set.
      Returns:
      This builder for chaining.
    • getMutateOperationsList

      public List<MutateOperation> getMutateOperationsList()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutateOperationsList in interface AddBatchJobOperationsRequestOrBuilder
    • getMutateOperationsCount

      public int getMutateOperationsCount()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutateOperationsCount in interface AddBatchJobOperationsRequestOrBuilder
    • getMutateOperations

      public MutateOperation getMutateOperations(int index)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutateOperations in interface AddBatchJobOperationsRequestOrBuilder
    • setMutateOperations

      public AddBatchJobOperationsRequest.Builder setMutateOperations(int index, MutateOperation value)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • setMutateOperations

      public AddBatchJobOperationsRequest.Builder setMutateOperations(int index, MutateOperation.Builder builderForValue)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addMutateOperations

      public AddBatchJobOperationsRequest.Builder addMutateOperations(MutateOperation value)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addMutateOperations

      public AddBatchJobOperationsRequest.Builder addMutateOperations(int index, MutateOperation value)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addMutateOperations

      public AddBatchJobOperationsRequest.Builder addMutateOperations(MutateOperation.Builder builderForValue)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addMutateOperations

      public AddBatchJobOperationsRequest.Builder addMutateOperations(int index, MutateOperation.Builder builderForValue)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addAllMutateOperations

      public AddBatchJobOperationsRequest.Builder addAllMutateOperations(Iterable<? extends MutateOperation> values)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearMutateOperations

      public AddBatchJobOperationsRequest.Builder clearMutateOperations()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • removeMutateOperations

      public AddBatchJobOperationsRequest.Builder removeMutateOperations(int index)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • getMutateOperationsBuilder

      public MutateOperation.Builder getMutateOperationsBuilder(int index)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • getMutateOperationsOrBuilder

      public MutateOperationOrBuilder getMutateOperationsOrBuilder(int index)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutateOperationsOrBuilder in interface AddBatchJobOperationsRequestOrBuilder
    • getMutateOperationsOrBuilderList

      public List<? extends MutateOperationOrBuilder> getMutateOperationsOrBuilderList()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutateOperationsOrBuilderList in interface AddBatchJobOperationsRequestOrBuilder
    • addMutateOperationsBuilder

      public MutateOperation.Builder addMutateOperationsBuilder()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • addMutateOperationsBuilder

      public MutateOperation.Builder addMutateOperationsBuilder(int index)
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • getMutateOperationsBuilderList

      public List<MutateOperation.Builder> getMutateOperationsBuilderList()
       Required. The list of mutates being added.
      
       Operations can use negative integers as temp ids to signify dependencies
       between entities created in this batch job. For example, a customer with
       id = 1234 can create a campaign and an ad group in that same campaign by
       creating a campaign in the first operation with the resource name
       explicitly set to "customers/1234/campaigns/-1", and creating an ad group
       in the second operation with the campaign field also set to
       "customers/1234/campaigns/-1".
       
      repeated .google.ads.googleads.v18.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
    • setUnknownFields

      public final AddBatchJobOperationsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
    • mergeUnknownFields

      public final AddBatchJobOperationsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>