Class Source.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Source.Builder>
com.google.cloud.securitycenter.v1p1beta1.Source.Builder
All Implemented Interfaces:
SourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Source

public static final class Source.Builder extends com.google.protobuf.GeneratedMessage.Builder<Source.Builder> implements SourceOrBuilder
 Security Command Center finding source. A finding source
 is an entity or a mechanism that can produce a finding. A source is like a
 container of findings that come from the same scanner, logger, monitor, etc.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.Source
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The canonical name of the finding.
    The description of the source (max of 1024 characters).
    The source's display name.
    The relative resource name of this source.
    The canonical name of the finding.
    com.google.protobuf.ByteString
    The canonical name of the finding.
     
    The description of the source (max of 1024 characters).
    com.google.protobuf.ByteString
    The description of the source (max of 1024 characters).
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The source's display name.
    com.google.protobuf.ByteString
    The source's display name.
    The relative resource name of this source.
    com.google.protobuf.ByteString
    The relative resource name of this source.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The canonical name of the finding.
    setCanonicalNameBytes(com.google.protobuf.ByteString value)
    The canonical name of the finding.
    The description of the source (max of 1024 characters).
    setDescriptionBytes(com.google.protobuf.ByteString value)
    The description of the source (max of 1024 characters).
    The source's display name.
    setDisplayNameBytes(com.google.protobuf.ByteString value)
    The source's display name.
    setName(String value)
    The relative resource name of this source.
    setNameBytes(com.google.protobuf.ByteString value)
    The relative resource name of this source.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

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

      public Source.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<Source.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<Source.Builder>
    • getDefaultInstanceForType

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

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

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

      public Source.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<Source.Builder>
    • mergeFrom

      public Source.Builder mergeFrom(Source other)
    • isInitialized

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

      public Source.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<Source.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The relative resource name of this source. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/sources/{source_id}"
       
      string name = 1;
      Specified by:
      getName in interface SourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The relative resource name of this source. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/sources/{source_id}"
       
      string name = 1;
      Specified by:
      getNameBytes in interface SourceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Source.Builder setName(String value)
       The relative resource name of this source. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/sources/{source_id}"
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Source.Builder clearName()
       The relative resource name of this source. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/sources/{source_id}"
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Source.Builder setNameBytes(com.google.protobuf.ByteString value)
       The relative resource name of this source. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/sources/{source_id}"
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The source's display name.
       A source's display name must be unique amongst its siblings, for example,
       two sources with the same parent can't share the same display name.
       The display name must have a length between 1 and 64 characters
       (inclusive).
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface SourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The source's display name.
       A source's display name must be unique amongst its siblings, for example,
       two sources with the same parent can't share the same display name.
       The display name must have a length between 1 and 64 characters
       (inclusive).
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface SourceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Source.Builder setDisplayName(String value)
       The source's display name.
       A source's display name must be unique amongst its siblings, for example,
       two sources with the same parent can't share the same display name.
       The display name must have a length between 1 and 64 characters
       (inclusive).
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Source.Builder clearDisplayName()
       The source's display name.
       A source's display name must be unique amongst its siblings, for example,
       two sources with the same parent can't share the same display name.
       The display name must have a length between 1 and 64 characters
       (inclusive).
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Source.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The source's display name.
       A source's display name must be unique amongst its siblings, for example,
       two sources with the same parent can't share the same display name.
       The display name must have a length between 1 and 64 characters
       (inclusive).
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description of the source (max of 1024 characters).
       Example:
       "Web Security Scanner is a web security scanner for common
       vulnerabilities in App Engine applications. It can automatically
       scan and detect four common vulnerabilities, including cross-site-scripting
       (XSS), Flash injection, mixed content (HTTP in HTTPS), and
       outdated/insecure libraries."
       
      string description = 3;
      Specified by:
      getDescription in interface SourceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the source (max of 1024 characters).
       Example:
       "Web Security Scanner is a web security scanner for common
       vulnerabilities in App Engine applications. It can automatically
       scan and detect four common vulnerabilities, including cross-site-scripting
       (XSS), Flash injection, mixed content (HTTP in HTTPS), and
       outdated/insecure libraries."
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface SourceOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Source.Builder setDescription(String value)
       The description of the source (max of 1024 characters).
       Example:
       "Web Security Scanner is a web security scanner for common
       vulnerabilities in App Engine applications. It can automatically
       scan and detect four common vulnerabilities, including cross-site-scripting
       (XSS), Flash injection, mixed content (HTTP in HTTPS), and
       outdated/insecure libraries."
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Source.Builder clearDescription()
       The description of the source (max of 1024 characters).
       Example:
       "Web Security Scanner is a web security scanner for common
       vulnerabilities in App Engine applications. It can automatically
       scan and detect four common vulnerabilities, including cross-site-scripting
       (XSS), Flash injection, mixed content (HTTP in HTTPS), and
       outdated/insecure libraries."
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Source.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the source (max of 1024 characters).
       Example:
       "Web Security Scanner is a web security scanner for common
       vulnerabilities in App Engine applications. It can automatically
       scan and detect four common vulnerabilities, including cross-site-scripting
       (XSS), Flash injection, mixed content (HTTP in HTTPS), and
       outdated/insecure libraries."
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getCanonicalName

      public String getCanonicalName()
       The canonical name of the finding. It's either
       "organizations/{organization_id}/sources/{source_id}",
       "folders/{folder_id}/sources/{source_id}" or
       "projects/{project_number}/sources/{source_id}",
       depending on the closest CRM ancestor of the resource associated with the
       finding.
       
      string canonical_name = 14;
      Specified by:
      getCanonicalName in interface SourceOrBuilder
      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}",
       "folders/{folder_id}/sources/{source_id}" or
       "projects/{project_number}/sources/{source_id}",
       depending on the closest CRM ancestor of the resource associated with the
       finding.
       
      string canonical_name = 14;
      Specified by:
      getCanonicalNameBytes in interface SourceOrBuilder
      Returns:
      The bytes for canonicalName.
    • setCanonicalName

      public Source.Builder setCanonicalName(String value)
       The canonical name of the finding. It's either
       "organizations/{organization_id}/sources/{source_id}",
       "folders/{folder_id}/sources/{source_id}" or
       "projects/{project_number}/sources/{source_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 Source.Builder clearCanonicalName()
       The canonical name of the finding. It's either
       "organizations/{organization_id}/sources/{source_id}",
       "folders/{folder_id}/sources/{source_id}" or
       "projects/{project_number}/sources/{source_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 Source.Builder setCanonicalNameBytes(com.google.protobuf.ByteString value)
       The canonical name of the finding. It's either
       "organizations/{organization_id}/sources/{source_id}",
       "folders/{folder_id}/sources/{source_id}" or
       "projects/{project_number}/sources/{source_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.