public final class Finding extends com.google.protobuf.GeneratedMessageV3 implements FindingOrBuilder
Cloud Security Command Center (Cloud SCC) finding. A finding is a record of assessment data (security, risk, health or privacy) ingested into Cloud SCC 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.v1.Finding| Modifier and Type | Class and Description |
|---|---|
static class |
Finding.Builder
Cloud Security Command Center (Cloud SCC) finding.
|
static class |
Finding.State
The state of the finding.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
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 |
SOURCE_PROPERTIES_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceProperties(String key)
Source specific properties.
|
boolean |
equals(Object obj) |
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 Cloud SCC.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The time at which the finding was created in Cloud SCC.
|
static Finding |
getDefaultInstance() |
Finding |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getEventTime()
The time at which the event took place.
|
com.google.protobuf.TimestampOrBuilder |
getEventTimeOrBuilder()
The time at which the event took place.
|
String |
getExternalUri()
The URI that, if available, points to a web page outside of Cloud SCC
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 Cloud SCC
where additional information about the finding can be found.
|
String |
getName()
The relative resource name of this finding.
|
com.google.protobuf.ByteString |
getNameBytes()
The relative resource name of this finding.
|
String |
getParent()
The relative resource name of the source the finding belongs to.
|
com.google.protobuf.ByteString |
getParentBytes()
The relative resource name of the source the finding belongs to.
|
com.google.protobuf.Parser<Finding> |
getParserForType() |
String |
getResourceName()
The full resource name of the Google Cloud Platform (GCP) resource this
finding is for.
|
com.google.protobuf.ByteString |
getResourceNameBytes()
The full resource name of the Google Cloud Platform (GCP) resource this
finding is for.
|
SecurityMarks |
getSecurityMarks()
Output only.
|
SecurityMarksOrBuilder |
getSecurityMarksOrBuilder()
Output only.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreateTime()
The time at which the finding was created in Cloud SCC.
|
boolean |
hasEventTime()
The time at which the event took place.
|
int |
hashCode() |
boolean |
hasSecurityMarks()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Finding.Builder |
newBuilder() |
static Finding.Builder |
newBuilder(Finding prototype) |
Finding.Builder |
newBuilderForType() |
protected Finding.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Finding |
parseDelimitedFrom(InputStream input) |
static Finding |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(byte[] data) |
static Finding |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(ByteBuffer data) |
static Finding |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(com.google.protobuf.ByteString data) |
static Finding |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Finding |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(InputStream input) |
static Finding |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Finding> |
parser() |
Finding.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/123/sources/456/findings/789"
string name = 1;getName in interface FindingOrBuilderpublic 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/123/sources/456/findings/789"
string name = 1;getNameBytes in interface FindingOrBuilderpublic 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/123/sources/456"
string parent = 2;getParent in interface FindingOrBuilderpublic com.google.protobuf.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/123/sources/456"
string parent = 2;getParentBytes in interface FindingOrBuilderpublic String getResourceName()
The full resource name of the Google Cloud Platform (GCP) resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name This field is immutable after creation time.
string resource_name = 3;getResourceName in interface FindingOrBuilderpublic com.google.protobuf.ByteString getResourceNameBytes()
The full resource name of the Google Cloud Platform (GCP) resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name This field is immutable after creation time.
string resource_name = 3;getResourceNameBytes in interface FindingOrBuilderpublic int getStateValue()
The state of the finding.
.google.cloud.securitycenter.v1.Finding.State state = 4;getStateValue in interface FindingOrBuilderpublic Finding.State getState()
The state of the finding.
.google.cloud.securitycenter.v1.Finding.State state = 4;getState in interface FindingOrBuilderpublic 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 FindingOrBuilderpublic 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;getCategoryBytes in interface FindingOrBuilderpublic String getExternalUri()
The URI that, if available, points to a web page outside of Cloud SCC 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 FindingOrBuilderpublic com.google.protobuf.ByteString getExternalUriBytes()
The URI that, if available, points to a web page outside of Cloud SCC 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 FindingOrBuilderpublic int getSourcePropertiesCount()
FindingOrBuilderSource 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 FindingOrBuilderpublic 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,com.google.protobuf.Value> getSourceProperties()
getSourcePropertiesMap() instead.getSourceProperties in interface FindingOrBuilderpublic 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;getSourcePropertiesMap in interface FindingOrBuilderpublic 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;getSourcePropertiesOrDefault in interface FindingOrBuilderpublic 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;getSourcePropertiesOrThrow in interface FindingOrBuilderpublic 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.v1.SecurityMarks security_marks = 8;hasSecurityMarks in interface FindingOrBuilderpublic 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.v1.SecurityMarks security_marks = 8;getSecurityMarks in interface FindingOrBuilderpublic 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.v1.SecurityMarks security_marks = 8;getSecurityMarksOrBuilder in interface FindingOrBuilderpublic boolean hasEventTime()
The time at which the event took place. For example, if the finding represents an open firewall it would capture the time the open firewall was detected.
.google.protobuf.Timestamp event_time = 9;hasEventTime in interface FindingOrBuilderpublic com.google.protobuf.Timestamp getEventTime()
The time at which the event took place. For example, if the finding represents an open firewall it would capture the time the open firewall was detected.
.google.protobuf.Timestamp event_time = 9;getEventTime in interface FindingOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
The time at which the event took place. For example, if the finding represents an open firewall it would capture the time the open firewall was detected.
.google.protobuf.Timestamp event_time = 9;getEventTimeOrBuilder in interface FindingOrBuilderpublic boolean hasCreateTime()
The time at which the finding was created in Cloud SCC.
.google.protobuf.Timestamp create_time = 10;hasCreateTime in interface FindingOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The time at which the finding was created in Cloud SCC.
.google.protobuf.Timestamp create_time = 10;getCreateTime in interface FindingOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time at which the finding was created in Cloud SCC.
.google.protobuf.Timestamp create_time = 10;getCreateTimeOrBuilder in interface FindingOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Finding parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(InputStream input) throws IOException
IOExceptionpublic static Finding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Finding parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Finding parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Finding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Finding parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Finding.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Finding.Builder newBuilder()
public static Finding.Builder newBuilder(Finding prototype)
public Finding.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Finding.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Finding getDefaultInstance()
public static com.google.protobuf.Parser<Finding> parser()
public com.google.protobuf.Parser<Finding> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Finding getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.