Class CustomVariable.Builder

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

public static final class CustomVariable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomVariable.Builder> implements CustomVariableOrBuilder
 A custom variable.
 
Protobuf type google.ads.googleads.v18.services.CustomVariable
  • 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<CustomVariable.Builder>
    • clear

      public CustomVariable.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<CustomVariable.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<CustomVariable.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public CustomVariable.Builder mergeFrom(CustomVariable other)
    • isInitialized

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

      public CustomVariable.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<CustomVariable.Builder>
      Throws:
      IOException
    • getConversionCustomVariable

      public String getConversionCustomVariable()
       Resource name of the custom variable associated with this conversion.
       Note: Although this resource name consists of a customer id and a
       conversion custom variable id, validation will ignore the customer id and
       use the conversion custom variable id as the sole identifier of the
       conversion custom variable.
       
      string conversion_custom_variable = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getConversionCustomVariable in interface CustomVariableOrBuilder
      Returns:
      The conversionCustomVariable.
    • getConversionCustomVariableBytes

      public com.google.protobuf.ByteString getConversionCustomVariableBytes()
       Resource name of the custom variable associated with this conversion.
       Note: Although this resource name consists of a customer id and a
       conversion custom variable id, validation will ignore the customer id and
       use the conversion custom variable id as the sole identifier of the
       conversion custom variable.
       
      string conversion_custom_variable = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getConversionCustomVariableBytes in interface CustomVariableOrBuilder
      Returns:
      The bytes for conversionCustomVariable.
    • setConversionCustomVariable

      public CustomVariable.Builder setConversionCustomVariable(String value)
       Resource name of the custom variable associated with this conversion.
       Note: Although this resource name consists of a customer id and a
       conversion custom variable id, validation will ignore the customer id and
       use the conversion custom variable id as the sole identifier of the
       conversion custom variable.
       
      string conversion_custom_variable = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversionCustomVariable to set.
      Returns:
      This builder for chaining.
    • clearConversionCustomVariable

      public CustomVariable.Builder clearConversionCustomVariable()
       Resource name of the custom variable associated with this conversion.
       Note: Although this resource name consists of a customer id and a
       conversion custom variable id, validation will ignore the customer id and
       use the conversion custom variable id as the sole identifier of the
       conversion custom variable.
       
      string conversion_custom_variable = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversionCustomVariableBytes

      public CustomVariable.Builder setConversionCustomVariableBytes(com.google.protobuf.ByteString value)
       Resource name of the custom variable associated with this conversion.
       Note: Although this resource name consists of a customer id and a
       conversion custom variable id, validation will ignore the customer id and
       use the conversion custom variable id as the sole identifier of the
       conversion custom variable.
       
      string conversion_custom_variable = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversionCustomVariable to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       The value string of this custom variable.
       The value of the custom variable should not contain private customer data,
       such as email addresses or phone numbers.
       
      string value = 2;
      Specified by:
      getValue in interface CustomVariableOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value string of this custom variable.
       The value of the custom variable should not contain private customer data,
       such as email addresses or phone numbers.
       
      string value = 2;
      Specified by:
      getValueBytes in interface CustomVariableOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public CustomVariable.Builder setValue(String value)
       The value string of this custom variable.
       The value of the custom variable should not contain private customer data,
       such as email addresses or phone numbers.
       
      string value = 2;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public CustomVariable.Builder clearValue()
       The value string of this custom variable.
       The value of the custom variable should not contain private customer data,
       such as email addresses or phone numbers.
       
      string value = 2;
      Returns:
      This builder for chaining.
    • setValueBytes

      public CustomVariable.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value string of this custom variable.
       The value of the custom variable should not contain private customer data,
       such as email addresses or phone numbers.
       
      string value = 2;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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