Class OutdatedLibrary.Builder (2.30.0)

public static final class OutdatedLibrary.Builder extends GeneratedMessageV3.Builder<OutdatedLibrary.Builder> implements OutdatedLibraryOrBuilder

Information reported for an outdated library.

Protobuf type google.cloud.websecurityscanner.v1.OutdatedLibrary

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLearnMoreUrls(Iterable<String> values)

public OutdatedLibrary.Builder addAllLearnMoreUrls(Iterable<String> values)

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Parameter
NameDescription
valuesIterable<String>

The learnMoreUrls to add.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

addLearnMoreUrls(String value)

public OutdatedLibrary.Builder addLearnMoreUrls(String value)

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Parameter
NameDescription
valueString

The learnMoreUrls to add.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

addLearnMoreUrlsBytes(ByteString value)

public OutdatedLibrary.Builder addLearnMoreUrlsBytes(ByteString value)

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Parameter
NameDescription
valueByteString

The bytes of the learnMoreUrls to add.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OutdatedLibrary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

build()

public OutdatedLibrary build()
Returns
TypeDescription
OutdatedLibrary

buildPartial()

public OutdatedLibrary buildPartial()
Returns
TypeDescription
OutdatedLibrary

clear()

public OutdatedLibrary.Builder clear()
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OutdatedLibrary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

clearLearnMoreUrls()

public OutdatedLibrary.Builder clearLearnMoreUrls()

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

clearLibraryName()

public OutdatedLibrary.Builder clearLibraryName()

The name of the outdated library.

string library_name = 1;

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OutdatedLibrary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

clearVersion()

public OutdatedLibrary.Builder clearVersion()

The version number.

string version = 2;

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

clone()

public OutdatedLibrary.Builder clone()
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

getDefaultInstanceForType()

public OutdatedLibrary getDefaultInstanceForType()
Returns
TypeDescription
OutdatedLibrary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLearnMoreUrls(int index)

public String getLearnMoreUrls(int index)

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The learnMoreUrls at the given index.

getLearnMoreUrlsBytes(int index)

public ByteString getLearnMoreUrlsBytes(int index)

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the learnMoreUrls at the given index.

getLearnMoreUrlsCount()

public int getLearnMoreUrlsCount()

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Returns
TypeDescription
int

The count of learnMoreUrls.

getLearnMoreUrlsList()

public ProtocolStringList getLearnMoreUrlsList()

URLs to learn more information about the vulnerabilities in the library.

repeated string learn_more_urls = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the learnMoreUrls.

getLibraryName()

public String getLibraryName()

The name of the outdated library.

string library_name = 1;

Returns
TypeDescription
String

The libraryName.

getLibraryNameBytes()

public ByteString getLibraryNameBytes()

The name of the outdated library.

string library_name = 1;

Returns
TypeDescription
ByteString

The bytes for libraryName.

getVersion()

public String getVersion()

The version number.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version number.

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OutdatedLibrary other)

public OutdatedLibrary.Builder mergeFrom(OutdatedLibrary other)
Parameter
NameDescription
otherOutdatedLibrary
Returns
TypeDescription
OutdatedLibrary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OutdatedLibrary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OutdatedLibrary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OutdatedLibrary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OutdatedLibrary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

setLearnMoreUrls(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The learnMoreUrls to set.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

setLibraryName(String value)

public OutdatedLibrary.Builder setLibraryName(String value)

The name of the outdated library.

string library_name = 1;

Parameter
NameDescription
valueString

The libraryName to set.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

setLibraryNameBytes(ByteString value)

public OutdatedLibrary.Builder setLibraryNameBytes(ByteString value)

The name of the outdated library.

string library_name = 1;

Parameter
NameDescription
valueByteString

The bytes for libraryName to set.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OutdatedLibrary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OutdatedLibrary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OutdatedLibrary.Builder
Overrides

setVersion(String value)

public OutdatedLibrary.Builder setVersion(String value)

The version number.

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public OutdatedLibrary.Builder setVersionBytes(ByteString value)

The version number.

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
OutdatedLibrary.Builder

This builder for chaining.