public static final class Layer.Builder extends GeneratedMessageV3.Builder<Layer.Builder> implements LayerOrBuilder
Layer holds metadata specific to a layer of a Docker image.
Protobuf type grafeas.v1beta1.image.Layer
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Layer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Layer buildPartial()
Returns
clear()
public Layer.Builder clear()
Returns
Overrides
clearArguments()
public Layer.Builder clearArguments()
The recovered arguments to the Dockerfile directive.
string arguments = 2;
Returns
clearDirective()
public Layer.Builder clearDirective()
Required. The recovered Dockerfile directive used to construct this layer.
.grafeas.v1beta1.image.Layer.Directive directive = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public Layer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Layer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Layer.Builder clone()
Returns
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
getDefaultInstanceForType()
public Layer getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDirective()
public Layer.Directive getDirective()
Required. The recovered Dockerfile directive used to construct this layer.
.grafeas.v1beta1.image.Layer.Directive directive = 1;
Returns
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public Layer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Layer.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Layer other)
public Layer.Builder mergeFrom(Layer other)
Parameter
Name | Description |
other | Layer
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Layer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setArguments(String value)
public Layer.Builder setArguments(String value)
The recovered arguments to the Dockerfile directive.
string arguments = 2;
Parameter
Name | Description |
value | String
The arguments to set.
|
Returns
setArgumentsBytes(ByteString value)
public Layer.Builder setArgumentsBytes(ByteString value)
The recovered arguments to the Dockerfile directive.
string arguments = 2;
Parameter
Name | Description |
value | ByteString
The bytes for arguments to set.
|
Returns
setDirective(Layer.Directive value)
public Layer.Builder setDirective(Layer.Directive value)
Required. The recovered Dockerfile directive used to construct this layer.
.grafeas.v1beta1.image.Layer.Directive directive = 1;
Parameter
Returns
setDirectiveValue(int value)
public Layer.Builder setDirectiveValue(int value)
Required. The recovered Dockerfile directive used to construct this layer.
.grafeas.v1beta1.image.Layer.Directive directive = 1;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for directive to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Layer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Layer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Layer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides