Class NotificationMessage (2.15.0)

public final class NotificationMessage extends GeneratedMessageV3 implements NotificationMessageOrBuilder

Security Command Center's Notification

Protobuf type google.cloud.securitycenter.v1p1beta1.NotificationMessage

Static Fields

FINDING_FIELD_NUMBER

public static final int FINDING_FIELD_NUMBER
Field Value
TypeDescription
int

NOTIFICATION_CONFIG_NAME_FIELD_NUMBER

public static final int NOTIFICATION_CONFIG_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NotificationMessage getDefaultInstance()
Returns
TypeDescription
NotificationMessage

getDescriptor()

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

newBuilder()

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

newBuilder(NotificationMessage prototype)

public static NotificationMessage.Builder newBuilder(NotificationMessage prototype)
Parameter
NameDescription
prototypeNotificationMessage
Returns
TypeDescription
NotificationMessage.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public NotificationMessage getDefaultInstanceForType()
Returns
TypeDescription
NotificationMessage

getEventCase()

public NotificationMessage.EventCase getEventCase()
Returns
TypeDescription
NotificationMessage.EventCase

getFinding()

public Finding getFinding()

If it's a Finding based notification config, this field will be populated.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;

Returns
TypeDescription
Finding

The finding.

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

If it's a Finding based notification config, this field will be populated.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;

Returns
TypeDescription
FindingOrBuilder

getNotificationConfigName()

public String getNotificationConfigName()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
TypeDescription
String

The notificationConfigName.

getNotificationConfigNameBytes()

public ByteString getNotificationConfigNameBytes()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
TypeDescription
ByteString

The bytes for notificationConfigName.

getParserForType()

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

getResource()

public Resource getResource()

The Cloud resource tied to the notification.

.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;

Returns
TypeDescription
Resource

The resource.

getResourceOrBuilder()

public ResourceOrBuilder getResourceOrBuilder()

The Cloud resource tied to the notification.

.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;

Returns
TypeDescription
ResourceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasFinding()

public boolean hasFinding()

If it's a Finding based notification config, this field will be populated.

.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;

Returns
TypeDescription
boolean

Whether the finding field is set.

hasResource()

public boolean hasResource()

The Cloud resource tied to the notification.

.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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