Class WidgetMarkup.TextParagraph (0.4.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static WidgetMarkup.TextParagraph getDefaultInstance()
Returns
TypeDescription
WidgetMarkup.TextParagraph

getDescriptor()

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

newBuilder()

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

newBuilder(WidgetMarkup.TextParagraph prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WidgetMarkup.TextParagraph getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.TextParagraph

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

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 WidgetMarkup.TextParagraph.Builder newBuilderForType()
Returns
TypeDescription
WidgetMarkup.TextParagraph.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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