if (!other.getThumbnail().isEmpty()) { thumbnail_ = other.thumbnail_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); onChanged(); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() : null; } else { bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocationsIsMutable(); locations_.addAll(other.locations_); onChanged(); locationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationsFieldBuilder() : null; } else {
/** * * * <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 value) { if (segmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.set(index, value); onChanged(); } else { segmentsBuilder_.setMessage(index, value); } 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 value) { if (segmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.add(index, value); onChanged(); } else { segmentsBuilder_.addMessage(index, value); } 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 value) { if (segmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.add(value); onChanged(); } else { segmentsBuilder_.addMessage(value); } 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> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder setLocations( int index, com.google.cloud.videointelligence.v1beta1.FaceLocation value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.set(index, value); onChanged(); } else { locationsBuilder_.setMessage(index, value); } 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> * 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 addAllSegments( java.lang.Iterable<? extends com.google.cloud.videointelligence.v1beta1.VideoSegment> values) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); onChanged(); } else { segmentsBuilder_.addAllMessages(values); } 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> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder addLocations( int index, com.google.cloud.videointelligence.v1beta1.FaceLocation value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(index, value); onChanged(); } else { locationsBuilder_.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> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder addLocations(com.google.cloud.videointelligence.v1beta1.FaceLocation value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(value); onChanged(); } else { locationsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder addAllLocations( java.lang.Iterable<? extends com.google.cloud.videointelligence.v1beta1.FaceLocation> values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder setLocations( int index, com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.set(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.setMessage(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 addFaceAnnotations( com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) { if (faceAnnotationsBuilder_ == null) { ensureFaceAnnotationsIsMutable(); faceAnnotations_.add(builderForValue.build()); onChanged(); } else { faceAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder addLocations( com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder addLocations( int index, com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(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 removeSegments(int index) { if (segmentsBuilder_ == null) { ensureSegmentsIsMutable(); segments_.remove(index); onChanged(); } else { segmentsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * Face locations at one frame per second. * </pre> * * <code>repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;</code> */ public Builder removeLocations(int index) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.remove(index); onChanged(); } else { locationsBuilder_.remove(index); } return this; } /**