Class TextParagraph (0.1.0)

public final class TextParagraph extends GeneratedMessageV3 implements TextParagraphOrBuilder

A paragraph of text that supports formatting. For an example in Google Chat apps, see Text paragraph. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.TextParagraph

Static Fields

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextParagraph getDefaultInstance()
Returns
TypeDescription
TextParagraph

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TextParagraph.Builder newBuilder()
Returns
TypeDescription
TextParagraph.Builder

newBuilder(TextParagraph prototype)

public static TextParagraph.Builder newBuilder(TextParagraph prototype)
Parameter
NameDescription
prototypeTextParagraph
Returns
TypeDescription
TextParagraph.Builder

parseDelimitedFrom(InputStream input)

public static TextParagraph parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextParagraph parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextParagraph parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextParagraph parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextParagraph parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextParagraph parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextParagraph parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextParagraph
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextParagraph> parser()
Returns
TypeDescription
Parser<TextParagraph>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TextParagraph getDefaultInstanceForType()
Returns
TypeDescription
TextParagraph

getParserForType()

public Parser<TextParagraph> getParserForType()
Returns
TypeDescription
Parser<TextParagraph>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

The text that's shown in the widget.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text that's shown in the widget.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextParagraph.Builder newBuilderForType()
Returns
TypeDescription
TextParagraph.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextParagraph.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextParagraph.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextParagraph.Builder toBuilder()
Returns
TypeDescription
TextParagraph.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException