Class PackageNote.Builder (2.3.0)

public static final class PackageNote.Builder extends GeneratedMessageV3.Builder<PackageNote.Builder> implements PackageNoteOrBuilder

This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions.

Protobuf type grafeas.v1.PackageNote

Static Methods

getDescriptor()

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

Methods

addAllDistribution(Iterable<? extends Distribution> values)

public PackageNote.Builder addAllDistribution(Iterable<? extends Distribution> values)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Distribution>
Returns
TypeDescription
PackageNote.Builder

addDistribution(int index, Distribution value)

public PackageNote.Builder addDistribution(int index, Distribution value)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameters
NameDescription
indexint
valueDistribution
Returns
TypeDescription
PackageNote.Builder

addDistribution(int index, Distribution.Builder builderForValue)

public PackageNote.Builder addDistribution(int index, Distribution.Builder builderForValue)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameters
NameDescription
indexint
builderForValueDistribution.Builder
Returns
TypeDescription
PackageNote.Builder

addDistribution(Distribution value)

public PackageNote.Builder addDistribution(Distribution value)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
valueDistribution
Returns
TypeDescription
PackageNote.Builder

addDistribution(Distribution.Builder builderForValue)

public PackageNote.Builder addDistribution(Distribution.Builder builderForValue)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
builderForValueDistribution.Builder
Returns
TypeDescription
PackageNote.Builder

addDistributionBuilder()

public Distribution.Builder addDistributionBuilder()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
Distribution.Builder

addDistributionBuilder(int index)

public Distribution.Builder addDistributionBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
Distribution.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PackageNote build()
Returns
TypeDescription
PackageNote

buildPartial()

public PackageNote buildPartial()
Returns
TypeDescription
PackageNote

clear()

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

clearDistribution()

public PackageNote.Builder clearDistribution()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
PackageNote.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public PackageNote.Builder clearName()

Required. Immutable. The name of the package.

string name = 1;

Returns
TypeDescription
PackageNote.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PackageNote getDefaultInstanceForType()
Returns
TypeDescription
PackageNote

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistribution(int index)

public Distribution getDistribution(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
Distribution

getDistributionBuilder(int index)

public Distribution.Builder getDistributionBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
Distribution.Builder

getDistributionBuilderList()

public List<Distribution.Builder> getDistributionBuilderList()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
List<Builder>

getDistributionCount()

public int getDistributionCount()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
int

getDistributionList()

public List<Distribution> getDistributionList()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
List<Distribution>

getDistributionOrBuilder(int index)

public DistributionOrBuilder getDistributionOrBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
DistributionOrBuilder

getDistributionOrBuilderList()

public List<? extends DistributionOrBuilder> getDistributionOrBuilderList()

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Returns
TypeDescription
List<? extends io.grafeas.v1.DistributionOrBuilder>

getName()

public String getName()

Required. Immutable. The name of the package.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. The name of the package.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(PackageNote other)

public PackageNote.Builder mergeFrom(PackageNote other)
Parameter
NameDescription
otherPackageNote
Returns
TypeDescription
PackageNote.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDistribution(int index)

public PackageNote.Builder removeDistribution(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageNote.Builder

setDistribution(int index, Distribution value)

public PackageNote.Builder setDistribution(int index, Distribution value)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameters
NameDescription
indexint
valueDistribution
Returns
TypeDescription
PackageNote.Builder

setDistribution(int index, Distribution.Builder builderForValue)

public PackageNote.Builder setDistribution(int index, Distribution.Builder builderForValue)

The various channels by which a package is distributed.

repeated .grafeas.v1.Distribution distribution = 10;

Parameters
NameDescription
indexint
builderForValueDistribution.Builder
Returns
TypeDescription
PackageNote.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PackageNote.Builder setName(String value)

Required. Immutable. The name of the package.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PackageNote.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PackageNote.Builder setNameBytes(ByteString value)

Required. Immutable. The name of the package.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PackageNote.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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