Class WidgetMarkup.TextParagraph (0.12.0)

public static final class WidgetMarkup.TextParagraph extends GeneratedMessageV3 implements WidgetMarkup.TextParagraphOrBuilder

A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

Protobuf type google.chat.v1.WidgetMarkup.TextParagraph

Static Fields

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetMarkup.TextParagraph getDefaultInstance()
Returns
Type Description
WidgetMarkup.TextParagraph

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WidgetMarkup.TextParagraph.Builder newBuilder()
Returns
Type Description
WidgetMarkup.TextParagraph.Builder

newBuilder(WidgetMarkup.TextParagraph prototype)

public static WidgetMarkup.TextParagraph.Builder newBuilder(WidgetMarkup.TextParagraph prototype)
Parameter
Name Description
prototype WidgetMarkup.TextParagraph
Returns
Type Description
WidgetMarkup.TextParagraph.Builder

parseDelimitedFrom(InputStream input)

public static WidgetMarkup.TextParagraph parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetMarkup.TextParagraph parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetMarkup.TextParagraph parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetMarkup.TextParagraph parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetMarkup.TextParagraph parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetMarkup.TextParagraph parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetMarkup.TextParagraph parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetMarkup.TextParagraph
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetMarkup.TextParagraph> parser()
Returns
Type Description
Parser<TextParagraph>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public WidgetMarkup.TextParagraph getDefaultInstanceForType()
Returns
Type Description
WidgetMarkup.TextParagraph

getParserForType()

public Parser<WidgetMarkup.TextParagraph> getParserForType()
Returns
Type Description
Parser<TextParagraph>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getText()

public String getText()

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetMarkup.TextParagraph.Builder newBuilderForType()
Returns
Type Description
WidgetMarkup.TextParagraph.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WidgetMarkup.TextParagraph.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetMarkup.TextParagraph.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WidgetMarkup.TextParagraph.Builder toBuilder()
Returns
Type Description
WidgetMarkup.TextParagraph.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException