Class TextLabel.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextLabel.Builder>
com.google.ads.googleads.v23.common.TextLabel.Builder
All Implemented Interfaces:
TextLabelOrBuilder, 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.GeneratedMessage.Builder<TextLabel.Builder> implements TextLabelOrBuilder
 A type of label displaying text on a colored background.
 
Protobuf type google.ads.googleads.v23.common.TextLabel
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Background color of the label in HEX format.
    A short description of the label.
    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.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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.

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

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.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
    • 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.Builder<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.