Class Text.TextStyle.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
com.google.monitoring.dashboard.v1.Text.TextStyle.Builder
All Implemented Interfaces:
Text.TextStyleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Text.TextStyle

public static final class Text.TextStyle.Builder extends com.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder> implements Text.TextStyleOrBuilder
 Properties that determine how the title and content are styled
 
Protobuf type google.monitoring.dashboard.v1.Text.TextStyle
  • 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<Text.TextStyle.Builder>
    • clear

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

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

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

      public Text.TextStyle buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public Text.TextStyle.Builder mergeFrom(Text.TextStyle other)
    • isInitialized

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

      public Text.TextStyle.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<Text.TextStyle.Builder>
      Throws:
      IOException
    • getBackgroundColor

      public String getBackgroundColor()
       The background color as a hex string. "#RRGGBB" or "#RGB"
       
      string background_color = 1;
      Specified by:
      getBackgroundColor in interface Text.TextStyleOrBuilder
      Returns:
      The backgroundColor.
    • getBackgroundColorBytes

      public com.google.protobuf.ByteString getBackgroundColorBytes()
       The background color as a hex string. "#RRGGBB" or "#RGB"
       
      string background_color = 1;
      Specified by:
      getBackgroundColorBytes in interface Text.TextStyleOrBuilder
      Returns:
      The bytes for backgroundColor.
    • setBackgroundColor

      public Text.TextStyle.Builder setBackgroundColor(String value)
       The background color as a hex string. "#RRGGBB" or "#RGB"
       
      string background_color = 1;
      Parameters:
      value - The backgroundColor to set.
      Returns:
      This builder for chaining.
    • clearBackgroundColor

      public Text.TextStyle.Builder clearBackgroundColor()
       The background color as a hex string. "#RRGGBB" or "#RGB"
       
      string background_color = 1;
      Returns:
      This builder for chaining.
    • setBackgroundColorBytes

      public Text.TextStyle.Builder setBackgroundColorBytes(com.google.protobuf.ByteString value)
       The background color as a hex string. "#RRGGBB" or "#RGB"
       
      string background_color = 1;
      Parameters:
      value - The bytes for backgroundColor to set.
      Returns:
      This builder for chaining.
    • getTextColor

      public String getTextColor()
       The text color as a hex string. "#RRGGBB" or "#RGB"
       
      string text_color = 2;
      Specified by:
      getTextColor in interface Text.TextStyleOrBuilder
      Returns:
      The textColor.
    • getTextColorBytes

      public com.google.protobuf.ByteString getTextColorBytes()
       The text color as a hex string. "#RRGGBB" or "#RGB"
       
      string text_color = 2;
      Specified by:
      getTextColorBytes in interface Text.TextStyleOrBuilder
      Returns:
      The bytes for textColor.
    • setTextColor

      public Text.TextStyle.Builder setTextColor(String value)
       The text color as a hex string. "#RRGGBB" or "#RGB"
       
      string text_color = 2;
      Parameters:
      value - The textColor to set.
      Returns:
      This builder for chaining.
    • clearTextColor

      public Text.TextStyle.Builder clearTextColor()
       The text color as a hex string. "#RRGGBB" or "#RGB"
       
      string text_color = 2;
      Returns:
      This builder for chaining.
    • setTextColorBytes

      public Text.TextStyle.Builder setTextColorBytes(com.google.protobuf.ByteString value)
       The text color as a hex string. "#RRGGBB" or "#RGB"
       
      string text_color = 2;
      Parameters:
      value - The bytes for textColor to set.
      Returns:
      This builder for chaining.
    • getHorizontalAlignmentValue

      public int getHorizontalAlignmentValue()
       The horizontal alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;
      Specified by:
      getHorizontalAlignmentValue in interface Text.TextStyleOrBuilder
      Returns:
      The enum numeric value on the wire for horizontalAlignment.
    • setHorizontalAlignmentValue

      public Text.TextStyle.Builder setHorizontalAlignmentValue(int value)
       The horizontal alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;
      Parameters:
      value - The enum numeric value on the wire for horizontalAlignment to set.
      Returns:
      This builder for chaining.
    • getHorizontalAlignment

      public Text.TextStyle.HorizontalAlignment getHorizontalAlignment()
       The horizontal alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;
      Specified by:
      getHorizontalAlignment in interface Text.TextStyleOrBuilder
      Returns:
      The horizontalAlignment.
    • setHorizontalAlignment

      public Text.TextStyle.Builder setHorizontalAlignment(Text.TextStyle.HorizontalAlignment value)
       The horizontal alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;
      Parameters:
      value - The horizontalAlignment to set.
      Returns:
      This builder for chaining.
    • clearHorizontalAlignment

      public Text.TextStyle.Builder clearHorizontalAlignment()
       The horizontal alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;
      Returns:
      This builder for chaining.
    • getVerticalAlignmentValue

      public int getVerticalAlignmentValue()
       The vertical alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;
      Specified by:
      getVerticalAlignmentValue in interface Text.TextStyleOrBuilder
      Returns:
      The enum numeric value on the wire for verticalAlignment.
    • setVerticalAlignmentValue

      public Text.TextStyle.Builder setVerticalAlignmentValue(int value)
       The vertical alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;
      Parameters:
      value - The enum numeric value on the wire for verticalAlignment to set.
      Returns:
      This builder for chaining.
    • getVerticalAlignment

      public Text.TextStyle.VerticalAlignment getVerticalAlignment()
       The vertical alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;
      Specified by:
      getVerticalAlignment in interface Text.TextStyleOrBuilder
      Returns:
      The verticalAlignment.
    • setVerticalAlignment

      public Text.TextStyle.Builder setVerticalAlignment(Text.TextStyle.VerticalAlignment value)
       The vertical alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;
      Parameters:
      value - The verticalAlignment to set.
      Returns:
      This builder for chaining.
    • clearVerticalAlignment

      public Text.TextStyle.Builder clearVerticalAlignment()
       The vertical alignment of both the title and content
       
      .google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;
      Returns:
      This builder for chaining.
    • getPaddingValue

      public int getPaddingValue()
       The amount of padding around the widget
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;
      Specified by:
      getPaddingValue in interface Text.TextStyleOrBuilder
      Returns:
      The enum numeric value on the wire for padding.
    • setPaddingValue

      public Text.TextStyle.Builder setPaddingValue(int value)
       The amount of padding around the widget
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;
      Parameters:
      value - The enum numeric value on the wire for padding to set.
      Returns:
      This builder for chaining.
    • getPadding

      public Text.TextStyle.PaddingSize getPadding()
       The amount of padding around the widget
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;
      Specified by:
      getPadding in interface Text.TextStyleOrBuilder
      Returns:
      The padding.
    • setPadding

       The amount of padding around the widget
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;
      Parameters:
      value - The padding to set.
      Returns:
      This builder for chaining.
    • clearPadding

      public Text.TextStyle.Builder clearPadding()
       The amount of padding around the widget
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;
      Returns:
      This builder for chaining.
    • getFontSizeValue

      public int getFontSizeValue()
       Font sizes for both the title and content. The title will still be larger
       relative to the content.
       
      .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;
      Specified by:
      getFontSizeValue in interface Text.TextStyleOrBuilder
      Returns:
      The enum numeric value on the wire for fontSize.
    • setFontSizeValue

      public Text.TextStyle.Builder setFontSizeValue(int value)
       Font sizes for both the title and content. The title will still be larger
       relative to the content.
       
      .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;
      Parameters:
      value - The enum numeric value on the wire for fontSize to set.
      Returns:
      This builder for chaining.
    • getFontSize

      public Text.TextStyle.FontSize getFontSize()
       Font sizes for both the title and content. The title will still be larger
       relative to the content.
       
      .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;
      Specified by:
      getFontSize in interface Text.TextStyleOrBuilder
      Returns:
      The fontSize.
    • setFontSize

      public Text.TextStyle.Builder setFontSize(Text.TextStyle.FontSize value)
       Font sizes for both the title and content. The title will still be larger
       relative to the content.
       
      .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;
      Parameters:
      value - The fontSize to set.
      Returns:
      This builder for chaining.
    • clearFontSize

      public Text.TextStyle.Builder clearFontSize()
       Font sizes for both the title and content. The title will still be larger
       relative to the content.
       
      .google.monitoring.dashboard.v1.Text.TextStyle.FontSize font_size = 6;
      Returns:
      This builder for chaining.
    • getPointerLocationValue

      public int getPointerLocationValue()
       The pointer location for this widget (also sometimes called a "tail")
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;
      Specified by:
      getPointerLocationValue in interface Text.TextStyleOrBuilder
      Returns:
      The enum numeric value on the wire for pointerLocation.
    • setPointerLocationValue

      public Text.TextStyle.Builder setPointerLocationValue(int value)
       The pointer location for this widget (also sometimes called a "tail")
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;
      Parameters:
      value - The enum numeric value on the wire for pointerLocation to set.
      Returns:
      This builder for chaining.
    • getPointerLocation

      public Text.TextStyle.PointerLocation getPointerLocation()
       The pointer location for this widget (also sometimes called a "tail")
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;
      Specified by:
      getPointerLocation in interface Text.TextStyleOrBuilder
      Returns:
      The pointerLocation.
    • setPointerLocation

      public Text.TextStyle.Builder setPointerLocation(Text.TextStyle.PointerLocation value)
       The pointer location for this widget (also sometimes called a "tail")
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;
      Parameters:
      value - The pointerLocation to set.
      Returns:
      This builder for chaining.
    • clearPointerLocation

      public Text.TextStyle.Builder clearPointerLocation()
       The pointer location for this widget (also sometimes called a "tail")
       
      .google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;
      Returns:
      This builder for chaining.