Class Text.TextStyle (2.51.0)

public static final class Text.TextStyle extends GeneratedMessageV3 implements Text.TextStyleOrBuilder

Properties that determine how the title and content are styled

Protobuf type google.monitoring.dashboard.v1.Text.TextStyle

Static Fields

BACKGROUND_COLOR_FIELD_NUMBER

public static final int BACKGROUND_COLOR_FIELD_NUMBER
Field Value
Type Description
int

FONT_SIZE_FIELD_NUMBER

public static final int FONT_SIZE_FIELD_NUMBER
Field Value
Type Description
int

HORIZONTAL_ALIGNMENT_FIELD_NUMBER

public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER
Field Value
Type Description
int

PADDING_FIELD_NUMBER

public static final int PADDING_FIELD_NUMBER
Field Value
Type Description
int

POINTER_LOCATION_FIELD_NUMBER

public static final int POINTER_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

TEXT_COLOR_FIELD_NUMBER

public static final int TEXT_COLOR_FIELD_NUMBER
Field Value
Type Description
int

VERTICAL_ALIGNMENT_FIELD_NUMBER

public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Text.TextStyle getDefaultInstance()
Returns
Type Description
Text.TextStyle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Text.TextStyle.Builder newBuilder()
Returns
Type Description
Text.TextStyle.Builder

newBuilder(Text.TextStyle prototype)

public static Text.TextStyle.Builder newBuilder(Text.TextStyle prototype)
Parameter
Name Description
prototype Text.TextStyle
Returns
Type Description
Text.TextStyle.Builder

parseDelimitedFrom(InputStream input)

public static Text.TextStyle parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Text.TextStyle parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Text.TextStyle parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Text.TextStyle parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Text.TextStyle parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Text.TextStyle parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Text.TextStyle
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Text.TextStyle> parser()
Returns
Type Description
Parser<TextStyle>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackgroundColor()

public String getBackgroundColor()

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Returns
Type Description
String

The backgroundColor.

getBackgroundColorBytes()

public ByteString getBackgroundColorBytes()

The background color as a hex string. "#RRGGBB" or "#RGB"

string background_color = 1;

Returns
Type Description
ByteString

The bytes for backgroundColor.

getDefaultInstanceForType()

public Text.TextStyle getDefaultInstanceForType()
Returns
Type Description
Text.TextStyle

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;

Returns
Type Description
Text.TextStyle.FontSize

The fontSize.

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;

Returns
Type Description
int

The enum numeric value on the wire for fontSize.

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;

Returns
Type Description
Text.TextStyle.HorizontalAlignment

The horizontalAlignment.

getHorizontalAlignmentValue()

public int getHorizontalAlignmentValue()

The horizontal alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;

Returns
Type Description
int

The enum numeric value on the wire for horizontalAlignment.

getPadding()

public Text.TextStyle.PaddingSize getPadding()

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Returns
Type Description
Text.TextStyle.PaddingSize

The padding.

getPaddingValue()

public int getPaddingValue()

The amount of padding around the widget

.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;

Returns
Type Description
int

The enum numeric value on the wire for padding.

getParserForType()

public Parser<Text.TextStyle> getParserForType()
Returns
Type Description
Parser<TextStyle>
Overrides

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;

Returns
Type Description
Text.TextStyle.PointerLocation

The pointerLocation.

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;

Returns
Type Description
int

The enum numeric value on the wire for pointerLocation.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTextColor()

public String getTextColor()

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Returns
Type Description
String

The textColor.

getTextColorBytes()

public ByteString getTextColorBytes()

The text color as a hex string. "#RRGGBB" or "#RGB"

string text_color = 2;

Returns
Type Description
ByteString

The bytes for textColor.

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;

Returns
Type Description
Text.TextStyle.VerticalAlignment

The verticalAlignment.

getVerticalAlignmentValue()

public int getVerticalAlignmentValue()

The vertical alignment of both the title and content

.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;

Returns
Type Description
int

The enum numeric value on the wire for verticalAlignment.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Text.TextStyle.Builder newBuilderForType()
Returns
Type Description
Text.TextStyle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Text.TextStyle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Text.TextStyle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Text.TextStyle.Builder toBuilder()
Returns
Type Description
Text.TextStyle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException