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
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
Name | Description |
values | Iterable<? extends io.grafeas.v1.Distribution>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addDistributionBuilder()
public Distribution.Builder addDistributionBuilder()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PackageNote.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PackageNote build()
Returns
buildPartial()
public PackageNote buildPartial()
Returns
clear()
public PackageNote.Builder clear()
Returns
Overrides
clearDistribution()
public PackageNote.Builder clearDistribution()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
clearField(Descriptors.FieldDescriptor field)
public PackageNote.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public PackageNote.Builder clearName()
Required. Immutable. The name of the package.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PackageNote.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public PackageNote.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PackageNote getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getDistributionBuilderList()
public List<Distribution.Builder> getDistributionBuilderList()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
getDistributionCount()
public int getDistributionCount()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
getDistributionList()
public List<Distribution> getDistributionList()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
getDistributionOrBuilder(int index)
public DistributionOrBuilder getDistributionOrBuilder(int index)
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Parameter
Returns
getDistributionOrBuilderList()
public List<? extends DistributionOrBuilder> getDistributionOrBuilderList()
The various channels by which a package is distributed.
repeated .grafeas.v1.Distribution distribution = 10;
Returns
Type | Description |
List<? extends io.grafeas.v1.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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public PackageNote.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PackageNote.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(PackageNote other)
public PackageNote.Builder mergeFrom(PackageNote other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PackageNote.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PackageNote.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public PackageNote.Builder setName(String value)
Required. Immutable. The name of the package.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public PackageNote.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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PackageNote.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PackageNote.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides