Send feedback
Class NotificationMessage.Builder (2.5.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.5.6 keyboard_arrow_down
public static final class NotificationMessage . Builder extends GeneratedMessageV3 . Builder<NotificationMessage . Builder > implements NotificationMessageOrBuilder
Cloud SCC's Notification
Protobuf type google.cloud.securitycenter.v1.NotificationMessage
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NotificationMessage . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public NotificationMessage build ()
Returns
buildPartial()
public NotificationMessage buildPartial ()
Returns
clear()
public NotificationMessage . Builder clear ()
Returns
Overrides
clearEvent()
public NotificationMessage . Builder clearEvent ()
Returns
clearField(Descriptors.FieldDescriptor field)
public NotificationMessage . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearFinding()
public NotificationMessage . Builder clearFinding ()
If it's a Finding based notification config, this field will be
populated.
.google.cloud.securitycenter.v1.Finding finding = 2;
Returns
clearNotificationConfigName()
public NotificationMessage . Builder clearNotificationConfigName ()
Name of the notification config that generated current notification.
string notification_config_name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public NotificationMessage . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearResource()
public NotificationMessage . Builder clearResource ()
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Returns
clone()
public NotificationMessage . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public NotificationMessage getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getEventCase()
public NotificationMessage . EventCase getEventCase ()
Returns
getFinding()
public Finding getFinding ()
If it's a Finding based notification config, this field will be
populated.
.google.cloud.securitycenter.v1.Finding finding = 2;
Returns
getFindingBuilder()
public Finding . Builder getFindingBuilder ()
If it's a Finding based notification config, this field will be
populated.
.google.cloud.securitycenter.v1.Finding finding = 2;
Returns
getFindingOrBuilder()
public FindingOrBuilder getFindingOrBuilder ()
If it's a Finding based notification config, this field will be
populated.
.google.cloud.securitycenter.v1.Finding finding = 2;
Returns
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.v1.Resource resource = 3;
Returns
getResourceBuilder()
public Resource . Builder getResourceBuilder ()
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Returns
getResourceOrBuilder()
public ResourceOrBuilder getResourceOrBuilder ()
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Returns
hasFinding()
public boolean hasFinding ()
If it's a Finding based notification config, this field will be
populated.
.google.cloud.securitycenter.v1.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.v1.Resource resource = 3;
Returns
Type Description boolean Whether the resource field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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.v1.Finding finding = 2;
Parameter
Returns
mergeFrom(NotificationMessage other)
public NotificationMessage . Builder mergeFrom ( NotificationMessage other )
Parameter
Returns
public NotificationMessage . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NotificationMessage . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeResource(Resource value)
public NotificationMessage . Builder mergeResource ( Resource value )
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NotificationMessage . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public NotificationMessage . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.v1.Finding finding = 2;
Parameter
Returns
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.v1.Finding finding = 2;
Parameter
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NotificationMessage . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setResource(Resource value)
public NotificationMessage . Builder setResource ( Resource value )
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Parameter
Returns
setResource(Resource.Builder builderForValue)
public NotificationMessage . Builder setResource ( Resource . Builder builderForValue )
The Cloud resource tied to this notification's Finding.
.google.cloud.securitycenter.v1.Resource resource = 3;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final NotificationMessage . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]