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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int BUILD_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IMAGE_SIZE_BYTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MEDIA_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TAGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UPLOAD_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static DockerImage getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static DockerImage.Builder newBuilder()
public static DockerImage.Builder newBuilder(DockerImage prototype)
public static DockerImage parseDelimitedFrom(InputStream input)
public static DockerImage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DockerImage parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static DockerImage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DockerImage parseFrom(ByteString data)
public static DockerImage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DockerImage parseFrom(CodedInputStream input)
public static DockerImage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DockerImage parseFrom(InputStream input)
public static DockerImage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DockerImage parseFrom(ByteBuffer data)
public static DockerImage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<DockerImage> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Type | Description |
Timestamp | The buildTime.
|
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;
public DockerImage getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for mediaType.
|
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<DockerImage> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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;
public final UnknownFieldSet getUnknownFields()
Overrides
public Timestamp getUpdateTime()
Output only. The time when the docker image was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
Timestamp | The updateTime.
|
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the docker image was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp getUploadTime()
Time the image was uploaded.
.google.protobuf.Timestamp upload_time = 5;
Returns |
---|
Type | Description |
Timestamp | The uploadTime.
|
public TimestampOrBuilder getUploadTimeOrBuilder()
Time the image was uploaded.
.google.protobuf.Timestamp upload_time = 5;
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 |
---|
Type | Description |
String | The uri.
|
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 |
---|
Type | Description |
ByteString | The bytes for uri.
|
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 hasUpdateTime()
Output only. The time when the docker image was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | Whether the updateTime 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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public DockerImage.Builder newBuilderForType()
protected DockerImage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public DockerImage.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides