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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegrafeas.v1beta1.package.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearCpeUri()Required.Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.BuilderclearPath()The path from which we gathered that this package/version is installed.Location.BuilderclearVersion()The version installed at this location.Location.Builderclone()StringgetCpeUri()Required.com.google.protobuf.ByteStringgetCpeUriBytes()Required.LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetPath()The path from which we gathered that this package/version is installed.com.google.protobuf.ByteStringgetPathBytes()The path from which we gathered that this package/version is installed.VersiongetVersion()The version installed at this location.Version.BuildergetVersionBuilder()The version installed at this location.VersionOrBuildergetVersionOrBuilder()The version installed at this location.booleanhasVersion()The version installed at this location.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeFrom(Location other)Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuildermergeVersion(Version value)The version installed at this location.Location.BuildersetCpeUri(String value)Required.Location.BuildersetCpeUriBytes(com.google.protobuf.ByteString value)Required.Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Location.BuildersetPath(String value)The path from which we gathered that this package/version is installed.Location.BuildersetPathBytes(com.google.protobuf.ByteString value)The path from which we gathered that this package/version is installed.Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Location.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuildersetVersion(Version value)The version installed at this location.Location.BuildersetVersion(Version.Builder builderForValue)The version installed at this location.-
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<Location.Builder>
-
clear
public Location.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<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.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.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<Location.Builder>
-
setField
public Location.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<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.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<Location.Builder>
-
addRepeatedField
public Location.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<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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 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
public Location.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 Location.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 Location.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.
-
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
public Version getVersion()
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;- Specified by:
getVersionin interfaceLocationOrBuilder- Returns:
- The version.
-
setVersion
public Location.Builder setVersion(Version value)
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;
-
setVersion
public Location.Builder setVersion(Version.Builder builderForValue)
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;
-
mergeVersion
public Location.Builder mergeVersion(Version value)
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;
-
clearVersion
public Location.Builder clearVersion()
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;
-
getVersionBuilder
public Version.Builder getVersionBuilder()
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;
-
getVersionOrBuilder
public VersionOrBuilder getVersionOrBuilder()
The version installed at this location.
.grafeas.v1beta1.package.Version version = 2;- Specified by:
getVersionOrBuilderin interfaceLocationOrBuilder
-
getPath
public String 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
public Location.Builder setPath(String value)
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
public Location.Builder clearPath()
The path from which we gathered that this package/version is installed.
string path = 3;- Returns:
- This builder for chaining.
-
setPathBytes
public Location.Builder setPathBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-