@java.lang.Override public com.google.cloud.vision.v1.LatLongRect buildPartial() { com.google.cloud.vision.v1.LatLongRect result = new com.google.cloud.vision.v1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { result.minLatLng_ = minLatLngBuilder_.build(); } if (maxLatLngBuilder_ == null) { result.maxLatLng_ = maxLatLng_; } else { result.maxLatLng_ = maxLatLngBuilder_.build(); } onBuilt(); return result; }
public Builder mergeFrom(com.google.cloud.vision.v1.LatLongRect other) { if (other == com.google.cloud.vision.v1.LatLongRect.getDefaultInstance()) return this; if (other.hasMinLatLng()) { mergeMinLatLng(other.getMinLatLng()); } if (other.hasMaxLatLng()) { mergeMaxLatLng(other.getMaxLatLng()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public com.google.cloud.vision.v1.LatLongRect build() { com.google.cloud.vision.v1.LatLongRect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } if (maxLatLng_ != null) { output.writeMessage(2, getMaxLatLng()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.LatLongRect)) { return super.equals(obj); } com.google.cloud.vision.v1.LatLongRect other = (com.google.cloud.vision.v1.LatLongRect) obj; boolean result = true; result = result && (hasMinLatLng() == other.hasMinLatLng()); if (hasMinLatLng()) { result = result && getMinLatLng().equals(other.getMinLatLng()); } result = result && (hasMaxLatLng() == other.hasMaxLatLng()); if (hasMaxLatLng()) { result = result && getMaxLatLng().equals(other.getMaxLatLng()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public com.google.cloud.vision.v1.LatLongRect getDefaultInstanceForType() { return com.google.cloud.vision.v1.LatLongRect.getDefaultInstance(); }
/** * * * <pre> * Min lat/long pair. * </pre> * * <code>.google.type.LatLng min_lat_lng = 1;</code> */ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { return getMinLatLng(); }
/** * * * <pre> * Max lat/long pair. * </pre> * * <code>.google.type.LatLng max_lat_lng = 2;</code> */ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { return getMaxLatLng(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageContext other = (com.google.cloud.vision.v1.ImageContext) obj; boolean result = true; result = result && (hasLatLongRect() == other.hasLatLongRect()); if (hasLatLongRect()) { result = result && getLatLongRect().equals(other.getLatLongRect()); } result = result && getLanguageHintsList().equals(other.getLanguageHintsList()); result = result && (hasCropHintsParams() == other.hasCropHintsParams()); if (hasCropHintsParams()) { result = result && getCropHintsParams().equals(other.getCropHintsParams()); } result = result && (hasProductSearchParams() == other.hasProductSearchParams()); if (hasProductSearchParams()) { result = result && getProductSearchParams().equals(other.getProductSearchParams()); } result = result && (hasWebDetectionParams() == other.hasWebDetectionParams()); if (hasWebDetectionParams()) { result = result && getWebDetectionParams().equals(other.getWebDetectionParams()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (hasLatLongRect()) { hash = (37 * hash) + LAT_LONG_RECT_FIELD_NUMBER; hash = (53 * hash) + getLatLongRect().hashCode();
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minLatLng_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinLatLng()); } if (maxLatLng_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxLatLng()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Not used. * </pre> * * <code>.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;</code> */ public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; } /**
/** * * * <pre> * Min lat/long pair. * </pre> * * <code>.google.type.LatLng min_lat_lng = 1;</code> */ public com.google.type.LatLngOrBuilder getMinLatLngOrBuilder() { return getMinLatLng(); }
/** * * * <pre> * Max lat/long pair. * </pre> * * <code>.google.type.LatLng max_lat_lng = 2;</code> */ public com.google.type.LatLngOrBuilder getMaxLatLngOrBuilder() { return getMaxLatLng(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.vision.v1.ImageContext)) { return super.equals(obj); } com.google.cloud.vision.v1.ImageContext other = (com.google.cloud.vision.v1.ImageContext) obj; boolean result = true; result = result && (hasLatLongRect() == other.hasLatLongRect()); if (hasLatLongRect()) { result = result && getLatLongRect().equals(other.getLatLongRect()); } result = result && getLanguageHintsList().equals(other.getLanguageHintsList()); result = result && (hasCropHintsParams() == other.hasCropHintsParams()); if (hasCropHintsParams()) { result = result && getCropHintsParams().equals(other.getCropHintsParams()); } result = result && (hasProductSearchParams() == other.hasProductSearchParams()); if (hasProductSearchParams()) { result = result && getProductSearchParams().equals(other.getProductSearchParams()); } result = result && (hasWebDetectionParams() == other.hasWebDetectionParams()); if (hasWebDetectionParams()) { result = result && getWebDetectionParams().equals(other.getWebDetectionParams()); } result = result && unknownFields.equals(other.unknownFields); return result; }
if (hasLatLongRect()) { hash = (37 * hash) + LAT_LONG_RECT_FIELD_NUMBER; hash = (53 * hash) + getLatLongRect().hashCode();
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minLatLng_ != null) { output.writeMessage(1, getMinLatLng()); } if (maxLatLng_ != null) { output.writeMessage(2, getMaxLatLng()); } unknownFields.writeTo(output); }
/** * * * <pre> * Not used. * </pre> * * <code>.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;</code> */ public com.google.cloud.vision.v1.LatLongRect getLatLongRect() { if (latLongRectBuilder_ == null) { return latLongRect_ == null ? com.google.cloud.vision.v1.LatLongRect.getDefaultInstance() : latLongRect_; } else { return latLongRectBuilder_.getMessage(); } } /**
@java.lang.Override public com.google.cloud.vision.v1.LatLongRect build() { com.google.cloud.vision.v1.LatLongRect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public com.google.cloud.vision.v1.LatLongRect buildPartial() { com.google.cloud.vision.v1.LatLongRect result = new com.google.cloud.vision.v1.LatLongRect(this); if (minLatLngBuilder_ == null) { result.minLatLng_ = minLatLng_; } else { result.minLatLng_ = minLatLngBuilder_.build(); } if (maxLatLngBuilder_ == null) { result.maxLatLng_ = maxLatLng_; } else { result.maxLatLng_ = maxLatLngBuilder_.build(); } onBuilt(); return result; }