public final class DockerImage extends GeneratedMessageV3 implements DockerImageOrBuilder
DockerImage represents a docker artifact.
The following fields are returned as untyped metadata in the Version
resource, using camelcase keys (i.e. metadata.imageSizeBytes):
- imageSizeBytes
- mediaType
- buildTime
Protobuf type google.devtools.artifactregistry.v1.DockerImage
Static Fields
public static final int BUILD_TIME_FIELD_NUMBER
Field Value
public static final int IMAGE_SIZE_BYTES_FIELD_NUMBER
Field Value
public static final int MEDIA_TYPE_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int TAGS_FIELD_NUMBER
Field Value
public static final int UPLOAD_TIME_FIELD_NUMBER
Field Value
public static final int URI_FIELD_NUMBER
Field Value
Static Methods
public static DockerImage getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static DockerImage.Builder newBuilder()
Returns
public static DockerImage.Builder newBuilder(DockerImage prototype)
Parameter
Returns
public static DockerImage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DockerImage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DockerImage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static DockerImage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DockerImage parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static DockerImage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DockerImage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DockerImage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DockerImage parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DockerImage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DockerImage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static DockerImage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<DockerImage> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getBuildTime()
The time this image was built.
This field is returned as the 'metadata.buildTime' field in the
Version resource.
The build time is returned to the client as an RFC 3339 string, which can
be easily used with the JavaScript Date constructor.
.google.protobuf.Timestamp build_time = 7;
Returns
public TimestampOrBuilder getBuildTimeOrBuilder()
The time this image was built.
This field is returned as the 'metadata.buildTime' field in the
Version resource.
The build time is returned to the client as an RFC 3339 string, which can
be easily used with the JavaScript Date constructor.
.google.protobuf.Timestamp build_time = 7;
Returns
public DockerImage getDefaultInstanceForType()
Returns
public long getImageSizeBytes()
Calculated size of the image.
This field is returned as the 'metadata.imageSizeBytes' field in the
Version resource.
int64 image_size_bytes = 4;
Returns
Type | Description |
long | The imageSizeBytes.
|
public String getMediaType()
Media type of this image, e.g.
"application/vnd.docker.distribution.manifest.v2+json".
This field is returned as the 'metadata.mediaType' field in the
Version resource.
string media_type = 6;
Returns
Type | Description |
String | The mediaType.
|
public ByteString getMediaTypeBytes()
Media type of this image, e.g.
"application/vnd.docker.distribution.manifest.v2+json".
This field is returned as the 'metadata.mediaType' field in the
Version resource.
string media_type = 6;
Returns
Required. registry_location, project_id, repository_name and image id forms a unique
image
name:projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
.
For example,
"projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
where "us-west4" is the registry_location, "test-project" is the
project_id, "test-repo" is the repository_name and
"nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf"
is the image's digest.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Required. registry_location, project_id, repository_name and image id forms a unique
image
name:projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>
.
For example,
"projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
where "us-west4" is the registry_location, "test-project" is the
project_id, "test-repo" is the repository_name and
"nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf"
is the image's digest.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public Parser<DockerImage> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public String getTags(int index)
Tags attached to this image.
repeated string tags = 3;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The tags at the given index.
|
public ByteString getTagsBytes(int index)
Tags attached to this image.
repeated string tags = 3;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the tags at the given index.
|
public int getTagsCount()
Tags attached to this image.
repeated string tags = 3;
Returns
Type | Description |
int | The count of tags.
|
public ProtocolStringList getTagsList()
Tags attached to this image.
repeated string tags = 3;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUploadTime()
Time the image was uploaded.
.google.protobuf.Timestamp upload_time = 5;
Returns
public TimestampOrBuilder getUploadTimeOrBuilder()
Time the image was uploaded.
.google.protobuf.Timestamp upload_time = 5;
Returns
Required. URL to access the image.
Example:
us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public ByteString getUriBytes()
Required. URL to access the image.
Example:
us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
public boolean hasBuildTime()
The time this image was built.
This field is returned as the 'metadata.buildTime' field in the
Version resource.
The build time is returned to the client as an RFC 3339 string, which can
be easily used with the JavaScript Date constructor.
.google.protobuf.Timestamp build_time = 7;
Returns
Type | Description |
boolean | Whether the buildTime field is set.
|
public boolean hasUploadTime()
Time the image was uploaded.
.google.protobuf.Timestamp upload_time = 5;
Returns
Type | Description |
boolean | Whether the uploadTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DockerImage.Builder newBuilderForType()
Returns
protected DockerImage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public DockerImage.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions