Class Basis.Builder (2.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Basis build()
Returns
TypeDescription
Basis

buildPartial()

public Basis buildPartial()
Returns
TypeDescription
Basis

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public Basis.Builder clearFingerprint()

Required. Immutable. The fingerprint of the base image.

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

Returns
TypeDescription
Basis.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Basis.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Basis.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Basis getDefaultInstanceForType()
Returns
TypeDescription
Basis

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFingerprint()

public Fingerprint getFingerprint()

Required. Immutable. The fingerprint of the base image.

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

Returns
TypeDescription
Fingerprint

The fingerprint.

getFingerprintBuilder()

public Fingerprint.Builder getFingerprintBuilder()

Required. Immutable. The fingerprint of the base image.

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

Returns
TypeDescription
Fingerprint.Builder

getFingerprintOrBuilder()

public FingerprintOrBuilder getFingerprintOrBuilder()

Required. Immutable. The fingerprint of the base image.

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

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

The bytes for resourceUrl.

hasFingerprint()

public boolean hasFingerprint()

Required. Immutable. The fingerprint of the base image.

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

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 Basis.Builder mergeFingerprint(Fingerprint value)

Required. Immutable. The fingerprint of the base image.

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

Parameter
NameDescription
valueFingerprint
Returns
TypeDescription
Basis.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Basis other)

public Basis.Builder mergeFrom(Basis other)
Parameter
NameDescription
otherBasis
Returns
TypeDescription
Basis.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Basis.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFingerprint
Returns
TypeDescription
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
NameDescription
builderForValueFingerprint.Builder
Returns
TypeDescription
Basis.Builder

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

public Basis.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceUrl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceUrl to set.

Returns
TypeDescription
Basis.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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