Class FileLocation.Builder (2.84.0)

public static final class FileLocation.Builder extends GeneratedMessage.Builder<FileLocation.Builder> implements FileLocationOrBuilder

Indicates the location at which a package was found.

Protobuf type grafeas.v1.FileLocation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FileLocation build()
Returns
Type Description
FileLocation

buildPartial()

public FileLocation buildPartial()
Returns
Type Description
FileLocation

clear()

public FileLocation.Builder clear()
Returns
Type Description
FileLocation.Builder
Overrides

clearFilePath()

public FileLocation.Builder clearFilePath()

For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.

string file_path = 1;

Returns
Type Description
FileLocation.Builder

This builder for chaining.

clearLayerDetails()

public FileLocation.Builder clearLayerDetails()

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Returns
Type Description
FileLocation.Builder

getDefaultInstanceForType()

public FileLocation getDefaultInstanceForType()
Returns
Type Description
FileLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilePath()

public String getFilePath()

For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.

string file_path = 1;

Returns
Type Description
String

The filePath.

getFilePathBytes()

public ByteString getFilePathBytes()

For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.

string file_path = 1;

Returns
Type Description
ByteString

The bytes for filePath.

getLayerDetails()

public LayerDetails getLayerDetails()

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Returns
Type Description
LayerDetails

The layerDetails.

getLayerDetailsBuilder()

public LayerDetails.Builder getLayerDetailsBuilder()

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Returns
Type Description
LayerDetails.Builder

getLayerDetailsOrBuilder()

public LayerDetailsOrBuilder getLayerDetailsOrBuilder()

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Returns
Type Description
LayerDetailsOrBuilder

hasLayerDetails()

public boolean hasLayerDetails()

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Returns
Type Description
boolean

Whether the layerDetails field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FileLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FileLocation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FileLocation.Builder
Overrides

mergeFrom(FileLocation other)

public FileLocation.Builder mergeFrom(FileLocation other)
Parameter
Name Description
other FileLocation
Returns
Type Description
FileLocation.Builder

mergeLayerDetails(LayerDetails value)

public FileLocation.Builder mergeLayerDetails(LayerDetails value)

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Parameter
Name Description
value LayerDetails
Returns
Type Description
FileLocation.Builder

setFilePath(String value)

public FileLocation.Builder setFilePath(String value)

For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.

string file_path = 1;

Parameter
Name Description
value String

The filePath to set.

Returns
Type Description
FileLocation.Builder

This builder for chaining.

setFilePathBytes(ByteString value)

public FileLocation.Builder setFilePathBytes(ByteString value)

For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file.

string file_path = 1;

Parameter
Name Description
value ByteString

The bytes for filePath to set.

Returns
Type Description
FileLocation.Builder

This builder for chaining.

setLayerDetails(LayerDetails value)

public FileLocation.Builder setLayerDetails(LayerDetails value)

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Parameter
Name Description
value LayerDetails
Returns
Type Description
FileLocation.Builder

setLayerDetails(LayerDetails.Builder builderForValue)

public FileLocation.Builder setLayerDetails(LayerDetails.Builder builderForValue)

Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package).

.grafeas.v1.LayerDetails layer_details = 2;

Parameter
Name Description
builderForValue LayerDetails.Builder
Returns
Type Description
FileLocation.Builder