All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults Maven / Gradle / Ivy

There is a newer version: 0.144.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto

package com.google.cloud.videointelligence.v1p3beta1;

/**
 *
 *
 * 
 * Streaming annotation results corresponding to a portion of the video
 * that is currently being processed.
 * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} */ public final class StreamingVideoAnnotationResults extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) StreamingVideoAnnotationResultsOrBuilder { private static final long serialVersionUID = 0L; // Use StreamingVideoAnnotationResults.newBuilder() to construct. private StreamingVideoAnnotationResults( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingVideoAnnotationResults() { shotAnnotations_ = java.util.Collections.emptyList(); labelAnnotations_ = java.util.Collections.emptyList(); objectAnnotations_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamingVideoAnnotationResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); mutable_bitField0_ |= 0x00000001; } shotAnnotations_.add( input.readMessage( com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { labelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); mutable_bitField0_ |= 0x00000002; } labelAnnotations_.add( input.readMessage( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), extensionRegistry)); break; } case 26: { com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder subBuilder = null; if (explicitAnnotation_ != null) { subBuilder = explicitAnnotation_.toBuilder(); } explicitAnnotation_ = input.readMessage( com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(explicitAnnotation_); explicitAnnotation_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); mutable_bitField0_ |= 0x00000008; } objectAnnotations_.add( input.readMessage( com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation .parser(), extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.class, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder .class); } private int bitField0_; public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List shotAnnotations_; /** * * *
   * Shot annotation results. Each shot is represented as a video segment.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public java.util.List getShotAnnotationsList() { return shotAnnotations_; } /** * * *
   * Shot annotation results. Each shot is represented as a video segment.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList() { return shotAnnotations_; } /** * * *
   * Shot annotation results. Each shot is represented as a video segment.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public int getShotAnnotationsCount() { return shotAnnotations_.size(); } /** * * *
   * Shot annotation results. Each shot is represented as a video segment.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { return shotAnnotations_.get(index); } /** * * *
   * Shot annotation results. Each shot is represented as a video segment.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index) { return shotAnnotations_.get(index); } public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List labelAnnotations_; /** * * *
   * Label annotation results.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public java.util.List getLabelAnnotationsList() { return labelAnnotations_; } /** * * *
   * Label annotation results.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> getLabelAnnotationsOrBuilderList() { return labelAnnotations_; } /** * * *
   * Label annotation results.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public int getLabelAnnotationsCount() { return labelAnnotations_.size(); } /** * * *
   * Label annotation results.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations( int index) { return labelAnnotations_.get(index); } /** * * *
   * Label annotation results.
   * 
* * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index) { return labelAnnotations_.get(index); } public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER = 3; private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicitAnnotation_; /** * * *
   * Explicit content detection results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; } /** * * *
   * Explicit content detection results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { return explicitAnnotation_ == null ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation .getDefaultInstance() : explicitAnnotation_; } /** * * *
   * Explicit content detection results.
   * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder() { return getExplicitAnnotation(); } public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List objectAnnotations_; /** * * *
   * Object tracking results.
   * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public java.util.List getObjectAnnotationsList() { return objectAnnotations_; } /** * * *
   * Object tracking results.
   * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> getObjectAnnotationsOrBuilderList() { return objectAnnotations_; } /** * * *
   * Object tracking results.
   * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public int getObjectAnnotationsCount() { return objectAnnotations_.size(); } /** * * *
   * Object tracking results.
   * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations( int index) { return objectAnnotations_.get(index); } /** * * *
   * Object tracking results.
   * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index) { return objectAnnotations_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < shotAnnotations_.size(); i++) { output.writeMessage(1, shotAnnotations_.get(i)); } for (int i = 0; i < labelAnnotations_.size(); i++) { output.writeMessage(2, labelAnnotations_.get(i)); } if (explicitAnnotation_ != null) { output.writeMessage(3, getExplicitAnnotation()); } for (int i = 0; i < objectAnnotations_.size(); i++) { output.writeMessage(4, objectAnnotations_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < shotAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shotAnnotations_.get(i)); } for (int i = 0; i < labelAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelAnnotations_.get(i)); } if (explicitAnnotation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExplicitAnnotation()); } for (int i = 0; i < objectAnnotations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, objectAnnotations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults)) { return super.equals(obj); } com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults other = (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) obj; if (!getShotAnnotationsList().equals(other.getShotAnnotationsList())) return false; if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false; if (hasExplicitAnnotation() != other.hasExplicitAnnotation()) return false; if (hasExplicitAnnotation()) { if (!getExplicitAnnotation().equals(other.getExplicitAnnotation())) return false; } if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getShotAnnotationsCount() > 0) { hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getShotAnnotationsList().hashCode(); } if (getLabelAnnotationsCount() > 0) { hash = (37 * hash) + LABEL_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getLabelAnnotationsList().hashCode(); } if (hasExplicitAnnotation()) { hash = (37 * hash) + EXPLICIT_ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getExplicitAnnotation().hashCode(); } if (getObjectAnnotationsCount() > 0) { hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getObjectAnnotationsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Streaming annotation results corresponding to a portion of the video
   * that is currently being processed.
   * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.class, com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder .class); } // Construct using // com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getShotAnnotationsFieldBuilder(); getLabelAnnotationsFieldBuilder(); getObjectAnnotationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { shotAnnotationsBuilder_.clear(); } if (labelAnnotationsBuilder_ == null) { labelAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { labelAnnotationsBuilder_.clear(); } if (explicitAnnotationBuilder_ == null) { explicitAnnotation_ = null; } else { explicitAnnotation_ = null; explicitAnnotationBuilder_ = null; } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { objectAnnotationsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance(); } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults build() { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults buildPartial() { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults result = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (shotAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); bitField0_ = (bitField0_ & ~0x00000001); } result.shotAnnotations_ = shotAnnotations_; } else { result.shotAnnotations_ = shotAnnotationsBuilder_.build(); } if (labelAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); bitField0_ = (bitField0_ & ~0x00000002); } result.labelAnnotations_ = labelAnnotations_; } else { result.labelAnnotations_ = labelAnnotationsBuilder_.build(); } if (explicitAnnotationBuilder_ == null) { result.explicitAnnotation_ = explicitAnnotation_; } else { result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); bitField0_ = (bitField0_ & ~0x00000008); } result.objectAnnotations_ = objectAnnotations_; } else { result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) { return mergeFrom( (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults other) { if (other == com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults .getDefaultInstance()) return this; if (shotAnnotationsBuilder_ == null) { if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); } onChanged(); } } else { if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotationsBuilder_.isEmpty()) { shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; bitField0_ = (bitField0_ & ~0x00000001); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() : null; } else { shotAnnotationsBuilder_.addAllMessages(other.shotAnnotations_); } } } if (labelAnnotationsBuilder_ == null) { if (!other.labelAnnotations_.isEmpty()) { if (labelAnnotations_.isEmpty()) { labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLabelAnnotationsIsMutable(); labelAnnotations_.addAll(other.labelAnnotations_); } onChanged(); } } else { if (!other.labelAnnotations_.isEmpty()) { if (labelAnnotationsBuilder_.isEmpty()) { labelAnnotationsBuilder_.dispose(); labelAnnotationsBuilder_ = null; labelAnnotations_ = other.labelAnnotations_; bitField0_ = (bitField0_ & ~0x00000002); labelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelAnnotationsFieldBuilder() : null; } else { labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); } } } if (other.hasExplicitAnnotation()) { mergeExplicitAnnotation(other.getExplicitAnnotation()); } if (objectAnnotationsBuilder_ == null) { if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); } onChanged(); } } else { if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotationsBuilder_.isEmpty()) { objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; bitField0_ = (bitField0_ & ~0x00000008); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() : null; } else { objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.VideoSegment, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> shotAnnotationsBuilder_; /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public java.util.List getShotAnnotationsList() { if (shotAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(shotAnnotations_); } else { return shotAnnotationsBuilder_.getMessageList(); } } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public int getShotAnnotationsCount() { if (shotAnnotationsBuilder_ == null) { return shotAnnotations_.size(); } else { return shotAnnotationsBuilder_.getCount(); } } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) { if (shotAnnotationsBuilder_ == null) { return shotAnnotations_.get(index); } else { return shotAnnotationsBuilder_.getMessage(index); } } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder setShotAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.set(index, value); onChanged(); } else { shotAnnotationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder setShotAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.set(index, builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder addShotAnnotations( com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.add(value); onChanged(); } else { shotAnnotationsBuilder_.addMessage(value); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder addShotAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { if (shotAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShotAnnotationsIsMutable(); shotAnnotations_.add(index, value); onChanged(); } else { shotAnnotationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder addShotAnnotations( com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.add(builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder addShotAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.add(index, builderForValue.build()); onChanged(); } else { shotAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder addAllShotAnnotations( java.lang.Iterable values) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotAnnotations_); onChanged(); } else { shotAnnotationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { shotAnnotationsBuilder_.clear(); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public Builder removeShotAnnotations(int index) { if (shotAnnotationsBuilder_ == null) { ensureShotAnnotationsIsMutable(); shotAnnotations_.remove(index); onChanged(); } else { shotAnnotationsBuilder_.remove(index); } return this; } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getShotAnnotationsBuilder(int index) { return getShotAnnotationsFieldBuilder().getBuilder(index); } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index) { if (shotAnnotationsBuilder_ == null) { return shotAnnotations_.get(index); } else { return shotAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList() { if (shotAnnotationsBuilder_ != null) { return shotAnnotationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shotAnnotations_); } } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addShotAnnotationsBuilder() { return getShotAnnotationsFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addShotAnnotationsBuilder(int index) { return getShotAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()); } /** * * *
     * Shot annotation results. Each shot is represented as a video segment.
     * 
* * repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1; * */ public java.util.List getShotAnnotationsBuilderList() { return getShotAnnotationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.VideoSegment, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> getShotAnnotationsFieldBuilder() { if (shotAnnotationsBuilder_ == null) { shotAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.VideoSegment, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( shotAnnotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; } return shotAnnotationsBuilder_; } private java.util.List labelAnnotations_ = java.util.Collections.emptyList(); private void ensureLabelAnnotationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { labelAnnotations_ = new java.util.ArrayList( labelAnnotations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> labelAnnotationsBuilder_; /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public java.util.List getLabelAnnotationsList() { if (labelAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(labelAnnotations_); } else { return labelAnnotationsBuilder_.getMessageList(); } } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public int getLabelAnnotationsCount() { if (labelAnnotationsBuilder_ == null) { return labelAnnotations_.size(); } else { return labelAnnotationsBuilder_.getCount(); } } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations( int index) { if (labelAnnotationsBuilder_ == null) { return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessage(index); } } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder setLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.set(index, value); onChanged(); } else { labelAnnotationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder setLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.set(index, builderForValue.build()); onChanged(); } else { labelAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder addLabelAnnotations( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(value); onChanged(); } else { labelAnnotationsBuilder_.addMessage(value); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder addLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { if (labelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(index, value); onChanged(); } else { labelAnnotationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder addLabelAnnotations( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(builderForValue.build()); onChanged(); } else { labelAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder addLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.add(index, builderForValue.build()); onChanged(); } else { labelAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder addAllLabelAnnotations( java.lang.Iterable values) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_); onChanged(); } else { labelAnnotationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder clearLabelAnnotations() { if (labelAnnotationsBuilder_ == null) { labelAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { labelAnnotationsBuilder_.clear(); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public Builder removeLabelAnnotations(int index) { if (labelAnnotationsBuilder_ == null) { ensureLabelAnnotationsIsMutable(); labelAnnotations_.remove(index); onChanged(); } else { labelAnnotationsBuilder_.remove(index); } return this; } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder getLabelAnnotationsBuilder(int index) { return getLabelAnnotationsFieldBuilder().getBuilder(index); } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index) { if (labelAnnotationsBuilder_ == null) { return labelAnnotations_.get(index); } else { return labelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> getLabelAnnotationsOrBuilderList() { if (labelAnnotationsBuilder_ != null) { return labelAnnotationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labelAnnotations_); } } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder addLabelAnnotationsBuilder() { return getLabelAnnotationsFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder addLabelAnnotationsBuilder(int index) { return getLabelAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); } /** * * *
     * Label annotation results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2; * */ public java.util.List getLabelAnnotationsBuilderList() { return getLabelAnnotationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> getLabelAnnotationsFieldBuilder() { if (labelAnnotationsBuilder_ == null) { labelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( labelAnnotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); labelAnnotations_ = null; } return labelAnnotationsBuilder_; } private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicitAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> explicitAnnotationBuilder_; /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { if (explicitAnnotationBuilder_ == null) { return explicitAnnotation_ == null ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation .getDefaultInstance() : explicitAnnotation_; } else { return explicitAnnotationBuilder_.getMessage(); } } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public Builder setExplicitAnnotation( com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { if (explicitAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explicitAnnotation_ = value; onChanged(); } else { explicitAnnotationBuilder_.setMessage(value); } return this; } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public Builder setExplicitAnnotation( com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder builderForValue) { if (explicitAnnotationBuilder_ == null) { explicitAnnotation_ = builderForValue.build(); onChanged(); } else { explicitAnnotationBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public Builder mergeExplicitAnnotation( com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) { if (explicitAnnotationBuilder_ == null) { if (explicitAnnotation_ != null) { explicitAnnotation_ = com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.newBuilder( explicitAnnotation_) .mergeFrom(value) .buildPartial(); } else { explicitAnnotation_ = value; } onChanged(); } else { explicitAnnotationBuilder_.mergeFrom(value); } return this; } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public Builder clearExplicitAnnotation() { if (explicitAnnotationBuilder_ == null) { explicitAnnotation_ = null; onChanged(); } else { explicitAnnotation_ = null; explicitAnnotationBuilder_ = null; } return this; } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder getExplicitAnnotationBuilder() { onChanged(); return getExplicitAnnotationFieldBuilder().getBuilder(); } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder() { if (explicitAnnotationBuilder_ != null) { return explicitAnnotationBuilder_.getMessageOrBuilder(); } else { return explicitAnnotation_ == null ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation .getDefaultInstance() : explicitAnnotation_; } } /** * * *
     * Explicit content detection results.
     * 
* * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder> getExplicitAnnotationFieldBuilder() { if (explicitAnnotationBuilder_ == null) { explicitAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder>( getExplicitAnnotation(), getParentForChildren(), isClean()); explicitAnnotation_ = null; } return explicitAnnotationBuilder_; } private java.util.List objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( objectAnnotations_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> objectAnnotationsBuilder_; /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public java.util.List getObjectAnnotationsList() { if (objectAnnotationsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectAnnotations_); } else { return objectAnnotationsBuilder_.getMessageList(); } } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public int getObjectAnnotationsCount() { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.size(); } else { return objectAnnotationsBuilder_.getCount(); } } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { return objectAnnotationsBuilder_.getMessage(index); } } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder setObjectAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, value); onChanged(); } else { objectAnnotationsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder setObjectAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.set(index, builderForValue.build()); onChanged(); } else { objectAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder addObjectAnnotations( com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(value); onChanged(); } else { objectAnnotationsBuilder_.addMessage(value); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder addObjectAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) { if (objectAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, value); onChanged(); } else { objectAnnotationsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder addObjectAnnotations( com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(builderForValue.build()); onChanged(); } else { objectAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder addObjectAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder builderForValue) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.add(index, builderForValue.build()); onChanged(); } else { objectAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder addAllObjectAnnotations( java.lang.Iterable< ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation> values) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_); onChanged(); } else { objectAnnotationsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { objectAnnotationsBuilder_.clear(); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public Builder removeObjectAnnotations(int index) { if (objectAnnotationsBuilder_ == null) { ensureObjectAnnotationsIsMutable(); objectAnnotations_.remove(index); onChanged(); } else { objectAnnotationsBuilder_.remove(index); } return this; } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder getObjectAnnotationsBuilder(int index) { return getObjectAnnotationsFieldBuilder().getBuilder(index); } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index) { if (objectAnnotationsBuilder_ == null) { return objectAnnotations_.get(index); } else { return objectAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> getObjectAnnotationsOrBuilderList() { if (objectAnnotationsBuilder_ != null) { return objectAnnotationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objectAnnotations_); } } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder() { return getObjectAnnotationsFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation .getDefaultInstance()); } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder(int index) { return getObjectAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation .getDefaultInstance()); } /** * * *
     * Object tracking results.
     * 
* * * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4; * */ public java.util.List< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder> getObjectAnnotationsBuilderList() { return getObjectAnnotationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> getObjectAnnotationsFieldBuilder() { if (objectAnnotationsBuilder_ == null) { objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; } return objectAnnotationsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) } // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults(); } public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamingVideoAnnotationResults parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingVideoAnnotationResults(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy