Class NotificationMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder
- All Implemented Interfaces:
NotificationMessageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NotificationMessage
public static final class NotificationMessage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
implements NotificationMessageOrBuilder
Security Command Center's NotificationProtobuf type
google.cloud.securitycenter.v1p1beta1.NotificationMessage-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If it's a Finding based notification config, this field will be populated.Name of the notification config that generated current notification.The Cloud resource tied to the notification.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf it's a Finding based notification config, this field will be populated.If it's a Finding based notification config, this field will be populated.If it's a Finding based notification config, this field will be populated.Name of the notification config that generated current notification.com.google.protobuf.ByteStringName of the notification config that generated current notification.The Cloud resource tied to the notification.The Cloud resource tied to the notification.The Cloud resource tied to the notification.booleanIf it's a Finding based notification config, this field will be populated.booleanThe Cloud resource tied to the notification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFinding(Finding value) If it's a Finding based notification config, this field will be populated.mergeFrom(NotificationMessage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResource(Resource value) The Cloud resource tied to the notification.setFinding(Finding value) If it's a Finding based notification config, this field will be populated.setFinding(Finding.Builder builderForValue) If it's a Finding based notification config, this field will be populated.setNotificationConfigName(String value) Name of the notification config that generated current notification.setNotificationConfigNameBytes(com.google.protobuf.ByteString value) Name of the notification config that generated current notification.setResource(Resource value) The Cloud resource tied to the notification.setResource(Resource.Builder builderForValue) The Cloud resource tied to the notification.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
-
mergeFrom
public NotificationMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationMessage.Builder>- Throws:
IOException
-
getEventCase
- Specified by:
getEventCasein interfaceNotificationMessageOrBuilder
-
clearEvent
-
getNotificationConfigName
Name of the notification config that generated current notification.
string notification_config_name = 1;- Specified by:
getNotificationConfigNamein interfaceNotificationMessageOrBuilder- Returns:
- The notificationConfigName.
-
getNotificationConfigNameBytes
public com.google.protobuf.ByteString getNotificationConfigNameBytes()Name of the notification config that generated current notification.
string notification_config_name = 1;- Specified by:
getNotificationConfigNameBytesin interfaceNotificationMessageOrBuilder- Returns:
- The bytes for notificationConfigName.
-
setNotificationConfigName
Name of the notification config that generated current notification.
string notification_config_name = 1;- Parameters:
value- The notificationConfigName to set.- Returns:
- This builder for chaining.
-
clearNotificationConfigName
Name of the notification config that generated current notification.
string notification_config_name = 1;- Returns:
- This builder for chaining.
-
setNotificationConfigNameBytes
public NotificationMessage.Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value) Name of the notification config that generated current notification.
string notification_config_name = 1;- Parameters:
value- The bytes for notificationConfigName to set.- Returns:
- This builder for chaining.
-
hasFinding
public boolean hasFinding()If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;- Specified by:
hasFindingin interfaceNotificationMessageOrBuilder- Returns:
- Whether the finding field is set.
-
getFinding
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;- Specified by:
getFindingin interfaceNotificationMessageOrBuilder- Returns:
- The finding.
-
setFinding
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2; -
setFinding
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2; -
mergeFinding
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2; -
clearFinding
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2; -
getFindingBuilder
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2; -
getFindingOrBuilder
If it's a Finding based notification config, this field will be populated.
.google.cloud.securitycenter.v1p1beta1.Finding finding = 2;- Specified by:
getFindingOrBuilderin interfaceNotificationMessageOrBuilder
-
hasResource
public boolean hasResource()The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;- Specified by:
hasResourcein interfaceNotificationMessageOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;- Specified by:
getResourcein interfaceNotificationMessageOrBuilder- Returns:
- The resource.
-
setResource
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3; -
setResource
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3; -
mergeResource
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3; -
clearResource
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3; -
getResourceBuilder
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3; -
getResourceOrBuilder
The Cloud resource tied to the notification.
.google.cloud.securitycenter.v1p1beta1.Resource resource = 3;- Specified by:
getResourceOrBuilderin interfaceNotificationMessageOrBuilder
-