Class CustomizerValue.Builder

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

    public static final class CustomizerValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CustomizerValue.Builder>
    implements CustomizerValueOrBuilder
     A customizer value that is referenced in customizer linkage entities
     like CustomerCustomizer, CampaignCustomizer, etc.
     
    Protobuf type google.ads.googleads.v10.common.CustomizerValue
    • 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<CustomizerValue.Builder>
      • clear

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

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

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

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

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

        public CustomizerValue.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomizerValue.Builder>
      • clearField

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

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

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

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

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

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

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

        public int getTypeValue()
         Required. The data type for the customizer value. It must match the attribute type.
         The string_value content must match the constraints associated with the
         type.
         
        .google.ads.googleads.v10.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface CustomizerValueOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public CustomizerValue.Builder setTypeValue​(int value)
         Required. The data type for the customizer value. It must match the attribute type.
         The string_value content must match the constraints associated with the
         type.
         
        .google.ads.googleads.v10.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public CustomizerAttributeTypeEnum.CustomizerAttributeType getType()
         Required. The data type for the customizer value. It must match the attribute type.
         The string_value content must match the constraints associated with the
         type.
         
        .google.ads.googleads.v10.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getType in interface CustomizerValueOrBuilder
        Returns:
        The type.
      • setType

        public CustomizerValue.Builder setType​(CustomizerAttributeTypeEnum.CustomizerAttributeType value)
         Required. The data type for the customizer value. It must match the attribute type.
         The string_value content must match the constraints associated with the
         type.
         
        .google.ads.googleads.v10.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public CustomizerValue.Builder clearType()
         Required. The data type for the customizer value. It must match the attribute type.
         The string_value content must match the constraints associated with the
         type.
         
        .google.ads.googleads.v10.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getStringValue

        public java.lang.String getStringValue()
         Required. Value to insert in creative text. Customizer values of all types are stored
         as string to make formatting unambiguous.
         
        string string_value = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStringValue in interface CustomizerValueOrBuilder
        Returns:
        The stringValue.
      • getStringValueBytes

        public com.google.protobuf.ByteString getStringValueBytes()
         Required. Value to insert in creative text. Customizer values of all types are stored
         as string to make formatting unambiguous.
         
        string string_value = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStringValueBytes in interface CustomizerValueOrBuilder
        Returns:
        The bytes for stringValue.
      • setStringValue

        public CustomizerValue.Builder setStringValue​(java.lang.String value)
         Required. Value to insert in creative text. Customizer values of all types are stored
         as string to make formatting unambiguous.
         
        string string_value = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The stringValue to set.
        Returns:
        This builder for chaining.
      • clearStringValue

        public CustomizerValue.Builder clearStringValue()
         Required. Value to insert in creative text. Customizer values of all types are stored
         as string to make formatting unambiguous.
         
        string string_value = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setStringValueBytes

        public CustomizerValue.Builder setStringValueBytes​(com.google.protobuf.ByteString value)
         Required. Value to insert in creative text. Customizer values of all types are stored
         as string to make formatting unambiguous.
         
        string string_value = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for stringValue to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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