/** * * * <pre> * Optional cloud region where annotation should take place. Supported cloud * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region * is specified, a region will be determined based on video file location. * </pre> * * <code>string location_id = 5;</code> */ public Builder clearLocationId() { locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getInputUri().hashCode(); hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER; hash = (53 * hash) + getInputContent().hashCode(); if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + features_.hashCode(); } if (hasVideoContext()) { hash = (37 * hash) + VIDEO_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getVideoContext().hashCode(); } hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getOutputUri().hashCode(); hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; hash = (53 * hash) + getLocationId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest other = (com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) obj; boolean result = true; result = result && getInputUri().equals(other.getInputUri()); result = result && getInputContent().equals(other.getInputContent()); result = result && features_.equals(other.features_); result = result && (hasVideoContext() == other.hasVideoContext()); if (hasVideoContext()) { result = result && getVideoContext().equals(other.getVideoContext()); } result = result && getOutputUri().equals(other.getOutputUri()); result = result && getLocationId().equals(other.getLocationId()); result = result && unknownFields.equals(other.unknownFields); return result; }
onChanged(); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged();