return uuidString.equals(edgeValue.uuidString); } else if (null != uuidObj && null != edgeValue.uuidObj) { return uuidObj.equals(edgeValue.uuidObj); } else if (null != uuidObj && edgeValue.hasOnlyUuidString) { return false;
public Builder clear() { super.clear(); count_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); hours_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); duration_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); hourBitmask_ = 0; bitField0_ = (bitField0_ & ~0x00000008); sourceValue_ = ""; bitField0_ = (bitField0_ & ~0x00000010); sinkValue_ = ""; bitField0_ = (bitField0_ & ~0x00000020); loadDate_ = ""; bitField0_ = (bitField0_ & ~0x00000040); badActivity_ = false; bitField0_ = (bitField0_ & ~0x00000080); if (uuidBuilder_ == null) { uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); uuidString_ = ""; bitField0_ = (bitField0_ & ~0x00000200); return this; }
private static String convertUuidObjectToString(EdgeData.EdgeValue.UUID rawUuid) { UUID uuidObj = new UUID(rawUuid.getMostSignificantBits(), rawUuid.getLeastSignificantBits()); return uuidObj.toString(); }
@Override public int hashCode() { int result = count != null ? count.hashCode() : 0; result = 31 * result + (bitmask != null ? bitmask.hashCode() : 0); result = 31 * result + (sourceValue != null ? sourceValue.hashCode() : 0); result = 31 * result + (sinkValue != null ? sinkValue.hashCode() : 0); result = 31 * result + (hours != null ? hours.hashCode() : 0); result = 31 * result + (duration != null ? duration.hashCode() : 0); result = 31 * result + (loadDate != null ? loadDate.hashCode() : 0); if (uuidObj == null && !hasOnlyUuidString) { // force initialization of uuidObj, if possible (will short circuit if already failed to parse) getUuidObject(); } if (uuidObj != null) { // if it's impossible to use uuidObj, then use uuidString result = 31 * result + (uuidObj != null ? uuidObj.hashCode() : 0); } else { result = 31 * result + (uuidString != null ? uuidString.hashCode() : 0); } return 31 * result + (badActivityDate != null ? badActivityDate.hashCode() : 0); }
/** * <code>optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9;</code> * * <pre> * a single uuid of an event that contributed to the edge * </pre> */ public Builder mergeUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID value) { if (uuidBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && uuid_ != datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance()) { uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial(); } else { uuid_ = value; } onChanged(); } else { uuidBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; }
public datawave.edge.protobuf.EdgeData.EdgeValue.UUID buildPartial() { datawave.edge.protobuf.EdgeData.EdgeValue.UUID result = new datawave.edge.protobuf.EdgeData.EdgeValue.UUID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.leastSignificantBits_ = leastSignificantBits_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.mostSignificantBits_ = mostSignificantBits_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public datawave.edge.protobuf.EdgeData.EdgeValue.UUID getDefaultInstanceForType() { return datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); }
/** * <code>optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9;</code> * * <pre> * a single uuid of an event that contributed to the edge * </pre> */ public Builder clearUuid() { if (uuidBuilder_ == null) { uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); onChanged(); } else { uuidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasLeastSignificantBits()) { memoizedIsInitialized = 0; return false; } if (!hasMostSignificantBits()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
private void initFields() { count_ = 0L; hours_ = java.util.Collections.emptyList(); duration_ = java.util.Collections.emptyList(); hourBitmask_ = 0; sourceValue_ = ""; sinkValue_ = ""; loadDate_ = ""; badActivity_ = false; uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); uuidString_ = ""; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeSInt64Size(1, leastSignificantBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeSInt64Size(2, mostSignificantBits_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(datawave.edge.protobuf.EdgeData.EdgeValue.UUID other) { if (other == datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance()) return this; if (other.hasLeastSignificantBits()) { setLeastSignificantBits(other.getLeastSignificantBits()); } if (other.hasMostSignificantBits()) { setMostSignificantBits(other.getMostSignificantBits()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, leastSignificantBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt64(2, mostSignificantBits_); } getUnknownFields().writeTo(output); }