public Builder clear() { super.clear(); if (timestampRequestBuilder_ == null) { timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance(); } else { timestampRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (commitRequestBuilder_ == null) { commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance(); } else { commitRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (handshakeRequestBuilder_ == null) { handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance(); } else { handshakeRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (fenceRequestBuilder_ == null) { fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance(); } else { fenceRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; }
/** * <code>optional .HandshakeRequest handshakeRequest = 3;</code> */ public Builder clearHandshakeRequest() { if (handshakeRequestBuilder_ == null) { handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance(); onChanged(); } else { handshakeRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .HandshakeRequest handshakeRequest = 3;</code> */ public Builder mergeHandshakeRequest(org.apache.omid.proto.TSOProto.HandshakeRequest value) { if (handshakeRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && handshakeRequest_ != org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) { handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.newBuilder(handshakeRequest_).mergeFrom(value).buildPartial(); } else { handshakeRequest_ = value; } onChanged(); } else { handshakeRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public org.apache.omid.proto.TSOProto.HandshakeRequest getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance(); }
public Builder mergeFrom(org.apache.omid.proto.TSOProto.HandshakeRequest other) { if (other == org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) return this; if (other.hasClientCapabilities()) { mergeClientCapabilities(other.getClientCapabilities()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private void initFields() { timestampRequest_ = org.apache.omid.proto.TSOProto.TimestampRequest.getDefaultInstance(); commitRequest_ = org.apache.omid.proto.TSOProto.CommitRequest.getDefaultInstance(); handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance(); fenceRequest_ = org.apache.omid.proto.TSOProto.FenceRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1;