Class Message.Body (0.5.0)

public static final class Message.Body extends GeneratedMessageV3 implements Message.BodyOrBuilder

A message body containing text.

Protobuf type google.cloud.advisorynotifications.v1.Message.Body

Static Fields

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Message.Body getDefaultInstance()
Returns
TypeDescription
Message.Body

getDescriptor()

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

newBuilder()

public static Message.Body.Builder newBuilder()
Returns
TypeDescription
Message.Body.Builder

newBuilder(Message.Body prototype)

public static Message.Body.Builder newBuilder(Message.Body prototype)
Parameter
NameDescription
prototypeMessage.Body
Returns
TypeDescription
Message.Body.Builder

parseDelimitedFrom(InputStream input)

public static Message.Body parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Message.Body
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Message.Body parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Message.Body
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Message.Body parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Message.Body
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Message.Body parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Message.Body
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Message.Body parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Message.Body
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Message.Body> parser()
Returns
TypeDescription
Parser<Body>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Message.Body getDefaultInstanceForType()
Returns
TypeDescription
Message.Body

getParserForType()

public Parser<Message.Body> getParserForType()
Returns
TypeDescription
Parser<Body>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public Text getText()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
TypeDescription
Text

The text.

getTextOrBuilder()

public TextOrBuilder getTextOrBuilder()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
TypeDescription
TextOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasText()

public boolean hasText()

The text content of the message body.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

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 Message.Body.Builder newBuilderForType()
Returns
TypeDescription
Message.Body.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Message.Body.Builder toBuilder()
Returns
TypeDescription
Message.Body.Builder

writeTo(CodedOutputStream output)

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