Send feedback
Class Package.Builder (2.4.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.1 keyboard_arrow_down
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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
addDistributionBuilder()
public Distribution . Builder addDistributionBuilder ()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Package . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Package buildPartial ()
Returns
clear()
public Package . Builder clear ()
Returns
Overrides
clearDistribution()
public Package . Builder clearDistribution ()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
Returns
clearField(Descriptors.FieldDescriptor field)
public Package . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearName()
public Package . Builder clearName ()
Required. Immutable. The name of the package.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Package . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public Package . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Package getDefaultInstanceForType ()
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.v1beta1.package.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.v1beta1.package.Distribution distribution = 10;
Parameter
Returns
getDistributionBuilderList()
public List<Distribution . Builder > getDistributionBuilderList ()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
Returns
getDistributionCount()
public int getDistributionCount ()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
Returns
getDistributionList()
public List<Distribution> getDistributionList ()
The various channels by which a package is distributed.
repeated .grafeas.v1beta1.package.Distribution distribution = 10;
Returns
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
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public Package . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Package . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(Package other)
public Package . Builder mergeFrom ( Package other )
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Package . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Package . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Package . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Package . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]