/** * * * <pre> * Face annotations. There is exactly one element for each unique face. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; * </code> */ public Builder addFaceAnnotations( int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFaceAnnotationsIsMutable(); faceAnnotations_.add(index, value); onChanged(); } else { faceAnnotationsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Label annotations. There is exactly one element for each unique label. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; * </code> */ public Builder setLabelAnnotations( int index, com.google.cloud.videointelligence.v1beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.set(index, value); onChanged(); } else { labelAnnotationsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Safe search annotations. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; * </code> */ public Builder addSafeSearchAnnotations( com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSafeSearchAnnotationsIsMutable(); safeSearchAnnotations_.add(value); onChanged(); } else { safeSearchAnnotationsBuilder_.addMessage(value); } return this; } /**
if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLabelAnnotationsIsMutable(); labelAnnotations_.addAll(other.labelAnnotations_); onChanged(); labelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelAnnotationsFieldBuilder() : null; } else { bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFaceAnnotationsIsMutable(); faceAnnotations_.addAll(other.faceAnnotations_); onChanged(); faceAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFaceAnnotationsFieldBuilder() : null; } else {
/** * * * <pre> * Shot annotations. Each shot is represented as a video segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; * </code> */ public Builder addShotAnnotations( com.google.cloud.videointelligence.v1beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.add(value); onChanged(); } else { shotAnnotationsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * Safe search annotations. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; * </code> */ public Builder setSafeSearchAnnotations( int index, com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSafeSearchAnnotationsIsMutable(); safeSearchAnnotations_.set(index, value); onChanged(); } else { safeSearchAnnotationsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Safe search annotations. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; * </code> */ public Builder addAllSafeSearchAnnotations( java.lang.Iterable< ? extends com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation> values) { if (safeSearchAnnotationsBuilder_ == null) { ensureSafeSearchAnnotationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safeSearchAnnotations_); onChanged(); } else { safeSearchAnnotationsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Shot annotations. Each shot is represented as a video segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; * </code> */ public Builder addShotAnnotations( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.add(index, value); onChanged(); } else { shotAnnotationsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public Builder addAnnotationResults( int index, com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder builderForValue) { if (annotationResultsBuilder_ == null) { ensureAnnotationResultsIsMutable(); annotationResults_.add(index, builderForValue.build()); onChanged(); } else { annotationResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Label annotations. There is exactly one element for each unique label. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; * </code> */ public Builder addLabelAnnotations( com.google.cloud.videointelligence.v1beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(value); onChanged(); } else { labelAnnotationsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * Label annotations. There is exactly one element for each unique label. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; * </code> */ public Builder addLabelAnnotations( int index, com.google.cloud.videointelligence.v1beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(index, value); onChanged(); } else { labelAnnotationsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Face annotations. There is exactly one element for each unique face. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; * </code> */ public Builder addFaceAnnotations( int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); faceAnnotations_.add(index, builderForValue.build()); onChanged(); } else { faceAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Face annotations. There is exactly one element for each unique face. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; * </code> */ public Builder setFaceAnnotations( int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); faceAnnotations_.set(index, builderForValue.build()); onChanged(); } else { faceAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Label annotations. There is exactly one element for each unique label. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; * </code> */ public Builder addLabelAnnotations( int index, com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder builderForValue) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(index, builderForValue.build()); onChanged(); } else { labelAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Label annotations. There is exactly one element for each unique label. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; * </code> */ public Builder setLabelAnnotations( int index, com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder builderForValue) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.set(index, builderForValue.build()); onChanged(); } else { labelAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Shot annotations. Each shot is represented as a video segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; * </code> */ public Builder addShotAnnotations( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.add(index, builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Safe search annotations. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; * </code> */ public Builder addSafeSearchAnnotations( int index, com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) { if (safeSearchAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSafeSearchAnnotationsIsMutable(); safeSearchAnnotations_.add(index, value); onChanged(); } else { safeSearchAnnotationsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public Builder setAnnotationResults( int index, com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder builderForValue) { if (annotationResultsBuilder_ == null) { ensureAnnotationResultsIsMutable(); annotationResults_.set(index, builderForValue.build()); onChanged(); } else { annotationResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Shot annotations. Each shot is represented as a video segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; * </code> */ public Builder setShotAnnotations( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.set(index, value); onChanged(); } else { shotAnnotationsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Face annotations. There is exactly one element for each unique face. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; * </code> */ public Builder setFaceAnnotations( int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation value) { if (faceAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFaceAnnotationsIsMutable(); faceAnnotations_.set(index, value); onChanged(); } else { faceAnnotationsBuilder_.setMessage(index, value); } return this; } /**