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

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

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

package yandex.cloud.api.containerregistry.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.containerregistry.v1.IpPermissionAction}
   */
  public enum IpPermissionAction
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * IP_PERMISSION_ACTION_UNSPECIFIED = 0;
     */
    IP_PERMISSION_ACTION_UNSPECIFIED(0),
    /**
     * 
     * Addition of an ip permission.
     * 
* * ADD = 1; */ ADD(1), /** *
     * Removal of an ip permission.
     * 
* * REMOVE = 2; */ REMOVE(2), UNRECOGNIZED(-1), ; /** * IP_PERMISSION_ACTION_UNSPECIFIED = 0; */ public static final int IP_PERMISSION_ACTION_UNSPECIFIED_VALUE = 0; /** *
     * Addition of an ip permission.
     * 
* * ADD = 1; */ public static final int ADD_VALUE = 1; /** *
     * Removal of an ip permission.
     * 
* * REMOVE = 2; */ public static final int REMOVE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IpPermissionAction valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static IpPermissionAction forNumber(int value) { switch (value) { case 0: return IP_PERMISSION_ACTION_UNSPECIFIED; case 1: return ADD; case 2: return REMOVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IpPermissionAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IpPermissionAction findValueByNumber(int number) { return IpPermissionAction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.getDescriptor().getEnumTypes().get(0); } private static final IpPermissionAction[] VALUES = values(); public static IpPermissionAction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private IpPermissionAction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.containerregistry.v1.IpPermissionAction) } public interface IpPermissionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.IpPermission) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The action. */ yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action getAction(); /** * string ip = 2; * @return The ip. */ java.lang.String getIp(); /** * string ip = 2; * @return The bytes for ip. */ com.google.protobuf.ByteString getIpBytes(); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.IpPermission} */ public static final class IpPermission extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.IpPermission) IpPermissionOrBuilder { private static final long serialVersionUID = 0L; // Use IpPermission.newBuilder() to construct. private IpPermission(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IpPermission() { action_ = 0; ip_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IpPermission(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IpPermission( 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 8: { int rawValue = input.readEnum(); action_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); ip_ = s; 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.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermission_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.class, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder.class); } /** * Protobuf enum {@code yandex.cloud.containerregistry.v1.IpPermission.Action} */ public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** * ACTION_UNSPECIFIED = 0; */ ACTION_UNSPECIFIED(0), /** * PULL = 1; */ PULL(1), /** * PUSH = 2; */ PUSH(2), UNRECOGNIZED(-1), ; /** * ACTION_UNSPECIFIED = 0; */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** * PULL = 1; */ public static final int PULL_VALUE = 1; /** * PUSH = 2; */ public static final int PUSH_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Action valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Action forNumber(int value) { switch (value) { case 0: return ACTION_UNSPECIFIED; case 1: return PULL; case 2: return PUSH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Action> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Action findValueByNumber(int number) { return Action.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); public static Action valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Action(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.containerregistry.v1.IpPermission.Action) } public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The action. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action getAction() { @SuppressWarnings("deprecation") yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action result = yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.valueOf(action_); return result == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.UNRECOGNIZED : result; } public static final int IP_FIELD_NUMBER = 2; private volatile java.lang.Object ip_; /** * string ip = 2; * @return The ip. */ @java.lang.Override public java.lang.String getIp() { java.lang.Object ref = ip_; 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(); ip_ = s; return s; } } /** * string ip = 2; * @return The bytes for ip. */ @java.lang.Override public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (action_ != yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (action_ != yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.ACTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); } 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.IpPermissionOuterClass.IpPermission)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission other = (yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission) obj; if (action_ != other.action_) return false; if (!getIp() .equals(other.getIp())) 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) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission 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.IpPermissionOuterClass.IpPermission 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.IpPermission} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.IpPermission) yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermission_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.class, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.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(); action_ = 0; ip_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission build() { yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission buildPartial() { yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission result = new yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission(this); result.action_ = action_; result.ip_ = ip_; 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.IpPermissionOuterClass.IpPermission) { return mergeFrom((yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission other) { if (other == yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDefaultInstance()) return this; if (other.action_ != 0) { setActionValue(other.getActionValue()); } if (!other.getIp().isEmpty()) { ip_ = other.ip_; onChanged(); } 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.IpPermissionOuterClass.IpPermission parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int action_ = 0; /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { action_ = value; onChanged(); return this; } /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return The action. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action getAction() { @SuppressWarnings("deprecation") yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action result = yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.valueOf(action_); return result == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action.UNRECOGNIZED : result; } /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Action value) { if (value == null) { throw new NullPointerException(); } action_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.containerregistry.v1.IpPermission.Action action = 1; * @return This builder for chaining. */ public Builder clearAction() { action_ = 0; onChanged(); return this; } private java.lang.Object ip_ = ""; /** * string ip = 2; * @return The ip. */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ip_ = s; return s; } else { return (java.lang.String) ref; } } /** * string ip = 2; * @return The bytes for ip. */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ip = 2; * @param value The ip to set. * @return This builder for chaining. */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ip_ = value; onChanged(); return this; } /** * string ip = 2; * @return This builder for chaining. */ public Builder clearIp() { ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * string ip = 2; * @param value The bytes for ip to set. * @return This builder for chaining. */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ip_ = value; 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.IpPermission) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.IpPermission) private static final yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission(); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IpPermission parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IpPermission(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.IpPermissionOuterClass.IpPermission getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IpPermissionDeltaOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.containerregistry.v1.IpPermissionDelta) com.google.protobuf.MessageOrBuilder { /** *
     * The action that is being performed on an ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for action. */ int getActionValue(); /** *
     * The action that is being performed on an ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The action. */ yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction getAction(); /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return Whether the ipPermission field is set. */ boolean hasIpPermission(); /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return The ipPermission. */ yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission getIpPermission(); /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder getIpPermissionOrBuilder(); } /** * Protobuf type {@code yandex.cloud.containerregistry.v1.IpPermissionDelta} */ public static final class IpPermissionDelta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.containerregistry.v1.IpPermissionDelta) IpPermissionDeltaOrBuilder { private static final long serialVersionUID = 0L; // Use IpPermissionDelta.newBuilder() to construct. private IpPermissionDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IpPermissionDelta() { action_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IpPermissionDelta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IpPermissionDelta( 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 8: { int rawValue = input.readEnum(); action_ = rawValue; break; } case 18: { yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder subBuilder = null; if (ipPermission_ != null) { subBuilder = ipPermission_.toBuilder(); } ipPermission_ = input.readMessage(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ipPermission_); ipPermission_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.class, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.Builder.class); } public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** *
     * The action that is being performed on an ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** *
     * The action that is being performed on an ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The action. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction getAction() { @SuppressWarnings("deprecation") yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction result = yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.valueOf(action_); return result == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.UNRECOGNIZED : result; } public static final int IP_PERMISSION_FIELD_NUMBER = 2; private yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission ipPermission_; /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return Whether the ipPermission field is set. */ @java.lang.Override public boolean hasIpPermission() { return ipPermission_ != null; } /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return The ipPermission. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission getIpPermission() { return ipPermission_ == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDefaultInstance() : ipPermission_; } /** *
     * Ip permission.
     * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder getIpPermissionOrBuilder() { return getIpPermission(); } 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 (action_ != yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.IP_PERMISSION_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } if (ipPermission_ != null) { output.writeMessage(2, getIpPermission()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (action_ != yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.IP_PERMISSION_ACTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, action_); } if (ipPermission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIpPermission()); } 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.IpPermissionOuterClass.IpPermissionDelta)) { return super.equals(obj); } yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta other = (yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta) obj; if (action_ != other.action_) return false; if (hasIpPermission() != other.hasIpPermission()) return false; if (hasIpPermission()) { if (!getIpPermission() .equals(other.getIpPermission())) 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) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; if (hasIpPermission()) { hash = (37 * hash) + IP_PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getIpPermission().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionOuterClass.IpPermissionDelta 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.IpPermissionDelta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.containerregistry.v1.IpPermissionDelta) yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDeltaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.class, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.Builder.class); } // Construct using yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.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(); action_ = 0; if (ipPermissionBuilder_ == null) { ipPermission_ = null; } else { ipPermission_ = null; ipPermissionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta getDefaultInstanceForType() { return yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta build() { yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta buildPartial() { yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta result = new yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta(this); result.action_ = action_; if (ipPermissionBuilder_ == null) { result.ipPermission_ = ipPermission_; } else { result.ipPermission_ = ipPermissionBuilder_.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.IpPermissionOuterClass.IpPermissionDelta) { return mergeFrom((yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta other) { if (other == yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta.getDefaultInstance()) return this; if (other.action_ != 0) { setActionValue(other.getActionValue()); } if (other.hasIpPermission()) { mergeIpPermission(other.getIpPermission()); } 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.IpPermissionOuterClass.IpPermissionDelta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int action_ = 0; /** *
       * The action that is being performed on an ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** *
       * The action that is being performed on an ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { action_ = value; onChanged(); return this; } /** *
       * The action that is being performed on an ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return The action. */ @java.lang.Override public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction getAction() { @SuppressWarnings("deprecation") yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction result = yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.valueOf(action_); return result == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction.UNRECOGNIZED : result; } /** *
       * The action that is being performed on an ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionAction value) { if (value == null) { throw new NullPointerException(); } action_ = value.getNumber(); onChanged(); return this; } /** *
       * The action that is being performed on an ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermissionAction action = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearAction() { action_ = 0; onChanged(); return this; } private yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission ipPermission_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder> ipPermissionBuilder_; /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return Whether the ipPermission field is set. */ public boolean hasIpPermission() { return ipPermissionBuilder_ != null || ipPermission_ != null; } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; * @return The ipPermission. */ public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission getIpPermission() { if (ipPermissionBuilder_ == null) { return ipPermission_ == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDefaultInstance() : ipPermission_; } else { return ipPermissionBuilder_.getMessage(); } } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public Builder setIpPermission(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission value) { if (ipPermissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ipPermission_ = value; onChanged(); } else { ipPermissionBuilder_.setMessage(value); } return this; } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public Builder setIpPermission( yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder builderForValue) { if (ipPermissionBuilder_ == null) { ipPermission_ = builderForValue.build(); onChanged(); } else { ipPermissionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeIpPermission(yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission value) { if (ipPermissionBuilder_ == null) { if (ipPermission_ != null) { ipPermission_ = yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.newBuilder(ipPermission_).mergeFrom(value).buildPartial(); } else { ipPermission_ = value; } onChanged(); } else { ipPermissionBuilder_.mergeFrom(value); } return this; } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public Builder clearIpPermission() { if (ipPermissionBuilder_ == null) { ipPermission_ = null; onChanged(); } else { ipPermission_ = null; ipPermissionBuilder_ = null; } return this; } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder getIpPermissionBuilder() { onChanged(); return getIpPermissionFieldBuilder().getBuilder(); } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder getIpPermissionOrBuilder() { if (ipPermissionBuilder_ != null) { return ipPermissionBuilder_.getMessageOrBuilder(); } else { return ipPermission_ == null ? yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.getDefaultInstance() : ipPermission_; } } /** *
       * Ip permission.
       * 
* * .yandex.cloud.containerregistry.v1.IpPermission ip_permission = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder> getIpPermissionFieldBuilder() { if (ipPermissionBuilder_ == null) { ipPermissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermission.Builder, yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionOrBuilder>( getIpPermission(), getParentForChildren(), isClean()); ipPermission_ = null; } return ipPermissionBuilder_; } @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.IpPermissionDelta) } // @@protoc_insertion_point(class_scope:yandex.cloud.containerregistry.v1.IpPermissionDelta) private static final yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta(); } public static yandex.cloud.api.containerregistry.v1.IpPermissionOuterClass.IpPermissionDelta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IpPermissionDelta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IpPermissionDelta(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.IpPermissionOuterClass.IpPermissionDelta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_IpPermission_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n5yandex/cloud/containerregistry/v1/ip_p" + "ermission.proto\022!yandex.cloud.containerr" + "egistry.v1\032\035yandex/cloud/validation.prot" + "o\"\230\001\n\014IpPermission\022F\n\006action\030\001 \001(\01626.yan" + "dex.cloud.containerregistry.v1.IpPermiss" + "ion.Action\022\n\n\002ip\030\002 \001(\t\"4\n\006Action\022\026\n\022ACTI" + "ON_UNSPECIFIED\020\000\022\010\n\004PULL\020\001\022\010\n\004PUSH\020\002\"\256\001\n" + "\021IpPermissionDelta\022K\n\006action\030\001 \001(\01625.yan" + "dex.cloud.containerregistry.v1.IpPermiss" + "ionActionB\004\350\3071\001\022L\n\rip_permission\030\002 \001(\0132/" + ".yandex.cloud.containerregistry.v1.IpPer" + "missionB\004\350\3071\001*O\n\022IpPermissionAction\022$\n I" + "P_PERMISSION_ACTION_UNSPECIFIED\020\000\022\007\n\003ADD" + "\020\001\022\n\n\006REMOVE\020\002B\200\001\n%yandex.cloud.api.cont" + "ainerregistry.v1ZWgithub.com/yandex-clou" + "d/go-genproto/yandex/cloud/containerregi" + "stry/v1;containerregistryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_containerregistry_v1_IpPermission_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_IpPermission_descriptor, new java.lang.String[] { "Action", "Ip", }); internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_containerregistry_v1_IpPermissionDelta_descriptor, new java.lang.String[] { "Action", "IpPermission", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy