Package com.google.protobuf

Examples of com.google.protobuf.InvalidProtocolBufferException


    } else if (proto.getType() == MetaProtos.MessageProto.ActionType.DELETE) {
      return DeleteAction.convert(proto.getDelete());
    } else if (proto.getType() == MetaProtos.MessageProto.ActionType.INSERT) {
      return InsertAction.convert(proto.getInsert());
    }
    throw new InvalidProtocolBufferException(String.valueOf(proto.getType()));
  }
View Full Code Here


    } else if (action instanceof UpdateAction) {
      return ProtobufUtil.convertUpdateAction((UpdateAction) action);
    } else if (action instanceof InsertAction) {
      return ProtobufUtil.convertInsertAction((InsertAction) action);
    }
    throw new InvalidProtocolBufferException(action.toString());
  }
View Full Code Here

         case WireFormat.WIRETYPE_FIXED32:
            addField(tag).addFixed32(input.readFixed32());
            return true;

         default:
            throw new InvalidProtocolBufferException("Protocol message tag had invalid wire type " + wireType);
      }
   }
View Full Code Here

        throws InvalidProtocolBufferException {
      if (kvData == null) {
        throw new NullPointerException("kvData");
      } else if (!kvData.hasCore()) {
        // Core field is required
        throw new InvalidProtocolBufferException("No core.");
      }
      withCore(KeyVersionCore.parseFrom(kvData.getCore(), registry));
      this.kvData = kvData;
      return this;
    }
View Full Code Here

      super.withCore(kvCore);
      MockKeyVersionCore core =
          kvCore.getExtension(MockKeyVersionCore.extension);
      if (!core.hasMaterial()) {
        // Material is required
        throw new InvalidProtocolBufferException("Core material missing.");
      }
      this.material(core.getMaterial());
      return this;
    }
View Full Code Here

         case WireFormat.WIRETYPE_FIXED32:
            getField(tag).addLast(input.readFixed32());
            return true;

         default:
            throw new InvalidProtocolBufferException("Protocol message tag had invalid wire type " + wireType);
      }
   }
View Full Code Here

TOP

Related Classes of com.google.protobuf.InvalidProtocolBufferException

Copyright © 2018 www.massapicom. 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.