Class Layer (2.45.0)

public final class Layer extends GeneratedMessageV3 implements LayerOrBuilder

Layer holds metadata specific to a layer of a Docker image.

Protobuf type grafeas.v1beta1.image.Layer

Implements

LayerOrBuilder

Static Fields

ARGUMENTS_FIELD_NUMBER

public static final int ARGUMENTS_FIELD_NUMBER
Field Value
Type Description
int

DIRECTIVE_FIELD_NUMBER

public static final int DIRECTIVE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Layer getDefaultInstance()
Returns
Type Description
Layer

getDescriptor()

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

newBuilder()

public static Layer.Builder newBuilder()
Returns
Type Description
Layer.Builder

newBuilder(Layer prototype)

public static Layer.Builder newBuilder(Layer prototype)
Parameter
Name Description
prototype Layer
Returns
Type Description
Layer.Builder

parseDelimitedFrom(InputStream input)

public static Layer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Layer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Layer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Layer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Layer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Layer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Layer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Layer> parser()
Returns
Type Description
Parser<Layer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArguments()

public String getArguments()

The recovered arguments to the Dockerfile directive.

string arguments = 2;

Returns
Type Description
String

The arguments.

getArgumentsBytes()

public ByteString getArgumentsBytes()

The recovered arguments to the Dockerfile directive.

string arguments = 2;

Returns
Type Description
ByteString

The bytes for arguments.

getDefaultInstanceForType()

public Layer getDefaultInstanceForType()
Returns
Type Description
Layer

getDirective()

public Layer.Directive getDirective()

Required. The recovered Dockerfile directive used to construct this layer.

.grafeas.v1beta1.image.Layer.Directive directive = 1;

Returns
Type Description
Layer.Directive

The directive.

getDirectiveValue()

public int getDirectiveValue()

Required. The recovered Dockerfile directive used to construct this layer.

.grafeas.v1beta1.image.Layer.Directive directive = 1;

Returns
Type Description
int

The enum numeric value on the wire for directive.

getParserForType()

public Parser<Layer> getParserForType()
Returns
Type Description
Parser<Layer>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Layer.Builder newBuilderForType()
Returns
Type Description
Layer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Layer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Layer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Layer.Builder toBuilder()
Returns
Type Description
Layer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException