public final class Message extends GeneratedMessageV3 implements MessageOrBuilder
A message which contains notification details.
Protobuf type google.cloud.advisorynotifications.v1.Message
Static Fields
ATTACHMENTS_FIELD_NUMBER
public static final int ATTACHMENTS_FIELD_NUMBER
Field Value
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
LOCALIZATION_TIME_FIELD_NUMBER
public static final int LOCALIZATION_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Message getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Message.Builder newBuilder()
Returns
newBuilder(Message prototype)
public static Message.Builder newBuilder(Message prototype)
Parameter
Returns
public static Message parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Message parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Message parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Message parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Message parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Message parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Message parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Message parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Message> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAttachments(int index)
public Attachment getAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
getAttachmentsCount()
public int getAttachmentsCount()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
getAttachmentsList()
public List<Attachment> getAttachmentsList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Returns
getAttachmentsOrBuilder(int index)
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Parameter
Returns
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
getBodyOrBuilder()
public Message.BodyOrBuilder getBodyOrBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Returns
getCreateTime()
public Timestamp getCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Returns
getDefaultInstanceForType()
public Message getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<Message> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Message.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Message.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions