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

com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation Maven / Gradle / Ivy

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

package com.google.cloud.videointelligence.v1;

/**
 *
 *
 * 
 * Annotations corresponding to one tracked object.
 * 
* * Protobuf type {@code google.cloud.videointelligence.v1.ObjectTrackingAnnotation} */ public final class ObjectTrackingAnnotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1.ObjectTrackingAnnotation) ObjectTrackingAnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectTrackingAnnotation.newBuilder() to construct. private ObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectTrackingAnnotation() { frames_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectTrackingAnnotation( 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: { com.google.cloud.videointelligence.v1.Entity.Builder subBuilder = null; if (entity_ != null) { subBuilder = entity_.toBuilder(); } entity_ = input.readMessage( com.google.cloud.videointelligence.v1.Entity.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(entity_); entity_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.ObjectTrackingFrame>(); mutable_bitField0_ |= 0x00000010; } frames_.add( input.readMessage( com.google.cloud.videointelligence.v1.ObjectTrackingFrame.parser(), extensionRegistry)); break; } case 26: { com.google.cloud.videointelligence.v1.VideoSegment.Builder subBuilder = null; if (trackInfoCase_ == 3) { subBuilder = ((com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_).toBuilder(); } trackInfo_ = input.readMessage( com.google.cloud.videointelligence.v1.VideoSegment.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom( (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_); trackInfo_ = subBuilder.buildPartial(); } trackInfoCase_ = 3; break; } case 37: { confidence_ = input.readFloat(); break; } case 40: { trackInfoCase_ = 5; trackInfo_ = input.readInt64(); 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_ & 0x00000010) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.class, com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.Builder.class); } private int bitField0_; private int trackInfoCase_ = 0; private java.lang.Object trackInfo_; public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { SEGMENT(3), TRACK_ID(5), TRACKINFO_NOT_SET(0); private final int value; private TrackInfoCase(int value) { this.value = value; } /** @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TrackInfoCase valueOf(int value) { return forNumber(value); } public static TrackInfoCase forNumber(int value) { switch (value) { case 3: return SEGMENT; case 5: return TRACK_ID; case 0: return TRACKINFO_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TrackInfoCase getTrackInfoCase() { return TrackInfoCase.forNumber(trackInfoCase_); } public static final int SEGMENT_FIELD_NUMBER = 3; /** * * *
   * Non-streaming batch mode ONLY.
   * Each object track corresponds to one video segment where it appears.
   * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public boolean hasSegment() { return trackInfoCase_ == 3; } /** * * *
   * Non-streaming batch mode ONLY.
   * Each object track corresponds to one video segment where it appears.
   * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (trackInfoCase_ == 3) { return (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_; } return com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } /** * * *
   * Non-streaming batch mode ONLY.
   * Each object track corresponds to one video segment where it appears.
   * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrBuilder() { if (trackInfoCase_ == 3) { return (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_; } return com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } public static final int TRACK_ID_FIELD_NUMBER = 5; /** * * *
   * Streaming mode ONLY.
   * In streaming mode, we do not know the end time of a tracked object
   * before it is completed. Hence, there is no VideoSegment info returned.
   * Instead, we provide a unique identifiable integer track_id so that
   * the customers can correlate the results of the ongoing
   * ObjectTrackAnnotation of the same track_id over time.
   * 
* * int64 track_id = 5; */ public long getTrackId() { if (trackInfoCase_ == 5) { return (java.lang.Long) trackInfo_; } return 0L; } public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1.Entity entity_; /** * * *
   * Entity to specify the object category that this track is labeled as.
   * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public boolean hasEntity() { return entity_ != null; } /** * * *
   * Entity to specify the object category that this track is labeled as.
   * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public com.google.cloud.videointelligence.v1.Entity getEntity() { return entity_ == null ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() : entity_; } /** * * *
   * Entity to specify the object category that this track is labeled as.
   * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder() { return getEntity(); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** * * *
   * Object category's labeling confidence of this track.
   * 
* * float confidence = 4; */ public float getConfidence() { return confidence_; } public static final int FRAMES_FIELD_NUMBER = 2; private java.util.List frames_; /** * * *
   * Information corresponding to all frames where this object track appears.
   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
   * messages in frames.
   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
   * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public java.util.List getFramesList() { return frames_; } /** * * *
   * Information corresponding to all frames where this object track appears.
   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
   * messages in frames.
   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
   * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public java.util.List< ? extends com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder> getFramesOrBuilderList() { return frames_; } /** * * *
   * Information corresponding to all frames where this object track appears.
   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
   * messages in frames.
   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
   * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public int getFramesCount() { return frames_.size(); } /** * * *
   * Information corresponding to all frames where this object track appears.
   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
   * messages in frames.
   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
   * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame getFrames(int index) { return frames_.get(index); } /** * * *
   * Information corresponding to all frames where this object track appears.
   * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
   * messages in frames.
   * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
   * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( int index) { return frames_.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 { if (entity_ != null) { output.writeMessage(1, getEntity()); } for (int i = 0; i < frames_.size(); i++) { output.writeMessage(2, frames_.get(i)); } if (trackInfoCase_ == 3) { output.writeMessage(3, (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_); } if (confidence_ != 0F) { output.writeFloat(4, confidence_); } if (trackInfoCase_ == 5) { output.writeInt64(5, (long) ((java.lang.Long) trackInfo_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (entity_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); } for (int i = 0; i < frames_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, frames_.get(i)); } if (trackInfoCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_); } if (confidence_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (trackInfoCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeInt64Size( 5, (long) ((java.lang.Long) trackInfo_)); } 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.v1.ObjectTrackingAnnotation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation other = (com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation) obj; if (hasEntity() != other.hasEntity()) return false; if (hasEntity()) { if (!getEntity().equals(other.getEntity())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (!getFramesList().equals(other.getFramesList())) return false; if (!getTrackInfoCase().equals(other.getTrackInfoCase())) return false; switch (trackInfoCase_) { case 3: if (!getSegment().equals(other.getSegment())) return false; break; case 5: if (getTrackId() != other.getTrackId()) return false; break; case 0: default: } 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 (hasEntity()) { hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); if (getFramesCount() > 0) { hash = (37 * hash) + FRAMES_FIELD_NUMBER; hash = (53 * hash) + getFramesList().hashCode(); } switch (trackInfoCase_) { case 3: hash = (37 * hash) + SEGMENT_FIELD_NUMBER; hash = (53 * hash) + getSegment().hashCode(); break; case 5: hash = (37 * hash) + TRACK_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrackId()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation 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.v1.ObjectTrackingAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation 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.v1.ObjectTrackingAnnotation parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation 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.v1.ObjectTrackingAnnotation parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation 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.v1.ObjectTrackingAnnotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation 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.v1.ObjectTrackingAnnotation 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; } /** * * *
   * Annotations corresponding to one tracked object.
   * 
* * Protobuf type {@code google.cloud.videointelligence.v1.ObjectTrackingAnnotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1.ObjectTrackingAnnotation) com.google.cloud.videointelligence.v1.ObjectTrackingAnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.class, com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.Builder.class); } // Construct using com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFramesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (entityBuilder_ == null) { entity_ = null; } else { entity_ = null; entityBuilder_ = null; } confidence_ = 0F; if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { framesBuilder_.clear(); } trackInfoCase_ = 0; trackInfo_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.videointelligence.v1.VideoIntelligenceServiceProto .internal_static_google_cloud_videointelligence_v1_ObjectTrackingAnnotation_descriptor; } @java.lang.Override public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.getDefaultInstance(); } @java.lang.Override public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation build() { com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation buildPartial() { com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation result = new com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (trackInfoCase_ == 3) { if (segmentBuilder_ == null) { result.trackInfo_ = trackInfo_; } else { result.trackInfo_ = segmentBuilder_.build(); } } if (trackInfoCase_ == 5) { result.trackInfo_ = trackInfo_; } if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } result.confidence_ = confidence_; if (framesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); bitField0_ = (bitField0_ & ~0x00000010); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } result.bitField0_ = to_bitField0_; result.trackInfoCase_ = trackInfoCase_; 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.v1.ObjectTrackingAnnotation) { return mergeFrom((com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation other) { if (other == com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.getDefaultInstance()) return this; if (other.hasEntity()) { mergeEntity(other.getEntity()); } if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } if (framesBuilder_ == null) { if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); } onChanged(); } } else { if (!other.frames_.isEmpty()) { if (framesBuilder_.isEmpty()) { framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; bitField0_ = (bitField0_ & ~0x00000010); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() : null; } else { framesBuilder_.addAllMessages(other.frames_); } } } switch (other.getTrackInfoCase()) { case SEGMENT: { mergeSegment(other.getSegment()); break; } case TRACK_ID: { setTrackId(other.getTrackId()); break; } case TRACKINFO_NOT_SET: { break; } } 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.v1.ObjectTrackingAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int trackInfoCase_ = 0; private java.lang.Object trackInfo_; public TrackInfoCase getTrackInfoCase() { return TrackInfoCase.forNumber(trackInfoCase_); } public Builder clearTrackInfo() { trackInfoCase_ = 0; trackInfo_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.VideoSegment, com.google.cloud.videointelligence.v1.VideoSegment.Builder, com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> segmentBuilder_; /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public boolean hasSegment() { return trackInfoCase_ == 3; } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { if (trackInfoCase_ == 3) { return (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_; } return com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } else { if (trackInfoCase_ == 3) { return segmentBuilder_.getMessage(); } return com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public Builder setSegment(com.google.cloud.videointelligence.v1.VideoSegment value) { if (segmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trackInfo_ = value; onChanged(); } else { segmentBuilder_.setMessage(value); } trackInfoCase_ = 3; return this; } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public Builder setSegment( com.google.cloud.videointelligence.v1.VideoSegment.Builder builderForValue) { if (segmentBuilder_ == null) { trackInfo_ = builderForValue.build(); onChanged(); } else { segmentBuilder_.setMessage(builderForValue.build()); } trackInfoCase_ = 3; return this; } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public Builder mergeSegment(com.google.cloud.videointelligence.v1.VideoSegment value) { if (segmentBuilder_ == null) { if (trackInfoCase_ == 3 && trackInfo_ != com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance()) { trackInfo_ = com.google.cloud.videointelligence.v1.VideoSegment.newBuilder( (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_) .mergeFrom(value) .buildPartial(); } else { trackInfo_ = value; } onChanged(); } else { if (trackInfoCase_ == 3) { segmentBuilder_.mergeFrom(value); } segmentBuilder_.setMessage(value); } trackInfoCase_ = 3; return this; } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public Builder clearSegment() { if (segmentBuilder_ == null) { if (trackInfoCase_ == 3) { trackInfoCase_ = 0; trackInfo_ = null; onChanged(); } } else { if (trackInfoCase_ == 3) { trackInfoCase_ = 0; trackInfo_ = null; } segmentBuilder_.clear(); } return this; } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public com.google.cloud.videointelligence.v1.VideoSegment.Builder getSegmentBuilder() { return getSegmentFieldBuilder().getBuilder(); } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrBuilder() { if ((trackInfoCase_ == 3) && (segmentBuilder_ != null)) { return segmentBuilder_.getMessageOrBuilder(); } else { if (trackInfoCase_ == 3) { return (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_; } return com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } } /** * * *
     * Non-streaming batch mode ONLY.
     * Each object track corresponds to one video segment where it appears.
     * 
* * .google.cloud.videointelligence.v1.VideoSegment segment = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.VideoSegment, com.google.cloud.videointelligence.v1.VideoSegment.Builder, com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> getSegmentFieldBuilder() { if (segmentBuilder_ == null) { if (!(trackInfoCase_ == 3)) { trackInfo_ = com.google.cloud.videointelligence.v1.VideoSegment.getDefaultInstance(); } segmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.VideoSegment, com.google.cloud.videointelligence.v1.VideoSegment.Builder, com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder>( (com.google.cloud.videointelligence.v1.VideoSegment) trackInfo_, getParentForChildren(), isClean()); trackInfo_ = null; } trackInfoCase_ = 3; onChanged(); ; return segmentBuilder_; } /** * * *
     * Streaming mode ONLY.
     * In streaming mode, we do not know the end time of a tracked object
     * before it is completed. Hence, there is no VideoSegment info returned.
     * Instead, we provide a unique identifiable integer track_id so that
     * the customers can correlate the results of the ongoing
     * ObjectTrackAnnotation of the same track_id over time.
     * 
* * int64 track_id = 5; */ public long getTrackId() { if (trackInfoCase_ == 5) { return (java.lang.Long) trackInfo_; } return 0L; } /** * * *
     * Streaming mode ONLY.
     * In streaming mode, we do not know the end time of a tracked object
     * before it is completed. Hence, there is no VideoSegment info returned.
     * Instead, we provide a unique identifiable integer track_id so that
     * the customers can correlate the results of the ongoing
     * ObjectTrackAnnotation of the same track_id over time.
     * 
* * int64 track_id = 5; */ public Builder setTrackId(long value) { trackInfoCase_ = 5; trackInfo_ = value; onChanged(); return this; } /** * * *
     * Streaming mode ONLY.
     * In streaming mode, we do not know the end time of a tracked object
     * before it is completed. Hence, there is no VideoSegment info returned.
     * Instead, we provide a unique identifiable integer track_id so that
     * the customers can correlate the results of the ongoing
     * ObjectTrackAnnotation of the same track_id over time.
     * 
* * int64 track_id = 5; */ public Builder clearTrackId() { if (trackInfoCase_ == 5) { trackInfoCase_ = 0; trackInfo_ = null; onChanged(); } return this; } private com.google.cloud.videointelligence.v1.Entity entity_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.Entity, com.google.cloud.videointelligence.v1.Entity.Builder, com.google.cloud.videointelligence.v1.EntityOrBuilder> entityBuilder_; /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public com.google.cloud.videointelligence.v1.Entity getEntity() { if (entityBuilder_ == null) { return entity_ == null ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public Builder setEntity(com.google.cloud.videointelligence.v1.Entity value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; onChanged(); } else { entityBuilder_.setMessage(value); } return this; } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public Builder setEntity(com.google.cloud.videointelligence.v1.Entity.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public Builder mergeEntity(com.google.cloud.videointelligence.v1.Entity value) { if (entityBuilder_ == null) { if (entity_ != null) { entity_ = com.google.cloud.videointelligence.v1.Entity.newBuilder(entity_) .mergeFrom(value) .buildPartial(); } else { entity_ = value; } onChanged(); } else { entityBuilder_.mergeFrom(value); } return this; } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public Builder clearEntity() { if (entityBuilder_ == null) { entity_ = null; onChanged(); } else { entity_ = null; entityBuilder_ = null; } return this; } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public com.google.cloud.videointelligence.v1.Entity.Builder getEntityBuilder() { onChanged(); return getEntityFieldBuilder().getBuilder(); } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { return entity_ == null ? com.google.cloud.videointelligence.v1.Entity.getDefaultInstance() : entity_; } } /** * * *
     * Entity to specify the object category that this track is labeled as.
     * 
* * .google.cloud.videointelligence.v1.Entity entity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.Entity, com.google.cloud.videointelligence.v1.Entity.Builder, com.google.cloud.videointelligence.v1.EntityOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.videointelligence.v1.Entity, com.google.cloud.videointelligence.v1.Entity.Builder, com.google.cloud.videointelligence.v1.EntityOrBuilder>( getEntity(), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } private float confidence_; /** * * *
     * Object category's labeling confidence of this track.
     * 
* * float confidence = 4; */ public float getConfidence() { return confidence_; } /** * * *
     * Object category's labeling confidence of this track.
     * 
* * float confidence = 4; */ public Builder setConfidence(float value) { confidence_ = value; onChanged(); return this; } /** * * *
     * Object category's labeling confidence of this track.
     * 
* * float confidence = 4; */ public Builder clearConfidence() { confidence_ = 0F; onChanged(); return this; } private java.util.List frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { frames_ = new java.util.ArrayList( frames_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder> framesBuilder_; /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public java.util.List getFramesList() { if (framesBuilder_ == null) { return java.util.Collections.unmodifiableList(frames_); } else { return framesBuilder_.getMessageList(); } } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public int getFramesCount() { if (framesBuilder_ == null) { return frames_.size(); } else { return framesBuilder_.getCount(); } } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame getFrames(int index) { if (framesBuilder_ == null) { return frames_.get(index); } else { return framesBuilder_.getMessage(index); } } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder setFrames( int index, com.google.cloud.videointelligence.v1.ObjectTrackingFrame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.set(index, value); onChanged(); } else { framesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder setFrames( int index, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.set(index, builderForValue.build()); onChanged(); } else { framesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder addFrames(com.google.cloud.videointelligence.v1.ObjectTrackingFrame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.add(value); onChanged(); } else { framesBuilder_.addMessage(value); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder addFrames( int index, com.google.cloud.videointelligence.v1.ObjectTrackingFrame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.add(index, value); onChanged(); } else { framesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder addFrames( com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.add(builderForValue.build()); onChanged(); } else { framesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder addFrames( int index, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.add(index, builderForValue.build()); onChanged(); } else { framesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder addAllFrames( java.lang.Iterable values) { if (framesBuilder_ == null) { ensureFramesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_); onChanged(); } else { framesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { framesBuilder_.clear(); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public Builder removeFrames(int index) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.remove(index); onChanged(); } else { framesBuilder_.remove(index); } return this; } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder getFramesBuilder( int index) { return getFramesFieldBuilder().getBuilder(index); } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( int index) { if (framesBuilder_ == null) { return frames_.get(index); } else { return framesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public java.util.List< ? extends com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder> getFramesOrBuilderList() { if (framesBuilder_ != null) { return framesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frames_); } } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder addFramesBuilder() { return getFramesFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1.ObjectTrackingFrame.getDefaultInstance()); } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder addFramesBuilder( int index) { return getFramesFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.getDefaultInstance()); } /** * * *
     * Information corresponding to all frames where this object track appears.
     * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
     * messages in frames.
     * Streaming mode: it can only be one ObjectTrackingFrame message in frames.
     * 
* * repeated .google.cloud.videointelligence.v1.ObjectTrackingFrame frames = 2; */ public java.util.List getFramesBuilderList() { return getFramesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder> getFramesFieldBuilder() { if (framesBuilder_ == null) { framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder>( frames_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; } @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.v1.ObjectTrackingAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1.ObjectTrackingAnnotation) private static final com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation(); } public static com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectTrackingAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectTrackingAnnotation(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.v1.ObjectTrackingAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy