yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/containerregistry/v1/lifecycle_policy.proto
package yandex.cloud.api.containerregistry.v1;
public final class LifecyclePolicyOuterClass {
  private LifecyclePolicyOuterClass() {}
  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 LifecyclePolicyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.LifecyclePolicy)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * ID of the lifecycle policy.
     * 
     *
     * string id = 1;
     * @return The id.
     */
    java.lang.String getId();
    /**
     * 
     * ID of the lifecycle policy.
     * 
     *
     * string id = 1;
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();
    /**
     * 
     * Name of the lifecycle policy.
     * 
     *
     * string name = 2;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * 
     * Name of the lifecycle policy.
     * 
     *
     * string name = 2;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
    /**
     * 
     * ID of the repository that the lifecycle policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
     *
     * string repository_id = 3;
     * @return The repositoryId.
     */
    java.lang.String getRepositoryId();
    /**
     * 
     * ID of the repository that the lifecycle policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
     *
     * string repository_id = 3;
     * @return The bytes for repositoryId.
     */
    com.google.protobuf.ByteString
        getRepositoryIdBytes();
    /**
     * 
     * Description of the lifecycle policy.
     * The maximum string length in characters is 256.
     * 
     *
     * string description = 4;
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     * 
     * Description of the lifecycle policy.
     * The maximum string length in characters is 256.
     * 
     *
     * string description = 4;
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString
        getDescriptionBytes();
    /**
     * 
     * Status of lifecycle policy.
     * 
     *
     * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
     * @return The enum numeric value on the wire for status.
     */
    int getStatusValue();
    /**
     * 
     * Status of lifecycle policy.
     * 
     *
     * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
     * @return The status.
     */
    yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status getStatus();
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     * @return Whether the createdAt field is set.
     */
    boolean hasCreatedAt();
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     * @return The createdAt.
     */
    com.google.protobuf.Timestamp getCreatedAt();
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     */
    com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    java.util.List 
        getRulesList();
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule getRules(int index);
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    int getRulesCount();
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    java.util.List extends yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder> 
        getRulesOrBuilderList();
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder getRulesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code yandex.cloud.containerregistry.v1.LifecyclePolicy}
   */
  public static final class LifecyclePolicy extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.LifecyclePolicy)
      LifecyclePolicyOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use LifecyclePolicy.newBuilder() to construct.
    private LifecyclePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private LifecyclePolicy() {
      id_ = "";
      name_ = "";
      repositoryId_ = "";
      description_ = "";
      status_ = 0;
      rules_ = java.util.Collections.emptyList();
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new LifecyclePolicy();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private LifecyclePolicy(
        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();
              repositoryId_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();
              description_ = s;
              break;
            }
            case 40: {
              int rawValue = input.readEnum();
              status_ = rawValue;
              break;
            }
            case 50: {
              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;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                rules_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              rules_.add(
                  input.readMessage(yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.parser(), extensionRegistry));
              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)) {
          rules_ = java.util.Collections.unmodifiableList(rules_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.class, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Builder.class);
    }
    /**
     * Protobuf enum {@code yandex.cloud.containerregistry.v1.LifecyclePolicy.Status}
     */
    public enum Status
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * STATUS_UNSPECIFIED = 0;
       */
      STATUS_UNSPECIFIED(0),
      /**
       * 
       * Policy is active and regularly deletes Docker images according to the established rules.
       * 
       *
       * ACTIVE = 1;
       */
      ACTIVE(1),
      /**
       * 
       * Policy is disabled and does not delete Docker images in the repository.
       * Policies in this status can be used for preparing and testing rules.
       * 
       *
       * DISABLED = 2;
       */
      DISABLED(2),
      UNRECOGNIZED(-1),
      ;
      /**
       * STATUS_UNSPECIFIED = 0;
       */
      public static final int STATUS_UNSPECIFIED_VALUE = 0;
      /**
       * 
       * Policy is active and regularly deletes Docker images according to the established rules.
       * 
       *
       * ACTIVE = 1;
       */
      public static final int ACTIVE_VALUE = 1;
      /**
       * 
       * Policy is disabled and does not delete Docker images in the repository.
       * Policies in this status can be used for preparing and testing rules.
       * 
       *
       * DISABLED = 2;
       */
      public static final int DISABLED_VALUE = 2;
      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }
      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Status valueOf(int value) {
        return forNumber(value);
      }
      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Status forNumber(int value) {
        switch (value) {
          case 0: return STATUS_UNSPECIFIED;
          case 1: return ACTIVE;
          case 2: return DISABLED;
          default: return null;
        }
      }
      public static com.google.protobuf.Internal.EnumLiteMap
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Status> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap() {
              public Status findValueByNumber(int number) {
                return Status.forNumber(number);
              }
            };
      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.getDescriptor().getEnumTypes().get(0);
      }
      private static final Status[] VALUES = values();
      public static Status valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }
      private final int value;
      private Status(int value) {
        this.value = value;
      }
      // @@protoc_insertion_point(enum_scope:yandex.cloud.containerregistry.v1.LifecyclePolicy.Status)
    }
    public static final int ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object id_;
    /**
     * 
     * ID of the lifecycle policy.
     * 
     *
     * 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;
      }
    }
    /**
     * 
     * ID of the lifecycle policy.
     * 
     *
     * 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 lifecycle policy.
     * 
     *
     * 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 lifecycle policy.
     * 
     *
     * 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 REPOSITORY_ID_FIELD_NUMBER = 3;
    private volatile java.lang.Object repositoryId_;
    /**
     * 
     * ID of the repository that the lifecycle policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
     *
     * string repository_id = 3;
     * @return The repositoryId.
     */
    @java.lang.Override
    public java.lang.String getRepositoryId() {
      java.lang.Object ref = repositoryId_;
      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();
        repositoryId_ = s;
        return s;
      }
    }
    /**
     * 
     * ID of the repository that the lifecycle policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
     *
     * string repository_id = 3;
     * @return The bytes for repositoryId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getRepositoryIdBytes() {
      java.lang.Object ref = repositoryId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        repositoryId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int DESCRIPTION_FIELD_NUMBER = 4;
    private volatile java.lang.Object description_;
    /**
     * 
     * Description of the lifecycle policy.
     * The maximum string length in characters is 256.
     * 
     *
     * string description = 4;
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      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();
        description_ = s;
        return s;
      }
    }
    /**
     * 
     * Description of the lifecycle policy.
     * The maximum string length in characters is 256.
     * 
     *
     * string description = 4;
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int STATUS_FIELD_NUMBER = 5;
    private int status_;
    /**
     * 
     * Status of lifecycle policy.
     * 
     *
     * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
     * @return The enum numeric value on the wire for status.
     */
    @java.lang.Override public int getStatusValue() {
      return status_;
    }
    /**
     * 
     * Status of lifecycle policy.
     * 
     *
     * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
     * @return The status.
     */
    @java.lang.Override public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status getStatus() {
      @SuppressWarnings("deprecation")
      yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status result = yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.valueOf(status_);
      return result == null ? yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.UNRECOGNIZED : result;
    }
    public static final int CREATED_AT_FIELD_NUMBER = 6;
    private com.google.protobuf.Timestamp createdAt_;
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     * @return Whether the createdAt field is set.
     */
    @java.lang.Override
    public boolean hasCreatedAt() {
      return createdAt_ != null;
    }
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     * @return The createdAt.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getCreatedAt() {
      return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
    }
    /**
     * 
     * Creation timestamp.
     * 
     *
     * .google.protobuf.Timestamp created_at = 6;
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
      return getCreatedAt();
    }
    public static final int RULES_FIELD_NUMBER = 7;
    private java.util.List rules_;
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    @java.lang.Override
    public java.util.List getRulesList() {
      return rules_;
    }
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    @java.lang.Override
    public java.util.List extends yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder> 
        getRulesOrBuilderList() {
      return rules_;
    }
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    @java.lang.Override
    public int getRulesCount() {
      return rules_.size();
    }
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    @java.lang.Override
    public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule getRules(int index) {
      return rules_.get(index);
    }
    /**
     * 
     * The rules of lifecycle policy.
     * 
     *
     * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
     */
    @java.lang.Override
    public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder getRulesOrBuilder(
        int index) {
      return rules_.get(index);
    }
    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(repositoryId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, repositoryId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
      }
      if (status_ != yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.STATUS_UNSPECIFIED.getNumber()) {
        output.writeEnum(5, status_);
      }
      if (createdAt_ != null) {
        output.writeMessage(6, getCreatedAt());
      }
      for (int i = 0; i < rules_.size(); i++) {
        output.writeMessage(7, rules_.get(i));
      }
      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(repositoryId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, repositoryId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
      }
      if (status_ != yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.STATUS_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, status_);
      }
      if (createdAt_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, getCreatedAt());
      }
      for (int i = 0; i < rules_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, rules_.get(i));
      }
      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.LifecyclePolicyOuterClass.LifecyclePolicy)) {
        return super.equals(obj);
      }
      yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy other = (yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy) obj;
      if (!getId()
          .equals(other.getId())) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (!getRepositoryId()
          .equals(other.getRepositoryId())) return false;
      if (!getDescription()
          .equals(other.getDescription())) return false;
      if (status_ != other.status_) return false;
      if (hasCreatedAt() != other.hasCreatedAt()) return false;
      if (hasCreatedAt()) {
        if (!getCreatedAt()
            .equals(other.getCreatedAt())) return false;
      }
      if (!getRulesList()
          .equals(other.getRulesList())) 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) + REPOSITORY_ID_FIELD_NUMBER;
      hash = (53 * hash) + getRepositoryId().hashCode();
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      hash = (37 * hash) + STATUS_FIELD_NUMBER;
      hash = (53 * hash) + status_;
      if (hasCreatedAt()) {
        hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
        hash = (53 * hash) + getCreatedAt().hashCode();
      }
      if (getRulesCount() > 0) {
        hash = (37 * hash) + RULES_FIELD_NUMBER;
        hash = (53 * hash) + getRulesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy 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.LifecyclePolicyOuterClass.LifecyclePolicy 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;
    }
    /**
     * Protobuf type {@code yandex.cloud.containerregistry.v1.LifecyclePolicy}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.LifecyclePolicy)
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.class, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Builder.class);
      }
      // Construct using yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getRulesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = "";
        name_ = "";
        repositoryId_ = "";
        description_ = "";
        status_ = 0;
        if (createdAtBuilder_ == null) {
          createdAt_ = null;
        } else {
          createdAt_ = null;
          createdAtBuilder_ = null;
        }
        if (rulesBuilder_ == null) {
          rules_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          rulesBuilder_.clear();
        }
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy getDefaultInstanceForType() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy build() {
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy buildPartial() {
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy result = new yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy(this);
        int from_bitField0_ = bitField0_;
        result.id_ = id_;
        result.name_ = name_;
        result.repositoryId_ = repositoryId_;
        result.description_ = description_;
        result.status_ = status_;
        if (createdAtBuilder_ == null) {
          result.createdAt_ = createdAt_;
        } else {
          result.createdAt_ = createdAtBuilder_.build();
        }
        if (rulesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            rules_ = java.util.Collections.unmodifiableList(rules_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.rules_ = rules_;
        } else {
          result.rules_ = rulesBuilder_.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.LifecyclePolicyOuterClass.LifecyclePolicy) {
          return mergeFrom((yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy other) {
        if (other == yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getRepositoryId().isEmpty()) {
          repositoryId_ = other.repositoryId_;
          onChanged();
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (other.status_ != 0) {
          setStatusValue(other.getStatusValue());
        }
        if (other.hasCreatedAt()) {
          mergeCreatedAt(other.getCreatedAt());
        }
        if (rulesBuilder_ == null) {
          if (!other.rules_.isEmpty()) {
            if (rules_.isEmpty()) {
              rules_ = other.rules_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRulesIsMutable();
              rules_.addAll(other.rules_);
            }
            onChanged();
          }
        } else {
          if (!other.rules_.isEmpty()) {
            if (rulesBuilder_.isEmpty()) {
              rulesBuilder_.dispose();
              rulesBuilder_ = null;
              rules_ = other.rules_;
              bitField0_ = (bitField0_ & ~0x00000001);
              rulesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getRulesFieldBuilder() : null;
            } else {
              rulesBuilder_.addAllMessages(other.rules_);
            }
          }
        }
        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.LifecyclePolicyOuterClass.LifecyclePolicy parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;
      private java.lang.Object id_ = "";
      /**
       * 
       * ID of the lifecycle policy.
       * 
       *
       * 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;
        }
      }
      /**
       * 
       * ID of the lifecycle policy.
       * 
       *
       * 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;
        }
      }
      /**
       * 
       * ID of the lifecycle policy.
       * 
       *
       * 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;
      }
      /**
       * 
       * ID of the lifecycle policy.
       * 
       *
       * string id = 1;
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the lifecycle policy.
       * 
       *
       * 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 lifecycle policy.
       * 
       *
       * 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 lifecycle policy.
       * 
       *
       * 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 lifecycle policy.
       * 
       *
       * 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 lifecycle policy.
       * 
       *
       * string name = 2;
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * 
       * Name of the lifecycle policy.
       * 
       *
       * 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 repositoryId_ = "";
      /**
       * 
       * ID of the repository that the lifecycle policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
       *
       * string repository_id = 3;
       * @return The repositoryId.
       */
      public java.lang.String getRepositoryId() {
        java.lang.Object ref = repositoryId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          repositoryId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * ID of the repository that the lifecycle policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
       *
       * string repository_id = 3;
       * @return The bytes for repositoryId.
       */
      public com.google.protobuf.ByteString
          getRepositoryIdBytes() {
        java.lang.Object ref = repositoryId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          repositoryId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * ID of the repository that the lifecycle policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
       *
       * string repository_id = 3;
       * @param value The repositoryId to set.
       * @return This builder for chaining.
       */
      public Builder setRepositoryId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        repositoryId_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the repository that the lifecycle policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
       *
       * string repository_id = 3;
       * @return This builder for chaining.
       */
      public Builder clearRepositoryId() {
        
        repositoryId_ = getDefaultInstance().getRepositoryId();
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the repository that the lifecycle policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
       *
       * string repository_id = 3;
       * @param value The bytes for repositoryId to set.
       * @return This builder for chaining.
       */
      public Builder setRepositoryIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        repositoryId_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object description_ = "";
      /**
       * 
       * Description of the lifecycle policy.
       * The maximum string length in characters is 256.
       * 
       *
       * string description = 4;
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Description of the lifecycle policy.
       * The maximum string length in characters is 256.
       * 
       *
       * string description = 4;
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString
          getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Description of the lifecycle policy.
       * The maximum string length in characters is 256.
       * 
       *
       * string description = 4;
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        description_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Description of the lifecycle policy.
       * The maximum string length in characters is 256.
       * 
       *
       * string description = 4;
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        
        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       * 
       * Description of the lifecycle policy.
       * The maximum string length in characters is 256.
       * 
       *
       * string description = 4;
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        description_ = value;
        onChanged();
        return this;
      }
      private int status_ = 0;
      /**
       * 
       * Status of lifecycle policy.
       * 
       *
       * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
       * @return The enum numeric value on the wire for status.
       */
      @java.lang.Override public int getStatusValue() {
        return status_;
      }
      /**
       * 
       * Status of lifecycle policy.
       * 
       *
       * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
       * @param value The enum numeric value on the wire for status to set.
       * @return This builder for chaining.
       */
      public Builder setStatusValue(int value) {
        
        status_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Status of lifecycle policy.
       * 
       *
       * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
       * @return The status.
       */
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status getStatus() {
        @SuppressWarnings("deprecation")
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status result = yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.valueOf(status_);
        return result == null ? yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status.UNRECOGNIZED : result;
      }
      /**
       * 
       * Status of lifecycle policy.
       * 
       *
       * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
       * @param value The status to set.
       * @return This builder for chaining.
       */
      public Builder setStatus(yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy.Status value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        status_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * 
       * Status of lifecycle policy.
       * 
       *
       * .yandex.cloud.containerregistry.v1.LifecyclePolicy.Status status = 5;
       * @return This builder for chaining.
       */
      public Builder clearStatus() {
        
        status_ = 0;
        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_;
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       * @return Whether the createdAt field is set.
       */
      public boolean hasCreatedAt() {
        return createdAtBuilder_ != null || createdAt_ != null;
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       * @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();
        }
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      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;
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      public Builder setCreatedAt(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (createdAtBuilder_ == null) {
          createdAt_ = builderForValue.build();
          onChanged();
        } else {
          createdAtBuilder_.setMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      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;
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      public Builder clearCreatedAt() {
        if (createdAtBuilder_ == null) {
          createdAt_ = null;
          onChanged();
        } else {
          createdAt_ = null;
          createdAtBuilder_ = null;
        }
        return this;
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
        
        onChanged();
        return getCreatedAtFieldBuilder().getBuilder();
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
        if (createdAtBuilder_ != null) {
          return createdAtBuilder_.getMessageOrBuilder();
        } else {
          return createdAt_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
        }
      }
      /**
       * 
       * Creation timestamp.
       * 
       *
       * .google.protobuf.Timestamp created_at = 6;
       */
      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_;
      }
      private java.util.List rules_ =
        java.util.Collections.emptyList();
      private void ensureRulesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          rules_ = new java.util.ArrayList(rules_);
          bitField0_ |= 0x00000001;
         }
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder> rulesBuilder_;
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public java.util.List getRulesList() {
        if (rulesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(rules_);
        } else {
          return rulesBuilder_.getMessageList();
        }
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public int getRulesCount() {
        if (rulesBuilder_ == null) {
          return rules_.size();
        } else {
          return rulesBuilder_.getCount();
        }
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule getRules(int index) {
        if (rulesBuilder_ == null) {
          return rules_.get(index);
        } else {
          return rulesBuilder_.getMessage(index);
        }
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder setRules(
          int index, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule value) {
        if (rulesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRulesIsMutable();
          rules_.set(index, value);
          onChanged();
        } else {
          rulesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder setRules(
          int index, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder builderForValue) {
        if (rulesBuilder_ == null) {
          ensureRulesIsMutable();
          rules_.set(index, builderForValue.build());
          onChanged();
        } else {
          rulesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder addRules(yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule value) {
        if (rulesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRulesIsMutable();
          rules_.add(value);
          onChanged();
        } else {
          rulesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder addRules(
          int index, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule value) {
        if (rulesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRulesIsMutable();
          rules_.add(index, value);
          onChanged();
        } else {
          rulesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder addRules(
          yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder builderForValue) {
        if (rulesBuilder_ == null) {
          ensureRulesIsMutable();
          rules_.add(builderForValue.build());
          onChanged();
        } else {
          rulesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder addRules(
          int index, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder builderForValue) {
        if (rulesBuilder_ == null) {
          ensureRulesIsMutable();
          rules_.add(index, builderForValue.build());
          onChanged();
        } else {
          rulesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder addAllRules(
          java.lang.Iterable extends yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule> values) {
        if (rulesBuilder_ == null) {
          ensureRulesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, rules_);
          onChanged();
        } else {
          rulesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder clearRules() {
        if (rulesBuilder_ == null) {
          rules_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          rulesBuilder_.clear();
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public Builder removeRules(int index) {
        if (rulesBuilder_ == null) {
          ensureRulesIsMutable();
          rules_.remove(index);
          onChanged();
        } else {
          rulesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder getRulesBuilder(
          int index) {
        return getRulesFieldBuilder().getBuilder(index);
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder getRulesOrBuilder(
          int index) {
        if (rulesBuilder_ == null) {
          return rules_.get(index);  } else {
          return rulesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public java.util.List extends yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder> 
           getRulesOrBuilderList() {
        if (rulesBuilder_ != null) {
          return rulesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(rules_);
        }
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder addRulesBuilder() {
        return getRulesFieldBuilder().addBuilder(
            yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.getDefaultInstance());
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder addRulesBuilder(
          int index) {
        return getRulesFieldBuilder().addBuilder(
            index, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.getDefaultInstance());
      }
      /**
       * 
       * The rules of lifecycle policy.
       * 
       *
       * repeated .yandex.cloud.containerregistry.v1.LifecycleRule rules = 7;
       */
      public java.util.List 
           getRulesBuilderList() {
        return getRulesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder> 
          getRulesFieldBuilder() {
        if (rulesBuilder_ == null) {
          rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder>(
                  rules_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          rules_ = null;
        }
        return rulesBuilder_;
      }
      @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.LifecyclePolicy)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.LifecyclePolicy)
    private static final yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy();
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecyclePolicy getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public LifecyclePolicy parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new LifecyclePolicy(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.LifecyclePolicyOuterClass.LifecyclePolicy getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  public interface LifecycleRuleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.LifecycleRule)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * Description of the lifecycle policy rule.
     * 
     *
     * string description = 1 [(.yandex.cloud.length) = "<=256"];
     * @return The description.
     */
    java.lang.String getDescription();
    /**
     * 
     * Description of the lifecycle policy rule.
     * 
     *
     * string description = 1 [(.yandex.cloud.length) = "<=256"];
     * @return The bytes for description.
     */
    com.google.protobuf.ByteString
        getDescriptionBytes();
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     * @return Whether the expirePeriod field is set.
     */
    boolean hasExpirePeriod();
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     * @return The expirePeriod.
     */
    com.google.protobuf.Duration getExpirePeriod();
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     */
    com.google.protobuf.DurationOrBuilder getExpirePeriodOrBuilder();
    /**
     * 
     * Tag for specifying a filter in the form of a regular expression.
     * 
     *
     * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
     * @return The tagRegexp.
     */
    java.lang.String getTagRegexp();
    /**
     * 
     * Tag for specifying a filter in the form of a regular expression.
     * 
     *
     * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
     * @return The bytes for tagRegexp.
     */
    com.google.protobuf.ByteString
        getTagRegexpBytes();
    /**
     * 
     * Tag for applying the rule to Docker images without tags.
     * 
     *
     * bool untagged = 4;
     * @return The untagged.
     */
    boolean getUntagged();
    /**
     * 
     * Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired.
     * 
     *
     * int64 retained_top = 5 [(.yandex.cloud.value) = ">=0"];
     * @return The retainedTop.
     */
    long getRetainedTop();
  }
  /**
   * Protobuf type {@code yandex.cloud.containerregistry.v1.LifecycleRule}
   */
  public static final class LifecycleRule extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.LifecycleRule)
      LifecycleRuleOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use LifecycleRule.newBuilder() to construct.
    private LifecycleRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private LifecycleRule() {
      description_ = "";
      tagRegexp_ = "";
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new LifecycleRule();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private LifecycleRule(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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();
              description_ = s;
              break;
            }
            case 18: {
              com.google.protobuf.Duration.Builder subBuilder = null;
              if (expirePeriod_ != null) {
                subBuilder = expirePeriod_.toBuilder();
              }
              expirePeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(expirePeriod_);
                expirePeriod_ = subBuilder.buildPartial();
              }
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              tagRegexp_ = s;
              break;
            }
            case 32: {
              untagged_ = input.readBool();
              break;
            }
            case 40: {
              retainedTop_ = input.readInt64();
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.class, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder.class);
    }
    public static final int DESCRIPTION_FIELD_NUMBER = 1;
    private volatile java.lang.Object description_;
    /**
     * 
     * Description of the lifecycle policy rule.
     * 
     *
     * string description = 1 [(.yandex.cloud.length) = "<=256"];
     * @return The description.
     */
    @java.lang.Override
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      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();
        description_ = s;
        return s;
      }
    }
    /**
     * 
     * Description of the lifecycle policy rule.
     * 
     *
     * string description = 1 [(.yandex.cloud.length) = "<=256"];
     * @return The bytes for description.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int EXPIRE_PERIOD_FIELD_NUMBER = 2;
    private com.google.protobuf.Duration expirePeriod_;
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     * @return Whether the expirePeriod field is set.
     */
    @java.lang.Override
    public boolean hasExpirePeriod() {
      return expirePeriod_ != null;
    }
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     * @return The expirePeriod.
     */
    @java.lang.Override
    public com.google.protobuf.Duration getExpirePeriod() {
      return expirePeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expirePeriod_;
    }
    /**
     * 
     * Period of time for automatic deletion.
     * Period must be a multiple of 24 hours.
     * 
     *
     * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
     */
    @java.lang.Override
    public com.google.protobuf.DurationOrBuilder getExpirePeriodOrBuilder() {
      return getExpirePeriod();
    }
    public static final int TAG_REGEXP_FIELD_NUMBER = 3;
    private volatile java.lang.Object tagRegexp_;
    /**
     * 
     * Tag for specifying a filter in the form of a regular expression.
     * 
     *
     * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
     * @return The tagRegexp.
     */
    @java.lang.Override
    public java.lang.String getTagRegexp() {
      java.lang.Object ref = tagRegexp_;
      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();
        tagRegexp_ = s;
        return s;
      }
    }
    /**
     * 
     * Tag for specifying a filter in the form of a regular expression.
     * 
     *
     * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
     * @return The bytes for tagRegexp.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTagRegexpBytes() {
      java.lang.Object ref = tagRegexp_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        tagRegexp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int UNTAGGED_FIELD_NUMBER = 4;
    private boolean untagged_;
    /**
     * 
     * Tag for applying the rule to Docker images without tags.
     * 
     *
     * bool untagged = 4;
     * @return The untagged.
     */
    @java.lang.Override
    public boolean getUntagged() {
      return untagged_;
    }
    public static final int RETAINED_TOP_FIELD_NUMBER = 5;
    private long retainedTop_;
    /**
     * 
     * Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired.
     * 
     *
     * int64 retained_top = 5 [(.yandex.cloud.value) = ">=0"];
     * @return The retainedTop.
     */
    @java.lang.Override
    public long getRetainedTop() {
      return retainedTop_;
    }
    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(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
      }
      if (expirePeriod_ != null) {
        output.writeMessage(2, getExpirePeriod());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagRegexp_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tagRegexp_);
      }
      if (untagged_ != false) {
        output.writeBool(4, untagged_);
      }
      if (retainedTop_ != 0L) {
        output.writeInt64(5, retainedTop_);
      }
      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(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_);
      }
      if (expirePeriod_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getExpirePeriod());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagRegexp_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tagRegexp_);
      }
      if (untagged_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, untagged_);
      }
      if (retainedTop_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, retainedTop_);
      }
      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.LifecyclePolicyOuterClass.LifecycleRule)) {
        return super.equals(obj);
      }
      yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule other = (yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule) obj;
      if (!getDescription()
          .equals(other.getDescription())) return false;
      if (hasExpirePeriod() != other.hasExpirePeriod()) return false;
      if (hasExpirePeriod()) {
        if (!getExpirePeriod()
            .equals(other.getExpirePeriod())) return false;
      }
      if (!getTagRegexp()
          .equals(other.getTagRegexp())) return false;
      if (getUntagged()
          != other.getUntagged()) return false;
      if (getRetainedTop()
          != other.getRetainedTop()) 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) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      if (hasExpirePeriod()) {
        hash = (37 * hash) + EXPIRE_PERIOD_FIELD_NUMBER;
        hash = (53 * hash) + getExpirePeriod().hashCode();
      }
      hash = (37 * hash) + TAG_REGEXP_FIELD_NUMBER;
      hash = (53 * hash) + getTagRegexp().hashCode();
      hash = (37 * hash) + UNTAGGED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getUntagged());
      hash = (37 * hash) + RETAINED_TOP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getRetainedTop());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule 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.LifecyclePolicyOuterClass.LifecycleRule 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;
    }
    /**
     * Protobuf type {@code yandex.cloud.containerregistry.v1.LifecycleRule}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.LifecycleRule)
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRuleOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.class, yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.Builder.class);
      }
      // Construct using yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        description_ = "";
        if (expirePeriodBuilder_ == null) {
          expirePeriod_ = null;
        } else {
          expirePeriod_ = null;
          expirePeriodBuilder_ = null;
        }
        tagRegexp_ = "";
        untagged_ = false;
        retainedTop_ = 0L;
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule getDefaultInstanceForType() {
        return yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule build() {
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule buildPartial() {
        yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule result = new yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule(this);
        result.description_ = description_;
        if (expirePeriodBuilder_ == null) {
          result.expirePeriod_ = expirePeriod_;
        } else {
          result.expirePeriod_ = expirePeriodBuilder_.build();
        }
        result.tagRegexp_ = tagRegexp_;
        result.untagged_ = untagged_;
        result.retainedTop_ = retainedTop_;
        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.LifecyclePolicyOuterClass.LifecycleRule) {
          return mergeFrom((yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule other) {
        if (other == yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule.getDefaultInstance()) return this;
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (other.hasExpirePeriod()) {
          mergeExpirePeriod(other.getExpirePeriod());
        }
        if (!other.getTagRegexp().isEmpty()) {
          tagRegexp_ = other.tagRegexp_;
          onChanged();
        }
        if (other.getUntagged() != false) {
          setUntagged(other.getUntagged());
        }
        if (other.getRetainedTop() != 0L) {
          setRetainedTop(other.getRetainedTop());
        }
        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.LifecyclePolicyOuterClass.LifecycleRule parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private java.lang.Object description_ = "";
      /**
       * 
       * Description of the lifecycle policy rule.
       * 
       *
       * string description = 1 [(.yandex.cloud.length) = "<=256"];
       * @return The description.
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Description of the lifecycle policy rule.
       * 
       *
       * string description = 1 [(.yandex.cloud.length) = "<=256"];
       * @return The bytes for description.
       */
      public com.google.protobuf.ByteString
          getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Description of the lifecycle policy rule.
       * 
       *
       * string description = 1 [(.yandex.cloud.length) = "<=256"];
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        description_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Description of the lifecycle policy rule.
       * 
       *
       * string description = 1 [(.yandex.cloud.length) = "<=256"];
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        
        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       * 
       * Description of the lifecycle policy rule.
       * 
       *
       * string description = 1 [(.yandex.cloud.length) = "<=256"];
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        description_ = value;
        onChanged();
        return this;
      }
      private com.google.protobuf.Duration expirePeriod_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expirePeriodBuilder_;
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       * @return Whether the expirePeriod field is set.
       */
      public boolean hasExpirePeriod() {
        return expirePeriodBuilder_ != null || expirePeriod_ != null;
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       * @return The expirePeriod.
       */
      public com.google.protobuf.Duration getExpirePeriod() {
        if (expirePeriodBuilder_ == null) {
          return expirePeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expirePeriod_;
        } else {
          return expirePeriodBuilder_.getMessage();
        }
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public Builder setExpirePeriod(com.google.protobuf.Duration value) {
        if (expirePeriodBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          expirePeriod_ = value;
          onChanged();
        } else {
          expirePeriodBuilder_.setMessage(value);
        }
        return this;
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public Builder setExpirePeriod(
          com.google.protobuf.Duration.Builder builderForValue) {
        if (expirePeriodBuilder_ == null) {
          expirePeriod_ = builderForValue.build();
          onChanged();
        } else {
          expirePeriodBuilder_.setMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public Builder mergeExpirePeriod(com.google.protobuf.Duration value) {
        if (expirePeriodBuilder_ == null) {
          if (expirePeriod_ != null) {
            expirePeriod_ =
              com.google.protobuf.Duration.newBuilder(expirePeriod_).mergeFrom(value).buildPartial();
          } else {
            expirePeriod_ = value;
          }
          onChanged();
        } else {
          expirePeriodBuilder_.mergeFrom(value);
        }
        return this;
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public Builder clearExpirePeriod() {
        if (expirePeriodBuilder_ == null) {
          expirePeriod_ = null;
          onChanged();
        } else {
          expirePeriod_ = null;
          expirePeriodBuilder_ = null;
        }
        return this;
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public com.google.protobuf.Duration.Builder getExpirePeriodBuilder() {
        
        onChanged();
        return getExpirePeriodFieldBuilder().getBuilder();
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      public com.google.protobuf.DurationOrBuilder getExpirePeriodOrBuilder() {
        if (expirePeriodBuilder_ != null) {
          return expirePeriodBuilder_.getMessageOrBuilder();
        } else {
          return expirePeriod_ == null ?
              com.google.protobuf.Duration.getDefaultInstance() : expirePeriod_;
        }
      }
      /**
       * 
       * Period of time for automatic deletion.
       * Period must be a multiple of 24 hours.
       * 
       *
       * .google.protobuf.Duration expire_period = 2 [(.yandex.cloud.value) = ">=24h"];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
          getExpirePeriodFieldBuilder() {
        if (expirePeriodBuilder_ == null) {
          expirePeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
                  getExpirePeriod(),
                  getParentForChildren(),
                  isClean());
          expirePeriod_ = null;
        }
        return expirePeriodBuilder_;
      }
      private java.lang.Object tagRegexp_ = "";
      /**
       * 
       * Tag for specifying a filter in the form of a regular expression.
       * 
       *
       * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
       * @return The tagRegexp.
       */
      public java.lang.String getTagRegexp() {
        java.lang.Object ref = tagRegexp_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          tagRegexp_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Tag for specifying a filter in the form of a regular expression.
       * 
       *
       * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
       * @return The bytes for tagRegexp.
       */
      public com.google.protobuf.ByteString
          getTagRegexpBytes() {
        java.lang.Object ref = tagRegexp_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          tagRegexp_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Tag for specifying a filter in the form of a regular expression.
       * 
       *
       * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
       * @param value The tagRegexp to set.
       * @return This builder for chaining.
       */
      public Builder setTagRegexp(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        tagRegexp_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Tag for specifying a filter in the form of a regular expression.
       * 
       *
       * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
       * @return This builder for chaining.
       */
      public Builder clearTagRegexp() {
        
        tagRegexp_ = getDefaultInstance().getTagRegexp();
        onChanged();
        return this;
      }
      /**
       * 
       * Tag for specifying a filter in the form of a regular expression.
       * 
       *
       * string tag_regexp = 3 [(.yandex.cloud.length) = "<=256"];
       * @param value The bytes for tagRegexp to set.
       * @return This builder for chaining.
       */
      public Builder setTagRegexpBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        tagRegexp_ = value;
        onChanged();
        return this;
      }
      private boolean untagged_ ;
      /**
       * 
       * Tag for applying the rule to Docker images without tags.
       * 
       *
       * bool untagged = 4;
       * @return The untagged.
       */
      @java.lang.Override
      public boolean getUntagged() {
        return untagged_;
      }
      /**
       * 
       * Tag for applying the rule to Docker images without tags.
       * 
       *
       * bool untagged = 4;
       * @param value The untagged to set.
       * @return This builder for chaining.
       */
      public Builder setUntagged(boolean value) {
        
        untagged_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Tag for applying the rule to Docker images without tags.
       * 
       *
       * bool untagged = 4;
       * @return This builder for chaining.
       */
      public Builder clearUntagged() {
        
        untagged_ = false;
        onChanged();
        return this;
      }
      private long retainedTop_ ;
      /**
       * 
       * Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired.
       * 
       *
       * int64 retained_top = 5 [(.yandex.cloud.value) = ">=0"];
       * @return The retainedTop.
       */
      @java.lang.Override
      public long getRetainedTop() {
        return retainedTop_;
      }
      /**
       * 
       * Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired.
       * 
       *
       * int64 retained_top = 5 [(.yandex.cloud.value) = ">=0"];
       * @param value The retainedTop to set.
       * @return This builder for chaining.
       */
      public Builder setRetainedTop(long value) {
        
        retainedTop_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired.
       * 
       *
       * int64 retained_top = 5 [(.yandex.cloud.value) = ">=0"];
       * @return This builder for chaining.
       */
      public Builder clearRetainedTop() {
        
        retainedTop_ = 0L;
        onChanged();
        return this;
      }
      @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.LifecycleRule)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.LifecycleRule)
    private static final yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule();
    }
    public static yandex.cloud.api.containerregistry.v1.LifecyclePolicyOuterClass.LifecycleRule getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public LifecycleRule parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new LifecycleRule(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.LifecyclePolicyOuterClass.LifecycleRule getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_fieldAccessorTable;
  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n8yandex/cloud/containerregistry/v1/life" +
      "cycle_policy.proto\022!yandex.cloud.contain" +
      "erregistry.v1\032\035yandex/cloud/validation.p" +
      "roto\032\036google/protobuf/duration.proto\032\037go" +
      "ogle/protobuf/timestamp.proto\"\317\002\n\017Lifecy" +
      "clePolicy\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\025\n\rr" +
      "epository_id\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022" +
      "I\n\006status\030\005 \001(\01629.yandex.cloud.container" +
      "registry.v1.LifecyclePolicy.Status\022.\n\ncr" +
      "eated_at\030\006 \001(\0132\032.google.protobuf.Timesta" +
      "mp\022?\n\005rules\030\007 \003(\01320.yandex.cloud.contain" +
      "erregistry.v1.LifecycleRule\":\n\006Status\022\026\n" +
      "\022STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010DIS" +
      "ABLED\020\002\"\274\001\n\rLifecycleRule\022\036\n\013description" +
      "\030\001 \001(\tB\t\212\3101\005<=256\022;\n\rexpire_period\030\002 \001(\013" +
      "2\031.google.protobuf.DurationB\t\372\3071\005>=24h\022\035" +
      "\n\ntag_regexp\030\003 \001(\tB\t\212\3101\005<=256\022\020\n\010untagge" +
      "d\030\004 \001(\010\022\035\n\014retained_top\030\005 \001(\003B\007\372\3071\003>=0B\200" +
      "\001\n%yandex.cloud.api.containerregistry.v1" +
      "ZWgithub.com/yandex-cloud/go-genproto/ya" +
      "ndex/cloud/containerregistry/v1;containe" +
      "rregistryb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          yandex.cloud.api.Validation.getDescriptor(),
          com.google.protobuf.DurationProto.getDescriptor(),
          com.google.protobuf.TimestampProto.getDescriptor(),
        });
    internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_yandex_cloud_containerregistry_v1_LifecyclePolicy_descriptor,
        new java.lang.String[] { "Id", "Name", "RepositoryId", "Description", "Status", "CreatedAt", "Rules", });
    internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_yandex_cloud_containerregistry_v1_LifecycleRule_descriptor,
        new java.lang.String[] { "Description", "ExpirePeriod", "TagRegexp", "Untagged", "RetainedTop", });
    com.google.protobuf.ExtensionRegistry registry =
        com.google.protobuf.ExtensionRegistry.newInstance();
    registry.add(yandex.cloud.api.Validation.length);
    registry.add(yandex.cloud.api.Validation.value);
    com.google.protobuf.Descriptors.FileDescriptor
        .internalUpdateFileDescriptor(descriptor, registry);
    yandex.cloud.api.Validation.getDescriptor();
    com.google.protobuf.DurationProto.getDescriptor();
    com.google.protobuf.TimestampProto.getDescriptor();
  }
  // @@protoc_insertion_point(outer_class_scope)
}
                        © 2015 - 2025 Weber Informatics LLC | Privacy Policy