Class VulnerabilityAssessmentNote.Product.Builder (2.55.0)

public static final class VulnerabilityAssessmentNote.Product.Builder extends GeneratedMessageV3.Builder<VulnerabilityAssessmentNote.Product.Builder> implements VulnerabilityAssessmentNote.ProductOrBuilder

Product contains information about a product and how to uniquely identify it. (-- api-linter: core::0123::resource-annotation=disabled aip.dev/not-precedent: Product is not a separate resource. --)

Protobuf type grafeas.v1.VulnerabilityAssessmentNote.Product

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerabilityAssessmentNote.Product build()
Returns
Type Description
VulnerabilityAssessmentNote.Product

buildPartial()

public VulnerabilityAssessmentNote.Product buildPartial()
Returns
Type Description
VulnerabilityAssessmentNote.Product

clear()

public VulnerabilityAssessmentNote.Product.Builder clear()
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityAssessmentNote.Product.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder
Overrides

clearGenericUri()

public VulnerabilityAssessmentNote.Product.Builder clearGenericUri()

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

clearId()

public VulnerabilityAssessmentNote.Product.Builder clearId()

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

string id = 2;

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

clearIdentifier()

public VulnerabilityAssessmentNote.Product.Builder clearIdentifier()
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

clearName()

public VulnerabilityAssessmentNote.Product.Builder clearName()

Name of the product.

string name = 1;

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public VulnerabilityAssessmentNote.Product.Builder clone()
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder
Overrides

getDefaultInstanceForType()

public VulnerabilityAssessmentNote.Product getDefaultInstanceForType()
Returns
Type Description
VulnerabilityAssessmentNote.Product

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGenericUri()

public String getGenericUri()

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Returns
Type Description
String

The genericUri.

getGenericUriBytes()

public ByteString getGenericUriBytes()

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Returns
Type Description
ByteString

The bytes for genericUri.

getId()

public String getId()

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getIdentifierCase()

public VulnerabilityAssessmentNote.Product.IdentifierCase getIdentifierCase()
Returns
Type Description
VulnerabilityAssessmentNote.Product.IdentifierCase

getName()

public String getName()

Name of the product.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the product.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasGenericUri()

public boolean hasGenericUri()

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Returns
Type Description
boolean

Whether the genericUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(VulnerabilityAssessmentNote.Product other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityAssessmentNote.Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder
Overrides

setGenericUri(String value)

public VulnerabilityAssessmentNote.Product.Builder setGenericUri(String value)

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Parameter
Name Description
value String

The genericUri to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

setGenericUriBytes(ByteString value)

public VulnerabilityAssessmentNote.Product.Builder setGenericUriBytes(ByteString value)

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

string generic_uri = 3;

Parameter
Name Description
value ByteString

The bytes for genericUri to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

setId(String value)

public VulnerabilityAssessmentNote.Product.Builder setId(String value)

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

string id = 2;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VulnerabilityAssessmentNote.Product.Builder setIdBytes(ByteString value)

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

string id = 2;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

setName(String value)

public VulnerabilityAssessmentNote.Product.Builder setName(String value)

Name of the product.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VulnerabilityAssessmentNote.Product.Builder setNameBytes(ByteString value)

Name of the product.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

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

public VulnerabilityAssessmentNote.Product.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VulnerabilityAssessmentNote.Product.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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