Class Finding.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
com.google.cloud.securitycenter.v1p1beta1.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.GeneratedMessage.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 type google.cloud.securitycenter.v1p1beta1.Finding
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • clear

      public Finding.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • getDefaultInstanceForType

      public Finding getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Finding build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Finding buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Finding.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Finding.Builder>
    • mergeFrom

      public Finding.Builder mergeFrom(Finding other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Finding.Builder>
    • mergeFrom

      public Finding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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()
       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;
      Specified by:
      getParent in interface FindingOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public 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/{organization_id}/sources/{source_id}"
       
      string parent = 2;
      Specified by:
      getParentBytes in interface FindingOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public Finding.Builder setParent(String value)
       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;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public Finding.Builder clearParent()
       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;
      Returns:
      This builder for chaining.
    • setParentBytes

      public Finding.Builder setParentBytes(com.google.protobuf.ByteString value)
       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;
      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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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.v1p1beta1.Finding.State state = 4;
      Specified by:
      getStateValue in interface FindingOrBuilder
      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.v1p1beta1.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.v1p1beta1.Finding.State state = 4;
      Specified by:
      getState in interface FindingOrBuilder
      Returns:
      The state.
    • setState

      public Finding.Builder setState(Finding.State value)
       The state of the finding.
       
      .google.cloud.securitycenter.v1p1beta1.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.v1p1beta1.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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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 interface FindingOrBuilder
    • 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 interface FindingOrBuilder
    • getSourceProperties

      @Deprecated public Map<String,com.google.protobuf.Value> getSourceProperties()
      Deprecated.
      Specified by:
      getSourceProperties in interface FindingOrBuilder
    • 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 interface FindingOrBuilder
    • 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 interface FindingOrBuilder
    • 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 interface FindingOrBuilder
    • 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;
    • putSourcePropertiesBuilderIfAbsent

      public com.google.protobuf.Value.Builder putSourcePropertiesBuilderIfAbsent(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;
    • 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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSecurityMarks in interface FindingOrBuilder
      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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecurityMarks in interface FindingOrBuilder
      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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSecurityMarksOrBuilder in interface FindingOrBuilder
    • 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. Must not
       be set to a value greater than the current timestamp.
       
      .google.protobuf.Timestamp event_time = 9;
      Specified by:
      hasEventTime in interface FindingOrBuilder
      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. Must not
       be set to a value greater than the current timestamp.
       
      .google.protobuf.Timestamp event_time = 9;
      Specified by:
      getEventTime in interface FindingOrBuilder
      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. Must not
       be set to a value greater than the current timestamp.
       
      .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. Must not
       be set to a value greater than the current timestamp.
       
      .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. Must not
       be set to a value greater than the current timestamp.
       
      .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. Must not
       be set to a value greater than the current timestamp.
       
      .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. Must not
       be set to a value greater than the current timestamp.
       
      .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. Must not
       be set to a value greater than the current timestamp.
       
      .google.protobuf.Timestamp event_time = 9;
      Specified by:
      getEventTimeOrBuilder in interface FindingOrBuilder
    • 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 interface FindingOrBuilder
      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 interface FindingOrBuilder
      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 interface FindingOrBuilder
    • getSeverityValue

      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;
      Specified by:
      getSeverityValue in interface FindingOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public Finding.Builder setSeverityValue(int value)
       The severity of the finding. This field is managed by the source that
       writes the finding.
       
      .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      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;
      Specified by:
      getSeverity in interface FindingOrBuilder
      Returns:
      The severity.
    • setSeverity

      public Finding.Builder setSeverity(Finding.Severity value)
       The severity of the finding. This field is managed by the source that
       writes the finding.
       
      .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public Finding.Builder clearSeverity()
       The severity of the finding. This field is managed by the source that
       writes the finding.
       
      .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13;
      Returns:
      This builder for chaining.
    • getCanonicalName

      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;
      Specified by:
      getCanonicalName in interface FindingOrBuilder
      Returns:
      The canonicalName.
    • getCanonicalNameBytes

      public com.google.protobuf.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;
      Specified by:
      getCanonicalNameBytes in interface FindingOrBuilder
      Returns:
      The bytes for canonicalName.
    • setCanonicalName

      public Finding.Builder setCanonicalName(String value)
       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;
      Parameters:
      value - The canonicalName to set.
      Returns:
      This builder for chaining.
    • clearCanonicalName

      public Finding.Builder clearCanonicalName()
       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;
      Returns:
      This builder for chaining.
    • setCanonicalNameBytes

      public Finding.Builder setCanonicalNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for canonicalName to set.
      Returns:
      This builder for chaining.