public final class Message extends GeneratedMessageV3 implements MessageOrBuilder
A message which contains notification details.
Protobuf type google.cloud.advisorynotifications.v1.Message
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessageImplements
MessageOrBuilderStatic Fields
ATTACHMENTS_FIELD_NUMBER
public static final int ATTACHMENTS_FIELD_NUMBER
Type | Description |
int |
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Type | Description |
int |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Type | Description |
int |
LOCALIZATION_TIME_FIELD_NUMBER
public static final int LOCALIZATION_TIME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Message getDefaultInstance()
Type | Description |
Message |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Message.Builder newBuilder()
Type | Description |
Message.Builder |
newBuilder(Message prototype)
public static Message.Builder newBuilder(Message prototype)
Name | Description |
prototype | Message |
Type | Description |
Message.Builder |
parseDelimitedFrom(InputStream input)
public static Message parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Message |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Message parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Message parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Message parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Message parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Message |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Message parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Message |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Message parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Message parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Message |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Message> parser()
Type | Description |
Parser<Message> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getAttachments(int index)
public Attachment getAttachments(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Name | Description |
index | int |
Type | Description |
Attachment |
getAttachmentsCount()
public int getAttachmentsCount()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Type | Description |
int |
getAttachmentsList()
public List<Attachment> getAttachmentsList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Type | Description |
List<Attachment> |
getAttachmentsOrBuilder(int index)
public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
Name | Description |
index | int |
Type | Description |
AttachmentOrBuilder |
getAttachmentsOrBuilderList()
public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
The attachments to download.
repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2;
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;
Type | Description |
Message.Body | The body. |
getBodyOrBuilder()
public Message.BodyOrBuilder getBodyOrBuilder()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Type | Description |
Message.BodyOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Type | Description |
Timestamp | The createTime. |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Message getDefaultInstanceForType()
Type | Description |
Message |
getLocalizationTime()
public Timestamp getLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Type | Description |
Timestamp | The localizationTime. |
getLocalizationTimeOrBuilder()
public TimestampOrBuilder getLocalizationTimeOrBuilder()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Type | Description |
TimestampOrBuilder |
getParserForType()
public Parser<Message> getParserForType()
Type | Description |
Parser<Message> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasBody()
public boolean hasBody()
The message content.
.google.cloud.advisorynotifications.v1.Message.Body body = 1;
Type | Description |
boolean | Whether the body field is set. |
hasCreateTime()
public boolean hasCreateTime()
The Message creation timestamp.
.google.protobuf.Timestamp create_time = 3;
Type | Description |
boolean | Whether the createTime field is set. |
hasLocalizationTime()
public boolean hasLocalizationTime()
Time when Message was localized
.google.protobuf.Timestamp localization_time = 4;
Type | Description |
boolean | Whether the localizationTime field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Message.Builder newBuilderForType()
Type | Description |
Message.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Message.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Message.Builder toBuilder()
Type | Description |
Message.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |