Class AddBatchJobOperationsRequest.Builder

  • All Implemented Interfaces:
    AddBatchJobOperationsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.services.BatchJobService.AddBatchJobOperations].
     
    Protobuf type google.ads.googleads.v10.services.AddBatchJobOperationsRequest
    • Method Detail

      • 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>
      • 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

        public AddBatchJobOperationsRequest 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
      • setRepeatedField

        public AddBatchJobOperationsRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                     int index,
                                                                     java.lang.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,
                                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddBatchJobOperationsRequest.Builder>
      • 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 java.io.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:
        java.io.IOException
      • getResourceName

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.util.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      • addAllMutateOperations

        public AddBatchJobOperationsRequest.Builder addAllMutateOperations​(java.lang.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.v10.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.v10.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.v10.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.v10.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.v10.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMutateOperationsOrBuilder in interface AddBatchJobOperationsRequestOrBuilder
      • getMutateOperationsOrBuilderList

        public java.util.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.v10.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.v10.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.v10.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];
      • getMutateOperationsBuilderList

        public java.util.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.v10.services.MutateOperation mutate_operations = 3 [(.google.api.field_behavior) = REQUIRED];