Class Finding.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
- com.google.cloud.securitycenter.v1beta1.Finding.Builder
-
- All Implemented Interfaces:
FindingOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Finding
public static final class Finding.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder> implements FindingOrBuilder
Security Command Center finding. A finding is a record of assessment data (security, risk, health or privacy) ingested into Security Command Center for presentation, notification, analysis, policy testing, and enforcement. For example, an XSS vulnerability in an App Engine application is a finding.
Protobuf typegoogle.cloud.securitycenter.v1beta1.Finding
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Finding.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Finding
build()
Finding
buildPartial()
Finding.Builder
clear()
Finding.Builder
clearCategory()
The additional taxonomy group within findings from a given source.Finding.Builder
clearCreateTime()
The time at which the finding was created in Security Command Center.Finding.Builder
clearEventTime()
The time at which the event took place, or when an update to the finding occurred.Finding.Builder
clearExternalUri()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found.Finding.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Finding.Builder
clearName()
The relative resource name of this finding.Finding.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Finding.Builder
clearParent()
Immutable.Finding.Builder
clearResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for.Finding.Builder
clearSecurityMarks()
Output only.Finding.Builder
clearSourceProperties()
Finding.Builder
clearState()
The state of the finding.Finding.Builder
clone()
boolean
containsSourceProperties(String key)
Source specific properties.String
getCategory()
The additional taxonomy group within findings from a given source.com.google.protobuf.ByteString
getCategoryBytes()
The additional taxonomy group within findings from a given source.com.google.protobuf.Timestamp
getCreateTime()
The time at which the finding was created in Security Command Center.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
The time at which the finding was created in Security Command Center.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The time at which the finding was created in Security Command Center.Finding
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEventTime()
The time at which the event took place, or when an update to the finding occurred.com.google.protobuf.Timestamp.Builder
getEventTimeBuilder()
The time at which the event took place, or when an update to the finding occurred.com.google.protobuf.TimestampOrBuilder
getEventTimeOrBuilder()
The time at which the event took place, or when an update to the finding occurred.String
getExternalUri()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found.com.google.protobuf.ByteString
getExternalUriBytes()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found.Map<String,com.google.protobuf.Value>
getMutableSourceProperties()
Deprecated.String
getName()
The relative resource name of this finding.com.google.protobuf.ByteString
getNameBytes()
The relative resource name of this finding.String
getParent()
Immutable.com.google.protobuf.ByteString
getParentBytes()
Immutable.String
getResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for.com.google.protobuf.ByteString
getResourceNameBytes()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for.SecurityMarks
getSecurityMarks()
Output only.SecurityMarks.Builder
getSecurityMarksBuilder()
Output only.SecurityMarksOrBuilder
getSecurityMarksOrBuilder()
Output only.Map<String,com.google.protobuf.Value>
getSourceProperties()
Deprecated.int
getSourcePropertiesCount()
Source specific properties.Map<String,com.google.protobuf.Value>
getSourcePropertiesMap()
Source specific properties.com.google.protobuf.Value
getSourcePropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)
Source specific properties.com.google.protobuf.Value
getSourcePropertiesOrThrow(String key)
Source specific properties.Finding.State
getState()
The state of the finding.int
getStateValue()
The state of the finding.boolean
hasCreateTime()
The time at which the finding was created in Security Command Center.boolean
hasEventTime()
The time at which the event took place, or when an update to the finding occurred.boolean
hasSecurityMarks()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Finding.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
The time at which the finding was created in Security Command Center.Finding.Builder
mergeEventTime(com.google.protobuf.Timestamp value)
The time at which the event took place, or when an update to the finding occurred.Finding.Builder
mergeFrom(Finding other)
Finding.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Finding.Builder
mergeFrom(com.google.protobuf.Message other)
Finding.Builder
mergeSecurityMarks(SecurityMarks value)
Output only.Finding.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Finding.Builder
putAllSourceProperties(Map<String,com.google.protobuf.Value> values)
Source specific properties.Finding.Builder
putSourceProperties(String key, com.google.protobuf.Value value)
Source specific properties.Finding.Builder
removeSourceProperties(String key)
Source specific properties.Finding.Builder
setCategory(String value)
The additional taxonomy group within findings from a given source.Finding.Builder
setCategoryBytes(com.google.protobuf.ByteString value)
The additional taxonomy group within findings from a given source.Finding.Builder
setCreateTime(com.google.protobuf.Timestamp value)
The time at which the finding was created in Security Command Center.Finding.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the finding was created in Security Command Center.Finding.Builder
setEventTime(com.google.protobuf.Timestamp value)
The time at which the event took place, or when an update to the finding occurred.Finding.Builder
setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the event took place, or when an update to the finding occurred.Finding.Builder
setExternalUri(String value)
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found.Finding.Builder
setExternalUriBytes(com.google.protobuf.ByteString value)
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found.Finding.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Finding.Builder
setName(String value)
The relative resource name of this finding.Finding.Builder
setNameBytes(com.google.protobuf.ByteString value)
The relative resource name of this finding.Finding.Builder
setParent(String value)
Immutable.Finding.Builder
setParentBytes(com.google.protobuf.ByteString value)
Immutable.Finding.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Finding.Builder
setResourceName(String value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for.Finding.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for.Finding.Builder
setSecurityMarks(SecurityMarks value)
Output only.Finding.Builder
setSecurityMarks(SecurityMarks.Builder builderForValue)
Output only.Finding.Builder
setState(Finding.State value)
The state of the finding.Finding.Builder
setStateValue(int value)
The state of the finding.Finding.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
clear
public Finding.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
getDefaultInstanceForType
public Finding getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Finding build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Finding buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Finding.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
setField
public Finding.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
clearField
public Finding.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
clearOneof
public Finding.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
setRepeatedField
public Finding.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
addRepeatedField
public Finding.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
mergeFrom
public Finding.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Finding.Builder>
-
mergeFrom
public Finding.Builder mergeFrom(Finding other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
mergeFrom
public Finding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Finding.Builder>
- Throws:
IOException
-
getName
public String getName()
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
string name = 1;
- Specified by:
getName
in interfaceFindingOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
string name = 1;
- Specified by:
getNameBytes
in interfaceFindingOrBuilder
- Returns:
- The bytes for name.
-
setName
public Finding.Builder setName(String value)
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Finding.Builder clearName()
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Finding.Builder setNameBytes(com.google.protobuf.ByteString value)
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParent
public String getParent()
Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getParent
in interfaceFindingOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getParentBytes
in interfaceFindingOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public Finding.Builder setParent(String value)
Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public Finding.Builder clearParent()
Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
setParentBytes
public Finding.Builder setParentBytes(com.google.protobuf.ByteString value)
Immutable. The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getResourceName
public String getResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
- Specified by:
getResourceName
in interfaceFindingOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
- Specified by:
getResourceNameBytes
in interfaceFindingOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public Finding.Builder setResourceName(String value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public Finding.Builder clearResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public Finding.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
The state of the finding.
.google.cloud.securitycenter.v1beta1.Finding.State state = 4;
- Specified by:
getStateValue
in interfaceFindingOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Finding.Builder setStateValue(int value)
The state of the finding.
.google.cloud.securitycenter.v1beta1.Finding.State state = 4;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Finding.State getState()
The state of the finding.
.google.cloud.securitycenter.v1beta1.Finding.State state = 4;
- Specified by:
getState
in interfaceFindingOrBuilder
- Returns:
- The state.
-
setState
public Finding.Builder setState(Finding.State value)
The state of the finding.
.google.cloud.securitycenter.v1beta1.Finding.State state = 4;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Finding.Builder clearState()
The state of the finding.
.google.cloud.securitycenter.v1beta1.Finding.State state = 4;
- Returns:
- This builder for chaining.
-
getCategory
public String getCategory()
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string category = 5;
- Specified by:
getCategory
in interfaceFindingOrBuilder
- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string category = 5;
- Specified by:
getCategoryBytes
in interfaceFindingOrBuilder
- Returns:
- The bytes for category.
-
setCategory
public Finding.Builder setCategory(String value)
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string category = 5;
- Parameters:
value
- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
public Finding.Builder clearCategory()
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string category = 5;
- Returns:
- This builder for chaining.
-
setCategoryBytes
public Finding.Builder setCategoryBytes(com.google.protobuf.ByteString value)
The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: "XSS_FLASH_INJECTION"
string category = 5;
- Parameters:
value
- The bytes for category to set.- Returns:
- This builder for chaining.
-
getExternalUri
public String getExternalUri()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
string external_uri = 6;
- Specified by:
getExternalUri
in interfaceFindingOrBuilder
- Returns:
- The externalUri.
-
getExternalUriBytes
public com.google.protobuf.ByteString getExternalUriBytes()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
string external_uri = 6;
- Specified by:
getExternalUriBytes
in interfaceFindingOrBuilder
- Returns:
- The bytes for externalUri.
-
setExternalUri
public Finding.Builder setExternalUri(String value)
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
string external_uri = 6;
- Parameters:
value
- The externalUri to set.- Returns:
- This builder for chaining.
-
clearExternalUri
public Finding.Builder clearExternalUri()
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
string external_uri = 6;
- Returns:
- This builder for chaining.
-
setExternalUriBytes
public Finding.Builder setExternalUriBytes(com.google.protobuf.ByteString value)
The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
string external_uri = 6;
- Parameters:
value
- The bytes for externalUri to set.- Returns:
- This builder for chaining.
-
getSourcePropertiesCount
public int getSourcePropertiesCount()
Description copied from interface:FindingOrBuilder
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
- Specified by:
getSourcePropertiesCount
in interfaceFindingOrBuilder
-
containsSourceProperties
public boolean containsSourceProperties(String key)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
- Specified by:
containsSourceProperties
in interfaceFindingOrBuilder
-
getSourceProperties
@Deprecated public Map<String,com.google.protobuf.Value> getSourceProperties()
Deprecated.UsegetSourcePropertiesMap()
instead.- Specified by:
getSourceProperties
in interfaceFindingOrBuilder
-
getSourcePropertiesMap
public Map<String,com.google.protobuf.Value> getSourcePropertiesMap()
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
- Specified by:
getSourcePropertiesMap
in interfaceFindingOrBuilder
-
getSourcePropertiesOrDefault
public com.google.protobuf.Value getSourcePropertiesOrDefault(String key, com.google.protobuf.Value defaultValue)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
- Specified by:
getSourcePropertiesOrDefault
in interfaceFindingOrBuilder
-
getSourcePropertiesOrThrow
public com.google.protobuf.Value getSourcePropertiesOrThrow(String key)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
- Specified by:
getSourcePropertiesOrThrow
in interfaceFindingOrBuilder
-
clearSourceProperties
public Finding.Builder clearSourceProperties()
-
removeSourceProperties
public Finding.Builder removeSourceProperties(String key)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
-
getMutableSourceProperties
@Deprecated public Map<String,com.google.protobuf.Value> getMutableSourceProperties()
Deprecated.Use alternate mutation accessors instead.
-
putSourceProperties
public Finding.Builder putSourceProperties(String key, com.google.protobuf.Value value)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
-
putAllSourceProperties
public Finding.Builder putAllSourceProperties(Map<String,com.google.protobuf.Value> values)
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 7;
-
hasSecurityMarks
public boolean hasSecurityMarks()
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasSecurityMarks
in interfaceFindingOrBuilder
- Returns:
- Whether the securityMarks field is set.
-
getSecurityMarks
public SecurityMarks getSecurityMarks()
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSecurityMarks
in interfaceFindingOrBuilder
- Returns:
- The securityMarks.
-
setSecurityMarks
public Finding.Builder setSecurityMarks(SecurityMarks value)
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setSecurityMarks
public Finding.Builder setSecurityMarks(SecurityMarks.Builder builderForValue)
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeSecurityMarks
public Finding.Builder mergeSecurityMarks(SecurityMarks value)
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearSecurityMarks
public Finding.Builder clearSecurityMarks()
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSecurityMarksBuilder
public SecurityMarks.Builder getSecurityMarksBuilder()
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getSecurityMarksOrBuilder
public SecurityMarksOrBuilder getSecurityMarksOrBuilder()
Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
.google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSecurityMarksOrBuilder
in interfaceFindingOrBuilder
-
hasEventTime
public boolean hasEventTime()
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
- Specified by:
hasEventTime
in interfaceFindingOrBuilder
- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.Timestamp getEventTime()
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
- Specified by:
getEventTime
in interfaceFindingOrBuilder
- Returns:
- The eventTime.
-
setEventTime
public Finding.Builder setEventTime(com.google.protobuf.Timestamp value)
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
-
setEventTime
public Finding.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
-
mergeEventTime
public Finding.Builder mergeEventTime(com.google.protobuf.Timestamp value)
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
-
clearEventTime
public Finding.Builder clearEventTime()
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
-
getEventTimeBuilder
public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
-
getEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved.
.google.protobuf.Timestamp event_time = 9;
- Specified by:
getEventTimeOrBuilder
in interfaceFindingOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
- Specified by:
hasCreateTime
in interfaceFindingOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
- Specified by:
getCreateTime
in interfaceFindingOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Finding.Builder setCreateTime(com.google.protobuf.Timestamp value)
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
-
setCreateTime
public Finding.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
-
mergeCreateTime
public Finding.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
-
clearCreateTime
public Finding.Builder clearCreateTime()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
- Specified by:
getCreateTimeOrBuilder
in interfaceFindingOrBuilder
-
setUnknownFields
public final Finding.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
mergeUnknownFields
public final Finding.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Finding.Builder>
-
-