/** * * * <pre> * The image to be processed. * </pre> * * <code>.google.cloud.vision.v1.Image image = 1;</code> */ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { return getImage(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } for (int i = 0; i < features_.size(); i++) { output.writeMessage(2, features_.get(i)); } if (imageContext_ != null) { output.writeMessage(3, getImageContext()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (image_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * The image to be processed. * </pre> * * <code>.google.cloud.vision.v1.Image image = 1;</code> */ public com.google.cloud.vision.v1.ImageOrBuilder getImageOrBuilder() { return getImage(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageRequest)) { return super.equals(obj); } com.google.cloud.vision.v1.AnnotateImageRequest other = (com.google.cloud.vision.v1.AnnotateImageRequest) obj; boolean result = true; result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && getFeaturesList().equals(other.getFeaturesList()); result = result && (hasImageContext() == other.hasImageContext()); if (hasImageContext()) { result = result && getImageContext().equals(other.getImageContext()); } 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 (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeaturesList().hashCode(); } if (hasImageContext()) { hash = (37 * hash) + IMAGE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getImageContext().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
return this; if (other.hasImage()) { mergeImage(other.getImage());
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } for (int i = 0; i < features_.size(); i++) { output.writeMessage(2, features_.get(i)); } if (imageContext_ != null) { output.writeMessage(3, getImageContext()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (image_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImage()); } for (int i = 0; i < features_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, features_.get(i)); } if (imageContext_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.AnnotateImageRequest)) { return super.equals(obj); } com.google.cloud.vision.v1.AnnotateImageRequest other = (com.google.cloud.vision.v1.AnnotateImageRequest) obj; boolean result = true; result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && getFeaturesList().equals(other.getFeaturesList()); result = result && (hasImageContext() == other.hasImageContext()); if (hasImageContext()) { result = result && getImageContext().equals(other.getImageContext()); } 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 (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeaturesList().hashCode(); } if (hasImageContext()) { hash = (37 * hash) + IMAGE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getImageContext().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
return this; if (other.hasImage()) { mergeImage(other.getImage());