All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.containerregistry.v1.ImageOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/containerregistry/v1/image.proto

package yandex.cloud.api.containerregistry.v1;

public final class ImageOuterClass {
  private ImageOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ImageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.Image)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Output only. ID of the Docker image.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Output only. ID of the Docker image.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the Docker image.
     * The name is unique within the registry.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the Docker image.
     * The name is unique within the registry.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Content-addressable identifier of the Docker image.
     * 
* * string digest = 3; * @return The digest. */ java.lang.String getDigest(); /** *
     * Content-addressable identifier of the Docker image.
     * 
* * string digest = 3; * @return The bytes for digest. */ com.google.protobuf.ByteString getDigestBytes(); /** *
     * Compressed size of the Docker image, specified in bytes.
     * 
* * int64 compressed_size = 4; * @return The compressedSize. */ long getCompressedSize(); /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return The config. */ yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getConfig(); /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getConfigOrBuilder(); /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ java.util.List getLayersList(); /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getLayers(int index); /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ int getLayersCount(); /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ java.util.List getLayersOrBuilderList(); /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getLayersOrBuilder( int index); /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @return The count of tags. */ int getTagsCount(); /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); } /** *
   * An Image resource. For more information, see [Docker image](/docs/container-registry/concepts/docker-image).
   * 
* * Protobuf type {@code yandex.cloud.containerregistry.v1.Image} */ public static final class Image extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.Image) ImageOrBuilder { private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Image() { id_ = ""; name_ = ""; digest_ = ""; layers_ = java.util.Collections.emptyList(); tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); digest_ = s; break; } case 32: { compressedSize_ = input.readInt64(); break; } case 42: { yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { layers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } layers_.add( input.readMessage(yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.parser(), extensionRegistry)); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } tags_.add(s); break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { layers_ = java.util.Collections.unmodifiableList(layers_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { tags_ = tags_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.internal_static_yandex_cloud_containerregistry_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.internal_static_yandex_cloud_containerregistry_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.class, yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Output only. ID of the Docker image.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * Output only. ID of the Docker image.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the Docker image.
     * The name is unique within the registry.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the Docker image.
     * The name is unique within the registry.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIGEST_FIELD_NUMBER = 3; private volatile java.lang.Object digest_; /** *
     * Content-addressable identifier of the Docker image.
     * 
* * string digest = 3; * @return The digest. */ @java.lang.Override public java.lang.String getDigest() { java.lang.Object ref = digest_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); digest_ = s; return s; } } /** *
     * Content-addressable identifier of the Docker image.
     * 
* * string digest = 3; * @return The bytes for digest. */ @java.lang.Override public com.google.protobuf.ByteString getDigestBytes() { java.lang.Object ref = digest_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); digest_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPRESSED_SIZE_FIELD_NUMBER = 4; private long compressedSize_; /** *
     * Compressed size of the Docker image, specified in bytes.
     * 
* * int64 compressed_size = 4; * @return The compressedSize. */ @java.lang.Override public long getCompressedSize() { return compressedSize_; } public static final int CONFIG_FIELD_NUMBER = 5; private yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob config_; /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return The config. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getConfig() { return config_ == null ? yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.getDefaultInstance() : config_; } /** *
     * Configuration of the Docker image.
     * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int LAYERS_FIELD_NUMBER = 6; private java.util.List layers_; /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ @java.lang.Override public java.util.List getLayersList() { return layers_; } /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ @java.lang.Override public java.util.List getLayersOrBuilderList() { return layers_; } /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ @java.lang.Override public int getLayersCount() { return layers_.size(); } /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getLayers(int index) { return layers_.get(index); } /** *
     * Layers of the Docker image.
     * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getLayersOrBuilder( int index) { return layers_.get(index); } public static final int TAGS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList tags_; /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Tags of the Docker image.
     * Each tag is unique within the repository.
     * 
* * repeated string tags = 7; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int CREATED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createdAt_; /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, digest_); } if (compressedSize_ != 0L) { output.writeInt64(4, compressedSize_); } if (config_ != null) { output.writeMessage(5, getConfig()); } for (int i = 0; i < layers_.size(); i++) { output.writeMessage(6, layers_.get(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tags_.getRaw(i)); } if (createdAt_ != null) { output.writeMessage(8, getCreatedAt()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, digest_); } if (compressedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, compressedSize_); } if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getConfig()); } for (int i = 0; i < layers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, layers_.get(i)); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreatedAt()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image other = (yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDigest() .equals(other.getDigest())) return false; if (getCompressedSize() != other.getCompressedSize()) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (!getLayersList() .equals(other.getLayersList())) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DIGEST_FIELD_NUMBER; hash = (53 * hash) + getDigest().hashCode(); hash = (37 * hash) + COMPRESSED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompressedSize()); if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } if (getLayersCount() > 0) { hash = (37 * hash) + LAYERS_FIELD_NUMBER; hash = (53 * hash) + getLayersList().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * An Image resource. For more information, see [Docker image](/docs/container-registry/concepts/docker-image).
     * 
* * Protobuf type {@code yandex.cloud.containerregistry.v1.Image} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.Image) yandex.cloud.api.containerregistry.v1.ImageOuterClass.ImageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.internal_static_yandex_cloud_containerregistry_v1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.internal_static_yandex_cloud_containerregistry_v1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.class, yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLayersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; digest_ = ""; compressedSize_ = 0L; if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } if (layersBuilder_ == null) { layers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { layersBuilder_.clear(); } tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.internal_static_yandex_cloud_containerregistry_v1_Image_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image build() { yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image buildPartial() { yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image result = new yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.digest_ = digest_; result.compressedSize_ = compressedSize_; if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } if (layersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { layers_ = java.util.Collections.unmodifiableList(layers_); bitField0_ = (bitField0_ & ~0x00000001); } result.layers_ = layers_; } else { result.layers_ = layersBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.tags_ = tags_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image) { return mergeFrom((yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image other) { if (other == yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDigest().isEmpty()) { digest_ = other.digest_; onChanged(); } if (other.getCompressedSize() != 0L) { setCompressedSize(other.getCompressedSize()); } if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (layersBuilder_ == null) { if (!other.layers_.isEmpty()) { if (layers_.isEmpty()) { layers_ = other.layers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLayersIsMutable(); layers_.addAll(other.layers_); } onChanged(); } } else { if (!other.layers_.isEmpty()) { if (layersBuilder_.isEmpty()) { layersBuilder_.dispose(); layersBuilder_ = null; layers_ = other.layers_; bitField0_ = (bitField0_ & ~0x00000001); layersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLayersFieldBuilder() : null; } else { layersBuilder_.addAllMessages(other.layers_); } } } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Output only. ID of the Docker image.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Output only. ID of the Docker image.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Output only. ID of the Docker image.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * Output only. ID of the Docker image.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Output only. ID of the Docker image.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the Docker image.
       * The name is unique within the registry.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the Docker image.
       * The name is unique within the registry.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the Docker image.
       * The name is unique within the registry.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the Docker image.
       * The name is unique within the registry.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the Docker image.
       * The name is unique within the registry.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object digest_ = ""; /** *
       * Content-addressable identifier of the Docker image.
       * 
* * string digest = 3; * @return The digest. */ public java.lang.String getDigest() { java.lang.Object ref = digest_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); digest_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Content-addressable identifier of the Docker image.
       * 
* * string digest = 3; * @return The bytes for digest. */ public com.google.protobuf.ByteString getDigestBytes() { java.lang.Object ref = digest_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); digest_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Content-addressable identifier of the Docker image.
       * 
* * string digest = 3; * @param value The digest to set. * @return This builder for chaining. */ public Builder setDigest( java.lang.String value) { if (value == null) { throw new NullPointerException(); } digest_ = value; onChanged(); return this; } /** *
       * Content-addressable identifier of the Docker image.
       * 
* * string digest = 3; * @return This builder for chaining. */ public Builder clearDigest() { digest_ = getDefaultInstance().getDigest(); onChanged(); return this; } /** *
       * Content-addressable identifier of the Docker image.
       * 
* * string digest = 3; * @param value The bytes for digest to set. * @return This builder for chaining. */ public Builder setDigestBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); digest_ = value; onChanged(); return this; } private long compressedSize_ ; /** *
       * Compressed size of the Docker image, specified in bytes.
       * 
* * int64 compressed_size = 4; * @return The compressedSize. */ @java.lang.Override public long getCompressedSize() { return compressedSize_; } /** *
       * Compressed size of the Docker image, specified in bytes.
       * 
* * int64 compressed_size = 4; * @param value The compressedSize to set. * @return This builder for chaining. */ public Builder setCompressedSize(long value) { compressedSize_ = value; onChanged(); return this; } /** *
       * Compressed size of the Docker image, specified in bytes.
       * 
* * int64 compressed_size = 4; * @return This builder for chaining. */ public Builder clearCompressedSize() { compressedSize_ = 0L; onChanged(); return this; } private yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob config_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder> configBuilder_; /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; * @return The config. */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getConfig() { if (configBuilder_ == null) { return config_ == null ? yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public Builder setConfig(yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public Builder setConfig( yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public Builder mergeConfig(yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob value) { if (configBuilder_ == null) { if (config_ != null) { config_ = yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.getDefaultInstance() : config_; } } /** *
       * Configuration of the Docker image.
       * 
* * .yandex.cloud.containerregistry.v1.Blob config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private java.util.List layers_ = java.util.Collections.emptyList(); private void ensureLayersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { layers_ = new java.util.ArrayList(layers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder> layersBuilder_; /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public java.util.List getLayersList() { if (layersBuilder_ == null) { return java.util.Collections.unmodifiableList(layers_); } else { return layersBuilder_.getMessageList(); } } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public int getLayersCount() { if (layersBuilder_ == null) { return layers_.size(); } else { return layersBuilder_.getCount(); } } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob getLayers(int index) { if (layersBuilder_ == null) { return layers_.get(index); } else { return layersBuilder_.getMessage(index); } } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder setLayers( int index, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob value) { if (layersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayersIsMutable(); layers_.set(index, value); onChanged(); } else { layersBuilder_.setMessage(index, value); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder setLayers( int index, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder builderForValue) { if (layersBuilder_ == null) { ensureLayersIsMutable(); layers_.set(index, builderForValue.build()); onChanged(); } else { layersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder addLayers(yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob value) { if (layersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayersIsMutable(); layers_.add(value); onChanged(); } else { layersBuilder_.addMessage(value); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder addLayers( int index, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob value) { if (layersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayersIsMutable(); layers_.add(index, value); onChanged(); } else { layersBuilder_.addMessage(index, value); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder addLayers( yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder builderForValue) { if (layersBuilder_ == null) { ensureLayersIsMutable(); layers_.add(builderForValue.build()); onChanged(); } else { layersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder addLayers( int index, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder builderForValue) { if (layersBuilder_ == null) { ensureLayersIsMutable(); layers_.add(index, builderForValue.build()); onChanged(); } else { layersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder addAllLayers( java.lang.Iterable values) { if (layersBuilder_ == null) { ensureLayersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, layers_); onChanged(); } else { layersBuilder_.addAllMessages(values); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder clearLayers() { if (layersBuilder_ == null) { layers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { layersBuilder_.clear(); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public Builder removeLayers(int index) { if (layersBuilder_ == null) { ensureLayersIsMutable(); layers_.remove(index); onChanged(); } else { layersBuilder_.remove(index); } return this; } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder getLayersBuilder( int index) { return getLayersFieldBuilder().getBuilder(index); } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder getLayersOrBuilder( int index) { if (layersBuilder_ == null) { return layers_.get(index); } else { return layersBuilder_.getMessageOrBuilder(index); } } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public java.util.List getLayersOrBuilderList() { if (layersBuilder_ != null) { return layersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(layers_); } } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder addLayersBuilder() { return getLayersFieldBuilder().addBuilder( yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.getDefaultInstance()); } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder addLayersBuilder( int index) { return getLayersFieldBuilder().addBuilder( index, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.getDefaultInstance()); } /** *
       * Layers of the Docker image.
       * 
* * repeated .yandex.cloud.containerregistry.v1.Blob layers = 6; */ public java.util.List getLayersBuilderList() { return getLayersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder> getLayersFieldBuilder() { if (layersBuilder_ == null) { layersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob, yandex.cloud.api.containerregistry.v1.BlobOuterClass.Blob.Builder, yandex.cloud.api.containerregistry.v1.BlobOuterClass.BlobOrBuilder>( layers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); layers_ = null; } return layersBuilder_; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; } } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Tags of the Docker image.
       * Each tag is unique within the repository.
       * 
* * repeated string tags = 7; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Output only. Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.containerregistry.v1.Image) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.Image) private static final yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image(); } public static yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Image parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Image(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ImageOuterClass.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_Image_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_Image_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n-yandex/cloud/containerregistry/v1/imag" + "e.proto\022!yandex.cloud.containerregistry." + "v1\032,yandex/cloud/containerregistry/v1/bl" + "ob.proto\032\037google/protobuf/timestamp.prot" + "o\"\372\001\n\005Image\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n" + "\006digest\030\003 \001(\t\022\027\n\017compressed_size\030\004 \001(\003\0227" + "\n\006config\030\005 \001(\0132\'.yandex.cloud.containerr" + "egistry.v1.Blob\0227\n\006layers\030\006 \003(\0132\'.yandex" + ".cloud.containerregistry.v1.Blob\022\014\n\004tags" + "\030\007 \003(\t\022.\n\ncreated_at\030\010 \001(\0132\032.google.prot" + "obuf.TimestampB\200\001\n%yandex.cloud.api.cont" + "ainerregistry.v1ZWgithub.com/yandex-clou" + "d/go-genproto/yandex/cloud/containerregi" + "stry/v1;containerregistryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.containerregistry.v1.BlobOuterClass.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_containerregistry_v1_Image_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_containerregistry_v1_Image_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_Image_descriptor, new java.lang.String[] { "Id", "Name", "Digest", "CompressedSize", "Config", "Layers", "Tags", "CreatedAt", }); yandex.cloud.api.containerregistry.v1.BlobOuterClass.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy