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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Text.TextStyle.Builder newBuilder()
newBuilder(Text.TextStyle prototype)
public static Text.TextStyle.Builder newBuilder(Text.TextStyle prototype)
parseDelimitedFrom(InputStream input)
public static Text.TextStyle parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Text.TextStyle parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Text.TextStyle parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static Text.TextStyle parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static Text.TextStyle parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Text.TextStyle parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Text.TextStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Text.TextStyle> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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()
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;
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;
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;
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()
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;
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;
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Text.TextStyle.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Text.TextStyle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Text.TextStyle.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides