Class Package.Builder (2.54.0)

public static final class Package.Builder extends GeneratedMessageV3.Builder<Package.Builder> implements PackageOrBuilder

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.v1beta1.package.Package

Implements

PackageOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDistribution(Iterable<? extends Distribution> values)

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

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1beta1.pkg.Distribution>
Returns
Type Description
Package.Builder

addDistribution(int index, Distribution value)

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

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameters
Name Description
index int
value Distribution
Returns
Type Description
Package.Builder

addDistribution(int index, Distribution.Builder builderForValue)

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

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameters
Name Description
index int
builderForValue Distribution.Builder
Returns
Type Description
Package.Builder

addDistribution(Distribution value)

public Package.Builder addDistribution(Distribution value)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
value Distribution
Returns
Type Description
Package.Builder

addDistribution(Distribution.Builder builderForValue)

public Package.Builder addDistribution(Distribution.Builder builderForValue)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
builderForValue Distribution.Builder
Returns
Type Description
Package.Builder

addDistributionBuilder()

public Distribution.Builder addDistributionBuilder()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
Distribution.Builder

addDistributionBuilder(int index)

public Distribution.Builder addDistributionBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
index int
Returns
Type Description
Distribution.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Package build()
Returns
Type Description
Package

buildPartial()

public Package buildPartial()
Returns
Type Description
Package

clear()

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

clearDistribution()

public Package.Builder clearDistribution()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
Package.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Package.Builder clearName()

Required. Immutable. The name of the package.

string name = 1;

Returns
Type Description
Package.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Package getDefaultInstanceForType()
Returns
Type Description
Package

getDescriptorForType()

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

getDistribution(int index)

public Distribution getDistribution(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
index int
Returns
Type Description
Distribution

getDistributionBuilder(int index)

public Distribution.Builder getDistributionBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
index int
Returns
Type Description
Distribution.Builder

getDistributionBuilderList()

public List<Distribution.Builder> getDistributionBuilderList()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
List<Builder>

getDistributionCount()

public int getDistributionCount()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
int

getDistributionList()

public List<Distribution> getDistributionList()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
List<Distribution>

getDistributionOrBuilder(int index)

public DistributionOrBuilder getDistributionOrBuilder(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
index int
Returns
Type Description
DistributionOrBuilder

getDistributionOrBuilderList()

public List<? extends DistributionOrBuilder> getDistributionOrBuilderList()

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Returns
Type Description
List<? extends io.grafeas.v1beta1.pkg.DistributionOrBuilder>

getName()

public String getName()

Required. Immutable. The name of the package.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. The name of the package.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

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 Package.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Package.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(Package other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDistribution(int index)

public Package.Builder removeDistribution(int index)

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameter
Name Description
index int
Returns
Type Description
Package.Builder

setDistribution(int index, Distribution value)

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

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameters
Name Description
index int
value Distribution
Returns
Type Description
Package.Builder

setDistribution(int index, Distribution.Builder builderForValue)

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

The various channels by which a package is distributed.

repeated .grafeas.v1beta1.package.Distribution distribution = 10;

Parameters
Name Description
index int
builderForValue Distribution.Builder
Returns
Type Description
Package.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Package.Builder setName(String value)

Required. Immutable. The name of the package.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Package.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Package.Builder setNameBytes(ByteString value)

Required. Immutable. The name of the package.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Package.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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