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 .CommitResponse commitResponse = 2;</code> */ public Builder clearCommitResponse() { if (commitResponseBuilder_ == null) { commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance(); onChanged(); } else { commitResponseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional .CommitResponse commitResponse = 2;</code> */ public Builder mergeCommitResponse(org.apache.omid.proto.TSOProto.CommitResponse value) { if (commitResponseBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && commitResponse_ != org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance()) { commitResponse_ = org.apache.omid.proto.TSOProto.CommitResponse.newBuilder(commitResponse_).mergeFrom(value).buildPartial(); } else { commitResponse_ = value; } onChanged(); } else { commitResponseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public Builder mergeFrom(org.apache.omid.proto.TSOProto.CommitResponse other) { if (other == org.apache.omid.proto.TSOProto.CommitResponse.getDefaultInstance()) return this; if (other.hasAborted()) { setAborted(other.getAborted()); } if (other.hasStartTimestamp()) { setStartTimestamp(other.getStartTimestamp()); } if (other.hasCommitTimestamp()) { setCommitTimestamp(other.getCommitTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.omid.proto.TSOProto.CommitResponse getDefaultInstanceForType() { return org.apache.omid.proto.TSOProto.CommitResponse.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;