Class Message (0.31.0)

public final class Message extends GeneratedMessageV3 implements MessageOrBuilder

A message which contains notification details.

Protobuf type google.cloud.advisorynotifications.v1.Message

Implements

MessageOrBuilder

Static Fields

ATTACHMENTS_FIELD_NUMBER

public static final int ATTACHMENTS_FIELD_NUMBER
Field Value
Type Description
int

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

LOCALIZATION_TIME_FIELD_NUMBER

public static final int LOCALIZATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Message getDefaultInstance()
Returns
Type Description
Message

getDescriptor()

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

newBuilder()

public static Message.Builder newBuilder()
Returns
Type Description
Message.Builder

newBuilder(Message prototype)

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

parseDelimitedFrom(InputStream input)

public static Message parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Message
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Message parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Message
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Message parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Message
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Message parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Message
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Message parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Message
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Message> parser()
Returns
Type Description
Parser<Message>

Methods

equals(Object obj)

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

getAttachments(int index)

public Attachment getAttachments(int index)

The attachments to download.

repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;

Parameter
Name Description
index int
Returns
Type Description
Attachment

getAttachmentsCount()

public int getAttachmentsCount()

The attachments to download.

repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;

Returns
Type Description
int

getAttachmentsList()

public List<Attachment> getAttachmentsList()

The attachments to download.

repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;

Returns
Type Description
List<Attachment>

getAttachmentsOrBuilder(int index)

public AttachmentOrBuilder getAttachmentsOrBuilder(int index)

The attachments to download.

repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;

Parameter
Name Description
index int
Returns
Type Description
AttachmentOrBuilder

getAttachmentsOrBuilderList()

public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()

The attachments to download.

repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;

Returns
Type Description
List<? extends com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>

getBody()

public Message.Body getBody()

The message content.

.google.cloud.advisorynotifications.v1.Message.Body body = 1;

Returns
Type Description
Message.Body

The body.

getBodyOrBuilder()

public Message.BodyOrBuilder getBodyOrBuilder()

The message content.

.google.cloud.advisorynotifications.v1.Message.Body body = 1;

Returns
Type Description
Message.BodyOrBuilder

getCreateTime()

public Timestamp getCreateTime()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Message getDefaultInstanceForType()
Returns
Type Description
Message

getLocalizationTime()

public Timestamp getLocalizationTime()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
Type Description
Timestamp

The localizationTime.

getLocalizationTimeOrBuilder()

public TimestampOrBuilder getLocalizationTimeOrBuilder()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Message> getParserForType()
Returns
Type Description
Parser<Message>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBody()

public boolean hasBody()

The message content.

.google.cloud.advisorynotifications.v1.Message.Body body = 1;

Returns
Type Description
boolean

Whether the body field is set.

hasCreateTime()

public boolean hasCreateTime()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

hasLocalizationTime()

public boolean hasLocalizationTime()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
Type Description
boolean

Whether the localizationTime field is set.

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 Message.Builder newBuilderForType()
Returns
Type Description
Message.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Message.Builder toBuilder()
Returns
Type Description
Message.Builder

writeTo(CodedOutputStream output)

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