Class NotificationMessage.Builder (2.36.0)

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

Security Command Center's Notification

Protobuf type google.cloud.securitycenter.v1p1beta1.NotificationMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationMessage.Builder
Overrides

build()

public NotificationMessage build()
Returns
TypeDescription
NotificationMessage

buildPartial()

public NotificationMessage buildPartial()
Returns
TypeDescription
NotificationMessage

clear()

public NotificationMessage.Builder clear()
Returns
TypeDescription
NotificationMessage.Builder
Overrides

clearEvent()

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

clearField(Descriptors.FieldDescriptor field)

public NotificationMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationMessage.Builder
Overrides

clearFinding()

public NotificationMessage.Builder clearFinding()

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

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

Returns
TypeDescription
NotificationMessage.Builder

clearNotificationConfigName()

public NotificationMessage.Builder clearNotificationConfigName()

Name of the notification config that generated current notification.

string notification_config_name = 1;

Returns
TypeDescription
NotificationMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationMessage.Builder
Overrides

clearResource()

public NotificationMessage.Builder clearResource()

The Cloud resource tied to the notification.

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

Returns
TypeDescription
NotificationMessage.Builder

clone()

public NotificationMessage.Builder clone()
Returns
TypeDescription
NotificationMessage.Builder
Overrides

getDefaultInstanceForType()

public NotificationMessage getDefaultInstanceForType()
Returns
TypeDescription
NotificationMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getFindingBuilder()

public Finding.Builder getFindingBuilder()

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

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

Returns
TypeDescription
Finding.Builder

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.

getResource()

public Resource getResource()

The Cloud resource tied to the notification.

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

Returns
TypeDescription
Resource

The resource.

getResourceBuilder()

public Resource.Builder getResourceBuilder()

The Cloud resource tied to the notification.

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

Returns
TypeDescription
Resource.Builder

getResourceOrBuilder()

public ResourceOrBuilder getResourceOrBuilder()

The Cloud resource tied to the notification.

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

Returns
TypeDescription
ResourceOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1p1beta1.Finding finding = 2;

Parameter
NameDescription
valueFinding
Returns
TypeDescription
NotificationMessage.Builder

mergeFrom(NotificationMessage other)

public NotificationMessage.Builder mergeFrom(NotificationMessage other)
Parameter
NameDescription
otherNotificationMessage
Returns
TypeDescription
NotificationMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationMessage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationMessage.Builder
Overrides

mergeResource(Resource value)

public NotificationMessage.Builder mergeResource(Resource value)

The Cloud resource tied to the notification.

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

Parameter
NameDescription
valueResource
Returns
TypeDescription
NotificationMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1p1beta1.Finding finding = 2;

Parameter
NameDescription
valueFinding
Returns
TypeDescription
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.v1p1beta1.Finding finding = 2;

Parameter
NameDescription
builderForValueFinding.Builder
Returns
TypeDescription
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
NameDescription
valueString

The notificationConfigName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for notificationConfigName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationMessage.Builder
Overrides

setResource(Resource value)

public NotificationMessage.Builder setResource(Resource value)

The Cloud resource tied to the notification.

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

Parameter
NameDescription
valueResource
Returns
TypeDescription
NotificationMessage.Builder

setResource(Resource.Builder builderForValue)

public NotificationMessage.Builder setResource(Resource.Builder builderForValue)

The Cloud resource tied to the notification.

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

Parameter
NameDescription
builderForValueResource.Builder
Returns
TypeDescription
NotificationMessage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationMessage.Builder
Overrides