public Builder setAuthor(java.lang.String value) { if (value == null) { throw new NullPointerException(); } result.hasAuthor = true; result.author_ = value; return this; }
public Builder setResultingVersion( org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) { if (value == null) { throw new NullPointerException(); } result.hasResultingVersion = true; result.resultingVersion_ = value; return this; }
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; }
public Builder mergeResultingVersion( org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion value) { if (result.hasResultingVersion() && result.resultingVersion_ != org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion .getDefaultInstance()) { result.resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.newBuilder( result.resultingVersion_) .mergeFrom(value) .buildPartial(); } else { result.resultingVersion_ = value; } result.hasResultingVersion = true; return this; }
public Builder addOperation( org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation.Builder builderForValue) { if (result.operation_.isEmpty()) { result.operation_ = new java.util.ArrayList< org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation>(); } result.operation_.add(builderForValue.build()); return this; }
public Builder addAllOperation( java.lang.Iterable< ? extends org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation> values) { if (result.operation_.isEmpty()) { result.operation_ = new java.util.ArrayList< org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation>(); } super.addAll(values, result.operation_); return this; }
public Builder addOperation( org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation value) { if (value == null) { throw new NullPointerException(); } if (result.operation_.isEmpty()) { result.operation_ = new java.util.ArrayList< org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation>(); } result.operation_.add(value); return this; }
public org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData .ProtoTransformedWaveletDelta buildPartial() { if (result == null) { throw new IllegalStateException("build() has already been called on this Builder."); } if (result.operation_ != java.util.Collections.EMPTY_LIST) { result.operation_ = java.util.Collections.unmodifiableList(result.operation_); } org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData .ProtoTransformedWaveletDelta returnMe = result; result = null; return returnMe; }
public org.waveprotocol.wave.federation.Proto.ProtocolWaveletOperation getOperation( int index) { return result.getOperation(index); }
public int getOperationCount() { return result.getOperationCount(); }
public Builder clearApplicationTimestamp() { result.hasApplicationTimestamp = false; result.applicationTimestamp_ = 0L; return this; }
public Builder setApplicationTimestamp(long value) { result.hasApplicationTimestamp = true; result.applicationTimestamp_ = value; return this; }
public long getApplicationTimestamp() { return result.getApplicationTimestamp(); }
// required int64 application_timestamp = 3; public boolean hasApplicationTimestamp() { return result.hasApplicationTimestamp(); }
public java.lang.String getAuthor() { return result.getAuthor(); }
public boolean isInitialized() { return result.isInitialized(); }
public org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData .ProtoTransformedWaveletDelta getDefaultInstanceForType() { return org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData .ProtoTransformedWaveletDelta.getDefaultInstance(); }
public org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion getResultingVersion() { return result.getResultingVersion(); }
// required .federation.ProtocolHashedVersion resulting_version = 2; public boolean hasResultingVersion() { return result.hasResultingVersion(); }
public Builder clearAuthor() { result.hasAuthor = false; result.author_ = getDefaultInstance().getAuthor(); return this; }
public Builder clearResultingVersion() { result.hasResultingVersion = false; result.resultingVersion_ = org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.getDefaultInstance(); return this; }
public Builder setResultingVersion( org.waveprotocol.wave.federation.Proto.ProtocolHashedVersion.Builder builderForValue) { result.hasResultingVersion = true; result.resultingVersion_ = builderForValue.build(); return this; }
// required string author = 1; public boolean hasAuthor() { return result.hasAuthor(); }
public Builder clearOperation() { result.operation_ = java.util.Collections.emptyList(); return this; }
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData .ProtoTransformedWaveletDelta.getDescriptor(); }