Package com.google.apps.card.v1
Class TextParagraph.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextParagraph.Builder>
com.google.apps.card.v1.TextParagraph.Builder
- All Implemented Interfaces:
TextParagraphOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextParagraph
public static final class TextParagraph.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextParagraph.Builder>
implements TextParagraphOrBuilder
A paragraph of text that supports formatting. For an example in Google Chat apps, see [Add a paragraph of formatted text](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text). For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):Protobuf type
google.apps.card.v1.TextParagraph-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The maximum number of lines of text that are displayed in the widget.The text that's shown in the widget.The syntax of the text.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum number of lines of text that are displayed in the widget.getText()The text that's shown in the widget.com.google.protobuf.ByteStringThe text that's shown in the widget.The syntax of the text.intThe syntax of the text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TextParagraph other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMaxLines(int value) The maximum number of lines of text that are displayed in the widget.The text that's shown in the widget.setTextBytes(com.google.protobuf.ByteString value) The text that's shown in the widget.The syntax of the text.setTextSyntaxValue(int value) The syntax of the text.Methods 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<TextParagraph.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<TextParagraph.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<TextParagraph.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<TextParagraph.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextParagraph.Builder>
-
mergeFrom
public TextParagraph.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<TextParagraph.Builder>- Throws:
IOException
-
getText
The text that's shown in the widget.
string text = 1;- Specified by:
getTextin interfaceTextParagraphOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()The text that's shown in the widget.
string text = 1;- Specified by:
getTextBytesin interfaceTextParagraphOrBuilder- Returns:
- The bytes for text.
-
setText
The text that's shown in the widget.
string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
The text that's shown in the widget.
string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
The text that's shown in the widget.
string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getMaxLines
public int getMaxLines()The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a **show more** button. If the text is equal or shorter than the specified maximum number of lines, a **show more** button isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored.
int32 max_lines = 2;- Specified by:
getMaxLinesin interfaceTextParagraphOrBuilder- Returns:
- The maxLines.
-
setMaxLines
The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a **show more** button. If the text is equal or shorter than the specified maximum number of lines, a **show more** button isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored.
int32 max_lines = 2;- Parameters:
value- The maxLines to set.- Returns:
- This builder for chaining.
-
clearMaxLines
The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a **show more** button. If the text is equal or shorter than the specified maximum number of lines, a **show more** button isn't displayed. The default value is 0, in which case all context is displayed. Negative values are ignored.
int32 max_lines = 2;- Returns:
- This builder for chaining.
-
getTextSyntaxValue
public int getTextSyntaxValue()The syntax of the text. If not set, the text is rendered as HTML. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;- Specified by:
getTextSyntaxValuein interfaceTextParagraphOrBuilder- Returns:
- The enum numeric value on the wire for textSyntax.
-
setTextSyntaxValue
The syntax of the text. If not set, the text is rendered as HTML. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;- Parameters:
value- The enum numeric value on the wire for textSyntax to set.- Returns:
- This builder for chaining.
-
getTextSyntax
The syntax of the text. If not set, the text is rendered as HTML. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;- Specified by:
getTextSyntaxin interfaceTextParagraphOrBuilder- Returns:
- The textSyntax.
-
setTextSyntax
The syntax of the text. If not set, the text is rendered as HTML. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;- Parameters:
value- The textSyntax to set.- Returns:
- This builder for chaining.
-
clearTextSyntax
The syntax of the text. If not set, the text is rendered as HTML. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;- Returns:
- This builder for chaining.
-