/** * * * <pre> * Video file location in * [Google Cloud Storage](https://cloud.google.com/storage/). * </pre> * * <code>string input_uri = 1;</code> */ public Builder clearInputUri() { inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /**
hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getInputUri().hashCode(); if (getLabelAnnotationsCount() > 0) { hash = (37 * hash) + LABEL_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getLabelAnnotationsList().hashCode(); if (getFaceAnnotationsCount() > 0) { hash = (37 * hash) + FACE_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getFaceAnnotationsList().hashCode(); if (getShotAnnotationsCount() > 0) { hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getShotAnnotationsList().hashCode(); if (getSafeSearchAnnotationsCount() > 0) { hash = (37 * hash) + SAFE_SEARCH_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getSafeSearchAnnotationsList().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults other = (com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) obj; boolean result = true; result = result && getInputUri().equals(other.getInputUri()); result = result && getLabelAnnotationsList().equals(other.getLabelAnnotationsList()); result = result && getFaceAnnotationsList().equals(other.getFaceAnnotationsList()); result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList()); result = result && getSafeSearchAnnotationsList().equals(other.getSafeSearchAnnotationsList()); result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError().equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom( com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults other) { if (other == com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.getDefaultInstance()) return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; onChanged(); if (other.hasError()) { mergeError(other.getError());
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getInputUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); } for (int i = 0; i < labelAnnotations_.size(); i++) { output.writeMessage(2, labelAnnotations_.get(i)); } for (int i = 0; i < faceAnnotations_.size(); i++) { output.writeMessage(3, faceAnnotations_.get(i)); } for (int i = 0; i < shotAnnotations_.size(); i++) { output.writeMessage(4, shotAnnotations_.get(i)); } if (error_ != null) { output.writeMessage(5, getError()); } for (int i = 0; i < safeSearchAnnotations_.size(); i++) { output.writeMessage(6, safeSearchAnnotations_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.getDefaultInstance(); }
/** * * * <pre> * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. * </pre> * * <code>.google.rpc.Status error = 5;</code> */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return getError(); }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults buildPartial() { com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getInputUriBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); } for (int i = 0; i < labelAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelAnnotations_.get(i)); } for (int i = 0; i < faceAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, faceAnnotations_.get(i)); } for (int i = 0; i < shotAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, shotAnnotations_.get(i)); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError()); } for (int i = 0; i < safeSearchAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, safeSearchAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder addAnnotationResultsBuilder() { return getAnnotationResultsFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults .getDefaultInstance()); } /**
/** * * * <pre> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder addAnnotationResultsBuilder(int index) { return getAnnotationResultsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults .getDefaultInstance()); } /**