Class Layer (2.4.6)

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
TypeDescription
int

DIRECTIVE_FIELD_NUMBER

public static final int DIRECTIVE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Layer getDefaultInstance()
Returns
TypeDescription
Layer

getDescriptor()

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

newBuilder()

public static Layer.Builder newBuilder()
Returns
TypeDescription
Layer.Builder

newBuilder(Layer prototype)

public static Layer.Builder newBuilder(Layer prototype)
Parameter
NameDescription
prototypeLayer
Returns
TypeDescription
Layer.Builder

parseDelimitedFrom(InputStream input)

public static Layer parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Layer parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Layer parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Layer parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Layer parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Layer parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Layer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Layer
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Layer> parser()
Returns
TypeDescription
Parser<Layer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getArguments()

public String getArguments()

The recovered arguments to the Dockerfile directive.

string arguments = 2;

Returns
TypeDescription
String

The arguments.

getArgumentsBytes()

public ByteString getArgumentsBytes()

The recovered arguments to the Dockerfile directive.

string arguments = 2;

Returns
TypeDescription
ByteString

The bytes for arguments.

getDefaultInstanceForType()

public Layer getDefaultInstanceForType()
Returns
TypeDescription
Layer

getDirective()

public Layer.Directive getDirective()

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

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for directive.

getParserForType()

public Parser<Layer> getParserForType()
Returns
TypeDescription
Parser<Layer>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Layer.Builder newBuilderForType()
Returns
TypeDescription
Layer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Layer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Layer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Layer.Builder toBuilder()
Returns
TypeDescription
Layer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException