@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageAnnotationContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageAnnotationContext other = (com.google.cloud.vision.v1.ImageAnnotationContext) obj; boolean result = true; result = result && getUri().equals(other.getUri()); result = result && (getPageNumber() == other.getPageNumber()); 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(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPageNumber(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) { if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.getPageNumber() != 0) { setPageNumber(other.getPageNumber()); } 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 com.google.cloud.vision.v1.ImageAnnotationContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageAnnotationContext other = (com.google.cloud.vision.v1.ImageAnnotationContext) obj; boolean result = true; result = result && getUri().equals(other.getUri()); result = result && (getPageNumber() == other.getPageNumber()); 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(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPageNumber(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * The URI of the file used to produce the image. * </pre> * * <code>string uri = 1;</code> */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.vision.v1.ImageAnnotationContext other) { if (other == com.google.cloud.vision.v1.ImageAnnotationContext.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.getPageNumber() != 0) { setPageNumber(other.getPageNumber()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }