/** * * * <pre> * Additional video context and/or feature-specific parameters. * </pre> * * <code>.google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;</code> */ public com.google.cloud.videointelligence.v1beta1.VideoContextOrBuilder getVideoContextOrBuilder() { return getVideoContext(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getInputUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } if (getFeaturesList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(featuresMemoizedSerializedSize); } for (int i = 0; i < features_.size(); i++) { output.writeEnumNoTag(features_.get(i)); } if (videoContext_ != null) { output.writeMessage(3, getVideoContext()); } if (!getOutputUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputUri_); } if (!getLocationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_); } if (!getInputContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, inputContent_); } unknownFields.writeTo(output); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVideoContext());
@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; }
mergeVideoContext(other.getVideoContext());