Class NotificationMessage.Builder (2.51.0)

public static final class NotificationMessage.Builder extends GeneratedMessageV3.Builder<NotificationMessage.Builder> implements NotificationMessageOrBuilder

Cloud SCC's Notification

Protobuf type google.cloud.securitycenter.v2.NotificationMessage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationMessage.Builder
Overrides

build()

public NotificationMessage build()
Returns
Type Description
NotificationMessage

buildPartial()

public NotificationMessage buildPartial()
Returns
Type Description
NotificationMessage

clear()

public NotificationMessage.Builder clear()
Returns
Type Description
NotificationMessage.Builder
Overrides

clearEvent()

public NotificationMessage.Builder clearEvent()
Returns
Type Description
NotificationMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public NotificationMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotificationMessage.Builder
Overrides

clearFinding()

public NotificationMessage.Builder clearFinding()

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

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

Returns
Type Description
NotificationMessage.Builder

clearNotificationConfigName()

public NotificationMessage.Builder clearNotificationConfigName()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
Type Description
NotificationMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotificationMessage.Builder
Overrides

clearResource()

public NotificationMessage.Builder clearResource()

The Cloud resource tied to this notification's Finding.

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

Returns
Type Description
NotificationMessage.Builder

clone()

public NotificationMessage.Builder clone()
Returns
Type Description
NotificationMessage.Builder
Overrides

getDefaultInstanceForType()

public NotificationMessage getDefaultInstanceForType()
Returns
Type Description
NotificationMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEventCase()

public NotificationMessage.EventCase getEventCase()
Returns
Type Description
NotificationMessage.EventCase

getFinding()

public Finding getFinding()

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

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

Returns
Type Description
Finding

The finding.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

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

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

Returns
Type Description
Finding.Builder

getFindingOrBuilder()

public FindingOrBuilder getFindingOrBuilder()

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

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

Returns
Type Description
FindingOrBuilder

getNotificationConfigName()

public String getNotificationConfigName()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
Type Description
String

The notificationConfigName.

getNotificationConfigNameBytes()

public ByteString getNotificationConfigNameBytes()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
Type Description
ByteString

The bytes for notificationConfigName.

getResource()

public Resource getResource()

The Cloud resource tied to this notification's Finding.

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

Returns
Type Description
Resource

The resource.

getResourceBuilder()

public Resource.Builder getResourceBuilder()

The Cloud resource tied to this notification's Finding.

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

Returns
Type Description
Resource.Builder

getResourceOrBuilder()

public ResourceOrBuilder getResourceOrBuilder()

The Cloud resource tied to this notification's Finding.

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

Returns
Type Description
ResourceOrBuilder

hasFinding()

public boolean hasFinding()

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

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

Returns
Type Description
boolean

Whether the finding field is set.

hasResource()

public boolean hasResource()

The Cloud resource tied to this notification's Finding.

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

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFinding(Finding value)

public NotificationMessage.Builder mergeFinding(Finding value)

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

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

Parameter
Name Description
value Finding
Returns
Type Description
NotificationMessage.Builder

mergeFrom(NotificationMessage other)

public NotificationMessage.Builder mergeFrom(NotificationMessage other)
Parameter
Name Description
other NotificationMessage
Returns
Type Description
NotificationMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotificationMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NotificationMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NotificationMessage.Builder
Overrides

mergeResource(Resource value)

public NotificationMessage.Builder mergeResource(Resource value)

The Cloud resource tied to this notification's Finding.

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

Parameter
Name Description
value Resource
Returns
Type Description
NotificationMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationMessage.Builder
Overrides

setFinding(Finding value)

public NotificationMessage.Builder setFinding(Finding value)

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

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

Parameter
Name Description
value Finding
Returns
Type Description
NotificationMessage.Builder

setFinding(Finding.Builder builderForValue)

public NotificationMessage.Builder setFinding(Finding.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Finding.Builder
Returns
Type Description
NotificationMessage.Builder

setNotificationConfigName(String value)

public NotificationMessage.Builder setNotificationConfigName(String value)

Name of the notification config that generated current notification.

string notification_config_name = 1;

Parameter
Name Description
value String

The notificationConfigName to set.

Returns
Type Description
NotificationMessage.Builder

This builder for chaining.

setNotificationConfigNameBytes(ByteString value)

public NotificationMessage.Builder setNotificationConfigNameBytes(ByteString value)

Name of the notification config that generated current notification.

string notification_config_name = 1;

Parameter
Name Description
value ByteString

The bytes for notificationConfigName to set.

Returns
Type Description
NotificationMessage.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotificationMessage.Builder
Overrides

setResource(Resource value)

public NotificationMessage.Builder setResource(Resource value)

The Cloud resource tied to this notification's Finding.

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

Parameter
Name Description
value Resource
Returns
Type Description
NotificationMessage.Builder

setResource(Resource.Builder builderForValue)

public NotificationMessage.Builder setResource(Resource.Builder builderForValue)

The Cloud resource tied to this notification's Finding.

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

Parameter
Name Description
builderForValue Resource.Builder
Returns
Type Description
NotificationMessage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationMessage.Builder
Overrides