Class Text.TextStyle

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

public static final class Text.TextStyle extends com.google.protobuf.GeneratedMessage implements Text.TextStyleOrBuilder
 Properties that determine how the title and content are styled
 
Protobuf type google.monitoring.dashboard.v1.Text.TextStyle
See Also:
  • Field Details

    • BACKGROUND_COLOR_FIELD_NUMBER

      public static final int BACKGROUND_COLOR_FIELD_NUMBER
      See Also:
    • TEXT_COLOR_FIELD_NUMBER

      public static final int TEXT_COLOR_FIELD_NUMBER
      See Also:
    • HORIZONTAL_ALIGNMENT_FIELD_NUMBER

      public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER
      See Also:
    • VERTICAL_ALIGNMENT_FIELD_NUMBER

      public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER
      See Also:
    • PADDING_FIELD_NUMBER

      public static final int PADDING_FIELD_NUMBER
      See Also:
    • FONT_SIZE_FIELD_NUMBER

      public static final int FONT_SIZE_FIELD_NUMBER
      See Also:
    • POINTER_LOCATION_FIELD_NUMBER

      public static final int POINTER_LOCATION_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Text.TextStyle parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Text.TextStyle parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Text.TextStyle parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Text.TextStyle parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Text.TextStyle parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Text.TextStyle parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Text.TextStyle parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Text.TextStyle.Builder newBuilder()
    • newBuilder

      public static Text.TextStyle.Builder newBuilder(Text.TextStyle prototype)
    • toBuilder

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

      protected Text.TextStyle.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Text.TextStyle getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Text.TextStyle> parser()
    • getParserForType

      public com.google.protobuf.Parser<Text.TextStyle> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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