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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Location
build()
Location
buildPartial()
Location.Builder
clear()
Location.Builder
clearCpeUri()
Required.Location.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Location.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Location.Builder
clearPath()
The path from which we gathered that this package/version is installed.Location.Builder
clearVersion()
The version installed at this location.Location.Builder
clone()
String
getCpeUri()
Required.com.google.protobuf.ByteString
getCpeUriBytes()
Required.Location
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPath()
The path from which we gathered that this package/version is installed.com.google.protobuf.ByteString
getPathBytes()
The path from which we gathered that this package/version is installed.Version
getVersion()
The version installed at this location.Version.Builder
getVersionBuilder()
The version installed at this location.VersionOrBuilder
getVersionOrBuilder()
The version installed at this location.boolean
hasVersion()
The version installed at this location.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Location.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Location.Builder
mergeFrom(com.google.protobuf.Message other)
Location.Builder
mergeFrom(Location other)
Location.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Location.Builder
mergeVersion(Version value)
The version installed at this location.Location.Builder
setCpeUri(String value)
Required.Location.Builder
setCpeUriBytes(com.google.protobuf.ByteString value)
Required.Location.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Location.Builder
setPath(String value)
The path from which we gathered that this package/version is installed.Location.Builder
setPathBytes(com.google.protobuf.ByteString value)
The path from which we gathered that this package/version is installed.Location.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Location.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Location.Builder
setVersion(Version value)
The version installed at this location.Location.Builder
setVersion(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.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<Location.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<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.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<Location.Builder>
-
setField
public Location.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<Location.Builder>
-
clearField
public Location.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<Location.Builder>
-
clearOneof
public Location.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<Location.Builder>
-
setRepeatedField
public Location.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<Location.Builder>
-
addRepeatedField
public Location.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<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCpeUri
in 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:
getCpeUriBytes
in 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:
hasVersion
in 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:
getVersion
in 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:
getVersionOrBuilder
in interfaceLocationOrBuilder
-
getPath
public String getPath()
The path from which we gathered that this package/version is installed.
string path = 3;
- Specified by:
getPath
in 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:
getPathBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-