Class OutdatedLibrary.Builder (2.49.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.v1beta.OutdatedLibrary

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<String>

The learnMoreUrls to add.

Returns
Type Description
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
Name Description
value String

The learnMoreUrls to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the learnMoreUrls to add.

Returns
Type Description
OutdatedLibrary.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OutdatedLibrary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OutdatedLibrary.Builder
Overrides

build()

public OutdatedLibrary build()
Returns
Type Description
OutdatedLibrary

buildPartial()

public OutdatedLibrary buildPartial()
Returns
Type Description
OutdatedLibrary

clear()

public OutdatedLibrary.Builder clear()
Returns
Type Description
OutdatedLibrary.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OutdatedLibrary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
OutdatedLibrary.Builder

This builder for chaining.

clearLibraryName()

public OutdatedLibrary.Builder clearLibraryName()

The name of the outdated library.

string library_name = 1;

Returns
Type Description
OutdatedLibrary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OutdatedLibrary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OutdatedLibrary.Builder
Overrides

clearVersion()

public OutdatedLibrary.Builder clearVersion()

The version number.

string version = 2;

Returns
Type Description
OutdatedLibrary.Builder

This builder for chaining.

clone()

public OutdatedLibrary.Builder clone()
Returns
Type Description
OutdatedLibrary.Builder
Overrides

getDefaultInstanceForType()

public OutdatedLibrary getDefaultInstanceForType()
Returns
Type Description
OutdatedLibrary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the learnMoreUrls.

getLibraryName()

public String getLibraryName()

The name of the outdated library.

string library_name = 1;

Returns
Type Description
String

The libraryName.

getLibraryNameBytes()

public ByteString getLibraryNameBytes()

The name of the outdated library.

string library_name = 1;

Returns
Type Description
ByteString

The bytes for libraryName.

getVersion()

public String getVersion()

The version number.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version number.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OutdatedLibrary other)

public OutdatedLibrary.Builder mergeFrom(OutdatedLibrary other)
Parameter
Name Description
other OutdatedLibrary
Returns
Type Description
OutdatedLibrary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OutdatedLibrary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutdatedLibrary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OutdatedLibrary.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OutdatedLibrary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OutdatedLibrary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutdatedLibrary.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OutdatedLibrary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The learnMoreUrls to set.

Returns
Type Description
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
Name Description
value String

The libraryName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for libraryName to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OutdatedLibrary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OutdatedLibrary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OutdatedLibrary.Builder
Overrides

setVersion(String value)

public OutdatedLibrary.Builder setVersion(String value)

The version number.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
OutdatedLibrary.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public OutdatedLibrary.Builder setVersionBytes(ByteString value)

The version number.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
OutdatedLibrary.Builder

This builder for chaining.