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.GeneratedMessage.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.GeneratedMessage.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.v1beta1.package.Distribution-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The CPU architecture for which packages in this distribution channel were built.Required.The distribution channel-specific description of this package.The latest available version of this package in this distribution channel.A freeform string denoting the maintainer of this package.clearUrl()The distribution channel-specific homepage for this package.The CPU architecture for which packages in this distribution channel were built.intThe CPU architecture for which packages in this distribution channel were built.Required.com.google.protobuf.ByteStringRequired.The distribution channel-specific description of this package.com.google.protobuf.ByteStringThe distribution channel-specific description of this package.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe latest available version of this package in this distribution channel.The latest available version of this package in this distribution channel.The latest available version of this package in this distribution channel.A freeform string denoting the maintainer of this package.com.google.protobuf.ByteStringA freeform string denoting the maintainer of this package.getUrl()The distribution channel-specific homepage for this package.com.google.protobuf.ByteStringThe distribution channel-specific homepage for this package.booleanThe latest available version of this package in this distribution channel.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Distribution other) mergeLatestVersion(Version value) The latest available version of this package in this distribution channel.setArchitecture(Architecture value) The CPU architecture for which packages in this distribution channel were built.setArchitectureValue(int value) The CPU architecture for which packages in this distribution channel were built.Required.setCpeUriBytes(com.google.protobuf.ByteString value) Required.setDescription(String value) The distribution channel-specific description of this package.setDescriptionBytes(com.google.protobuf.ByteString value) The distribution channel-specific description of this package.setLatestVersion(Version value) The latest available version of this package in this distribution channel.setLatestVersion(Version.Builder builderForValue) The latest available version of this package in this distribution channel.setMaintainer(String value) A freeform string denoting the maintainer of this package.setMaintainerBytes(com.google.protobuf.ByteString value) A freeform string denoting the maintainer of this package.The distribution channel-specific homepage for this package.setUrlBytes(com.google.protobuf.ByteString value) The distribution channel-specific homepage for this package.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Distribution.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Distribution.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3; -
setLatestVersion
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3; -
mergeLatestVersion
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3; -
clearLatestVersion
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3; -
getLatestVersionBuilder
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3; -
getLatestVersionOrBuilder
The latest available version of this package in this distribution channel.
.grafeas.v1beta1.package.Version latest_version = 3;- Specified by:
getLatestVersionOrBuilderin interfaceDistributionOrBuilder
-
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
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Parameters:
value- The maintainer to set.- Returns:
- This builder for chaining.
-
clearMaintainer
A freeform string denoting the maintainer of this package.
string maintainer = 4;- Returns:
- This builder for chaining.
-
setMaintainerBytes
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
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
The distribution channel-specific homepage for this package.
string url = 5;- Parameters:
value- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
The distribution channel-specific homepage for this package.
string url = 5;- Returns:
- This builder for chaining.
-
setUrlBytes
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
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
The distribution channel-specific description of this package.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The distribution channel-specific description of this package.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
The distribution channel-specific description of this package.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-