Class VulnerabilityAssessmentNote.Product.Builder (2.48.0)

See more code actions.
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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
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()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

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
Overrides

clone()

public VulnerabilityAssessmentNote.Product.Builder clone()
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()

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(VulnerabilityAssessmentNote.Product other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityAssessmentNote.Product.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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