Interface TextOrBuilder (2.56.0)

public interface TextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String getContent()

The text content to be displayed.

string content = 1;

Returns
Type Description
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

The text content to be displayed.

string content = 1;

Returns
Type Description
ByteString

The bytes for content.

getFormat()

public abstract Text.Format getFormat()

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Returns
Type Description
Text.Format

The format.

getFormatValue()

public abstract int getFormatValue()

How the text content is formatted.

.google.monitoring.dashboard.v1.Text.Format format = 2;

Returns
Type Description
int

The enum numeric value on the wire for format.

getStyle()

public abstract Text.TextStyle getStyle()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.TextStyle

The style.

getStyleOrBuilder()

public abstract Text.TextStyleOrBuilder getStyleOrBuilder()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
Text.TextStyleOrBuilder

hasStyle()

public abstract boolean hasStyle()

How the text is styled

.google.monitoring.dashboard.v1.Text.TextStyle style = 3;

Returns
Type Description
boolean

Whether the style field is set.