Class TextLabel.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TextLabel.Builder>
com.google.ads.googleads.v21.common.TextLabel.Builder
All Implemented Interfaces:
TextLabelOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TextLabel

public static final class TextLabel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextLabel.Builder> implements TextLabelOrBuilder
 A type of label displaying text on a colored background.
 
Protobuf type google.ads.googleads.v21.common.TextLabel
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    Background color of the label in HEX format.
    A short description of the label.
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
     
    Background color of the label in HEX format.
    com.google.protobuf.ByteString
    Background color of the label in HEX format.
     
    A short description of the label.
    com.google.protobuf.ByteString
    A short description of the label.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Background color of the label in HEX format.
    boolean
    A short description of the label.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    Background color of the label in HEX format.
    setBackgroundColorBytes(com.google.protobuf.ByteString value)
    Background color of the label in HEX format.
    A short description of the label.
    setDescriptionBytes(com.google.protobuf.ByteString value)
    A short description of the label.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getParentForChildren

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder

    addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtension

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextLabel.Builder>
    • clear

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

      public TextLabel getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

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

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

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

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

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

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

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

      public TextLabel.Builder mergeFrom(TextLabel other)
    • isInitialized

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

      public TextLabel.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<TextLabel.Builder>
      Throws:
      IOException
    • hasBackgroundColor

      public boolean hasBackgroundColor()
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Specified by:
      hasBackgroundColor in interface TextLabelOrBuilder
      Returns:
      Whether the backgroundColor field is set.
    • getBackgroundColor

      public String getBackgroundColor()
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Specified by:
      getBackgroundColor in interface TextLabelOrBuilder
      Returns:
      The backgroundColor.
    • getBackgroundColorBytes

      public com.google.protobuf.ByteString getBackgroundColorBytes()
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Specified by:
      getBackgroundColorBytes in interface TextLabelOrBuilder
      Returns:
      The bytes for backgroundColor.
    • setBackgroundColor

      public TextLabel.Builder setBackgroundColor(String value)
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Parameters:
      value - The backgroundColor to set.
      Returns:
      This builder for chaining.
    • clearBackgroundColor

      public TextLabel.Builder clearBackgroundColor()
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Returns:
      This builder for chaining.
    • setBackgroundColorBytes

      public TextLabel.Builder setBackgroundColorBytes(com.google.protobuf.ByteString value)
       Background color of the label in HEX format. This string must match the
       regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'.
       Note: The background color may not be visible for manager accounts.
       
      optional string background_color = 3;
      Parameters:
      value - The bytes for backgroundColor to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Specified by:
      hasDescription in interface TextLabelOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Specified by:
      getDescription in interface TextLabelOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Specified by:
      getDescriptionBytes in interface TextLabelOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TextLabel.Builder setDescription(String value)
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TextLabel.Builder clearDescription()
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TextLabel.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A short description of the label. The length must be no more than 200
       characters.
       
      optional string description = 4;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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