Class CustomerCustomizer.Builder

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

public static final class CustomerCustomizer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomerCustomizer.Builder> implements CustomerCustomizerOrBuilder
 A customizer value for the associated CustomizerAttribute at the Customer
 level.
 
Protobuf type google.ads.googleads.v18.resources.CustomerCustomizer
  • 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<CustomerCustomizer.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<CustomerCustomizer.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<CustomerCustomizer.Builder>
    • getDefaultInstanceForType

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

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

      public CustomerCustomizer 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<CustomerCustomizer.Builder>
    • setField

      public CustomerCustomizer.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<CustomerCustomizer.Builder>
    • clearField

      public CustomerCustomizer.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<CustomerCustomizer.Builder>
    • clearOneof

      public CustomerCustomizer.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<CustomerCustomizer.Builder>
    • setRepeatedField

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

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

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

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

      public String getResourceName()
       Immutable. The resource name of the customer customizer.
       Customer customizer resource names have the form:
      
       `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface CustomerCustomizerOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the customer customizer.
       Customer customizer resource names have the form:
      
       `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface CustomerCustomizerOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public CustomerCustomizer.Builder setResourceName(String value)
       Immutable. The resource name of the customer customizer.
       Customer customizer resource names have the form:
      
       `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public CustomerCustomizer.Builder clearResourceName()
       Immutable. The resource name of the customer customizer.
       Customer customizer resource names have the form:
      
       `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public CustomerCustomizer.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the customer customizer.
       Customer customizer resource names have the form:
      
       `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getCustomizerAttribute

      public String getCustomizerAttribute()
       Required. Immutable. The customizer attribute which is linked to the
       customer.
       
      string customizer_attribute = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomizerAttribute in interface CustomerCustomizerOrBuilder
      Returns:
      The customizerAttribute.
    • getCustomizerAttributeBytes

      public com.google.protobuf.ByteString getCustomizerAttributeBytes()
       Required. Immutable. The customizer attribute which is linked to the
       customer.
       
      string customizer_attribute = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCustomizerAttributeBytes in interface CustomerCustomizerOrBuilder
      Returns:
      The bytes for customizerAttribute.
    • setCustomizerAttribute

      public CustomerCustomizer.Builder setCustomizerAttribute(String value)
       Required. Immutable. The customizer attribute which is linked to the
       customer.
       
      string customizer_attribute = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The customizerAttribute to set.
      Returns:
      This builder for chaining.
    • clearCustomizerAttribute

      public CustomerCustomizer.Builder clearCustomizerAttribute()
       Required. Immutable. The customizer attribute which is linked to the
       customer.
       
      string customizer_attribute = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCustomizerAttributeBytes

      public CustomerCustomizer.Builder setCustomizerAttributeBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The customizer attribute which is linked to the
       customer.
       
      string customizer_attribute = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for customizerAttribute to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the customer customizer attribute.
       
      .google.ads.googleads.v18.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface CustomerCustomizerOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public CustomerCustomizer.Builder setStatusValue(int value)
       Output only. The status of the customer customizer attribute.
       
      .google.ads.googleads.v18.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       Output only. The status of the customer customizer attribute.
       
      .google.ads.googleads.v18.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface CustomerCustomizerOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. The status of the customer customizer attribute.
       
      .google.ads.googleads.v18.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public CustomerCustomizer.Builder clearStatus()
       Output only. The status of the customer customizer attribute.
       
      .google.ads.googleads.v18.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasValue in interface CustomerCustomizerOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public CustomizerValue getValue()
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValue in interface CustomerCustomizerOrBuilder
      Returns:
      The value.
    • setValue

       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
    • setValue

      public CustomerCustomizer.Builder setValue(CustomizerValue.Builder builderForValue)
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeValue

      public CustomerCustomizer.Builder mergeValue(CustomizerValue value)
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearValue

      public CustomerCustomizer.Builder clearValue()
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
    • getValueBuilder

      public CustomizerValue.Builder getValueBuilder()
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
    • getValueOrBuilder

      public CustomizerValueOrBuilder getValueOrBuilder()
       Required. The value to associate with the customizer attribute at this
       level. The value must be of the type specified for the CustomizerAttribute.
       
      .google.ads.googleads.v18.common.CustomizerValue value = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValueOrBuilder in interface CustomerCustomizerOrBuilder
    • setUnknownFields

      public final CustomerCustomizer.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<CustomerCustomizer.Builder>
    • mergeUnknownFields

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