Class MutateCampaignLabelsRequest.Builder

  • All Implemented Interfaces:
    MutateCampaignLabelsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    MutateCampaignLabelsRequest

    public static final class MutateCampaignLabelsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MutateCampaignLabelsRequest.Builder>
    implements MutateCampaignLabelsRequestOrBuilder
     Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v10.services.CampaignLabelService.MutateCampaignLabels].
     
    Protobuf type google.ads.googleads.v10.services.MutateCampaignLabelsRequest
    • 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<MutateCampaignLabelsRequest.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<MutateCampaignLabelsRequest.Builder>
      • getDefaultInstanceForType

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

        public MutateCampaignLabelsRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MutateCampaignLabelsRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public MutateCampaignLabelsRequest.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<MutateCampaignLabelsRequest.Builder>
      • addRepeatedField

        public MutateCampaignLabelsRequest.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<MutateCampaignLabelsRequest.Builder>
      • isInitialized

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

        public MutateCampaignLabelsRequest.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<MutateCampaignLabelsRequest.Builder>
        Throws:
        java.io.IOException
      • getCustomerId

        public java.lang.String getCustomerId()
         Required. ID of the customer whose campaign-label relationships are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCustomerId in interface MutateCampaignLabelsRequestOrBuilder
        Returns:
        The customerId.
      • getCustomerIdBytes

        public com.google.protobuf.ByteString getCustomerIdBytes()
         Required. ID of the customer whose campaign-label relationships are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCustomerIdBytes in interface MutateCampaignLabelsRequestOrBuilder
        Returns:
        The bytes for customerId.
      • setCustomerId

        public MutateCampaignLabelsRequest.Builder setCustomerId​(java.lang.String value)
         Required. ID of the customer whose campaign-label relationships are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The customerId to set.
        Returns:
        This builder for chaining.
      • clearCustomerId

        public MutateCampaignLabelsRequest.Builder clearCustomerId()
         Required. ID of the customer whose campaign-label relationships are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setCustomerIdBytes

        public MutateCampaignLabelsRequest.Builder setCustomerIdBytes​(com.google.protobuf.ByteString value)
         Required. ID of the customer whose campaign-label relationships are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for customerId to set.
        Returns:
        This builder for chaining.
      • getOperationsCount

        public int getOperationsCount()
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsCount in interface MutateCampaignLabelsRequestOrBuilder
      • getOperations

        public CampaignLabelOperation getOperations​(int index)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperations in interface MutateCampaignLabelsRequestOrBuilder
      • setOperations

        public MutateCampaignLabelsRequest.Builder setOperations​(int index,
                                                                 CampaignLabelOperation value)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • setOperations

        public MutateCampaignLabelsRequest.Builder setOperations​(int index,
                                                                 CampaignLabelOperation.Builder builderForValue)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCampaignLabelsRequest.Builder addOperations​(CampaignLabelOperation value)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCampaignLabelsRequest.Builder addOperations​(int index,
                                                                 CampaignLabelOperation value)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCampaignLabelsRequest.Builder addOperations​(CampaignLabelOperation.Builder builderForValue)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCampaignLabelsRequest.Builder addOperations​(int index,
                                                                 CampaignLabelOperation.Builder builderForValue)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addAllOperations

        public MutateCampaignLabelsRequest.Builder addAllOperations​(java.lang.Iterable<? extends CampaignLabelOperation> values)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearOperations

        public MutateCampaignLabelsRequest.Builder clearOperations()
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeOperations

        public MutateCampaignLabelsRequest.Builder removeOperations​(int index)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilder

        public CampaignLabelOperation.Builder getOperationsBuilder​(int index)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperationsBuilder

        public CampaignLabelOperation.Builder addOperationsBuilder()
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperationsBuilder

        public CampaignLabelOperation.Builder addOperationsBuilder​(int index)
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilderList

        public java.util.List<CampaignLabelOperation.Builder> getOperationsBuilderList()
         Required. The list of operations to perform on campaign-label relationships.
         
        repeated .google.ads.googleads.v10.services.CampaignLabelOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPartialFailure

        public boolean getPartialFailure()
         If true, successful operations will be carried out and invalid
         operations will return errors. If false, all operations will be carried
         out in one transaction if and only if they are all valid.
         Default is false.
         
        bool partial_failure = 3;
        Specified by:
        getPartialFailure in interface MutateCampaignLabelsRequestOrBuilder
        Returns:
        The partialFailure.
      • setPartialFailure

        public MutateCampaignLabelsRequest.Builder setPartialFailure​(boolean value)
         If true, successful operations will be carried out and invalid
         operations will return errors. If false, all operations will be carried
         out in one transaction if and only if they are all valid.
         Default is false.
         
        bool partial_failure = 3;
        Parameters:
        value - The partialFailure to set.
        Returns:
        This builder for chaining.
      • clearPartialFailure

        public MutateCampaignLabelsRequest.Builder clearPartialFailure()
         If true, successful operations will be carried out and invalid
         operations will return errors. If false, all operations will be carried
         out in one transaction if and only if they are all valid.
         Default is false.
         
        bool partial_failure = 3;
        Returns:
        This builder for chaining.
      • getValidateOnly

        public boolean getValidateOnly()
         If true, the request is validated but not executed. Only errors are
         returned, not results.
         
        bool validate_only = 4;
        Specified by:
        getValidateOnly in interface MutateCampaignLabelsRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public MutateCampaignLabelsRequest.Builder setValidateOnly​(boolean value)
         If true, the request is validated but not executed. Only errors are
         returned, not results.
         
        bool validate_only = 4;
        Parameters:
        value - The validateOnly to set.
        Returns:
        This builder for chaining.
      • clearValidateOnly

        public MutateCampaignLabelsRequest.Builder clearValidateOnly()
         If true, the request is validated but not executed. Only errors are
         returned, not results.
         
        bool validate_only = 4;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final MutateCampaignLabelsRequest.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<MutateCampaignLabelsRequest.Builder>