Package io.grafeas.v1beta1.pkg
Class Distribution.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
- io.grafeas.v1beta1.pkg.Distribution.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DistributionOrBuilder,Cloneable
- Enclosing class:
- Distribution
public static final class Distribution.Builder extends com.google.protobuf.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 typegrafeas.v1beta1.package.Distribution
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distributionbuild()DistributionbuildPartial()Distribution.Builderclear()Distribution.BuilderclearArchitecture()The CPU architecture for which packages in this distribution channel were built.Distribution.BuilderclearCpeUri()Required.Distribution.BuilderclearDescription()The distribution channel-specific description of this package.Distribution.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Distribution.BuilderclearLatestVersion()The latest available version of this package in this distribution channel.Distribution.BuilderclearMaintainer()A freeform string denoting the maintainer of this package.Distribution.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Distribution.BuilderclearUrl()The distribution channel-specific homepage for this package.Distribution.Builderclone()ArchitecturegetArchitecture()The CPU architecture for which packages in this distribution channel were built.intgetArchitectureValue()The CPU architecture for which packages in this distribution channel were built.StringgetCpeUri()Required.com.google.protobuf.ByteStringgetCpeUriBytes()Required.DistributiongetDefaultInstanceForType()StringgetDescription()The distribution channel-specific description of this package.com.google.protobuf.ByteStringgetDescriptionBytes()The distribution channel-specific description of this package.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()VersiongetLatestVersion()The latest available version of this package in this distribution channel.Version.BuildergetLatestVersionBuilder()The latest available version of this package in this distribution channel.VersionOrBuildergetLatestVersionOrBuilder()The latest available version of this package in this distribution channel.StringgetMaintainer()A freeform string denoting the maintainer of this package.com.google.protobuf.ByteStringgetMaintainerBytes()A freeform string denoting the maintainer of this package.StringgetUrl()The distribution channel-specific homepage for this package.com.google.protobuf.ByteStringgetUrlBytes()The distribution channel-specific homepage for this package.booleanhasLatestVersion()The latest available version of this package in this distribution channel.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Distribution.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Distribution.BuildermergeFrom(com.google.protobuf.Message other)Distribution.BuildermergeFrom(Distribution other)Distribution.BuildermergeLatestVersion(Version value)The latest available version of this package in this distribution channel.Distribution.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Distribution.BuildersetArchitecture(Architecture value)The CPU architecture for which packages in this distribution channel were built.Distribution.BuildersetArchitectureValue(int value)The CPU architecture for which packages in this distribution channel were built.Distribution.BuildersetCpeUri(String value)Required.Distribution.BuildersetCpeUriBytes(com.google.protobuf.ByteString value)Required.Distribution.BuildersetDescription(String value)The distribution channel-specific description of this package.Distribution.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The distribution channel-specific description of this package.Distribution.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Distribution.BuildersetLatestVersion(Version value)The latest available version of this package in this distribution channel.Distribution.BuildersetLatestVersion(Version.Builder builderForValue)The latest available version of this package in this distribution channel.Distribution.BuildersetMaintainer(String value)A freeform string denoting the maintainer of this package.Distribution.BuildersetMaintainerBytes(com.google.protobuf.ByteString value)A freeform string denoting the maintainer of this package.Distribution.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Distribution.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Distribution.BuildersetUrl(String value)The distribution channel-specific homepage for this package.Distribution.BuildersetUrlBytes(com.google.protobuf.ByteString value)The distribution channel-specific homepage for this package.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clear
public Distribution.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDefaultInstanceForType
public Distribution getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setField
public Distribution.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearField
public Distribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearOneof
public Distribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setRepeatedField
public Distribution.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
addRepeatedField
public Distribution.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(Distribution other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>- Throws:
IOException
-
getCpeUri
public String getCpeUri()
Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
string cpe_uri = 1;- Specified by:
getCpeUriin interfaceDistributionOrBuilder- Returns:
- The cpeUri.
-
getCpeUriBytes
public com.google.protobuf.ByteString getCpeUriBytes()
Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
string cpe_uri = 1;- Specified by:
getCpeUriBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for cpeUri.
-
setCpeUri
public Distribution.Builder setCpeUri(String value)
Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
string cpe_uri = 1;- Parameters:
value- The cpeUri to set.- Returns:
- This builder for chaining.
-
clearCpeUri
public Distribution.Builder clearCpeUri()
Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
string cpe_uri = 1;- Returns:
- This builder for chaining.
-
setCpeUriBytes
public Distribution.Builder setCpeUriBytes(com.google.protobuf.ByteString value)
Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
string cpe_uri = 1;- Parameters:
value- The bytes for cpeUri to set.- Returns:
- This builder for chaining.
-
getArchitectureValue
public int getArchitectureValue()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1beta1.package.Architecture architecture = 2;- Specified by:
getArchitectureValuein interfaceDistributionOrBuilder- Returns:
- The enum numeric value on the wire for architecture.
-
setArchitectureValue
public Distribution.Builder setArchitectureValue(int value)
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1beta1.package.Architecture architecture = 2;- Parameters:
value- The enum numeric value on the wire for architecture to set.- Returns:
- This builder for chaining.
-
getArchitecture
public Architecture getArchitecture()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1beta1.package.Architecture architecture = 2;- Specified by:
getArchitecturein interfaceDistributionOrBuilder- Returns:
- The architecture.
-
setArchitecture
public Distribution.Builder setArchitecture(Architecture value)
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1beta1.package.Architecture architecture = 2;- Parameters:
value- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
public Distribution.Builder clearArchitecture()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1beta1.package.Architecture architecture = 2;- Returns:
- This builder for chaining.
-
hasLatestVersion
public boolean hasLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;- Specified by:
hasLatestVersionin interfaceDistributionOrBuilder- Returns:
- Whether the latestVersion field is set.
-
getLatestVersion
public Version getLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;- Specified by:
getLatestVersionin interfaceDistributionOrBuilder- Returns:
- The latestVersion.
-
setLatestVersion
public Distribution.Builder setLatestVersion(Version value)
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;
-
setLatestVersion
public Distribution.Builder setLatestVersion(Version.Builder builderForValue)
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;
-
mergeLatestVersion
public Distribution.Builder mergeLatestVersion(Version value)
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;
-
clearLatestVersion
public Distribution.Builder clearLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;
-
getLatestVersionBuilder
public Version.Builder getLatestVersionBuilder()
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;
-
getLatestVersionOrBuilder
public VersionOrBuilder getLatestVersionOrBuilder()
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;- Specified by:
getLatestVersionOrBuilderin interfaceDistributionOrBuilder
-
getMaintainer
public String getMaintainer()
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Specified by:
getMaintainerin interfaceDistributionOrBuilder- Returns:
- The maintainer.
-
getMaintainerBytes
public com.google.protobuf.ByteString getMaintainerBytes()
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Specified by:
getMaintainerBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for maintainer.
-
setMaintainer
public Distribution.Builder setMaintainer(String value)
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Parameters:
value- The maintainer to set.- Returns:
- This builder for chaining.
-
clearMaintainer
public Distribution.Builder clearMaintainer()
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Returns:
- This builder for chaining.
-
setMaintainerBytes
public Distribution.Builder setMaintainerBytes(com.google.protobuf.ByteString value)
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Parameters:
value- The bytes for maintainer to set.- Returns:
- This builder for chaining.
-
getUrl
public String getUrl()
The distribution channel-specific homepage for this package.
string url = 5;- Specified by:
getUrlin interfaceDistributionOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
The distribution channel-specific homepage for this package.
string url = 5;- Specified by:
getUrlBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for url.
-
setUrl
public Distribution.Builder setUrl(String value)
The distribution channel-specific homepage for this package.
string url = 5;- Parameters:
value- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
public Distribution.Builder clearUrl()
The distribution channel-specific homepage for this package.
string url = 5;- Returns:
- This builder for chaining.
-
setUrlBytes
public Distribution.Builder setUrlBytes(com.google.protobuf.ByteString value)
The distribution channel-specific homepage for this package.
string url = 5;- Parameters:
value- The bytes for url to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
The distribution channel-specific description of this package.
string description = 6;- Specified by:
getDescriptionin interfaceDistributionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The distribution channel-specific description of this package.
string description = 6;- Specified by:
getDescriptionBytesin interfaceDistributionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Distribution.Builder setDescription(String value)
The distribution channel-specific description of this package.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Distribution.Builder clearDescription()
The distribution channel-specific description of this package.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Distribution.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The distribution channel-specific description of this package.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Distribution.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeUnknownFields
public final Distribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
-