Class Text.TextStyle (2.39.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
TypeDescription
int

FONT_SIZE_FIELD_NUMBER

public static final int FONT_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

HORIZONTAL_ALIGNMENT_FIELD_NUMBER

public static final int HORIZONTAL_ALIGNMENT_FIELD_NUMBER
Field Value
TypeDescription
int

PADDING_FIELD_NUMBER

public static final int PADDING_FIELD_NUMBER
Field Value
TypeDescription
int

POINTER_LOCATION_FIELD_NUMBER

public static final int POINTER_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_COLOR_FIELD_NUMBER

public static final int TEXT_COLOR_FIELD_NUMBER
Field Value
TypeDescription
int

VERTICAL_ALIGNMENT_FIELD_NUMBER

public static final int VERTICAL_ALIGNMENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Text.TextStyle getDefaultInstance()
Returns
TypeDescription
Text.TextStyle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Text.TextStyle.Builder newBuilder()
Returns
TypeDescription
Text.TextStyle.Builder

newBuilder(Text.TextStyle prototype)

public static Text.TextStyle.Builder newBuilder(Text.TextStyle prototype)
Parameter
NameDescription
prototypeText.TextStyle
Returns
TypeDescription
Text.TextStyle.Builder

parseDelimitedFrom(InputStream input)

public static Text.TextStyle parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Text.TextStyle parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Text.TextStyle parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Text.TextStyle parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Text.TextStyle parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Text.TextStyle parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Text.TextStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Text.TextStyle
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBackgroundColor()

public String getBackgroundColor()

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

string background_color = 1;

Returns
TypeDescription
String

The backgroundColor.

getBackgroundColorBytes()

public ByteString getBackgroundColorBytes()

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

string background_color = 1;

Returns
TypeDescription
ByteString

The bytes for backgroundColor.

getDefaultInstanceForType()

public Text.TextStyle getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for padding.

getParserForType()

public Parser<Text.TextStyle> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for pointerLocation.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTextColor()

public String getTextColor()

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

string text_color = 2;

Returns
TypeDescription
String

The textColor.

getTextColorBytes()

public ByteString getTextColorBytes()

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

string text_color = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for verticalAlignment.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Text.TextStyle.Builder newBuilderForType()
Returns
TypeDescription
Text.TextStyle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Text.TextStyle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Text.TextStyle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Text.TextStyle.Builder toBuilder()
Returns
TypeDescription
Text.TextStyle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException