Class VulnerabilityAssessmentNote.Product.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerabilityAssessmentNote.Product build()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product

buildPartial()

public VulnerabilityAssessmentNote.Product buildPartial()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product

clear()

public VulnerabilityAssessmentNote.Product.Builder clear()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityAssessmentNote.Product.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

clearIdentifier()

public VulnerabilityAssessmentNote.Product.Builder clearIdentifier()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder

clearName()

public VulnerabilityAssessmentNote.Product.Builder clearName()

Name of the product.

string name = 1;

Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public VulnerabilityAssessmentNote.Product.Builder clone()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder
Overrides

getDefaultInstanceForType()

public VulnerabilityAssessmentNote.Product getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

getIdentifierCase()

public VulnerabilityAssessmentNote.Product.IdentifierCase getIdentifierCase()
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.IdentifierCase

getName()

public String getName()

Name of the product.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the product.

string name = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the genericUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(VulnerabilityAssessmentNote.Product other)

public VulnerabilityAssessmentNote.Product.Builder mergeFrom(VulnerabilityAssessmentNote.Product other)
Parameter
NameDescription
otherVulnerabilityAssessmentNote.Product
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityAssessmentNote.Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The genericUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for genericUri to set.

Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityAssessmentNote.Product.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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