Class Distribution.Builder (2.37.0)

public static final class Distribution.Builder extends GeneratedMessageV3.Builder<Distribution.Builder> implements DistributionOrBuilder

This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.

Protobuf type grafeas.v1.Distribution

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Distribution build()
Returns
TypeDescription
Distribution

buildPartial()

public Distribution buildPartial()
Returns
TypeDescription
Distribution

clear()

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

clearArchitecture()

public Distribution.Builder clearArchitecture()

The CPU architecture for which packages in this distribution channel were built.

.grafeas.v1.Architecture architecture = 2;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearCpeUri()

public Distribution.Builder clearCpeUri()

The cpe_uri in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearDescription()

public Distribution.Builder clearDescription()

The distribution channel-specific description of this package.

string description = 6;

Returns
TypeDescription
Distribution.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Distribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter