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

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

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

package yandex.cloud.api.containerregistry.v1;

public final class ScanPolicyOuterClass {
  private ScanPolicyOuterClass() {}
  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 ScanPolicyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.ScanPolicy)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Output only. ID of the scan policy.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Output only. ID of the scan policy.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the registry that the scan policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
* * string registry_id = 2; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry that the scan policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
* * string registry_id = 2; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * Name of the scan policy.
     * 
* * string name = 3; * @return The name. */ java.lang.String getName(); /** *
     * Name of the scan policy.
     * 
* * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the scan policy.
     * The maximum string length in characters is 256.
     * 
* * string description = 4; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the scan policy.
     * The maximum string length in characters is 256.
     * 
* * string description = 4; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return Whether the rules field is set. */ boolean hasRules(); /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return The rules. */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules getRules(); /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder getRulesOrBuilder(); /** *
     * Output only. Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Output only. Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Output only. Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 6; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Turns off scan policy.
     * 
* * bool disabled = 7; * @return The disabled. */ boolean getDisabled(); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.ScanPolicy} */ public static final class ScanPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.ScanPolicy) ScanPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use ScanPolicy.newBuilder() to construct. private ScanPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanPolicy() { id_ = ""; registryId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScanPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanPolicy( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder subBuilder = null; if (rules_ != null) { subBuilder = rules_.toBuilder(); } rules_ = input.readMessage(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rules_); rules_ = subBuilder.buildPartial(); } 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 56: { disabled_ = input.readBool(); 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.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * Output only. ID of the scan 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; } } /** *
     * Output only. ID of the scan 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 REGISTRY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object registryId_; /** *
     * ID of the registry that the scan policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
* * string registry_id = 2; * @return The registryId. */ @java.lang.Override public java.lang.String getRegistryId() { java.lang.Object ref = registryId_; 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(); registryId_ = s; return s; } } /** *
     * ID of the registry that the scan policy belongs to.
     * Required. The maximum string length in characters is 50.
     * 
* * string registry_id = 2; * @return The bytes for registryId. */ @java.lang.Override public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = registryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); registryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * Name of the scan policy.
     * 
* * string name = 3; * @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 scan policy.
     * 
* * string name = 3; * @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 DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     * Description of the scan 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 scan 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 RULES_FIELD_NUMBER = 5; private yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules rules_; /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return Whether the rules field is set. */ @java.lang.Override public boolean hasRules() { return rules_ != null; } /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return The rules. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules getRules() { return rules_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.getDefaultInstance() : rules_; } /** *
     * The rules of scan policy.
     * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder getRulesOrBuilder() { return getRules(); } public static final int CREATED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createdAt_; /** *
     * Output only. Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Output only. 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_; } /** *
     * Output only. Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int DISABLED_FIELD_NUMBER = 7; private boolean disabled_; /** *
     * Turns off scan policy.
     * 
* * bool disabled = 7; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } 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(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (rules_ != null) { output.writeMessage(5, getRules()); } if (createdAt_ != null) { output.writeMessage(6, getCreatedAt()); } if (disabled_ != false) { output.writeBool(7, disabled_); } 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(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (rules_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRules()); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreatedAt()); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, disabled_); } 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.ScanPolicyOuterClass.ScanPolicy)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy other = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy) obj; if (!getId() .equals(other.getId())) return false; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasRules() != other.hasRules()) return false; if (hasRules()) { if (!getRules() .equals(other.getRules())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (getDisabled() != other.getDisabled()) 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) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasRules()) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRules().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicyOuterClass.ScanPolicy 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.ScanPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.ScanPolicy) yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.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(); id_ = ""; registryId_ = ""; name_ = ""; description_ = ""; if (rulesBuilder_ == null) { rules_ = null; } else { rules_ = null; rulesBuilder_ = null; } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } disabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy build() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy buildPartial() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy result = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy(this); result.id_ = id_; result.registryId_ = registryId_; result.name_ = name_; result.description_ = description_; if (rulesBuilder_ == null) { result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.disabled_ = disabled_; 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.ScanPolicyOuterClass.ScanPolicy) { return mergeFrom((yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy other) { if (other == yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasRules()) { mergeRules(other.getRules()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } 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.ScanPolicyOuterClass.ScanPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * Output only. ID of the scan 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; } } /** *
       * Output only. ID of the scan 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; } } /** *
       * Output only. ID of the scan 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; } /** *
       * Output only. ID of the scan policy.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Output only. ID of the scan 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 registryId_ = ""; /** *
       * ID of the registry that the scan policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
* * string registry_id = 2; * @return The registryId. */ public java.lang.String getRegistryId() { java.lang.Object ref = registryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registryId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the registry that the scan policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
* * string registry_id = 2; * @return The bytes for registryId. */ public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = registryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); registryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the registry that the scan policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
* * string registry_id = 2; * @param value The registryId to set. * @return This builder for chaining. */ public Builder setRegistryId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } registryId_ = value; onChanged(); return this; } /** *
       * ID of the registry that the scan policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
* * string registry_id = 2; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of the registry that the scan policy belongs to.
       * Required. The maximum string length in characters is 50.
       * 
* * string registry_id = 2; * @param value The bytes for registryId to set. * @return This builder for chaining. */ public Builder setRegistryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); registryId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the scan policy.
       * 
* * string name = 3; * @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 scan policy.
       * 
* * string name = 3; * @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 scan policy.
       * 
* * string name = 3; * @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 scan policy.
       * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the scan policy.
       * 
* * string name = 3; * @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 description_ = ""; /** *
       * Description of the scan 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 scan 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 scan 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 scan 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 scan 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 yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules rules_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder> rulesBuilder_; /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return Whether the rules field is set. */ public boolean hasRules() { return rulesBuilder_ != null || rules_ != null; } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; * @return The rules. */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules getRules() { if (rulesBuilder_ == null) { return rules_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.getDefaultInstance() : rules_; } else { return rulesBuilder_.getMessage(); } } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public Builder setRules(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rules_ = value; onChanged(); } else { rulesBuilder_.setMessage(value); } return this; } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public Builder setRules( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder builderForValue) { if (rulesBuilder_ == null) { rules_ = builderForValue.build(); onChanged(); } else { rulesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public Builder mergeRules(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules value) { if (rulesBuilder_ == null) { if (rules_ != null) { rules_ = yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.newBuilder(rules_).mergeFrom(value).buildPartial(); } else { rules_ = value; } onChanged(); } else { rulesBuilder_.mergeFrom(value); } return this; } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = null; onChanged(); } else { rules_ = null; rulesBuilder_ = null; } return this; } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder getRulesBuilder() { onChanged(); return getRulesFieldBuilder().getBuilder(); } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder getRulesOrBuilder() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilder(); } else { return rules_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.getDefaultInstance() : rules_; } } /** *
       * The rules of scan policy.
       * 
* * .yandex.cloud.containerregistry.v1.ScanRules rules = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder>( getRules(), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Output only. Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Output only. 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(); } } /** *
       * Output only. 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; } /** *
       * Output only. 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; } /** *
       * Output only. 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; } /** *
       * Output only. Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Output only. Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Output only. 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_; } } /** *
       * Output only. 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 boolean disabled_ ; /** *
       * Turns off scan policy.
       * 
* * bool disabled = 7; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** *
       * Turns off scan policy.
       * 
* * bool disabled = 7; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Turns off scan policy.
       * 
* * bool disabled = 7; * @return This builder for chaining. */ public Builder clearDisabled() { disabled_ = false; 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.ScanPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.ScanPolicy) private static final yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy(); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScanPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanPolicy(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.ScanPolicyOuterClass.ScanPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanRulesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.ScanRules) com.google.protobuf.MessageOrBuilder { /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return Whether the pushRule field is set. */ boolean hasPushRule(); /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return The pushRule. */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule getPushRule(); /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder getPushRuleOrBuilder(); /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ java.util.List getScheduleRulesList(); /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule getScheduleRules(int index); /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ int getScheduleRulesCount(); /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ java.util.List getScheduleRulesOrBuilderList(); /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder getScheduleRulesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.ScanRules} */ public static final class ScanRules extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.ScanRules) ScanRulesOrBuilder { private static final long serialVersionUID = 0L; // Use ScanRules.newBuilder() to construct. private ScanRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanRules() { scheduleRules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScanRules(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanRules( 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: { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder subBuilder = null; if (pushRule_ != null) { subBuilder = pushRule_.toBuilder(); } pushRule_ = input.readMessage(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pushRule_); pushRule_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { scheduleRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } scheduleRules_.add( input.readMessage(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.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)) { scheduleRules_ = java.util.Collections.unmodifiableList(scheduleRules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanRules_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder.class); } public static final int PUSH_RULE_FIELD_NUMBER = 1; private yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule pushRule_; /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return Whether the pushRule field is set. */ @java.lang.Override public boolean hasPushRule() { return pushRule_ != null; } /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return The pushRule. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule getPushRule() { return pushRule_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.getDefaultInstance() : pushRule_; } /** *
     * Description of on-push scan rule.
     * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder getPushRuleOrBuilder() { return getPushRule(); } public static final int SCHEDULE_RULES_FIELD_NUMBER = 2; private java.util.List scheduleRules_; /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ @java.lang.Override public java.util.List getScheduleRulesList() { return scheduleRules_; } /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ @java.lang.Override public java.util.List getScheduleRulesOrBuilderList() { return scheduleRules_; } /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ @java.lang.Override public int getScheduleRulesCount() { return scheduleRules_.size(); } /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule getScheduleRules(int index) { return scheduleRules_.get(index); } /** *
     * Description of time based rescan rule.
     * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder getScheduleRulesOrBuilder( int index) { return scheduleRules_.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 (pushRule_ != null) { output.writeMessage(1, getPushRule()); } for (int i = 0; i < scheduleRules_.size(); i++) { output.writeMessage(2, scheduleRules_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pushRule_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPushRule()); } for (int i = 0; i < scheduleRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, scheduleRules_.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.ScanPolicyOuterClass.ScanRules)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules other = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules) obj; if (hasPushRule() != other.hasPushRule()) return false; if (hasPushRule()) { if (!getPushRule() .equals(other.getPushRule())) return false; } if (!getScheduleRulesList() .equals(other.getScheduleRulesList())) 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(); if (hasPushRule()) { hash = (37 * hash) + PUSH_RULE_FIELD_NUMBER; hash = (53 * hash) + getPushRule().hashCode(); } if (getScheduleRulesCount() > 0) { hash = (37 * hash) + SCHEDULE_RULES_FIELD_NUMBER; hash = (53 * hash) + getScheduleRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules 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.ScanPolicyOuterClass.ScanRules 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.ScanRules} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.ScanRules) yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanRules_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScheduleRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (pushRuleBuilder_ == null) { pushRule_ = null; } else { pushRule_ = null; pushRuleBuilder_ = null; } if (scheduleRulesBuilder_ == null) { scheduleRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { scheduleRulesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules build() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules buildPartial() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules result = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules(this); int from_bitField0_ = bitField0_; if (pushRuleBuilder_ == null) { result.pushRule_ = pushRule_; } else { result.pushRule_ = pushRuleBuilder_.build(); } if (scheduleRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scheduleRules_ = java.util.Collections.unmodifiableList(scheduleRules_); bitField0_ = (bitField0_ & ~0x00000001); } result.scheduleRules_ = scheduleRules_; } else { result.scheduleRules_ = scheduleRulesBuilder_.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.ScanPolicyOuterClass.ScanRules) { return mergeFrom((yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules other) { if (other == yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules.getDefaultInstance()) return this; if (other.hasPushRule()) { mergePushRule(other.getPushRule()); } if (scheduleRulesBuilder_ == null) { if (!other.scheduleRules_.isEmpty()) { if (scheduleRules_.isEmpty()) { scheduleRules_ = other.scheduleRules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScheduleRulesIsMutable(); scheduleRules_.addAll(other.scheduleRules_); } onChanged(); } } else { if (!other.scheduleRules_.isEmpty()) { if (scheduleRulesBuilder_.isEmpty()) { scheduleRulesBuilder_.dispose(); scheduleRulesBuilder_ = null; scheduleRules_ = other.scheduleRules_; bitField0_ = (bitField0_ & ~0x00000001); scheduleRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScheduleRulesFieldBuilder() : null; } else { scheduleRulesBuilder_.addAllMessages(other.scheduleRules_); } } } 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.ScanPolicyOuterClass.ScanRules parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule pushRule_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder> pushRuleBuilder_; /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return Whether the pushRule field is set. */ public boolean hasPushRule() { return pushRuleBuilder_ != null || pushRule_ != null; } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; * @return The pushRule. */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule getPushRule() { if (pushRuleBuilder_ == null) { return pushRule_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.getDefaultInstance() : pushRule_; } else { return pushRuleBuilder_.getMessage(); } } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public Builder setPushRule(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule value) { if (pushRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pushRule_ = value; onChanged(); } else { pushRuleBuilder_.setMessage(value); } return this; } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public Builder setPushRule( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder builderForValue) { if (pushRuleBuilder_ == null) { pushRule_ = builderForValue.build(); onChanged(); } else { pushRuleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public Builder mergePushRule(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule value) { if (pushRuleBuilder_ == null) { if (pushRule_ != null) { pushRule_ = yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.newBuilder(pushRule_).mergeFrom(value).buildPartial(); } else { pushRule_ = value; } onChanged(); } else { pushRuleBuilder_.mergeFrom(value); } return this; } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public Builder clearPushRule() { if (pushRuleBuilder_ == null) { pushRule_ = null; onChanged(); } else { pushRule_ = null; pushRuleBuilder_ = null; } return this; } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder getPushRuleBuilder() { onChanged(); return getPushRuleFieldBuilder().getBuilder(); } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder getPushRuleOrBuilder() { if (pushRuleBuilder_ != null) { return pushRuleBuilder_.getMessageOrBuilder(); } else { return pushRule_ == null ? yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.getDefaultInstance() : pushRule_; } } /** *
       * Description of on-push scan rule.
       * 
* * .yandex.cloud.containerregistry.v1.PushRule push_rule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder> getPushRuleFieldBuilder() { if (pushRuleBuilder_ == null) { pushRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder>( getPushRule(), getParentForChildren(), isClean()); pushRule_ = null; } return pushRuleBuilder_; } private java.util.List scheduleRules_ = java.util.Collections.emptyList(); private void ensureScheduleRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scheduleRules_ = new java.util.ArrayList(scheduleRules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder> scheduleRulesBuilder_; /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public java.util.List getScheduleRulesList() { if (scheduleRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(scheduleRules_); } else { return scheduleRulesBuilder_.getMessageList(); } } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public int getScheduleRulesCount() { if (scheduleRulesBuilder_ == null) { return scheduleRules_.size(); } else { return scheduleRulesBuilder_.getCount(); } } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule getScheduleRules(int index) { if (scheduleRulesBuilder_ == null) { return scheduleRules_.get(index); } else { return scheduleRulesBuilder_.getMessage(index); } } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder setScheduleRules( int index, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule value) { if (scheduleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleRulesIsMutable(); scheduleRules_.set(index, value); onChanged(); } else { scheduleRulesBuilder_.setMessage(index, value); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder setScheduleRules( int index, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder builderForValue) { if (scheduleRulesBuilder_ == null) { ensureScheduleRulesIsMutable(); scheduleRules_.set(index, builderForValue.build()); onChanged(); } else { scheduleRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder addScheduleRules(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule value) { if (scheduleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleRulesIsMutable(); scheduleRules_.add(value); onChanged(); } else { scheduleRulesBuilder_.addMessage(value); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder addScheduleRules( int index, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule value) { if (scheduleRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleRulesIsMutable(); scheduleRules_.add(index, value); onChanged(); } else { scheduleRulesBuilder_.addMessage(index, value); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder addScheduleRules( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder builderForValue) { if (scheduleRulesBuilder_ == null) { ensureScheduleRulesIsMutable(); scheduleRules_.add(builderForValue.build()); onChanged(); } else { scheduleRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder addScheduleRules( int index, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder builderForValue) { if (scheduleRulesBuilder_ == null) { ensureScheduleRulesIsMutable(); scheduleRules_.add(index, builderForValue.build()); onChanged(); } else { scheduleRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder addAllScheduleRules( java.lang.Iterable values) { if (scheduleRulesBuilder_ == null) { ensureScheduleRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scheduleRules_); onChanged(); } else { scheduleRulesBuilder_.addAllMessages(values); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder clearScheduleRules() { if (scheduleRulesBuilder_ == null) { scheduleRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { scheduleRulesBuilder_.clear(); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public Builder removeScheduleRules(int index) { if (scheduleRulesBuilder_ == null) { ensureScheduleRulesIsMutable(); scheduleRules_.remove(index); onChanged(); } else { scheduleRulesBuilder_.remove(index); } return this; } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder getScheduleRulesBuilder( int index) { return getScheduleRulesFieldBuilder().getBuilder(index); } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder getScheduleRulesOrBuilder( int index) { if (scheduleRulesBuilder_ == null) { return scheduleRules_.get(index); } else { return scheduleRulesBuilder_.getMessageOrBuilder(index); } } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public java.util.List getScheduleRulesOrBuilderList() { if (scheduleRulesBuilder_ != null) { return scheduleRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scheduleRules_); } } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder addScheduleRulesBuilder() { return getScheduleRulesFieldBuilder().addBuilder( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.getDefaultInstance()); } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder addScheduleRulesBuilder( int index) { return getScheduleRulesFieldBuilder().addBuilder( index, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.getDefaultInstance()); } /** *
       * Description of time based rescan rule.
       * 
* * repeated .yandex.cloud.containerregistry.v1.ScheduledRule schedule_rules = 2; */ public java.util.List getScheduleRulesBuilderList() { return getScheduleRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder> getScheduleRulesFieldBuilder() { if (scheduleRulesBuilder_ == null) { scheduleRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder>( scheduleRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scheduleRules_ = null; } return scheduleRulesBuilder_; } @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.ScanRules) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.ScanRules) private static final yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules(); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScanRules getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScanRules parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanRules(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.ScanPolicyOuterClass.ScanRules getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PushRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.PushRule) com.google.protobuf.MessageOrBuilder { /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ java.util.List getRepositoryPrefixesList(); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ int getRepositoryPrefixesCount(); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ java.lang.String getRepositoryPrefixes(int index); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index); /** *
     * Turns off scan rule.
     * 
* * bool disabled = 2; * @return The disabled. */ boolean getDisabled(); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.PushRule} */ public static final class PushRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.PushRule) PushRuleOrBuilder { private static final long serialVersionUID = 0L; // Use PushRule.newBuilder() to construct. private PushRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PushRule() { repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PushRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PushRule( 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(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } repositoryPrefixes_.add(s); break; } case 16: { disabled_ = input.readBool(); 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)) { repositoryPrefixes_ = repositoryPrefixes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_PushRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder.class); } public static final int REPOSITORY_PREFIXES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList repositoryPrefixes_; /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ public com.google.protobuf.ProtocolStringList getRepositoryPrefixesList() { return repositoryPrefixes_; } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ public int getRepositoryPrefixesCount() { return repositoryPrefixes_.size(); } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ public java.lang.String getRepositoryPrefixes(int index) { return repositoryPrefixes_.get(index); } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ public com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index) { return repositoryPrefixes_.getByteString(index); } public static final int DISABLED_FIELD_NUMBER = 2; private boolean disabled_; /** *
     * Turns off scan rule.
     * 
* * bool disabled = 2; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } 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 { for (int i = 0; i < repositoryPrefixes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repositoryPrefixes_.getRaw(i)); } if (disabled_ != false) { output.writeBool(2, disabled_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < repositoryPrefixes_.size(); i++) { dataSize += computeStringSizeNoTag(repositoryPrefixes_.getRaw(i)); } size += dataSize; size += 1 * getRepositoryPrefixesList().size(); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, disabled_); } 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.ScanPolicyOuterClass.PushRule)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule other = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule) obj; if (!getRepositoryPrefixesList() .equals(other.getRepositoryPrefixesList())) return false; if (getDisabled() != other.getDisabled()) 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(); if (getRepositoryPrefixesCount() > 0) { hash = (37 * hash) + REPOSITORY_PREFIXES_FIELD_NUMBER; hash = (53 * hash) + getRepositoryPrefixesList().hashCode(); } hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule 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.ScanPolicyOuterClass.PushRule 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.PushRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.PushRule) yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_PushRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.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(); repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); disabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule build() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule buildPartial() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule result = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = repositoryPrefixes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.repositoryPrefixes_ = repositoryPrefixes_; result.disabled_ = disabled_; 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.ScanPolicyOuterClass.PushRule) { return mergeFrom((yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule other) { if (other == yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule.getDefaultInstance()) return this; if (!other.repositoryPrefixes_.isEmpty()) { if (repositoryPrefixes_.isEmpty()) { repositoryPrefixes_ = other.repositoryPrefixes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.addAll(other.repositoryPrefixes_); } onChanged(); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } 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.ScanPolicyOuterClass.PushRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepositoryPrefixesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = new com.google.protobuf.LazyStringArrayList(repositoryPrefixes_); bitField0_ |= 0x00000001; } } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ public com.google.protobuf.ProtocolStringList getRepositoryPrefixesList() { return repositoryPrefixes_.getUnmodifiableView(); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ public int getRepositoryPrefixesCount() { return repositoryPrefixes_.size(); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ public java.lang.String getRepositoryPrefixes(int index) { return repositoryPrefixes_.get(index); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ public com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index) { return repositoryPrefixes_.getByteString(index); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index to set the value at. * @param value The repositoryPrefixes to set. * @return This builder for chaining. */ public Builder setRepositoryPrefixes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.set(index, value); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param value The repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addRepositoryPrefixes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.add(value); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param values The repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addAllRepositoryPrefixes( java.lang.Iterable values) { ensureRepositoryPrefixesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repositoryPrefixes_); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return This builder for chaining. */ public Builder clearRepositoryPrefixes() { repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param value The bytes of the repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addRepositoryPrefixesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.add(value); onChanged(); return this; } private boolean disabled_ ; /** *
       * Turns off scan rule.
       * 
* * bool disabled = 2; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** *
       * Turns off scan rule.
       * 
* * bool disabled = 2; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Turns off scan rule.
       * 
* * bool disabled = 2; * @return This builder for chaining. */ public Builder clearDisabled() { disabled_ = false; 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.PushRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.PushRule) private static final yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule(); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.PushRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PushRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PushRule(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.ScanPolicyOuterClass.PushRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScheduledRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.ScheduledRule) com.google.protobuf.MessageOrBuilder { /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ java.util.List getRepositoryPrefixesList(); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ int getRepositoryPrefixesCount(); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ java.lang.String getRepositoryPrefixes(int index); /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index); /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return Whether the rescanPeriod field is set. */ boolean hasRescanPeriod(); /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return The rescanPeriod. */ com.google.protobuf.Duration getRescanPeriod(); /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ com.google.protobuf.DurationOrBuilder getRescanPeriodOrBuilder(); /** *
     * Turns off scan rule.
     * 
* * bool disabled = 3; * @return The disabled. */ boolean getDisabled(); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.ScheduledRule} */ public static final class ScheduledRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.ScheduledRule) ScheduledRuleOrBuilder { private static final long serialVersionUID = 0L; // Use ScheduledRule.newBuilder() to construct. private ScheduledRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScheduledRule() { repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScheduledRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScheduledRule( 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(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } repositoryPrefixes_.add(s); break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (rescanPeriod_ != null) { subBuilder = rescanPeriod_.toBuilder(); } rescanPeriod_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rescanPeriod_); rescanPeriod_ = subBuilder.buildPartial(); } break; } case 24: { disabled_ = input.readBool(); 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)) { repositoryPrefixes_ = repositoryPrefixes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder.class); } public static final int REPOSITORY_PREFIXES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList repositoryPrefixes_; /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ public com.google.protobuf.ProtocolStringList getRepositoryPrefixesList() { return repositoryPrefixes_; } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ public int getRepositoryPrefixesCount() { return repositoryPrefixes_.size(); } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ public java.lang.String getRepositoryPrefixes(int index) { return repositoryPrefixes_.get(index); } /** *
     * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
     * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ public com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index) { return repositoryPrefixes_.getByteString(index); } public static final int RESCAN_PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration rescanPeriod_; /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return Whether the rescanPeriod field is set. */ @java.lang.Override public boolean hasRescanPeriod() { return rescanPeriod_ != null; } /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return The rescanPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRescanPeriod() { return rescanPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rescanPeriod_; } /** *
     * Period of time since last scan to trigger automatic rescan.
     * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRescanPeriodOrBuilder() { return getRescanPeriod(); } public static final int DISABLED_FIELD_NUMBER = 3; private boolean disabled_; /** *
     * Turns off scan rule.
     * 
* * bool disabled = 3; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } 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 { for (int i = 0; i < repositoryPrefixes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repositoryPrefixes_.getRaw(i)); } if (rescanPeriod_ != null) { output.writeMessage(2, getRescanPeriod()); } if (disabled_ != false) { output.writeBool(3, disabled_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < repositoryPrefixes_.size(); i++) { dataSize += computeStringSizeNoTag(repositoryPrefixes_.getRaw(i)); } size += dataSize; size += 1 * getRepositoryPrefixesList().size(); } if (rescanPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRescanPeriod()); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, disabled_); } 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.ScanPolicyOuterClass.ScheduledRule)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule other = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule) obj; if (!getRepositoryPrefixesList() .equals(other.getRepositoryPrefixesList())) return false; if (hasRescanPeriod() != other.hasRescanPeriod()) return false; if (hasRescanPeriod()) { if (!getRescanPeriod() .equals(other.getRescanPeriod())) return false; } if (getDisabled() != other.getDisabled()) 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(); if (getRepositoryPrefixesCount() > 0) { hash = (37 * hash) + REPOSITORY_PREFIXES_FIELD_NUMBER; hash = (53 * hash) + getRepositoryPrefixesList().hashCode(); } if (hasRescanPeriod()) { hash = (37 * hash) + RESCAN_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRescanPeriod().hashCode(); } hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule 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.ScanPolicyOuterClass.ScheduledRule 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.ScheduledRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.ScheduledRule) yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.class, yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.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(); repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (rescanPeriodBuilder_ == null) { rescanPeriod_ = null; } else { rescanPeriod_ = null; rescanPeriodBuilder_ = null; } disabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule build() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule buildPartial() { yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule result = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = repositoryPrefixes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.repositoryPrefixes_ = repositoryPrefixes_; if (rescanPeriodBuilder_ == null) { result.rescanPeriod_ = rescanPeriod_; } else { result.rescanPeriod_ = rescanPeriodBuilder_.build(); } result.disabled_ = disabled_; 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.ScanPolicyOuterClass.ScheduledRule) { return mergeFrom((yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule other) { if (other == yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule.getDefaultInstance()) return this; if (!other.repositoryPrefixes_.isEmpty()) { if (repositoryPrefixes_.isEmpty()) { repositoryPrefixes_ = other.repositoryPrefixes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.addAll(other.repositoryPrefixes_); } onChanged(); } if (other.hasRescanPeriod()) { mergeRescanPeriod(other.getRescanPeriod()); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } 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.ScanPolicyOuterClass.ScheduledRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepositoryPrefixesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { repositoryPrefixes_ = new com.google.protobuf.LazyStringArrayList(repositoryPrefixes_); bitField0_ |= 0x00000001; } } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return A list containing the repositoryPrefixes. */ public com.google.protobuf.ProtocolStringList getRepositoryPrefixesList() { return repositoryPrefixes_.getUnmodifiableView(); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return The count of repositoryPrefixes. */ public int getRepositoryPrefixesCount() { return repositoryPrefixes_.size(); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the element to return. * @return The repositoryPrefixes at the given index. */ public java.lang.String getRepositoryPrefixes(int index) { return repositoryPrefixes_.get(index); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index of the value to return. * @return The bytes of the repositoryPrefixes at the given index. */ public com.google.protobuf.ByteString getRepositoryPrefixesBytes(int index) { return repositoryPrefixes_.getByteString(index); } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param index The index to set the value at. * @param value The repositoryPrefixes to set. * @return This builder for chaining. */ public Builder setRepositoryPrefixes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.set(index, value); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param value The repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addRepositoryPrefixes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.add(value); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param values The repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addAllRepositoryPrefixes( java.lang.Iterable values) { ensureRepositoryPrefixesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repositoryPrefixes_); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @return This builder for chaining. */ public Builder clearRepositoryPrefixes() { repositoryPrefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry
       * 
* * repeated string repository_prefixes = 1 [(.yandex.cloud.pattern) = "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*", (.yandex.cloud.size) = ">0"]; * @param value The bytes of the repositoryPrefixes to add. * @return This builder for chaining. */ public Builder addRepositoryPrefixesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRepositoryPrefixesIsMutable(); repositoryPrefixes_.add(value); onChanged(); return this; } private com.google.protobuf.Duration rescanPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> rescanPeriodBuilder_; /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return Whether the rescanPeriod field is set. */ public boolean hasRescanPeriod() { return rescanPeriodBuilder_ != null || rescanPeriod_ != null; } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; * @return The rescanPeriod. */ public com.google.protobuf.Duration getRescanPeriod() { if (rescanPeriodBuilder_ == null) { return rescanPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rescanPeriod_; } else { return rescanPeriodBuilder_.getMessage(); } } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public Builder setRescanPeriod(com.google.protobuf.Duration value) { if (rescanPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rescanPeriod_ = value; onChanged(); } else { rescanPeriodBuilder_.setMessage(value); } return this; } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public Builder setRescanPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (rescanPeriodBuilder_ == null) { rescanPeriod_ = builderForValue.build(); onChanged(); } else { rescanPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeRescanPeriod(com.google.protobuf.Duration value) { if (rescanPeriodBuilder_ == null) { if (rescanPeriod_ != null) { rescanPeriod_ = com.google.protobuf.Duration.newBuilder(rescanPeriod_).mergeFrom(value).buildPartial(); } else { rescanPeriod_ = value; } onChanged(); } else { rescanPeriodBuilder_.mergeFrom(value); } return this; } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public Builder clearRescanPeriod() { if (rescanPeriodBuilder_ == null) { rescanPeriod_ = null; onChanged(); } else { rescanPeriod_ = null; rescanPeriodBuilder_ = null; } return this; } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.Duration.Builder getRescanPeriodBuilder() { onChanged(); return getRescanPeriodFieldBuilder().getBuilder(); } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.DurationOrBuilder getRescanPeriodOrBuilder() { if (rescanPeriodBuilder_ != null) { return rescanPeriodBuilder_.getMessageOrBuilder(); } else { return rescanPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : rescanPeriod_; } } /** *
       * Period of time since last scan to trigger automatic rescan.
       * 
* * .google.protobuf.Duration rescan_period = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRescanPeriodFieldBuilder() { if (rescanPeriodBuilder_ == null) { rescanPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getRescanPeriod(), getParentForChildren(), isClean()); rescanPeriod_ = null; } return rescanPeriodBuilder_; } private boolean disabled_ ; /** *
       * Turns off scan rule.
       * 
* * bool disabled = 3; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** *
       * Turns off scan rule.
       * 
* * bool disabled = 3; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Turns off scan rule.
       * 
* * bool disabled = 3; * @return This builder for chaining. */ public Builder clearDisabled() { disabled_ = false; 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.ScheduledRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.ScheduledRule) private static final yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule(); } public static yandex.cloud.api.containerregistry.v1.ScanPolicyOuterClass.ScheduledRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScheduledRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScheduledRule(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.ScanPolicyOuterClass.ScheduledRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_ScanRules_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_PushRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n3yandex/cloud/containerregistry/v1/scan" + "_policy.proto\022!yandex.cloud.containerreg" + "istry.v1\032\035yandex/cloud/validation.proto\032" + "\036google/protobuf/duration.proto\032\037google/" + "protobuf/timestamp.proto\"\317\001\n\nScanPolicy\022" + "\n\n\002id\030\001 \001(\t\022\023\n\013registry_id\030\002 \001(\t\022\014\n\004name" + "\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022;\n\005rules\030\005 \001" + "(\0132,.yandex.cloud.containerregistry.v1.S" + "canRules\022.\n\ncreated_at\030\006 \001(\0132\032.google.pr" + "otobuf.Timestamp\022\020\n\010disabled\030\007 \001(\010\"\225\001\n\tS" + "canRules\022>\n\tpush_rule\030\001 \001(\0132+.yandex.clo" + "ud.containerregistry.v1.PushRule\022H\n\016sche" + "dule_rules\030\002 \003(\01320.yandex.cloud.containe" + "rregistry.v1.ScheduledRule\"\206\001\n\010PushRule\022" + "h\n\023repository_prefixes\030\001 \003(\tBK\202\3101\002>0\362\3071A" + "\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-" + "9]+(?:[._-][a-z0-9]+)*))*\022\020\n\010disabled\030\002 " + "\001(\010\"\303\001\n\rScheduledRule\022h\n\023repository_pref" + "ixes\030\001 \003(\tBK\202\3101\002>0\362\3071A\\*|[a-z0-9]+(?:[._" + "-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9" + "]+)*))*\0226\n\rrescan_period\030\002 \001(\0132\031.google." + "protobuf.DurationB\004\350\3071\001\022\020\n\010disabled\030\003 \001(" + "\010B\200\001\n%yandex.cloud.api.containerregistry" + ".v1ZWgithub.com/yandex-cloud/go-genproto" + "/yandex/cloud/containerregistry/v1;conta" + "inerregistryb\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_ScanPolicy_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_ScanPolicy_descriptor, new java.lang.String[] { "Id", "RegistryId", "Name", "Description", "Rules", "CreatedAt", "Disabled", }); internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_containerregistry_v1_ScanRules_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_ScanRules_descriptor, new java.lang.String[] { "PushRule", "ScheduleRules", }); internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_containerregistry_v1_PushRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_PushRule_descriptor, new java.lang.String[] { "RepositoryPrefixes", "Disabled", }); internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_ScheduledRule_descriptor, new java.lang.String[] { "RepositoryPrefixes", "RescanPeriod", "Disabled", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); 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