Class Message (0.30.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
TypeDescription
int

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

LOCALIZATION_TIME_FIELD_NUMBER

public static final int LOCALIZATION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Message getDefaultInstance()
Returns
TypeDescription
Message

getDescriptor()

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

newBuilder()

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

newBuilder(Message prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttachments(int index)

public Attachment getAttachments(int index)

The attachments to download.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Attachment

getAttachmentsCount()

public int getAttachmentsCount()

The attachments to download.

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

Returns
TypeDescription
int

getAttachmentsList()

public List<Attachment> getAttachmentsList()

The attachments to download.

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

Returns
TypeDescription
List<Attachment>

getAttachmentsOrBuilder(int index)

public AttachmentOrBuilder getAttachmentsOrBuilder(int index)

The attachments to download.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachmentOrBuilder

getAttachmentsOrBuilderList()

public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()

The attachments to download.

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

Returns
TypeDescription
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
TypeDescription
Message.Body

The body.

getBodyOrBuilder()

public Message.BodyOrBuilder getBodyOrBuilder()

The message content.

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

Returns
TypeDescription
Message.BodyOrBuilder

getCreateTime()

public Timestamp getCreateTime()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Message getDefaultInstanceForType()
Returns
TypeDescription
Message

getLocalizationTime()

public Timestamp getLocalizationTime()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
TypeDescription
Timestamp

The localizationTime.

getLocalizationTimeOrBuilder()

public TimestampOrBuilder getLocalizationTimeOrBuilder()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasBody()

public boolean hasBody()

The message content.

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

Returns
TypeDescription
boolean

Whether the body field is set.

hasCreateTime()

public boolean hasCreateTime()

The Message creation timestamp.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLocalizationTime()

public boolean hasLocalizationTime()

Time when Message was localized

.google.protobuf.Timestamp localization_time = 4;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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