/** * * * <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.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.set(index, builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * All locations where a face was detected. * Faces are detected and tracked on a per-video basis * (as opposed to across multiple videos). * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;</code> */ public Builder addSegments( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.add(index, builderForValue.build()); onChanged(); } else { segmentsBuilder_.addMessage(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> * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video * is treated as a single segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;</code> */ public Builder addSegments( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.add(index, builderForValue.build()); onChanged(); } else { segmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video * is treated as a single segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;</code> */ public Builder setSegments( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.set(index, builderForValue.build()); onChanged(); } else { segmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * All locations where a face was detected. * Faces are detected and tracked on a per-video basis * (as opposed to across multiple videos). * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;</code> */ public Builder setSegments( int index, com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.set(index, builderForValue.build()); onChanged(); } else { segmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * All locations where a face was detected. * Faces are detected and tracked on a per-video basis * (as opposed to across multiple videos). * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;</code> */ public Builder addSegments( com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.add(builderForValue.build()); onChanged(); } else { segmentsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video * is treated as a single segment. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;</code> */ public Builder addSegments( com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.add(builderForValue.build()); onChanged(); } else { segmentsBuilder_.addMessage(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( com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.add(builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Video segment. Set to [-1, -1] for video-level labels. * Set to [timestamp, timestamp] for frame-level labels. * Otherwise, corresponds to one of `AnnotateSpec.segments` * (if specified) or to shot boundaries (if requested). * </pre> * * <code>.google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;</code> */ public Builder setSegment( com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) { if (segmentBuilder_ == null) { segment_ = builderForValue.build(); onChanged(); } else { segmentBuilder_.setMessage(builderForValue.build()); } return this; } /**