Package org.waveprotocol.wave.federation.proto.ProtocolWaveletOperationProtoImpl

Examples of org.waveprotocol.wave.federation.proto.ProtocolWaveletOperationProtoImpl.MutateDocumentProtoImpl


      setRemoveParticipant(message.getRemoveParticipant());
    } else {
      clearRemoveParticipant();
    }
    if (message.hasMutateDocument()) {
      setMutateDocument(new MutateDocumentProtoImpl(message.getMutateDocument()));
    } else {
      clearMutateDocument();
    }
    if (message.hasNoOp()) {
      setNoOp(message.getNoOp());
View Full Code Here


  }

  @Override
  public MutateDocumentProtoImpl getMutateDocument() {
    switchToProto();
    return new MutateDocumentProtoImpl(proto.getMutateDocument());
  }
View Full Code Here

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

    }
    if (jsonObject.has("3")) {
      JsonElement elem = jsonObject.get("3");
      if (!elem.isJsonNull()) {
        {
          MutateDocumentProtoImpl payload = new MutateDocumentProtoImpl();
          GsonUtil.extractJsonObject(payload, elem, gson, raw);
          setMutateDocument(payload);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.federation.proto.ProtocolWaveletOperationProtoImpl.MutateDocumentProtoImpl

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.