Class ImageNote.Builder (2.43.0)

public static final class ImageNote.Builder extends GeneratedMessageV3.Builder<ImageNote.Builder> implements ImageNoteOrBuilder

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.v1.ImageNote

Implements

ImageNoteOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageNote build()
Returns
Type Description
ImageNote

buildPartial()

public ImageNote buildPartial()
Returns
Type Description
ImageNote

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public ImageNote.Builder clearFingerprint()

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

Returns
Type Description
ImageNote.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceUrl()

public ImageNote.Builder clearResourceUrl()

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

string resource_url = 1;

Returns
Type Description
ImageNote.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImageNote getDefaultInstanceForType()
Returns
Type Description
ImageNote

getDescriptorForType()

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

getFingerprint()

public Fingerprint getFingerprint()

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

Returns
Type Description
Fingerprint

The fingerprint.

getFingerprintBuilder()

public Fingerprint.Builder getFingerprintBuilder()

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

Returns
Type Description
Fingerprint.Builder

getFingerprintOrBuilder()

public FingerprintOrBuilder getFingerprintOrBuilder()

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.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.v1.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 ImageNote.Builder mergeFingerprint(Fingerprint value)

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

Parameter
Name Description
value Fingerprint
Returns
Type Description
ImageNote.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ImageNote other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(Fingerprint value)

public ImageNote.Builder setFingerprint(Fingerprint value)

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

Parameter
Name Description
value Fingerprint
Returns
Type Description
ImageNote.Builder

setFingerprint(Fingerprint.Builder builderForValue)

public ImageNote.Builder setFingerprint(Fingerprint.Builder builderForValue)

Required. Immutable. The fingerprint of the base image.

.grafeas.v1.Fingerprint fingerprint = 2;

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

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

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

setResourceUrl(String value)

public ImageNote.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
ImageNote.Builder

This builder for chaining.

setResourceUrlBytes(ByteString value)

public ImageNote.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
ImageNote.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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