Class Location.Builder (2.21.0)

public static final class Location.Builder extends 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 type grafeas.v1beta1.package.Location

Implements

LocationOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Location.Builder
Overrides

build()

public Location build()
Returns
TypeDescription
Location

buildPartial()

public Location buildPartial()
Returns
TypeDescription
Location

clear()

public Location.Builder clear()
Returns
TypeDescription
Location.Builder
Overrides

clearCpeUri()

public Location.Builder clearCpeUri()

Required. The CPE URI in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1;

Returns
TypeDescription
Location.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Location.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Location.Builder
Overrides

clearPath()

public Location.Builder clearPath()

The path from which we gathered that this package/version is installed.

string path = 3;

Returns
TypeDescription
Location.Builder

This builder for chaining.

clearVersion()

public Location.Builder clearVersion()

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Returns
TypeDescription
Location.Builder

clone()

public Location.Builder clone()
Returns
TypeDescription
Location.Builder
Overrides

getCpeUri()

public String getCpeUri()

Required. The CPE URI in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1;

Returns
TypeDescription
String

The cpeUri.

getCpeUriBytes()

public ByteString getCpeUriBytes()

Required. The CPE URI in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1;

Returns
TypeDescription
ByteString

The bytes for cpeUri.

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
TypeDescription
Location

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPath()

public String getPath()

The path from which we gathered that this package/version is installed.

string path = 3;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

The path from which we gathered that this package/version is installed.

string path = 3;

Returns
TypeDescription
ByteString

The bytes for path.

getVersion()

public Version getVersion()

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Returns
TypeDescription
Version

The version.

getVersionBuilder()

public Version.Builder getVersionBuilder()

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Returns
TypeDescription
Version.Builder

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Returns
TypeDescription
VersionOrBuilder

hasVersion()

public boolean hasVersion()

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Returns
TypeDescription
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Location.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Location.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Location.Builder
Overrides

mergeFrom(Location other)

public Location.Builder mergeFrom(Location other)
Parameter
NameDescription
otherLocation
Returns
TypeDescription
Location.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Location.Builder
Overrides

mergeVersion(Version value)

public Location.Builder mergeVersion(Version value)

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
Location.Builder

setCpeUri(String value)

public Location.Builder setCpeUri(String value)

Required. The CPE URI in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1;

Parameter
NameDescription
valueString

The cpeUri to set.

Returns
TypeDescription
Location.Builder

This builder for chaining.

setCpeUriBytes(ByteString value)

public Location.Builder setCpeUriBytes(ByteString value)

Required. The CPE URI in CPE format denoting the package manager version distributing a package.

string cpe_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for cpeUri to set.

Returns
TypeDescription
Location.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Location.Builder
Overrides

setPath(String value)

public Location.Builder setPath(String value)

The path from which we gathered that this package/version is installed.

string path = 3;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
Location.Builder

This builder for chaining.

setPathBytes(ByteString value)

public Location.Builder setPathBytes(ByteString value)

The path from which we gathered that this package/version is installed.

string path = 3;

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
Location.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Location.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Location.Builder
Overrides

setVersion(Version value)

public Location.Builder setVersion(Version value)

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
Location.Builder

setVersion(Version.Builder builderForValue)

public Location.Builder setVersion(Version.Builder builderForValue)

The version installed at this location.

.grafeas.v1beta1.package.Version version = 2;

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
Location.Builder