if (hasResource()) { result = result && getResource() .equals(other.getResource());
if (hasResource()) { result = result && getResource() .equals(other.getResource());
!((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource));
if (hasAllocatedResource()) { result = result && getAllocatedResource() .equals(other.getAllocatedResource());
if (hasAllocatedResource()) { result = result && getAllocatedResource() .equals(other.getAllocatedResource());
!((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource));
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getId())) { builder.setId(convertToProtoFormat(this.containerId)); } if (this.nodeId != null && !((NodeIdPBImpl) nodeId).getProto().equals( builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } if (this.containerToken != null && !((TokenPBImpl) this.containerToken).getProto().equals( builder.getContainerToken())) { builder.setContainerToken(convertToProtoFormat(this.containerToken)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getId())) { builder.setId(convertToProtoFormat(this.containerId)); } if (this.nodeId != null && !((NodeIdPBImpl) nodeId).getProto().equals( builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } if (this.containerToken != null && !((TokenPBImpl) this.containerToken).getProto().equals( builder.getContainerToken())) { builder.setContainerToken(convertToProtoFormat(this.containerToken)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) this.containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getAllocatedResource())) { builder.setAllocatedResource(convertToProtoFormat(this.resource)); } if (this.nodeId != null && !((NodeIdPBImpl) this.nodeId).getProto().equals( builder.getAssignedNodeId())) { builder.setAssignedNodeId(convertToProtoFormat(this.nodeId)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) this.containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getAllocatedResource())) { builder.setAllocatedResource(convertToProtoFormat(this.resource)); } if (this.nodeId != null && !((NodeIdPBImpl) this.nodeId).getProto().equals( builder.getAssignedNodeId())) { builder.setAssignedNodeId(convertToProtoFormat(this.nodeId)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.nodeId != null && !((NodeIdPBImpl) nodeId).getProto().equals(builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.nodeId != null && !((NodeIdPBImpl) this.nodeId).getProto().equals( builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.used != null && !((ResourcePBImpl) this.used).getProto().equals( builder.getUsed())) { builder.setUsed(convertToProtoFormat(this.used)); } if (this.capability != null && !((ResourcePBImpl) this.capability).getProto().equals( builder.getCapability())) { builder.setCapability(convertToProtoFormat(this.capability)); } if (this.labels != null) { builder.clearNodeLabels(); builder.addAllNodeLabels(this.labels); } }
private void mergeLocalToBuilder() { if (this.nodeId != null && !((NodeIdPBImpl) this.nodeId).getProto().equals( builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.used != null && !((ResourcePBImpl) this.used).getProto().equals( builder.getUsed())) { builder.setUsed(convertToProtoFormat(this.used)); } if (this.capability != null && !((ResourcePBImpl) this.capability).getProto().equals( builder.getCapability())) { builder.setCapability(convertToProtoFormat(this.capability)); } if (this.labels != null) { builder.clearNodeLabels(); builder.addAllNodeLabels(this.labels); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.nodeId != null && !((NodeIdPBImpl) nodeId).getProto().equals(builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.usedResources != null && !((ResourcePBImpl) this.usedResources).getProto().equals( builder.getUsedResources())) { builder.setUsedResources(convertToProtoFormat(this.usedResources)); } if (this.reservedResources != null && !((ResourcePBImpl) this.reservedResources).getProto().equals( builder.getReservedResources())) { builder.setReservedResources( convertToProtoFormat(this.reservedResources)); } if (this.neededResources != null && !((ResourcePBImpl) this.neededResources).getProto().equals( builder.getNeededResources())) { builder.setNeededResources(convertToProtoFormat(this.neededResources)); } }
private void mergeLocalToBuilder() { if (this.usedResources != null && !((ResourcePBImpl) this.usedResources).getProto().equals( builder.getUsedResources())) { builder.setUsedResources(convertToProtoFormat(this.usedResources)); } if (this.reservedResources != null && !((ResourcePBImpl) this.reservedResources).getProto().equals( builder.getReservedResources())) { builder.setReservedResources( convertToProtoFormat(this.reservedResources)); } if (this.neededResources != null && !((ResourcePBImpl) this.neededResources).getProto().equals( builder.getNeededResources())) { builder.setNeededResources(convertToProtoFormat(this.neededResources)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null) { builder.setPriority(convertToProtoFormat(this.priority)); } }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getContainerId())) { builder.setContainerId(convertToProtoFormat(this.containerId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null) { builder.setPriority(convertToProtoFormat(this.priority)); } }