コード例 #1
0
 public Builder mergeFrom(
     org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData
             .ProtoTransformedWaveletDelta
         other) {
   if (other
       == org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData
           .ProtoTransformedWaveletDelta.getDefaultInstance()) return this;
   if (other.hasAuthor()) {
     setAuthor(other.getAuthor());
   }
   if (other.hasResultingVersion()) {
     mergeResultingVersion(other.getResultingVersion());
   }
   if (other.hasApplicationTimestamp()) {
     setApplicationTimestamp(other.getApplicationTimestamp());
   }
   if (!other.operation_.isEmpty()) {
     if (result.operation_.isEmpty()) {
       result.operation_ =
           new java.util.ArrayList<
               org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation>();
     }
     result.operation_.addAll(other.operation_);
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
コード例 #2
0
 public Builder clearApplicationTimestamp() {
   result.hasApplicationTimestamp = false;
   result.applicationTimestamp_ = 0L;
   return this;
 }
コード例 #3
0
 public Builder setApplicationTimestamp(long value) {
   result.hasApplicationTimestamp = true;
   result.applicationTimestamp_ = value;
   return this;
 }
コード例 #4
0
 // required int64 application_timestamp = 3;
 public boolean hasApplicationTimestamp() {
   return result.hasApplicationTimestamp();
 }