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

com.yandex.ydb.StatusCodesProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_status_codes.proto

package com.yandex.ydb;

public final class StatusCodesProtos {
  private StatusCodesProtos() {}
  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 StatusIdsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.StatusIds)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code Ydb.StatusIds}
   */
  public static final class StatusIds extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:Ydb.StatusIds)
      StatusIdsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use StatusIds.newBuilder() to construct.
    private StatusIds(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private StatusIds() {
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new StatusIds();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private StatusIds(
        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;
            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 com.yandex.ydb.StatusCodesProtos.internal_static_Ydb_StatusIds_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.yandex.ydb.StatusCodesProtos.internal_static_Ydb_StatusIds_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.yandex.ydb.StatusCodesProtos.StatusIds.class, com.yandex.ydb.StatusCodesProtos.StatusIds.Builder.class);
    }

    /**
     * 
     * reserved range [400000, 400999]
     * 
* * Protobuf enum {@code Ydb.StatusIds.StatusCode} */ public enum StatusCode implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_CODE_UNSPECIFIED = 0; */ STATUS_CODE_UNSPECIFIED(0), /** * SUCCESS = 400000; */ SUCCESS(400000), /** * BAD_REQUEST = 400010; */ BAD_REQUEST(400010), /** * UNAUTHORIZED = 400020; */ UNAUTHORIZED(400020), /** * INTERNAL_ERROR = 400030; */ INTERNAL_ERROR(400030), /** * ABORTED = 400040; */ ABORTED(400040), /** * UNAVAILABLE = 400050; */ UNAVAILABLE(400050), /** * OVERLOADED = 400060; */ OVERLOADED(400060), /** * SCHEME_ERROR = 400070; */ SCHEME_ERROR(400070), /** * GENERIC_ERROR = 400080; */ GENERIC_ERROR(400080), /** * TIMEOUT = 400090; */ TIMEOUT(400090), /** * BAD_SESSION = 400100; */ BAD_SESSION(400100), /** * PRECONDITION_FAILED = 400120; */ PRECONDITION_FAILED(400120), /** * ALREADY_EXISTS = 400130; */ ALREADY_EXISTS(400130), /** * NOT_FOUND = 400140; */ NOT_FOUND(400140), /** * SESSION_EXPIRED = 400150; */ SESSION_EXPIRED(400150), /** * CANCELLED = 400160; */ CANCELLED(400160), /** * UNDETERMINED = 400170; */ UNDETERMINED(400170), /** * UNSUPPORTED = 400180; */ UNSUPPORTED(400180), /** * SESSION_BUSY = 400190; */ SESSION_BUSY(400190), UNRECOGNIZED(-1), ; /** * STATUS_CODE_UNSPECIFIED = 0; */ public static final int STATUS_CODE_UNSPECIFIED_VALUE = 0; /** * SUCCESS = 400000; */ public static final int SUCCESS_VALUE = 400000; /** * BAD_REQUEST = 400010; */ public static final int BAD_REQUEST_VALUE = 400010; /** * UNAUTHORIZED = 400020; */ public static final int UNAUTHORIZED_VALUE = 400020; /** * INTERNAL_ERROR = 400030; */ public static final int INTERNAL_ERROR_VALUE = 400030; /** * ABORTED = 400040; */ public static final int ABORTED_VALUE = 400040; /** * UNAVAILABLE = 400050; */ public static final int UNAVAILABLE_VALUE = 400050; /** * OVERLOADED = 400060; */ public static final int OVERLOADED_VALUE = 400060; /** * SCHEME_ERROR = 400070; */ public static final int SCHEME_ERROR_VALUE = 400070; /** * GENERIC_ERROR = 400080; */ public static final int GENERIC_ERROR_VALUE = 400080; /** * TIMEOUT = 400090; */ public static final int TIMEOUT_VALUE = 400090; /** * BAD_SESSION = 400100; */ public static final int BAD_SESSION_VALUE = 400100; /** * PRECONDITION_FAILED = 400120; */ public static final int PRECONDITION_FAILED_VALUE = 400120; /** * ALREADY_EXISTS = 400130; */ public static final int ALREADY_EXISTS_VALUE = 400130; /** * NOT_FOUND = 400140; */ public static final int NOT_FOUND_VALUE = 400140; /** * SESSION_EXPIRED = 400150; */ public static final int SESSION_EXPIRED_VALUE = 400150; /** * CANCELLED = 400160; */ public static final int CANCELLED_VALUE = 400160; /** * UNDETERMINED = 400170; */ public static final int UNDETERMINED_VALUE = 400170; /** * UNSUPPORTED = 400180; */ public static final int UNSUPPORTED_VALUE = 400180; /** * SESSION_BUSY = 400190; */ public static final int SESSION_BUSY_VALUE = 400190; 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 StatusCode 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 StatusCode forNumber(int value) { switch (value) { case 0: return STATUS_CODE_UNSPECIFIED; case 400000: return SUCCESS; case 400010: return BAD_REQUEST; case 400020: return UNAUTHORIZED; case 400030: return INTERNAL_ERROR; case 400040: return ABORTED; case 400050: return UNAVAILABLE; case 400060: return OVERLOADED; case 400070: return SCHEME_ERROR; case 400080: return GENERIC_ERROR; case 400090: return TIMEOUT; case 400100: return BAD_SESSION; case 400120: return PRECONDITION_FAILED; case 400130: return ALREADY_EXISTS; case 400140: return NOT_FOUND; case 400150: return SESSION_EXPIRED; case 400160: return CANCELLED; case 400170: return UNDETERMINED; case 400180: return UNSUPPORTED; case 400190: return SESSION_BUSY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StatusCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StatusCode findValueByNumber(int number) { return StatusCode.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 com.yandex.ydb.StatusCodesProtos.StatusIds.getDescriptor().getEnumTypes().get(0); } private static final StatusCode[] VALUES = values(); public static StatusCode 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 StatusCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.StatusIds.StatusCode) } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 com.yandex.ydb.StatusCodesProtos.StatusIds)) { return super.equals(obj); } com.yandex.ydb.StatusCodesProtos.StatusIds other = (com.yandex.ydb.StatusCodesProtos.StatusIds) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.StatusCodesProtos.StatusIds 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 com.yandex.ydb.StatusCodesProtos.StatusIds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.StatusCodesProtos.StatusIds 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 com.yandex.ydb.StatusCodesProtos.StatusIds parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.StatusCodesProtos.StatusIds 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(com.yandex.ydb.StatusCodesProtos.StatusIds 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 Ydb.StatusIds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.StatusIds) com.yandex.ydb.StatusCodesProtos.StatusIdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.StatusCodesProtos.internal_static_Ydb_StatusIds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.StatusCodesProtos.internal_static_Ydb_StatusIds_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.StatusCodesProtos.StatusIds.class, com.yandex.ydb.StatusCodesProtos.StatusIds.Builder.class); } // Construct using com.yandex.ydb.StatusCodesProtos.StatusIds.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.StatusCodesProtos.internal_static_Ydb_StatusIds_descriptor; } @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds getDefaultInstanceForType() { return com.yandex.ydb.StatusCodesProtos.StatusIds.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds build() { com.yandex.ydb.StatusCodesProtos.StatusIds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds buildPartial() { com.yandex.ydb.StatusCodesProtos.StatusIds result = new com.yandex.ydb.StatusCodesProtos.StatusIds(this); 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 com.yandex.ydb.StatusCodesProtos.StatusIds) { return mergeFrom((com.yandex.ydb.StatusCodesProtos.StatusIds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.StatusCodesProtos.StatusIds other) { if (other == com.yandex.ydb.StatusCodesProtos.StatusIds.getDefaultInstance()) return this; 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 { com.yandex.ydb.StatusCodesProtos.StatusIds parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.StatusCodesProtos.StatusIds) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:Ydb.StatusIds) } // @@protoc_insertion_point(class_scope:Ydb.StatusIds) private static final com.yandex.ydb.StatusCodesProtos.StatusIds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.StatusCodesProtos.StatusIds(); } public static com.yandex.ydb.StatusCodesProtos.StatusIds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StatusIds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusIds(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 com.yandex.ydb.StatusCodesProtos.StatusIds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_StatusIds_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_StatusIds_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n,ydb/public/api/protos/ydb_status_codes" + ".proto\022\003Ydb\"\247\003\n\tStatusIds\"\231\003\n\nStatusCode" + "\022\033\n\027STATUS_CODE_UNSPECIFIED\020\000\022\r\n\007SUCCESS" + "\020\200\265\030\022\021\n\013BAD_REQUEST\020\212\265\030\022\022\n\014UNAUTHORIZED\020" + "\224\265\030\022\024\n\016INTERNAL_ERROR\020\236\265\030\022\r\n\007ABORTED\020\250\265\030" + "\022\021\n\013UNAVAILABLE\020\262\265\030\022\020\n\nOVERLOADED\020\274\265\030\022\022\n" + "\014SCHEME_ERROR\020\306\265\030\022\023\n\rGENERIC_ERROR\020\320\265\030\022\r" + "\n\007TIMEOUT\020\332\265\030\022\021\n\013BAD_SESSION\020\344\265\030\022\031\n\023PREC" + "ONDITION_FAILED\020\370\265\030\022\024\n\016ALREADY_EXISTS\020\202\266" + "\030\022\017\n\tNOT_FOUND\020\214\266\030\022\025\n\017SESSION_EXPIRED\020\226\266" + "\030\022\017\n\tCANCELLED\020\240\266\030\022\022\n\014UNDETERMINED\020\252\266\030\022\021" + "\n\013UNSUPPORTED\020\264\266\030\022\022\n\014SESSION_BUSY\020\276\266\030B#\n" + "\016com.yandex.ydbB\021StatusCodesProtosb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_Ydb_StatusIds_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Ydb_StatusIds_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_StatusIds_descriptor, new java.lang.String[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy