/** * * * <pre> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public Builder clearAnnotationResults() { if (annotationResultsBuilder_ == null) { annotationResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { annotationResultsBuilder_.clear(); } 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 value) { if (annotationResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationResultsIsMutable(); annotationResults_.add(index, value); onChanged(); } else { annotationResultsBuilder_.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( com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults value) { if (annotationResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationResultsIsMutable(); annotationResults_.add(value); onChanged(); } else { annotationResultsBuilder_.addMessage(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 value) { if (annotationResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationResultsIsMutable(); annotationResults_.set(index, value); onChanged(); } else { annotationResultsBuilder_.setMessage(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 addAllAnnotationResults( java.lang.Iterable< ? extends com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults> values) { if (annotationResultsBuilder_ == null) { ensureAnnotationResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationResults_); onChanged(); } else { annotationResultsBuilder_.addAllMessages(values); } 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> * 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> * Annotation results for all videos specified in `AnnotateVideoRequest`. * </pre> * * <code> * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; * </code> */ public Builder addAnnotationResults( com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder builderForValue) { if (annotationResultsBuilder_ == null) { ensureAnnotationResultsIsMutable(); annotationResults_.add(builderForValue.build()); onChanged(); } else { annotationResultsBuilder_.addMessage(builderForValue.build()); } 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 removeAnnotationResults(int index) { if (annotationResultsBuilder_ == null) { ensureAnnotationResultsIsMutable(); annotationResults_.remove(index); onChanged(); } else { annotationResultsBuilder_.remove(index); } return this; } /**