Class MutateCustomInterestsRequest.Builder

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

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

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

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

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

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

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

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

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

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

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

        public MutateCustomInterestsRequest.Builder setCustomerId​(java.lang.String value)
         Required. The ID of the customer whose custom interests 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 MutateCustomInterestsRequest.Builder clearCustomerId()
         Required. The ID of the customer whose custom interests are being modified.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setCustomerIdBytes

        public MutateCustomInterestsRequest.Builder setCustomerIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the customer whose custom interests 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 individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsCount in interface MutateCustomInterestsRequestOrBuilder
      • setOperations

        public MutateCustomInterestsRequest.Builder setOperations​(int index,
                                                                  CustomInterestOperation value)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • setOperations

        public MutateCustomInterestsRequest.Builder setOperations​(int index,
                                                                  CustomInterestOperation.Builder builderForValue)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCustomInterestsRequest.Builder addOperations​(CustomInterestOperation value)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCustomInterestsRequest.Builder addOperations​(int index,
                                                                  CustomInterestOperation value)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public MutateCustomInterestsRequest.Builder addOperations​(int index,
                                                                  CustomInterestOperation.Builder builderForValue)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addAllOperations

        public MutateCustomInterestsRequest.Builder addAllOperations​(java.lang.Iterable<? extends CustomInterestOperation> values)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearOperations

        public MutateCustomInterestsRequest.Builder clearOperations()
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeOperations

        public MutateCustomInterestsRequest.Builder removeOperations​(int index)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilder

        public CustomInterestOperation.Builder getOperationsBuilder​(int index)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperationsBuilder

        public CustomInterestOperation.Builder addOperationsBuilder()
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperationsBuilder

        public CustomInterestOperation.Builder addOperationsBuilder​(int index)
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilderList

        public java.util.List<CustomInterestOperation.Builder> getOperationsBuilderList()
         Required. The list of operations to perform on individual custom interests.
         
        repeated .google.ads.googleads.v10.services.CustomInterestOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • 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 MutateCustomInterestsRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public MutateCustomInterestsRequest.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 MutateCustomInterestsRequest.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.