public static final class Distribution.Builder extends 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 type
grafeas.v1.Distribution
Modifier and Type | Method and Description |
---|---|
Distribution.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Distribution |
build() |
Distribution |
buildPartial() |
Distribution.Builder |
clear() |
Distribution.Builder |
clearArchitecture()
The CPU architecture for which packages in this distribution channel were
built.
|
Distribution.Builder |
clearCpeUri()
Required.
|
Distribution.Builder |
clearDescription()
The distribution channel-specific description of this package.
|
Distribution.Builder |
clearField(Descriptors.FieldDescriptor field) |
Distribution.Builder |
clearLatestVersion()
The latest available version of this package in this distribution channel.
|
Distribution.Builder |
clearMaintainer()
A freeform string denoting the maintainer of this package.
|
Distribution.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Distribution.Builder |
clearUrl()
The distribution channel-specific homepage for this package.
|
Distribution.Builder |
clone() |
Architecture |
getArchitecture()
The CPU architecture for which packages in this distribution channel were
built.
|
int |
getArchitectureValue()
The CPU architecture for which packages in this distribution channel were
built.
|
String |
getCpeUri()
Required.
|
ByteString |
getCpeUriBytes()
Required.
|
Distribution |
getDefaultInstanceForType() |
String |
getDescription()
The distribution channel-specific description of this package.
|
ByteString |
getDescriptionBytes()
The distribution channel-specific description of this package.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Version |
getLatestVersion()
The latest available version of this package in this distribution channel.
|
Version.Builder |
getLatestVersionBuilder()
The latest available version of this package in this distribution channel.
|
VersionOrBuilder |
getLatestVersionOrBuilder()
The latest available version of this package in this distribution channel.
|
String |
getMaintainer()
A freeform string denoting the maintainer of this package.
|
ByteString |
getMaintainerBytes()
A freeform string denoting the maintainer of this package.
|
String |
getUrl()
The distribution channel-specific homepage for this package.
|
ByteString |
getUrlBytes()
The distribution channel-specific homepage for this package.
|
boolean |
hasLatestVersion()
The latest available version of this package in this distribution channel.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Distribution.Builder |
mergeFrom(Distribution other) |
Distribution.Builder |
mergeFrom(Message other) |
Distribution.Builder |
mergeLatestVersion(Version value)
The latest available version of this package in this distribution channel.
|
Distribution.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Distribution.Builder |
setArchitecture(Architecture value)
The CPU architecture for which packages in this distribution channel were
built.
|
Distribution.Builder |
setArchitectureValue(int value)
The CPU architecture for which packages in this distribution channel were
built.
|
Distribution.Builder |
setCpeUri(String value)
Required.
|
Distribution.Builder |
setCpeUriBytes(ByteString value)
Required.
|
Distribution.Builder |
setDescription(String value)
The distribution channel-specific description of this package.
|
Distribution.Builder |
setDescriptionBytes(ByteString value)
The distribution channel-specific description of this package.
|
Distribution.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Distribution.Builder |
setLatestVersion(Version.Builder builderForValue)
The latest available version of this package in this distribution channel.
|
Distribution.Builder |
setLatestVersion(Version value)
The latest available version of this package in this distribution channel.
|
Distribution.Builder |
setMaintainer(String value)
A freeform string denoting the maintainer of this package.
|
Distribution.Builder |
setMaintainerBytes(ByteString value)
A freeform string denoting the maintainer of this package.
|
Distribution.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Distribution.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Distribution.Builder |
setUrl(String value)
The distribution channel-specific homepage for this package.
|
Distribution.Builder |
setUrlBytes(ByteString value)
The distribution channel-specific homepage for this package.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Distribution build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Distribution buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Distribution.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Distribution.Builder>
public Distribution.Builder mergeFrom(Distribution other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Distribution.Builder>
public Distribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Distribution.Builder>
IOException
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;
getCpeUri
in interface DistributionOrBuilder
public 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;
getCpeUriBytes
in interface DistributionOrBuilder
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;
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;
public Distribution.Builder setCpeUriBytes(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;
public int getArchitectureValue()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1.Architecture architecture = 2;
getArchitectureValue
in interface DistributionOrBuilder
public Distribution.Builder setArchitectureValue(int value)
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1.Architecture architecture = 2;
public Architecture getArchitecture()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1.Architecture architecture = 2;
getArchitecture
in interface DistributionOrBuilder
public Distribution.Builder setArchitecture(Architecture value)
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1.Architecture architecture = 2;
public Distribution.Builder clearArchitecture()
The CPU architecture for which packages in this distribution channel were built.
.grafeas.v1.Architecture architecture = 2;
public boolean hasLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
hasLatestVersion
in interface DistributionOrBuilder
public Version getLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
getLatestVersion
in interface DistributionOrBuilder
public Distribution.Builder setLatestVersion(Version value)
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
public Distribution.Builder setLatestVersion(Version.Builder builderForValue)
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
public Distribution.Builder mergeLatestVersion(Version value)
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
public Distribution.Builder clearLatestVersion()
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
public Version.Builder getLatestVersionBuilder()
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
public VersionOrBuilder getLatestVersionOrBuilder()
The latest available version of this package in this distribution channel.
.grafeas.v1.Version latest_version = 3;
getLatestVersionOrBuilder
in interface DistributionOrBuilder
public String getMaintainer()
A freeform string denoting the maintainer of this package.
string maintainer = 4;
getMaintainer
in interface DistributionOrBuilder
public ByteString getMaintainerBytes()
A freeform string denoting the maintainer of this package.
string maintainer = 4;
getMaintainerBytes
in interface DistributionOrBuilder
public Distribution.Builder setMaintainer(String value)
A freeform string denoting the maintainer of this package.
string maintainer = 4;
public Distribution.Builder clearMaintainer()
A freeform string denoting the maintainer of this package.
string maintainer = 4;
public Distribution.Builder setMaintainerBytes(ByteString value)
A freeform string denoting the maintainer of this package.
string maintainer = 4;
public String getUrl()
The distribution channel-specific homepage for this package.
string url = 5;
getUrl
in interface DistributionOrBuilder
public ByteString getUrlBytes()
The distribution channel-specific homepage for this package.
string url = 5;
getUrlBytes
in interface DistributionOrBuilder
public Distribution.Builder setUrl(String value)
The distribution channel-specific homepage for this package.
string url = 5;
public Distribution.Builder clearUrl()
The distribution channel-specific homepage for this package.
string url = 5;
public Distribution.Builder setUrlBytes(ByteString value)
The distribution channel-specific homepage for this package.
string url = 5;
public String getDescription()
The distribution channel-specific description of this package.
string description = 6;
getDescription
in interface DistributionOrBuilder
public ByteString getDescriptionBytes()
The distribution channel-specific description of this package.
string description = 6;
getDescriptionBytes
in interface DistributionOrBuilder
public Distribution.Builder setDescription(String value)
The distribution channel-specific description of this package.
string description = 6;
public Distribution.Builder clearDescription()
The distribution channel-specific description of this package.
string description = 6;
public Distribution.Builder setDescriptionBytes(ByteString value)
The distribution channel-specific description of this package.
string description = 6;
public final Distribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Distribution.Builder>
public final Distribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Distribution.Builder>
Copyright © 2019 Google LLC. All rights reserved.