@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.AnalyzeEntitiesResponse)) { return super.equals(obj); } com.google.cloud.language.v1.AnalyzeEntitiesResponse other = (com.google.cloud.language.v1.AnalyzeEntitiesResponse) obj; boolean result = true; result = result && getEntitiesList().equals(other.getEntitiesList()); result = result && getLanguage().equals(other.getLanguage()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntitiesCount() > 0) { hash = (37 * hash) + ENTITIES_FIELD_NUMBER; hash = (53 * hash) + getEntitiesList().hashCode(); } hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
for (Entity entity : response.getEntitiesList()) { System.out.printf("Entity: %s", entity.getName()); System.out.printf("Salience: %.3f\n", entity.getSalience());
for (Entity entity : response.getEntitiesList()) { System.out.printf("Entity: %s", entity.getName()); System.out.printf("Salience: %.3f\n", entity.getSalience());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.AnalyzeEntitiesResponse)) { return super.equals(obj); } com.google.cloud.language.v1.AnalyzeEntitiesResponse other = (com.google.cloud.language.v1.AnalyzeEntitiesResponse) obj; boolean result = true; result = result && getEntitiesList().equals(other.getEntitiesList()); result = result && getLanguage().equals(other.getLanguage()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntitiesCount() > 0) { hash = (37 * hash) + ENTITIES_FIELD_NUMBER; hash = (53 * hash) + getEntitiesList().hashCode(); } hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }