/** * * * <pre> * Timestamp of the index which provided these results. Changes made after * this time are not reflected in the current results. * </pre> * * <code>.google.protobuf.Timestamp index_time = 2;</code> */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { return getIndexTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { output.writeMessage(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { output.writeMessage(6, productGroupedResults_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (indexTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, productGroupedResults_.get(i)); } 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.ProductSearchResults)) { return super.equals(obj); } com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; boolean result = true; result = result && (hasIndexTime() == other.hasIndexTime()); if (hasIndexTime()) { result = result && getIndexTime().equals(other.getIndexTime()); } result = result && getResultsList().equals(other.getResultsList()); result = result && getProductGroupedResultsList().equals(other.getProductGroupedResultsList()); 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 (hasIndexTime()) { hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; hash = (53 * hash) + getIndexTime().hashCode(); } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } if (getProductGroupedResultsCount() > 0) { hash = (37 * hash) + PRODUCT_GROUPED_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getProductGroupedResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime());
/** * * * <pre> * Timestamp of the index which provided these results. Changes made after * this time are not reflected in the current results. * </pre> * * <code>.google.protobuf.Timestamp index_time = 2;</code> */ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { return getIndexTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (indexTime_ != null) { output.writeMessage(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { output.writeMessage(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { output.writeMessage(6, productGroupedResults_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (indexTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndexTime()); } for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, results_.get(i)); } for (int i = 0; i < productGroupedResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, productGroupedResults_.get(i)); } 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.ProductSearchResults)) { return super.equals(obj); } com.google.cloud.vision.v1.ProductSearchResults other = (com.google.cloud.vision.v1.ProductSearchResults) obj; boolean result = true; result = result && (hasIndexTime() == other.hasIndexTime()); if (hasIndexTime()) { result = result && getIndexTime().equals(other.getIndexTime()); } result = result && getResultsList().equals(other.getResultsList()); result = result && getProductGroupedResultsList().equals(other.getProductGroupedResultsList()); 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 (hasIndexTime()) { hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; hash = (53 * hash) + getIndexTime().hashCode(); } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } if (getProductGroupedResultsCount() > 0) { hash = (37 * hash) + PRODUCT_GROUPED_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getProductGroupedResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
return this; if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime());