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
Inherited Members
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()
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>
|
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;
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;
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;
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;
addDistributionBuilder()
public Distribution.Builder addDistributionBuilder()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Package.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Package buildPartial()
clear()
public Package.Builder clear()
Overrides
clearDistribution()
public Package.Builder clearDistribution()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
clearField(Descriptors.FieldDescriptor field)
public Package.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Package.Builder clearName()
Required. Immutable. The name of the package.
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Package.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Package.Builder clone()
Overrides
getDefaultInstanceForType()
public Package getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getDistributionBuilderList()
public List<Distribution.Builder> getDistributionBuilderList()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
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;
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
|
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public Package.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Package.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(Package other)
public Package.Builder mergeFrom(Package other)
Parameter |
Name |
Description |
other |
Package
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Package.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Package.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides