hash = (53 * hash) + getHostName().hashCode(); if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort();
public Builder mergeFrom(com.microsoft.reef.proto.DriverRuntimeProtocol.NodeDescriptorProto other) { if (other == com.microsoft.reef.proto.DriverRuntimeProtocol.NodeDescriptorProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } if (other.hasHostName()) { bitField0_ |= 0x00000002; hostName_ = other.hostName_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasMemorySize()) { setMemorySize(other.getMemorySize()); } if (other.hasRackName()) { bitField0_ |= 0x00000010; rackName_ = other.rackName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasIdentifier()) { memoizedIsInitialized = 0; return false; } if (!hasHostName()) { memoizedIsInitialized = 0; return false; } if (!hasPort()) { memoizedIsInitialized = 0; return false; } if (!hasMemorySize()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }