Class OutdatedLibrary.Builder

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

    public static final class OutdatedLibrary.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OutdatedLibrary.Builder>
    implements OutdatedLibraryOrBuilder
     Information reported for an outdated library.
     
    Protobuf type google.cloud.websecurityscanner.v1beta.OutdatedLibrary
    • 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<OutdatedLibrary.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public OutdatedLibrary.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<OutdatedLibrary.Builder>
        Throws:
        IOException
      • getLibraryNameBytes

        public com.google.protobuf.ByteString getLibraryNameBytes()
         The name of the outdated library.
         
        string library_name = 1;
        Specified by:
        getLibraryNameBytes in interface OutdatedLibraryOrBuilder
        Returns:
        The bytes for libraryName.
      • setLibraryName

        public OutdatedLibrary.Builder setLibraryName​(String value)
         The name of the outdated library.
         
        string library_name = 1;
        Parameters:
        value - The libraryName to set.
        Returns:
        This builder for chaining.
      • clearLibraryName

        public OutdatedLibrary.Builder clearLibraryName()
         The name of the outdated library.
         
        string library_name = 1;
        Returns:
        This builder for chaining.
      • setLibraryNameBytes

        public OutdatedLibrary.Builder setLibraryNameBytes​(com.google.protobuf.ByteString value)
         The name of the outdated library.
         
        string library_name = 1;
        Parameters:
        value - The bytes for libraryName to set.
        Returns:
        This builder for chaining.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The version number.
         
        string version = 2;
        Specified by:
        getVersionBytes in interface OutdatedLibraryOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public OutdatedLibrary.Builder setVersion​(String value)
         The version number.
         
        string version = 2;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public OutdatedLibrary.Builder clearVersion()
         The version number.
         
        string version = 2;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public OutdatedLibrary.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         The version number.
         
        string version = 2;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • getLearnMoreUrlsList

        public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList()
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Specified by:
        getLearnMoreUrlsList in interface OutdatedLibraryOrBuilder
        Returns:
        A list containing the learnMoreUrls.
      • getLearnMoreUrlsCount

        public int getLearnMoreUrlsCount()
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Specified by:
        getLearnMoreUrlsCount in interface OutdatedLibraryOrBuilder
        Returns:
        The count of learnMoreUrls.
      • getLearnMoreUrls

        public String getLearnMoreUrls​(int index)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Specified by:
        getLearnMoreUrls in interface OutdatedLibraryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The learnMoreUrls at the given index.
      • getLearnMoreUrlsBytes

        public com.google.protobuf.ByteString getLearnMoreUrlsBytes​(int index)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Specified by:
        getLearnMoreUrlsBytes in interface OutdatedLibraryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the learnMoreUrls at the given index.
      • setLearnMoreUrls

        public OutdatedLibrary.Builder setLearnMoreUrls​(int index,
                                                        String value)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Parameters:
        index - The index to set the value at.
        value - The learnMoreUrls to set.
        Returns:
        This builder for chaining.
      • addLearnMoreUrls

        public OutdatedLibrary.Builder addLearnMoreUrls​(String value)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Parameters:
        value - The learnMoreUrls to add.
        Returns:
        This builder for chaining.
      • addAllLearnMoreUrls

        public OutdatedLibrary.Builder addAllLearnMoreUrls​(Iterable<String> values)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Parameters:
        values - The learnMoreUrls to add.
        Returns:
        This builder for chaining.
      • clearLearnMoreUrls

        public OutdatedLibrary.Builder clearLearnMoreUrls()
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Returns:
        This builder for chaining.
      • addLearnMoreUrlsBytes

        public OutdatedLibrary.Builder addLearnMoreUrlsBytes​(com.google.protobuf.ByteString value)
         URLs to learn more information about the vulnerabilities in the library.
         
        repeated string learn_more_urls = 3;
        Parameters:
        value - The bytes of the learnMoreUrls to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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