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 styledProtobuf type
google.monitoring.dashboard.v1.Text.TextStyle- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProperties that determine how the title and content are styledstatic enumSpecifies a font size for the title and content of a text widgetstatic enumThe horizontal alignment of both the title and content on a text widgetstatic enumSpecifies padding size around a text widgetstatic enumSpecifies where a visual pointer is placed on a text widget (also sometimes called a "tail")static enumThe vertical alignment of both the title and content on a text widgetNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe background color as a hex string.com.google.protobuf.ByteStringThe background color as a hex string.static Text.TextStylestatic final com.google.protobuf.Descriptors.DescriptorFont sizes for both the title and content.intFont sizes for both the title and content.The horizontal alignment of both the title and contentintThe horizontal alignment of both the title and contentThe amount of padding around the widgetintThe amount of padding around the widgetcom.google.protobuf.Parser<Text.TextStyle>The pointer location for this widget (also sometimes called a "tail")intThe pointer location for this widget (also sometimes called a "tail")intThe text color as a hex string.com.google.protobuf.ByteStringThe text color as a hex string.The vertical alignment of both the title and contentintThe vertical alignment of both the title and contentinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Text.TextStyle.Builderstatic Text.TextStyle.BuildernewBuilder(Text.TextStyle prototype) protected Text.TextStyle.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Text.TextStyleparseDelimitedFrom(InputStream input) static Text.TextStyleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Text.TextStyleparseFrom(byte[] data) static Text.TextStyleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Text.TextStyleparseFrom(com.google.protobuf.ByteString data) static Text.TextStyleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Text.TextStyleparseFrom(com.google.protobuf.CodedInputStream input) static Text.TextStyleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Text.TextStyleparseFrom(InputStream input) static Text.TextStyleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Text.TextStyleparseFrom(ByteBuffer data) static Text.TextStyleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Text.TextStyle>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getBackgroundColor
The background color as a hex string. "#RRGGBB" or "#RGB"
string background_color = 1;- Specified by:
getBackgroundColorin interfaceText.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:
getBackgroundColorBytesin interfaceText.TextStyleOrBuilder- Returns:
- The bytes for backgroundColor.
-
getTextColor
The text color as a hex string. "#RRGGBB" or "#RGB"
string text_color = 2;- Specified by:
getTextColorin interfaceText.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:
getTextColorBytesin interfaceText.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:
getHorizontalAlignmentValuein interfaceText.TextStyleOrBuilder- Returns:
- The enum numeric value on the wire for horizontalAlignment.
-
getHorizontalAlignment
The horizontal alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;- Specified by:
getHorizontalAlignmentin interfaceText.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:
getVerticalAlignmentValuein interfaceText.TextStyleOrBuilder- Returns:
- The enum numeric value on the wire for verticalAlignment.
-
getVerticalAlignment
The vertical alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;- Specified by:
getVerticalAlignmentin interfaceText.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:
getPaddingValuein interfaceText.TextStyleOrBuilder- Returns:
- The enum numeric value on the wire for padding.
-
getPadding
The amount of padding around the widget
.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;- Specified by:
getPaddingin interfaceText.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:
getFontSizeValuein interfaceText.TextStyleOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getFontSizein interfaceText.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:
getPointerLocationValuein interfaceText.TextStyleOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getPointerLocationin interfaceText.TextStyleOrBuilder- Returns:
- The pointerLocation.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Text.TextStyle parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Text.TextStyle.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-