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 .HandshakeResponse handshakeResponse = 3;</code> */ public Builder clearHandshakeResponse() { if (handshakeResponseBuilder_ == null) { handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance(); onChanged(); } else { handshakeResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .HandshakeResponse handshakeResponse = 3;</code> */ public Builder mergeHandshakeResponse(org.apache.omid.proto.TSOProto.HandshakeResponse value) { if (handshakeResponseBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && handshakeResponse_ != org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance()) { handshakeResponse_ = org.apache.omid.proto.TSOProto.HandshakeResponse.newBuilder(handshakeResponse_).mergeFrom(value).buildPartial(); } else { handshakeResponse_ = value; } onChanged(); } else { handshakeResponseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder mergeFrom(org.apache.omid.proto.TSOProto.HandshakeResponse other) { if (other == org.apache.omid.proto.TSOProto.HandshakeResponse.getDefaultInstance()) return this; if (other.hasClientCompatible()) { setClientCompatible(other.getClientCompatible()); } if (other.hasServerCapabilities()) { mergeServerCapabilities(other.getServerCapabilities()); } if (other.hasLowLatency()) { setLowLatency(other.getLowLatency()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.omid.proto.TSOProto.HandshakeResponse getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.HandshakeResponse.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;