Class Indicator.Builder

  • All Implemented Interfaces:
    IndicatorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Indicator

    public static final class Indicator.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
    implements IndicatorOrBuilder
     Represents what's commonly known as an _indicator of compromise_ (IoC) in
     computer forensics. This is an artifact observed on a network or in an
     operating system that, with high confidence, indicates a computer intrusion.
     For more information, see [Indicator of
     compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).
     
    Protobuf type google.cloud.securitycenter.v1.Indicator
    • Method Detail

      • getDescriptor

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

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

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

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

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

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

        public Indicator.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • setField

        public Indicator.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • clearField

        public Indicator.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • clearOneof

        public Indicator.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • setRepeatedField

        public Indicator.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • addRepeatedField

        public Indicator.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • mergeFrom

        public Indicator.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<Indicator.Builder>
      • isInitialized

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

        public Indicator.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<Indicator.Builder>
        Throws:
        IOException
      • getIpAddressesList

        public com.google.protobuf.ProtocolStringList getIpAddressesList()
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Specified by:
        getIpAddressesList in interface IndicatorOrBuilder
        Returns:
        A list containing the ipAddresses.
      • getIpAddressesCount

        public int getIpAddressesCount()
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Specified by:
        getIpAddressesCount in interface IndicatorOrBuilder
        Returns:
        The count of ipAddresses.
      • getIpAddresses

        public String getIpAddresses​(int index)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Specified by:
        getIpAddresses in interface IndicatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ipAddresses at the given index.
      • getIpAddressesBytes

        public com.google.protobuf.ByteString getIpAddressesBytes​(int index)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Specified by:
        getIpAddressesBytes in interface IndicatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ipAddresses at the given index.
      • setIpAddresses

        public Indicator.Builder setIpAddresses​(int index,
                                                String value)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Parameters:
        index - The index to set the value at.
        value - The ipAddresses to set.
        Returns:
        This builder for chaining.
      • addIpAddresses

        public Indicator.Builder addIpAddresses​(String value)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Parameters:
        value - The ipAddresses to add.
        Returns:
        This builder for chaining.
      • addAllIpAddresses

        public Indicator.Builder addAllIpAddresses​(Iterable<String> values)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Parameters:
        values - The ipAddresses to add.
        Returns:
        This builder for chaining.
      • clearIpAddresses

        public Indicator.Builder clearIpAddresses()
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Returns:
        This builder for chaining.
      • addIpAddressesBytes

        public Indicator.Builder addIpAddressesBytes​(com.google.protobuf.ByteString value)
         The list of IP addresses that are associated with the finding.
         
        repeated string ip_addresses = 1;
        Parameters:
        value - The bytes of the ipAddresses to add.
        Returns:
        This builder for chaining.
      • getDomainsList

        public com.google.protobuf.ProtocolStringList getDomainsList()
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Specified by:
        getDomainsList in interface IndicatorOrBuilder
        Returns:
        A list containing the domains.
      • getDomainsCount

        public int getDomainsCount()
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Specified by:
        getDomainsCount in interface IndicatorOrBuilder
        Returns:
        The count of domains.
      • getDomains

        public String getDomains​(int index)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Specified by:
        getDomains in interface IndicatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The domains at the given index.
      • getDomainsBytes

        public com.google.protobuf.ByteString getDomainsBytes​(int index)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Specified by:
        getDomainsBytes in interface IndicatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the domains at the given index.
      • setDomains

        public Indicator.Builder setDomains​(int index,
                                            String value)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Parameters:
        index - The index to set the value at.
        value - The domains to set.
        Returns:
        This builder for chaining.
      • addDomains

        public Indicator.Builder addDomains​(String value)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Parameters:
        value - The domains to add.
        Returns:
        This builder for chaining.
      • addAllDomains

        public Indicator.Builder addAllDomains​(Iterable<String> values)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Parameters:
        values - The domains to add.
        Returns:
        This builder for chaining.
      • clearDomains

        public Indicator.Builder clearDomains()
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Returns:
        This builder for chaining.
      • addDomainsBytes

        public Indicator.Builder addDomainsBytes​(com.google.protobuf.ByteString value)
         List of domains associated to the Finding.
         
        repeated string domains = 2;
        Parameters:
        value - The bytes of the domains to add.
        Returns:
        This builder for chaining.
      • getSignaturesList

        public List<Indicator.ProcessSignature> getSignaturesList()
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
        Specified by:
        getSignaturesList in interface IndicatorOrBuilder
      • getSignaturesCount

        public int getSignaturesCount()
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
        Specified by:
        getSignaturesCount in interface IndicatorOrBuilder
      • getSignatures

        public Indicator.ProcessSignature getSignatures​(int index)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
        Specified by:
        getSignatures in interface IndicatorOrBuilder
      • setSignatures

        public Indicator.Builder setSignatures​(int index,
                                               Indicator.ProcessSignature value)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • setSignatures

        public Indicator.Builder setSignatures​(int index,
                                               Indicator.ProcessSignature.Builder builderForValue)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignatures

        public Indicator.Builder addSignatures​(Indicator.ProcessSignature value)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignatures

        public Indicator.Builder addSignatures​(int index,
                                               Indicator.ProcessSignature value)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignatures

        public Indicator.Builder addSignatures​(Indicator.ProcessSignature.Builder builderForValue)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignatures

        public Indicator.Builder addSignatures​(int index,
                                               Indicator.ProcessSignature.Builder builderForValue)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addAllSignatures

        public Indicator.Builder addAllSignatures​(Iterable<? extends Indicator.ProcessSignature> values)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • clearSignatures

        public Indicator.Builder clearSignatures()
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • removeSignatures

        public Indicator.Builder removeSignatures​(int index)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • getSignaturesBuilder

        public Indicator.ProcessSignature.Builder getSignaturesBuilder​(int index)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignaturesBuilder

        public Indicator.ProcessSignature.Builder addSignaturesBuilder()
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • addSignaturesBuilder

        public Indicator.ProcessSignature.Builder addSignaturesBuilder​(int index)
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • getSignaturesBuilderList

        public List<Indicator.ProcessSignature.Builder> getSignaturesBuilderList()
         The list of matched signatures indicating that the given
         process is present in the environment.
         
        repeated .google.cloud.securitycenter.v1.Indicator.ProcessSignature signatures = 3;
      • getUrisList

        public com.google.protobuf.ProtocolStringList getUrisList()
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Specified by:
        getUrisList in interface IndicatorOrBuilder
        Returns:
        A list containing the uris.
      • getUrisCount

        public int getUrisCount()
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Specified by:
        getUrisCount in interface IndicatorOrBuilder
        Returns:
        The count of uris.
      • getUris

        public String getUris​(int index)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Specified by:
        getUris in interface IndicatorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The uris at the given index.
      • getUrisBytes

        public com.google.protobuf.ByteString getUrisBytes​(int index)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Specified by:
        getUrisBytes in interface IndicatorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the uris at the given index.
      • setUris

        public Indicator.Builder setUris​(int index,
                                         String value)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Parameters:
        index - The index to set the value at.
        value - The uris to set.
        Returns:
        This builder for chaining.
      • addUris

        public Indicator.Builder addUris​(String value)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Parameters:
        value - The uris to add.
        Returns:
        This builder for chaining.
      • addAllUris

        public Indicator.Builder addAllUris​(Iterable<String> values)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Parameters:
        values - The uris to add.
        Returns:
        This builder for chaining.
      • clearUris

        public Indicator.Builder clearUris()
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Returns:
        This builder for chaining.
      • addUrisBytes

        public Indicator.Builder addUrisBytes​(com.google.protobuf.ByteString value)
         The list of URIs associated to the Findings.
         
        repeated string uris = 4;
        Parameters:
        value - The bytes of the uris to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Indicator.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>
      • mergeUnknownFields

        public final Indicator.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Indicator.Builder>