public Builder clear() { super.clear(); if (timestampResponseBuilder_ == null) { timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance(); } else { timestampResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (commitResponseBuilder_ == null) { commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance(); } else { commitResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (handshakeResponseBuilder_ == null) { handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance(); } else { handshakeResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (fenceResponseBuilder_ == null) { fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance(); } else { fenceResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; }
/** * <code>optional .TimestampResponse timestampResponse = 1;</code> */ public Builder clearTimestampResponse() { if (timestampResponseBuilder_ == null) { timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance(); onChanged(); } else { timestampResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional .TimestampResponse timestampResponse = 1;</code> */ public Builder mergeTimestampResponse(org.apache.omid.proto.TSOProto.TimestampResponse value) { if (timestampResponseBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && timestampResponse_ != org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) { timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.newBuilder(timestampResponse_).mergeFrom(value).buildPartial(); } else { timestampResponse_ = value; } onChanged(); } else { timestampResponseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public org.apache.omid.proto.TSOProto.TimestampResponse getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance(); }
private void initFields() { timestampResponse_ = org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance(); commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance(); handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance(); fenceResponse_ = org.apache.omid.proto.TSOProto.FenceResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public Builder mergeFrom(org.apache.omid.proto.TSOProto.TimestampResponse other) { if (other == org.apache.omid.proto.TSOProto.TimestampResponse.getDefaultInstance()) return this; if (other.hasStartTimestamp()) { setStartTimestamp(other.getStartTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }