Interface DockerImageOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    DockerImage, DockerImage.Builder

    public interface DockerImageOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.protobuf.Timestamp getBuildTime()
      The time this image was built.
      com.google.protobuf.TimestampOrBuilder getBuildTimeOrBuilder()
      The time this image was built.
      long getImageSizeBytes()
      Calculated size of the image.
      String getMediaType()
      Media type of this image, e.g.
      com.google.protobuf.ByteString getMediaTypeBytes()
      Media type of this image, e.g.
      String getName()
      Required.
      com.google.protobuf.ByteString getNameBytes()
      Required.
      String getTags​(int index)
      Tags attached to this image.
      com.google.protobuf.ByteString getTagsBytes​(int index)
      Tags attached to this image.
      int getTagsCount()
      Tags attached to this image.
      List<String> getTagsList()
      Tags attached to this image.
      com.google.protobuf.Timestamp getUpdateTime()
      Output only.
      com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
      Output only.
      com.google.protobuf.Timestamp getUploadTime()
      Time the image was uploaded.
      com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder()
      Time the image was uploaded.
      String getUri()
      Required.
      com.google.protobuf.ByteString getUriBytes()
      Required.
      boolean hasBuildTime()
      The time this image was built.
      boolean hasUpdateTime()
      Output only.
      boolean hasUploadTime()
      Time the image was uploaded.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        String getName()
         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:
        The name.
      • getNameBytes

        com.google.protobuf.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:
        The bytes for name.
      • getUri

        String getUri()
         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:
        The uri.
      • getUriBytes

        com.google.protobuf.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:
        The bytes for uri.
      • getTagsList

        List<String> getTagsList()
         Tags attached to this image.
         
        repeated string tags = 3;
        Returns:
        A list containing the tags.
      • getTagsCount

        int getTagsCount()
         Tags attached to this image.
         
        repeated string tags = 3;
        Returns:
        The count of tags.
      • getTags

        String getTags​(int index)
         Tags attached to this image.
         
        repeated string tags = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The tags at the given index.
      • getTagsBytes

        com.google.protobuf.ByteString getTagsBytes​(int index)
         Tags attached to this image.
         
        repeated string tags = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tags at the given index.
      • getImageSizeBytes

        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:
        The imageSizeBytes.
      • hasUploadTime

        boolean hasUploadTime()
         Time the image was uploaded.
         
        .google.protobuf.Timestamp upload_time = 5;
        Returns:
        Whether the uploadTime field is set.
      • getUploadTime

        com.google.protobuf.Timestamp getUploadTime()
         Time the image was uploaded.
         
        .google.protobuf.Timestamp upload_time = 5;
        Returns:
        The uploadTime.
      • getUploadTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder()
         Time the image was uploaded.
         
        .google.protobuf.Timestamp upload_time = 5;
      • getMediaType

        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:
        The mediaType.
      • getMediaTypeBytes

        com.google.protobuf.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:
        The bytes for mediaType.
      • hasBuildTime

        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:
        Whether the buildTime field is set.
      • getBuildTime

        com.google.protobuf.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:
        The buildTime.
      • getBuildTimeOrBuilder

        com.google.protobuf.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;
      • hasUpdateTime

        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:
        Whether the updateTime field is set.
      • getUpdateTime

        com.google.protobuf.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:
        The updateTime.
      • getUpdateTimeOrBuilder

        com.google.protobuf.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];