/** * * * <pre> * Model to use for shot change detection. * Supported values: "latest" and "stable" (the default). * </pre> * * <code>string shot_change_detection_model = 6;</code> */ public Builder clearShotChangeDetectionModel() { shotChangeDetectionModel_ = getDefaultInstance().getShotChangeDetectionModel(); 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.videointelligence.v1beta1.VideoContext)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.VideoContext other = (com.google.cloud.videointelligence.v1beta1.VideoContext) obj; boolean result = true; result = result && getSegmentsList().equals(other.getSegmentsList()); result = result && labelDetectionMode_ == other.labelDetectionMode_; result = result && (getStationaryCamera() == other.getStationaryCamera()); result = result && getLabelDetectionModel().equals(other.getLabelDetectionModel()); result = result && getFaceDetectionModel().equals(other.getFaceDetectionModel()); result = result && getShotChangeDetectionModel().equals(other.getShotChangeDetectionModel()); result = result && getSafeSearchDetectionModel().equals(other.getSafeSearchDetectionModel()); 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 (getSegmentsCount() > 0) { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } hash = (37 * hash) + LABEL_DETECTION_MODE_FIELD_NUMBER; hash = (53 * hash) + labelDetectionMode_; hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStationaryCamera()); hash = (37 * hash) + LABEL_DETECTION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getLabelDetectionModel().hashCode(); hash = (37 * hash) + FACE_DETECTION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getFaceDetectionModel().hashCode(); hash = (37 * hash) + SHOT_CHANGE_DETECTION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getShotChangeDetectionModel().hashCode(); hash = (37 * hash) + SAFE_SEARCH_DETECTION_MODEL_FIELD_NUMBER; hash = (53 * hash) + getSafeSearchDetectionModel().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
onChanged(); if (!other.getShotChangeDetectionModel().isEmpty()) { shotChangeDetectionModel_ = other.shotChangeDetectionModel_; onChanged();