Package org.waveprotocol.wave.federation.proto

Examples of org.waveprotocol.wave.federation.proto.ProtocolHashedVersionProtoImpl


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


      }
    }
    if (jsonObject.has("4")) {
      JsonElement elem = jsonObject.get("4");
      {
        ProtocolHashedVersionProtoImpl payload = new ProtocolHashedVersionProtoImpl();
        GsonUtil.extractJsonObject(payload, elem, gson, raw);
        setVersion(payload);
      }
    }
    if (jsonObject.has("5")) {
View Full Code Here

  }

  @Override
  public void copyFrom(WaveletVersion message) {
    setWaveletId(message.getWaveletId());
    setVersion(new ProtocolHashedVersionProtoImpl(message.getVersion()));
  }
View Full Code Here

  }

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

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

      setWaveletId(elem.getAsString());
    }
    if (jsonObject.has("2")) {
      JsonElement elem = jsonObject.get("2");
      {
        ProtocolHashedVersionProtoImpl payload = new ProtocolHashedVersionProtoImpl();
        GsonUtil.extractJsonObject(payload, elem, gson, raw);
        setVersion(payload);
      }
    }
  }
View Full Code Here

  @Override
  public void copyFrom(OpenWaveletChannelRequest message) {
    setWaveId(message.getWaveId());
    setWaveletId(message.getWaveletId());
    setBeginVersion(new ProtocolHashedVersionProtoImpl(message.getBeginVersion()));
  }
View Full Code Here

  }

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

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

      setWaveletId(elem.getAsString());
    }
    if (jsonObject.has("3")) {
      JsonElement elem = jsonObject.get("3");
      {
        ProtocolHashedVersionProtoImpl payload = new ProtocolHashedVersionProtoImpl();
        GsonUtil.extractJsonObject(payload, elem, gson, raw);
        setBeginVersion(payload);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.federation.proto.ProtocolHashedVersionProtoImpl

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.