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
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Notification getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Notification.Builder newBuilder()
Returns
newBuilder(Notification prototype)
public static Notification.Builder newBuilder(Notification prototype)
Parameter
Returns
public static Notification parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Notification parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Notification parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Notification parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Notification parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Notification parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Notification parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Notification parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Notification parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Notification parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Notification parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Notification parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Notification> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDefaultInstanceForType()
public Notification getDefaultInstanceForType()
Returns
getMessages(int index)
public Message getMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Parameter
Returns
getMessagesCount()
public int getMessagesCount()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Returns
getMessagesList()
public List<Message> getMessagesList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Returns
getMessagesOrBuilder(int index)
public MessageOrBuilder getMessagesOrBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Parameter
Returns
getMessagesOrBuilderList()
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Returns
Type | Description |
List<? extends com.google.cloud.advisorynotifications.v1.MessageOrBuilder> | |
getName()
The resource name of the notification.
Format:
organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the notification.
Format:
organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Returns
getParserForType()
public Parser<Notification> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSubject()
public Subject getSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Returns
getSubjectOrBuilder()
public SubjectOrBuilder getSubjectOrBuilder()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCreateTime()
public boolean hasCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
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
Type | Description |
boolean | Whether the subject field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Notification.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Notification.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Notification.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions