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.Builder
addRepeatedField(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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.com.google.protobuf.ByteString
getCpeUriBytes()
Required.Distribution
getDefaultInstanceForType()
String
getDescription()
The distribution channel-specific description of this package.com.google.protobuf.ByteString
getDescriptionBytes()
The distribution channel-specific description of this package.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.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.com.google.protobuf.ByteString
getMaintainerBytes()
A freeform string denoting the maintainer of this package.String
getUrl()
The distribution channel-specific homepage for this package.com.google.protobuf.ByteString
getUrlBytes()
The distribution channel-specific homepage for this package.boolean
hasLatestVersion()
The latest available version of this package in this distribution channel.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Distribution.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Distribution.Builder
mergeFrom(com.google.protobuf.Message other)
Distribution.Builder
mergeFrom(Distribution other)
Distribution.Builder
mergeLatestVersion(Version value)
The latest available version of this package in this distribution channel.Distribution.Builder
mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.ByteString value)
Required.Distribution.Builder
setDescription(String value)
The distribution channel-specific description of this package.Distribution.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
The distribution channel-specific description of this package.Distribution.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Distribution.Builder
setLatestVersion(Version value)
The latest available version of this package in this distribution channel.Distribution.Builder
setLatestVersion(Version.Builder builderForValue)
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(com.google.protobuf.ByteString value)
A freeform string denoting the maintainer of this package.Distribution.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Distribution.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Distribution.Builder
setUrl(String value)
The distribution channel-specific homepage for this package.Distribution.Builder
setUrlBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clear
public Distribution.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
getDefaultInstanceForType
public Distribution getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Distribution build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Distribution buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Distribution.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setField
public Distribution.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearField
public Distribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
clearOneof
public Distribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
setRepeatedField
public Distribution.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
addRepeatedField
public Distribution.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Distribution.Builder>
-
mergeFrom
public Distribution.Builder mergeFrom(Distribution other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCpeUri
in 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:
getCpeUriBytes
in 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:
getArchitectureValue
in 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:
getArchitecture
in 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:
hasLatestVersion
in 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:
getLatestVersion
in 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:
getLatestVersionOrBuilder
in interfaceDistributionOrBuilder
-
getMaintainer
public String getMaintainer()
A freeform string denoting the maintainer of this package.
string maintainer = 4;
- Specified by:
getMaintainer
in 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:
getMaintainerBytes
in 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:
getUrl
in interfaceDistributionOrBuilder
- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
The distribution channel-specific homepage for this package.
string url = 5;
- Specified by:
getUrlBytes
in 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:
getDescription
in interfaceDistributionOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The distribution channel-specific description of this package.
string description = 6;
- Specified by:
getDescriptionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
mergeUnknownFields
public final Distribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Builder>
-
-