Class Notification (0.26.0)

public final class Notification extends GeneratedMessageV3 implements NotificationOrBuilder

A notification object for notifying customers about security and privacy issues.

Protobuf type google.cloud.advisorynotifications.v1.Notification

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NOTIFICATION_TYPE_FIELD_NUMBER

public static final int NOTIFICATION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Notification getDefaultInstance()
Returns
TypeDescription
Notification

getDescriptor()

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

newBuilder()

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

newBuilder(Notification prototype)

public static Notification.Builder newBuilder(Notification prototype)
Parameter
NameDescription
prototypeNotification
Returns
TypeDescription
Notification.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the notification was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the notification was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Notification getDefaultInstanceForType()
Returns
TypeDescription
Notification

getMessages(int index)

public Message getMessages(int index)

A list of messages in the notification.

repeated .google.cloud.advisorynotifications.v1.Message messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Message

getMessagesCount()

public int getMessagesCount()

A list of messages in the notification.

repeated .google.cloud.advisorynotifications.v1.Message messages = 3;

Returns
TypeDescription
int

getMessagesList()

public List<Message> getMessagesList()

A list of messages in the notification.

repeated .google.cloud.advisorynotifications.v1.Message messages = 3;

Returns
TypeDescription
List<Message>

getMessagesOrBuilder(int index)

public MessageOrBuilder getMessagesOrBuilder(int index)

A list of messages in the notification.

repeated .google.cloud.advisorynotifications.v1.Message messages = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
MessageOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageOrBuilder> getMessagesOrBuilderList()

A list of messages in the notification.

repeated .google.cloud.advisorynotifications.v1.Message messages = 3;

Returns
TypeDescription
List<? extends com.google.cloud.advisorynotifications.v1.MessageOrBuilder>

getName()

public String getName()

The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNotificationType()

public NotificationType getNotificationType()

Type of notification

.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;

Returns
TypeDescription
NotificationType

The notificationType.

getNotificationTypeValue()

public int getNotificationTypeValue()

Type of notification

.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for notificationType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubject()

public Subject getSubject()

The subject line of the notification.

.google.cloud.advisorynotifications.v1.Subject subject = 2;

Returns
TypeDescription
Subject

The subject.

getSubjectOrBuilder()

public SubjectOrBuilder getSubjectOrBuilder()

The subject line of the notification.

.google.cloud.advisorynotifications.v1.Subject subject = 2;

Returns
TypeDescription
SubjectOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the notification was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasSubject()

public boolean hasSubject()

The subject line of the notification.

.google.cloud.advisorynotifications.v1.Subject subject = 2;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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