Package org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl

Examples of org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl.KeyValueUpdateProtoImpl


        } else {
          clearEmpty();
        }
        clearAttributeUpdate();
        for (KeyValueUpdate field : message.getAttributeUpdate()) {
          addAttributeUpdate(new KeyValueUpdateProtoImpl(field));
        }
      }
View Full Code Here


      @Override
      public List<KeyValueUpdateProtoImpl> getAttributeUpdate() {
        switchToProto();
        List<KeyValueUpdateProtoImpl> list = new ArrayList<KeyValueUpdateProtoImpl>();
        for (int i = 0; i < getAttributeUpdateSize(); i++) {
          KeyValueUpdateProtoImpl message = new KeyValueUpdateProtoImpl(proto.getAttributeUpdate(i));
          list.add(message);
        }
        return list;
      }
View Full Code Here

      }

      @Override
      public KeyValueUpdateProtoImpl getAttributeUpdate(int n) {
        switchToProto();
        return new KeyValueUpdateProtoImpl(proto.getAttributeUpdate(n));
      }
View Full Code Here

      /** Get or create a KeyValueUpdateProtoImpl from a KeyValueUpdate. */
      private KeyValueUpdateProtoImpl getOrCreateKeyValueUpdateProtoImpl(KeyValueUpdate message) {
        if (message instanceof KeyValueUpdateProtoImpl) {
          return (KeyValueUpdateProtoImpl) message;
        } else {
          KeyValueUpdateProtoImpl messageImpl = new KeyValueUpdateProtoImpl();
          messageImpl.copyFrom(message);
          return messageImpl;
        }
      }
View Full Code Here

        if (jsonObject.has("2")) {
          JsonElement elem = jsonObject.get("2");
          {
            JsonArray array = elem.getAsJsonArray();
            for (int i = 0; i < array.size(); i++) {
              KeyValueUpdateProtoImpl payload = new KeyValueUpdateProtoImpl();
              GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
              addAttributeUpdate(payload);
            }
          }
        }
View Full Code Here

        for (String field : message.getEnd()) {
          addEnd(field);
        }
        clearChange();
        for (KeyValueUpdate field : message.getChange()) {
          addChange(new KeyValueUpdateProtoImpl(field));
        }
      }
View Full Code Here

      @Override
      public List<KeyValueUpdateProtoImpl> getChange() {
        switchToProto();
        List<KeyValueUpdateProtoImpl> list = new ArrayList<KeyValueUpdateProtoImpl>();
        for (int i = 0; i < getChangeSize(); i++) {
          KeyValueUpdateProtoImpl message = new KeyValueUpdateProtoImpl(proto.getChange(i));
          list.add(message);
        }
        return list;
      }
View Full Code Here

      }

      @Override
      public KeyValueUpdateProtoImpl getChange(int n) {
        switchToProto();
        return new KeyValueUpdateProtoImpl(proto.getChange(n));
      }
View Full Code Here

      /** Get or create a KeyValueUpdateProtoImpl from a KeyValueUpdate. */
      private KeyValueUpdateProtoImpl getOrCreateKeyValueUpdateProtoImpl(KeyValueUpdate message) {
        if (message instanceof KeyValueUpdateProtoImpl) {
          return (KeyValueUpdateProtoImpl) message;
        } else {
          KeyValueUpdateProtoImpl messageImpl = new KeyValueUpdateProtoImpl();
          messageImpl.copyFrom(message);
          return messageImpl;
        }
      }
View Full Code Here

        if (jsonObject.has("3")) {
          JsonElement elem = jsonObject.get("3");
          {
            JsonArray array = elem.getAsJsonArray();
            for (int i = 0; i < array.size(); i++) {
              KeyValueUpdateProtoImpl payload = new KeyValueUpdateProtoImpl();
              GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
              addChange(payload);
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl.KeyValueUpdateProtoImpl

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.