Class Derived.Builder

public static final class Derived.Builder extends GeneratedMessageV3.Builder<Derived.Builder> implements DerivedOrBuilder

Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.

Protobuf type grafeas.v1beta1.image.Derived

Implements

DerivedOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLayerInfo(Iterable<? extends Layer> values)

public Derived.Builder addAllLayerInfo(Iterable<? extends Layer> values)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.image.Layer>
Returns
TypeDescription
Derived.Builder

addLayerInfo(int index, Layer value)

public Derived.Builder addLayerInfo(int index, Layer value)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameters
NameDescription
indexint
valueLayer
Returns
TypeDescription
Derived.Builder

addLayerInfo(int index, Layer.Builder builderForValue)

public Derived.Builder addLayerInfo(int index, Layer.Builder builderForValue)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameters
NameDescription
indexint
builderForValueLayer.Builder
Returns
TypeDescription
Derived.Builder

addLayerInfo(Layer value)

public Derived.Builder addLayerInfo(Layer value)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
valueLayer
Returns
TypeDescription
Derived.Builder

addLayerInfo(Layer.Builder builderForValue)

public Derived.Builder addLayerInfo(Layer.Builder builderForValue)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
builderForValueLayer.Builder
Returns
TypeDescription
Derived.Builder

addLayerInfoBuilder()

public Layer.Builder addLayerInfoBuilder()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
Layer.Builder

addLayerInfoBuilder(int index)

public Layer.Builder addLayerInfoBuilder(int index)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Layer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Derived build()
Returns
TypeDescription
Derived

buildPartial()

public Derived buildPartial()
Returns
TypeDescription
Derived

clear()

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

clearBaseResourceUrl()

public Derived.Builder clearBaseResourceUrl()

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
TypeDescription
Derived.Builder

This builder for chaining.

clearDistance()

public Derived.Builder clearDistance()

Output only. The number of layers by which this image differs from the associated image basis.

int32 distance = 2;

Returns
TypeDescription
Derived.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public Derived.Builder clearFingerprint()

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Returns
TypeDescription
Derived.Builder

clearLayerInfo()

public Derived.Builder clearLayerInfo()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
Derived.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBaseResourceUrl()

public String getBaseResourceUrl()

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
TypeDescription
String

The baseResourceUrl.

getBaseResourceUrlBytes()

public ByteString getBaseResourceUrlBytes()

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Returns
TypeDescription
ByteString

The bytes for baseResourceUrl.

getDefaultInstanceForType()

public Derived getDefaultInstanceForType()
Returns
TypeDescription
Derived

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistance()

public int getDistance()

Output only. The number of layers by which this image differs from the associated image basis.

int32 distance = 2;

Returns
TypeDescription
int

The distance.

getFingerprint()

public Fingerprint getFingerprint()

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Returns
TypeDescription
Fingerprint

The fingerprint.

getFingerprintBuilder()

public Fingerprint.Builder getFingerprintBuilder()

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Returns
TypeDescription
Fingerprint.Builder

getFingerprintOrBuilder()

public FingerprintOrBuilder getFingerprintOrBuilder()

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Returns
TypeDescription
FingerprintOrBuilder

getLayerInfo(int index)

public Layer getLayerInfo(int index)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Layer

getLayerInfoBuilder(int index)

public Layer.Builder getLayerInfoBuilder(int index)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Layer.Builder

getLayerInfoBuilderList()

public List<Layer.Builder> getLayerInfoBuilderList()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
List<Builder>

getLayerInfoCount()

public int getLayerInfoCount()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
int

getLayerInfoList()

public List<Layer> getLayerInfoList()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
List<Layer>

getLayerInfoOrBuilder(int index)

public LayerOrBuilder getLayerInfoOrBuilder(int index)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LayerOrBuilder

getLayerInfoOrBuilderList()

public List<? extends LayerOrBuilder> getLayerInfoOrBuilderList()

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.image.LayerOrBuilder>

hasFingerprint()

public boolean hasFingerprint()

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFingerprint(Fingerprint value)

public Derived.Builder mergeFingerprint(Fingerprint value)

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Parameter
NameDescription
valueFingerprint
Returns
TypeDescription
Derived.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Derived other)

public Derived.Builder mergeFrom(Derived other)
Parameter
NameDescription
otherDerived
Returns
TypeDescription
Derived.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLayerInfo(int index)

public Derived.Builder removeLayerInfo(int index)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Derived.Builder

setBaseResourceUrl(String value)

public Derived.Builder setBaseResourceUrl(String value)

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Parameter
NameDescription
valueString

The baseResourceUrl to set.

Returns
TypeDescription
Derived.Builder

This builder for chaining.

setBaseResourceUrlBytes(ByteString value)

public Derived.Builder setBaseResourceUrlBytes(ByteString value)

Output only. This contains the base image URL for the derived image occurrence.

string base_resource_url = 4;

Parameter
NameDescription
valueByteString

The bytes for baseResourceUrl to set.

Returns
TypeDescription
Derived.Builder

This builder for chaining.

setDistance(int value)

public Derived.Builder setDistance(int value)

Output only. The number of layers by which this image differs from the associated image basis.

int32 distance = 2;

Parameter
NameDescription
valueint

The distance to set.

Returns
TypeDescription
Derived.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(Fingerprint value)

public Derived.Builder setFingerprint(Fingerprint value)

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Parameter
NameDescription
valueFingerprint
Returns
TypeDescription
Derived.Builder

setFingerprint(Fingerprint.Builder builderForValue)

public Derived.Builder setFingerprint(Fingerprint.Builder builderForValue)

Required. The fingerprint of the derived image.

.grafeas.v1beta1.image.Fingerprint fingerprint = 1;

Parameter
NameDescription
builderForValueFingerprint.Builder
Returns
TypeDescription
Derived.Builder

setLayerInfo(int index, Layer value)

public Derived.Builder setLayerInfo(int index, Layer value)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameters
NameDescription
indexint
valueLayer
Returns
TypeDescription
Derived.Builder

setLayerInfo(int index, Layer.Builder builderForValue)

public Derived.Builder setLayerInfo(int index, Layer.Builder builderForValue)

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.

repeated .grafeas.v1beta1.image.Layer layer_info = 3;

Parameters
NameDescription
indexint
builderForValueLayer.Builder
Returns
TypeDescription
Derived.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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