Examples of findValueByNumber()


Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

      case ENUM: {
        EnumDescriptor enumType = field.getEnumType();

        if (tokenizer.lookingAtInteger()) {
          int number = tokenizer.consumeInt32();
          value = enumType.findValueByNumber(number);
          if (value == null) {
            throw tokenizer.parseExceptionPreviousToken("Enum type \""
                + enumType.getFullName()
                + "\" has no value with number "
                + number + ".");
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

        case ENUM: {
          EnumDescriptor enumType = field.getEnumType();

          if (tokenizer.lookingAtInteger()) {
            int number = tokenizer.consumeInt32();
            value = enumType.findValueByNumber(number);
            if (value == null) {
              throw tokenizer.parseExceptionPreviousToken(
                "Enum type \"" + enumType.getFullName() +
                "\" has no value with number " + number + ".");
            }
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

        case ENUM:
          final EnumDescriptor enumType = field.getEnumType();

          if (tokenizer.lookingAtInteger()) {
            final int number = tokenizer.consumeInt32();
            value = enumType.findValueByNumber(number);
            if (value == null) {
              throw tokenizer.parseExceptionPreviousToken(
                "Enum type \"" + enumType.getFullName() +
                "\" has no value with number " + number + '.');
            }
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

        case ENUM:
          final EnumDescriptor enumType = field.getEnumType();

          if (tokenizer.lookingAtInteger()) {
            final int number = tokenizer.consumeInt32();
            value = enumType.findValueByNumber(number);
            if (value == null) {
              throw tokenizer.parseExceptionPreviousToken(
                "Enum type \"" + enumType.getFullName() +
                "\" has no value with number " + number + '.');
            }
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

        case ENUM:
          final EnumDescriptor enumType = field.getEnumType();

          if (tokenizer.lookingAtInteger()) {
            final int number = tokenizer.consumeInt32();
            value = enumType.findValueByNumber(number);
            if (value == null) {
              throw tokenizer.parseExceptionPreviousToken(
                "Enum type \"" + enumType.getFullName() +
                "\" has no value with number " + number + '.');
            }
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

        case ENUM:
          final EnumDescriptor enumType = field.getEnumType();

          if (tokenizer.lookingAtInteger()) {
            final int number = tokenizer.consumeInt32();
            value = enumType.findValueByNumber(number);
            if (value == null) {
              throw tokenizer.parseExceptionPreviousToken(
                "Enum type \"" + enumType.getFullName() +
                "\" has no value with number " + number + '.');
            }
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

            case ENUM: {
                EnumDescriptor enumType = field.getEnumType();

                if (tokenizer.lookingAtInteger()) {
                    int number = tokenizer.consumeInt32();
                    value = enumType.findValueByNumber(number);
                    if (value == null) {
                        throw tokenizer.parseExceptionPreviousToken("Enum type \""
                                                                    + enumType.getFullName()
                                                                    + "\" has no value with number "
                                                                    + number + ".");
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

            case ENUM: {
                EnumDescriptor enumType = field.getEnumType();
                if (token.equals(JsonToken.VALUE_NUMBER_INT)) {
                    int number = parser.getIntValue();
                    value = enumType.findValueByNumber(number);
                    if (value == null) {
                        throw new RuntimeException("Enum type \""
                            + enumType.getFullName()
                            + "\" has no value with number "
                            + number + ".");
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

            case ENUM: {
                EnumDescriptor enumType = field.getEnumType();
                if (isDigits(value)) {
                    int number = parseInt32(value);
                    result = enumType.findValueByNumber(number);
                    if (result == null) {
                        throw new RuntimeException("Enum type \""
                            + enumType.getFullName()
                            + "\" has no value with number "
                            + number + ".");
View Full Code Here

Examples of com.google.protobuf.Descriptors.EnumDescriptor.findValueByNumber()

            case ENUM: {
                EnumDescriptor enumType = field.getEnumType();

                if (tokenizer.lookingAtInteger()) {
                    int number = tokenizer.consumeInt32();
                    value = enumType.findValueByNumber(number);
                    if (value == null) {
                        throw tokenizer.parseExceptionPreviousToken("Enum type \""
                                                                    + enumType.getFullName()
                                                                    + "\" has no value with number "
                                                                    + number + ".");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.