Package io.grafeas.v1beta1.pkg
Class Location.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
io.grafeas.v1beta1.pkg.Location.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocationOrBuilder,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
implements LocationOrBuilder
An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.Protobuf type
grafeas.v1beta1.package.Location-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.The path from which we gathered that this package/version is installed.The version installed at this location.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPath()The path from which we gathered that this package/version is installed.com.google.protobuf.ByteStringThe path from which we gathered that this package/version is installed.The version installed at this location.The version installed at this location.The version installed at this location.booleanThe version installed at this location.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeVersion(Version value) The version installed at this location.Required.setCpeUriBytes(com.google.protobuf.ByteString value) Required.The path from which we gathered that this package/version is installed.setPathBytes(com.google.protobuf.ByteString value) The path from which we gathered that this package/version is installed.setVersion(Version value) The version installed at this location.setVersion(Version.Builder builderForValue) The version installed at this location.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<Location.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<Location.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<Location.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<Location.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
mergeFrom
public Location.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<Location.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 interfaceLocationOrBuilder- 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 interfaceLocationOrBuilder- 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.
-
hasVersion
public boolean hasVersion()The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;- Specified by:
hasVersionin interfaceLocationOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;- Specified by:
getVersionin interfaceLocationOrBuilder- Returns:
- The version.
-
setVersion
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2; -
setVersion
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2; -
mergeVersion
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2; -
clearVersion
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2; -
getVersionBuilder
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2; -
getVersionOrBuilder
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;- Specified by:
getVersionOrBuilderin interfaceLocationOrBuilder
-
getPath
The path from which we gathered that this package/version is installed.
string path = 3;- Specified by:
getPathin interfaceLocationOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()The path from which we gathered that this package/version is installed.
string path = 3;- Specified by:
getPathBytesin interfaceLocationOrBuilder- Returns:
- The bytes for path.
-
setPath
The path from which we gathered that this package/version is installed.
string path = 3;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
The path from which we gathered that this package/version is installed.
string path = 3;- Returns:
- This builder for chaining.
-
setPathBytes
The path from which we gathered that this package/version is installed.
string path = 3;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-