public final class Finding extends GeneratedMessageV3 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 type
google.cloud.securitycenter.v1p1beta1.Finding
Modifier and Type | Class and Description |
---|---|
static class |
Finding.Builder
Security Command Center finding.
|
static class |
Finding.Severity
The severity of the finding.
|
static class |
Finding.State
The state of the finding.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CANONICAL_NAME_FIELD_NUMBER |
static int |
CATEGORY_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
EVENT_TIME_FIELD_NUMBER |
static int |
EXTERNAL_URI_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
RESOURCE_NAME_FIELD_NUMBER |
static int |
SECURITY_MARKS_FIELD_NUMBER |
static int |
SEVERITY_FIELD_NUMBER |
static int |
SOURCE_PROPERTIES_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsSourceProperties(String key)
Source specific properties.
|
boolean |
equals(Object obj) |
String |
getCanonicalName()
The canonical name of the finding.
|
ByteString |
getCanonicalNameBytes()
The canonical name of the finding.
|
String |
getCategory()
The additional taxonomy group within findings from a given source.
|
ByteString |
getCategoryBytes()
The additional taxonomy group within findings from a given source.
|
Timestamp |
getCreateTime()
The time at which the finding was created in Security Command Center.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
The time at which the finding was created in Security Command Center.
|
static Finding |
getDefaultInstance() |
Finding |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Timestamp |
getEventTime()
The time at which the event took place, or when an update to the finding
occurred.
|
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.
|
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.
|
String |
getName()
The relative resource name of this finding.
|
ByteString |
getNameBytes()
The relative resource name of this finding.
|
String |
getParent()
The relative resource name of the source the finding belongs to.
|
ByteString |
getParentBytes()
The relative resource name of the source the finding belongs to.
|
Parser<Finding> |
getParserForType() |
String |
getResourceName()
For findings on Google Cloud resources, the full resource
name of the Google Cloud resource this finding is for.
|
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.
|
SecurityMarksOrBuilder |
getSecurityMarksOrBuilder()
Output only.
|
int |
getSerializedSize() |
Finding.Severity |
getSeverity()
The severity of the finding.
|
int |
getSeverityValue()
The severity of the finding.
|
Map<String,Value> |
getSourceProperties()
Deprecated.
|
int |
getSourcePropertiesCount()
Source specific properties.
|
Map<String,Value> |
getSourcePropertiesMap()
Source specific properties.
|
Value |
getSourcePropertiesOrDefault(String key,
Value defaultValue)
Source specific properties.
|
Value |
getSourcePropertiesOrThrow(String key)
Source specific properties.
|
Finding.State |
getState()
The state of the finding.
|
int |
getStateValue()
The state of the finding.
|
UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
boolean |
hasSecurityMarks()
Output only.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Finding.Builder |
newBuilder() |
static Finding.Builder |
newBuilder(Finding prototype) |
Finding.Builder |
newBuilderForType() |
protected Finding.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Finding |
parseDelimitedFrom(InputStream input) |
static Finding |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(byte[] data) |
static Finding |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(ByteBuffer data) |
static Finding |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(ByteString data) |
static Finding |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(CodedInputStream input) |
static Finding |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(InputStream input) |
static Finding |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Finding> |
parser() |
Finding.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
public static final int EXTERNAL_URI_FIELD_NUMBER
public static final int SOURCE_PROPERTIES_FIELD_NUMBER
public static final int SECURITY_MARKS_FIELD_NUMBER
public static final int EVENT_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
public static final int CANONICAL_NAME_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
getName
in interface FindingOrBuilder
public 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;
getNameBytes
in interface FindingOrBuilder
public String getParent()
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;
getParent
in interface FindingOrBuilder
public ByteString getParentBytes()
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;
getParentBytes
in interface FindingOrBuilder
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;
getResourceName
in interface FindingOrBuilder
public 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;
getResourceNameBytes
in interface FindingOrBuilder
public int getStateValue()
The state of the finding.
.google.cloud.securitycenter.v1p1beta1.Finding.State state = 4;
getStateValue
in interface FindingOrBuilder
public Finding.State getState()
The state of the finding.
.google.cloud.securitycenter.v1p1beta1.Finding.State state = 4;
getState
in interface FindingOrBuilder
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;
getCategory
in interface FindingOrBuilder
public 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;
getCategoryBytes
in interface FindingOrBuilder
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;
getExternalUri
in interface FindingOrBuilder
public 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;
getExternalUriBytes
in interface FindingOrBuilder
public int getSourcePropertiesCount()
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;
getSourcePropertiesCount
in interface FindingOrBuilder
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;
containsSourceProperties
in interface FindingOrBuilder
@Deprecated public Map<String,Value> getSourceProperties()
getSourcePropertiesMap()
instead.getSourceProperties
in interface FindingOrBuilder
public Map<String,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;
getSourcePropertiesMap
in interface FindingOrBuilder
public Value getSourcePropertiesOrDefault(String key, 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;
getSourcePropertiesOrDefault
in interface FindingOrBuilder
public 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;
getSourcePropertiesOrThrow
in interface FindingOrBuilder
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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasSecurityMarks
in interface FindingOrBuilder
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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSecurityMarks
in interface FindingOrBuilder
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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSecurityMarksOrBuilder
in interface FindingOrBuilder
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. Must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 9;
hasEventTime
in interface FindingOrBuilder
public 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. Must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 9;
getEventTime
in interface FindingOrBuilder
public 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. Must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 9;
getEventTimeOrBuilder
in interface FindingOrBuilder
public boolean hasCreateTime()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
hasCreateTime
in interface FindingOrBuilder
public Timestamp getCreateTime()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
getCreateTime
in interface FindingOrBuilder
public TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the finding was created in Security Command Center.
.google.protobuf.Timestamp create_time = 10;
getCreateTimeOrBuilder
in interface FindingOrBuilder
public int getSeverityValue()
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13;
getSeverityValue
in interface FindingOrBuilder
public Finding.Severity getSeverity()
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13;
getSeverity
in interface FindingOrBuilder
public String getCanonicalName()
The canonical name of the finding. It's either "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}" or "projects/{project_number}/sources/{source_id}/findings/{finding_id}", depending on the closest CRM ancestor of the resource associated with the finding.
string canonical_name = 14;
getCanonicalName
in interface FindingOrBuilder
public ByteString getCanonicalNameBytes()
The canonical name of the finding. It's either "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}" or "projects/{project_number}/sources/{source_id}/findings/{finding_id}", depending on the closest CRM ancestor of the resource associated with the finding.
string canonical_name = 14;
getCanonicalNameBytes
in interface FindingOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Finding parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Finding parseFrom(InputStream input) throws IOException
IOException
public static Finding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Finding parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Finding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Finding parseFrom(CodedInputStream input) throws IOException
IOException
public static Finding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Finding.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Finding.Builder newBuilder()
public static Finding.Builder newBuilder(Finding prototype)
public Finding.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Finding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Finding getDefaultInstance()
public Parser<Finding> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Finding getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.