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

com.wgtwo.api.v0.common.ErrorsProto Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wgtwo/common/v0/errors.proto

package com.wgtwo.api.v0.common;

public final class ErrorsProto {
  private ErrorsProto() {}
  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 wgtwo.common.v0.StatusCode}
   */
  public enum StatusCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * STATUS_CODE_UNSPECIFIED = 0;
     */
    STATUS_CODE_UNSPECIFIED(0),
    /**
     * STATUS_CODE_OK = 1;
     */
    STATUS_CODE_OK(1),
    /**
     * STATUS_CODE_NOT_ACCEPTABLE = 2;
     */
    STATUS_CODE_NOT_ACCEPTABLE(2),
    /**
     * STATUS_CODE_ACCESS_DENIED = 3;
     */
    STATUS_CODE_ACCESS_DENIED(3),
    /**
     * STATUS_CODE_INTERNAL_ERROR = 4;
     */
    STATUS_CODE_INTERNAL_ERROR(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * STATUS_CODE_UNSPECIFIED = 0;
     */
    public static final int STATUS_CODE_UNSPECIFIED_VALUE = 0;
    /**
     * STATUS_CODE_OK = 1;
     */
    public static final int STATUS_CODE_OK_VALUE = 1;
    /**
     * STATUS_CODE_NOT_ACCEPTABLE = 2;
     */
    public static final int STATUS_CODE_NOT_ACCEPTABLE_VALUE = 2;
    /**
     * STATUS_CODE_ACCESS_DENIED = 3;
     */
    public static final int STATUS_CODE_ACCESS_DENIED_VALUE = 3;
    /**
     * STATUS_CODE_INTERNAL_ERROR = 4;
     */
    public static final int STATUS_CODE_INTERNAL_ERROR_VALUE = 4;


    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 1: return STATUS_CODE_OK;
        case 2: return STATUS_CODE_NOT_ACCEPTABLE;
        case 3: return STATUS_CODE_ACCESS_DENIED;
        case 4: return STATUS_CODE_INTERNAL_ERROR;
        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.wgtwo.api.v0.common.ErrorsProto.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:wgtwo.common.v0.StatusCode)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\034wgtwo/common/v0/errors.proto\022\017wgtwo.co" +
      "mmon.v0*\234\001\n\nStatusCode\022\033\n\027STATUS_CODE_UN" +
      "SPECIFIED\020\000\022\022\n\016STATUS_CODE_OK\020\001\022\036\n\032STATU" +
      "S_CODE_NOT_ACCEPTABLE\020\002\022\035\n\031STATUS_CODE_A" +
      "CCESS_DENIED\020\003\022\036\n\032STATUS_CODE_INTERNAL_E" +
      "RROR\020\004B^\n\027com.wgtwo.api.v0.commonB\013Error" +
      "sProtoZ6github.com/working-group-two/wgt" +
      "woapis/wgtwo/common/v0b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy