Class Compliance.Builder

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

    public static final class Compliance.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Compliance.Builder>
    implements ComplianceOrBuilder
     Contains compliance information about a security standard indicating unmet
     recommendations.
     
    Protobuf type google.cloud.securitycenter.v1.Compliance
    • 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<Compliance.Builder>
      • clear

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

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

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

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

        public Compliance.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<Compliance.Builder>
      • setField

        public Compliance.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<Compliance.Builder>
      • clearField

        public Compliance.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<Compliance.Builder>
      • clearOneof

        public Compliance.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<Compliance.Builder>
      • setRepeatedField

        public Compliance.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<Compliance.Builder>
      • addRepeatedField

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

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

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

        public Compliance.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<Compliance.Builder>
        Throws:
        IOException
      • getStandard

        public String getStandard()
         Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
         OWASP.
         
        string standard = 1;
        Specified by:
        getStandard in interface ComplianceOrBuilder
        Returns:
        The standard.
      • getStandardBytes

        public com.google.protobuf.ByteString getStandardBytes()
         Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
         OWASP.
         
        string standard = 1;
        Specified by:
        getStandardBytes in interface ComplianceOrBuilder
        Returns:
        The bytes for standard.
      • setStandard

        public Compliance.Builder setStandard​(String value)
         Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
         OWASP.
         
        string standard = 1;
        Parameters:
        value - The standard to set.
        Returns:
        This builder for chaining.
      • clearStandard

        public Compliance.Builder clearStandard()
         Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
         OWASP.
         
        string standard = 1;
        Returns:
        This builder for chaining.
      • setStandardBytes

        public Compliance.Builder setStandardBytes​(com.google.protobuf.ByteString value)
         Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
         OWASP.
         
        string standard = 1;
        Parameters:
        value - The bytes for standard to set.
        Returns:
        This builder for chaining.
      • getVersion

        public String getVersion()
         Version of the standard or benchmark, for example, 1.1
         
        string version = 2;
        Specified by:
        getVersion in interface ComplianceOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Version of the standard or benchmark, for example, 1.1
         
        string version = 2;
        Specified by:
        getVersionBytes in interface ComplianceOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public Compliance.Builder setVersion​(String value)
         Version of the standard or benchmark, for example, 1.1
         
        string version = 2;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public Compliance.Builder clearVersion()
         Version of the standard or benchmark, for example, 1.1
         
        string version = 2;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public Compliance.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         Version of the standard or benchmark, for example, 1.1
         
        string version = 2;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • getIdsList

        public com.google.protobuf.ProtocolStringList getIdsList()
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Specified by:
        getIdsList in interface ComplianceOrBuilder
        Returns:
        A list containing the ids.
      • getIdsCount

        public int getIdsCount()
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Specified by:
        getIdsCount in interface ComplianceOrBuilder
        Returns:
        The count of ids.
      • getIds

        public String getIds​(int index)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Specified by:
        getIds in interface ComplianceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ids at the given index.
      • getIdsBytes

        public com.google.protobuf.ByteString getIdsBytes​(int index)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Specified by:
        getIdsBytes in interface ComplianceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ids at the given index.
      • setIds

        public Compliance.Builder setIds​(int index,
                                         String value)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Parameters:
        index - The index to set the value at.
        value - The ids to set.
        Returns:
        This builder for chaining.
      • addIds

        public Compliance.Builder addIds​(String value)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Parameters:
        value - The ids to add.
        Returns:
        This builder for chaining.
      • addAllIds

        public Compliance.Builder addAllIds​(Iterable<String> values)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Parameters:
        values - The ids to add.
        Returns:
        This builder for chaining.
      • clearIds

        public Compliance.Builder clearIds()
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Returns:
        This builder for chaining.
      • addIdsBytes

        public Compliance.Builder addIdsBytes​(com.google.protobuf.ByteString value)
         Policies within the standard or benchmark, for example, A.12.4.1
         
        repeated string ids = 3;
        Parameters:
        value - The bytes of the ids to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Compliance.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<Compliance.Builder>
      • mergeUnknownFields

        public final Compliance.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<Compliance.Builder>