@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.tensorflow.framework.ApiDef.Attr other) { if (other == org.tensorflow.framework.ApiDef.Attr.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (other.hasDefaultValue()) { mergeDefaultValue(other.getDefaultValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Attr)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Attr other = (org.tensorflow.framework.ApiDef.Attr) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && (hasDefaultValue() == other.hasDefaultValue()); if (hasDefaultValue()) { result = result && getDefaultValue() .equals(other.getDefaultValue()); } result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.ApiDef.Attr)) { return super.equals(obj); } org.tensorflow.framework.ApiDef.Attr other = (org.tensorflow.framework.ApiDef.Attr) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getRenameTo() .equals(other.getRenameTo()); result = result && (hasDefaultValue() == other.hasDefaultValue()); if (hasDefaultValue()) { result = result && getDefaultValue() .equals(other.getDefaultValue()); } result = result && getDescription() .equals(other.getDescription()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.tensorflow.framework.ApiDef.Attr other) { if (other == org.tensorflow.framework.ApiDef.Attr.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (other.hasDefaultValue()) { mergeDefaultValue(other.getDefaultValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; hash = (53 * hash) + getRenameTo().hashCode(); if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }