Class Basis.Builder (2.46.0)

public static final class Basis.Builder extends GeneratedMessageV3.Builder<Basis.Builder> implements BasisOrBuilder

Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM <Basis.resource_url> Or an equivalent reference, e.g. a tag of the resource_url.

Protobuf type grafeas.v1beta1.image.Basis

Implements

BasisOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Basis.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Basis.Builder
Overrides

build()

public Basis build()
Returns
Type Description
Basis

buildPartial()

public Basis buildPartial()
Returns
Type Description
Basis

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Basis.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Basis.Builder
Overrides

clearFingerprint()

public Basis.Builder clearFingerprint()

Required. Immutable. The fingerprint of the base image.

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

Returns
Type Description
Basis.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Basis.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Basis.Builder
Overrides

clearResourceUrl()

public Basis.Builder clearResourceUrl()

Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.

string resource_url = 1;

Returns
Type Description
Basis.Builder

This builder for chaining.

clone()

public Basis.Builder clone()
Returns
Type Description
Basis.Builder
Overrides

getDefaultInstanceForType()

public Basis getDefaultInstanceForType()
Returns
Type Description
Basis

getDescriptorForType()

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

getFingerprint()

public Fingerprint getFingerprint()

Required. Immutable. The fingerprint of the base image.

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

Returns
Type Description
Fingerprint

The fingerprint.

getFingerprintBuilder()

public Fingerprint.Builder getFingerprintBuilder()

Required. Immutable. The fingerprint of the base image.

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

Returns
Type Description
Fingerprint.Builder

getFingerprintOrBuilder()

public FingerprintOrBuilder getFingerprintOrBuilder()

Required. Immutable. The fingerprint of the base image.

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

Returns
Type Description
FingerprintOrBuilder

getResourceUrl()

public String getResourceUrl()

Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.

string resource_url = 1;

Returns
Type Description
String

The resourceUrl.

getResourceUrlBytes()

public ByteString getResourceUrlBytes()

Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.

string resource_url = 1;

Returns
Type Description
ByteString

The bytes for resourceUrl.

hasFingerprint()

public boolean hasFingerprint()

Required. Immutable. The fingerprint of the base image.

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

Returns
Type Description
boolean

Whether the fingerprint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFingerprint(Fingerprint value)

public Basis.Builder mergeFingerprint(Fingerprint value)

Required. Immutable. The fingerprint of the base image.

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

Parameter
Name Description
value Fingerprint
Returns
Type Description
Basis.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Basis other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Basis.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Basis.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Basis.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Basis.Builder
Overrides

setFingerprint(Fingerprint value)

public Basis.Builder setFingerprint(Fingerprint value)

Required. Immutable. The fingerprint of the base image.

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

Parameter
Name Description
value Fingerprint
Returns
Type Description
Basis.Builder

setFingerprint(Fingerprint.Builder builderForValue)

public Basis.Builder setFingerprint(Fingerprint.Builder builderForValue)

Required. Immutable. The fingerprint of the base image.

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

Parameter
Name Description
builderForValue Fingerprint.Builder
Returns
Type Description
Basis.Builder

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

public Basis.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Basis.Builder
Overrides

setResourceUrl(String value)

public Basis.Builder setResourceUrl(String value)

Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.

string resource_url = 1;

Parameter
Name Description
value String

The resourceUrl to set.

Returns
Type Description
Basis.Builder

This builder for chaining.

setResourceUrlBytes(ByteString value)

public Basis.Builder setResourceUrlBytes(ByteString value)

Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.

string resource_url = 1;

Parameter
Name Description
value ByteString

The bytes for resourceUrl to set.

Returns
Type Description
Basis.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Basis.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Basis.Builder
Overrides