Class Text.TextStyle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
com.google.monitoring.dashboard.v1.Text.TextStyle.Builder
- All Implemented Interfaces:
Text.TextStyleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Text.TextStyle
public static final class Text.TextStyle.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
implements Text.TextStyleOrBuilder
Properties that determine how the title and content are styledProtobuf type
google.monitoring.dashboard.v1.Text.TextStyle-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The background color as a hex string.Font sizes for both the title and content.The horizontal alignment of both the title and contentThe amount of padding around the widgetThe pointer location for this widget (also sometimes called a "tail")The text color as a hex string.The vertical alignment of both the title and contentThe background color as a hex string.com.google.protobuf.ByteStringThe background color as a hex string.static final com.google.protobuf.Descriptors.Descriptorcom.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 widgetThe pointer location for this widget (also sometimes called a "tail")intThe pointer location for this widget (also sometimes called a "tail")The 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 contentprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Text.TextStyle other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBackgroundColor(String value) The background color as a hex string.setBackgroundColorBytes(com.google.protobuf.ByteString value) The background color as a hex string.Font sizes for both the title and content.setFontSizeValue(int value) Font sizes for both the title and content.The horizontal alignment of both the title and contentsetHorizontalAlignmentValue(int value) The horizontal alignment of both the title and contentThe amount of padding around the widgetsetPaddingValue(int value) The amount of padding around the widgetThe pointer location for this widget (also sometimes called a "tail")setPointerLocationValue(int value) The pointer location for this widget (also sometimes called a "tail")setTextColor(String value) The text color as a hex string.setTextColorBytes(com.google.protobuf.ByteString value) The text color as a hex string.The vertical alignment of both the title and contentsetVerticalAlignmentValue(int value) The vertical alignment of both the title and contentMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Text.TextStyle.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Text.TextStyle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Text.TextStyle.Builder>
-
mergeFrom
public Text.TextStyle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Text.TextStyle.Builder>- Throws:
IOException
-
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.
-
setBackgroundColor
The background color as a hex string. "#RRGGBB" or "#RGB"
string background_color = 1;- Parameters:
value- The backgroundColor to set.- Returns:
- This builder for chaining.
-
clearBackgroundColor
The background color as a hex string. "#RRGGBB" or "#RGB"
string background_color = 1;- Returns:
- This builder for chaining.
-
setBackgroundColorBytes
The background color as a hex string. "#RRGGBB" or "#RGB"
string background_color = 1;- Parameters:
value- The bytes for backgroundColor to set.- Returns:
- This builder for chaining.
-
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.
-
setTextColor
The text color as a hex string. "#RRGGBB" or "#RGB"
string text_color = 2;- Parameters:
value- The textColor to set.- Returns:
- This builder for chaining.
-
clearTextColor
The text color as a hex string. "#RRGGBB" or "#RGB"
string text_color = 2;- Returns:
- This builder for chaining.
-
setTextColorBytes
The text color as a hex string. "#RRGGBB" or "#RGB"
string text_color = 2;- Parameters:
value- The bytes for textColor to set.- Returns:
- This builder for chaining.
-
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.
-
setHorizontalAlignmentValue
The horizontal alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;- Parameters:
value- The enum numeric value on the wire for horizontalAlignment to set.- Returns:
- This builder for chaining.
-
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.
-
setHorizontalAlignment
The horizontal alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;- Parameters:
value- The horizontalAlignment to set.- Returns:
- This builder for chaining.
-
clearHorizontalAlignment
The horizontal alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.HorizontalAlignment horizontal_alignment = 3;- Returns:
- This builder for chaining.
-
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.
-
setVerticalAlignmentValue
The vertical alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;- Parameters:
value- The enum numeric value on the wire for verticalAlignment to set.- Returns:
- This builder for chaining.
-
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.
-
setVerticalAlignment
The vertical alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;- Parameters:
value- The verticalAlignment to set.- Returns:
- This builder for chaining.
-
clearVerticalAlignment
The vertical alignment of both the title and content
.google.monitoring.dashboard.v1.Text.TextStyle.VerticalAlignment vertical_alignment = 4;- Returns:
- This builder for chaining.
-
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.
-
setPaddingValue
The amount of padding around the widget
.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;- Parameters:
value- The enum numeric value on the wire for padding to set.- Returns:
- This builder for chaining.
-
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.
-
setPadding
The amount of padding around the widget
.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;- Parameters:
value- The padding to set.- Returns:
- This builder for chaining.
-
clearPadding
The amount of padding around the widget
.google.monitoring.dashboard.v1.Text.TextStyle.PaddingSize padding = 5;- Returns:
- This builder for chaining.
-
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.
-
setFontSizeValue
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;- Parameters:
value- The enum numeric value on the wire for fontSize to set.- Returns:
- This builder for chaining.
-
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.
-
setFontSize
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;- Parameters:
value- The fontSize to set.- Returns:
- This builder for chaining.
-
clearFontSize
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:
- This builder for chaining.
-
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.
-
setPointerLocationValue
The pointer location for this widget (also sometimes called a "tail")
.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;- Parameters:
value- The enum numeric value on the wire for pointerLocation to set.- Returns:
- This builder for chaining.
-
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.
-
setPointerLocation
The pointer location for this widget (also sometimes called a "tail")
.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;- Parameters:
value- The pointerLocation to set.- Returns:
- This builder for chaining.
-
clearPointerLocation
The pointer location for this widget (also sometimes called a "tail")
.google.monitoring.dashboard.v1.Text.TextStyle.PointerLocation pointer_location = 7;- Returns:
- This builder for chaining.
-