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

com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/visionai/v1/annotations.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

/**
 *
 *
 * 
 * Prediction output format for Video Object Tracking.
 * 
* * Protobuf type {@code google.cloud.visionai.v1.VideoObjectTrackingPredictionResult} */ public final class VideoObjectTrackingPredictionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult) VideoObjectTrackingPredictionResultOrBuilder { private static final long serialVersionUID = 0L; // Use VideoObjectTrackingPredictionResult.newBuilder() to construct. private VideoObjectTrackingPredictionResult( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VideoObjectTrackingPredictionResult() { objects_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoObjectTrackingPredictionResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.Builder.class); } public interface BoundingBoxOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) com.google.protobuf.MessageOrBuilder { /** * * *
     * The leftmost coordinate of the bounding box.
     * 
* * float x_min = 1; * * @return The xMin. */ float getXMin(); /** * * *
     * The rightmost coordinate of the bounding box.
     * 
* * float x_max = 2; * * @return The xMax. */ float getXMax(); /** * * *
     * The topmost coordinate of the bounding box.
     * 
* * float y_min = 3; * * @return The yMin. */ float getYMin(); /** * * *
     * The bottommost coordinate of the bounding box.
     * 
* * float y_max = 4; * * @return The yMax. */ float getYMax(); } /** * * *
   * Boundingbox for detected object. I.e. the rectangle over the video frame
   * pinpointing the found AnnotationSpec. The coordinates are relative to the
   * frame size, and the point 0,0 is in the top left of the frame.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox} */ public static final class BoundingBox extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) BoundingBoxOrBuilder { private static final long serialVersionUID = 0L; // Use BoundingBox.newBuilder() to construct. private BoundingBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoundingBox() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingBox(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_BoundingBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_BoundingBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder .class); } public static final int X_MIN_FIELD_NUMBER = 1; private float xMin_ = 0F; /** * * *
     * The leftmost coordinate of the bounding box.
     * 
* * float x_min = 1; * * @return The xMin. */ @java.lang.Override public float getXMin() { return xMin_; } public static final int X_MAX_FIELD_NUMBER = 2; private float xMax_ = 0F; /** * * *
     * The rightmost coordinate of the bounding box.
     * 
* * float x_max = 2; * * @return The xMax. */ @java.lang.Override public float getXMax() { return xMax_; } public static final int Y_MIN_FIELD_NUMBER = 3; private float yMin_ = 0F; /** * * *
     * The topmost coordinate of the bounding box.
     * 
* * float y_min = 3; * * @return The yMin. */ @java.lang.Override public float getYMin() { return yMin_; } public static final int Y_MAX_FIELD_NUMBER = 4; private float yMax_ = 0F; /** * * *
     * The bottommost coordinate of the bounding box.
     * 
* * float y_max = 4; * * @return The yMax. */ @java.lang.Override public float getYMax() { return yMax_; } 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 (java.lang.Float.floatToRawIntBits(xMin_) != 0) { output.writeFloat(1, xMin_); } if (java.lang.Float.floatToRawIntBits(xMax_) != 0) { output.writeFloat(2, xMax_); } if (java.lang.Float.floatToRawIntBits(yMin_) != 0) { output.writeFloat(3, yMin_); } if (java.lang.Float.floatToRawIntBits(yMax_) != 0) { output.writeFloat(4, yMax_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Float.floatToRawIntBits(xMin_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, xMin_); } if (java.lang.Float.floatToRawIntBits(xMax_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, xMax_); } if (java.lang.Float.floatToRawIntBits(yMin_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, yMin_); } if (java.lang.Float.floatToRawIntBits(yMax_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, yMax_); } size += getUnknownFields().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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox)) { return super.equals(obj); } com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox other = (com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) obj; if (java.lang.Float.floatToIntBits(getXMin()) != java.lang.Float.floatToIntBits(other.getXMin())) return false; if (java.lang.Float.floatToIntBits(getXMax()) != java.lang.Float.floatToIntBits(other.getXMax())) return false; if (java.lang.Float.floatToIntBits(getYMin()) != java.lang.Float.floatToIntBits(other.getYMin())) return false; if (java.lang.Float.floatToIntBits(getYMax()) != java.lang.Float.floatToIntBits(other.getYMax())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + X_MIN_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getXMin()); hash = (37 * hash) + X_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getXMax()); hash = (37 * hash) + Y_MIN_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getYMin()); hash = (37 * hash) + Y_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getYMax()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox 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; } /** * * *
     * Boundingbox for detected object. I.e. the rectangle over the video frame
     * pinpointing the found AnnotationSpec. The coordinates are relative to the
     * frame size, and the point 0,0 is in the top left of the frame.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_BoundingBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_BoundingBox_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder .class); } // Construct using // com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; xMin_ = 0F; xMax_ = 0F; yMin_ = 0F; yMax_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_BoundingBox_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getDefaultInstanceForType() { return com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox build() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox buildPartial() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox result = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.xMin_ = xMin_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.xMax_ = xMax_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.yMin_ = yMin_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.yMax_ = yMax_; } } @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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) { return mergeFrom( (com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox other) { if (other == com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance()) return this; if (other.getXMin() != 0F) { setXMin(other.getXMin()); } if (other.getXMax() != 0F) { setXMax(other.getXMax()); } if (other.getYMin() != 0F) { setYMin(other.getYMin()); } if (other.getYMax() != 0F) { setYMax(other.getYMax()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { xMin_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 13 case 21: { xMax_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 29: { yMin_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 37: { yMax_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private float xMin_; /** * * *
       * The leftmost coordinate of the bounding box.
       * 
* * float x_min = 1; * * @return The xMin. */ @java.lang.Override public float getXMin() { return xMin_; } /** * * *
       * The leftmost coordinate of the bounding box.
       * 
* * float x_min = 1; * * @param value The xMin to set. * @return This builder for chaining. */ public Builder setXMin(float value) { xMin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The leftmost coordinate of the bounding box.
       * 
* * float x_min = 1; * * @return This builder for chaining. */ public Builder clearXMin() { bitField0_ = (bitField0_ & ~0x00000001); xMin_ = 0F; onChanged(); return this; } private float xMax_; /** * * *
       * The rightmost coordinate of the bounding box.
       * 
* * float x_max = 2; * * @return The xMax. */ @java.lang.Override public float getXMax() { return xMax_; } /** * * *
       * The rightmost coordinate of the bounding box.
       * 
* * float x_max = 2; * * @param value The xMax to set. * @return This builder for chaining. */ public Builder setXMax(float value) { xMax_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The rightmost coordinate of the bounding box.
       * 
* * float x_max = 2; * * @return This builder for chaining. */ public Builder clearXMax() { bitField0_ = (bitField0_ & ~0x00000002); xMax_ = 0F; onChanged(); return this; } private float yMin_; /** * * *
       * The topmost coordinate of the bounding box.
       * 
* * float y_min = 3; * * @return The yMin. */ @java.lang.Override public float getYMin() { return yMin_; } /** * * *
       * The topmost coordinate of the bounding box.
       * 
* * float y_min = 3; * * @param value The yMin to set. * @return This builder for chaining. */ public Builder setYMin(float value) { yMin_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The topmost coordinate of the bounding box.
       * 
* * float y_min = 3; * * @return This builder for chaining. */ public Builder clearYMin() { bitField0_ = (bitField0_ & ~0x00000004); yMin_ = 0F; onChanged(); return this; } private float yMax_; /** * * *
       * The bottommost coordinate of the bounding box.
       * 
* * float y_max = 4; * * @return The yMax. */ @java.lang.Override public float getYMax() { return yMax_; } /** * * *
       * The bottommost coordinate of the bounding box.
       * 
* * float y_max = 4; * * @param value The yMax to set. * @return This builder for chaining. */ public Builder setYMax(float value) { yMax_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The bottommost coordinate of the bounding box.
       * 
* * float y_max = 4; * * @return This builder for chaining. */ public Builder clearYMax() { bitField0_ = (bitField0_ & ~0x00000008); yMax_ = 0F; onChanged(); return this; } @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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox) private static final com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .BoundingBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox(); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoundingBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetectedObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) com.google.protobuf.MessageOrBuilder { /** * * *
     * The resource ID of the AnnotationSpec that had been identified.
     * 
* * string id = 1; * * @return The id. */ java.lang.String getId(); /** * * *
     * The resource ID of the AnnotationSpec that had been identified.
     * 
* * string id = 1; * * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * * *
     * The display name of the AnnotationSpec that had been identified.
     * 
* * string display_name = 2; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
     * The display name of the AnnotationSpec that had been identified.
     * 
* * string display_name = 2; * * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return Whether the boundingBox field is set. */ boolean hasBoundingBox(); /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return The boundingBox. */ com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getBoundingBox(); /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder getBoundingBoxOrBuilder(); /** * * *
     * The Model's confidence in correction of this identification, higher
     * value means higher confidence.
     * 
* * float confidence = 4; * * @return The confidence. */ float getConfidence(); /** * * *
     * The same object may be identified on muitiple frames which are typical
     * adjacent. The set of frames where a particular object has been detected
     * form a track. This track_id can be used to trace down all frames for an
     * detected object.
     * 
* * int64 track_id = 5; * * @return The trackId. */ long getTrackId(); } /** * * *
   * Each DetectedObject is one particular identification of an object
   * specified with the AnnotationSpec id and display_name, the bounding box,
   * the associated confidence score and the corresponding track_id.
   * 
* * Protobuf type {@code * google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject} */ public static final class DetectedObject extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) DetectedObjectOrBuilder { private static final long serialVersionUID = 0L; // Use DetectedObject.newBuilder() to construct. private DetectedObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DetectedObject() { id_ = ""; displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectedObject(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_DetectedObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_DetectedObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
     * The resource ID of the AnnotationSpec that had been identified.
     * 
* * string id = 1; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * * *
     * The resource ID of the AnnotationSpec that had been identified.
     * 
* * string id = 1; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
     * The display name of the AnnotationSpec that had been identified.
     * 
* * string display_name = 2; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** * * *
     * The display name of the AnnotationSpec that had been identified.
     * 
* * string display_name = 2; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOUNDING_BOX_FIELD_NUMBER = 3; private com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox boundingBox_; /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return Whether the boundingBox field is set. */ @java.lang.Override public boolean hasBoundingBox() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return The boundingBox. */ @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getBoundingBox() { return boundingBox_ == null ? com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance() : boundingBox_; } /** * * *
     * Boundingbox.
     * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder getBoundingBoxOrBuilder() { return boundingBox_ == null ? com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance() : boundingBox_; } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** * * *
     * The Model's confidence in correction of this identification, higher
     * value means higher confidence.
     * 
* * float confidence = 4; * * @return The confidence. */ @java.lang.Override public float getConfidence() { return confidence_; } public static final int TRACK_ID_FIELD_NUMBER = 5; private long trackId_ = 0L; /** * * *
     * The same object may be identified on muitiple frames which are typical
     * adjacent. The set of frames where a particular object has been detected
     * form a track. This track_id can be used to trace down all frames for an
     * detected object.
     * 
* * int64 track_id = 5; * * @return The trackId. */ @java.lang.Override public long getTrackId() { return trackId_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { output.writeFloat(4, confidence_); } if (trackId_ != 0L) { output.writeInt64(5, trackId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoundingBox()); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (trackId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, trackId_); } size += getUnknownFields().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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject)) { return super.equals(obj); } com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject other = (com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) obj; if (!getId().equals(other.getId())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasBoundingBox() != other.hasBoundingBox()) return false; if (hasBoundingBox()) { if (!getBoundingBox().equals(other.getBoundingBox())) return false; } if (java.lang.Float.floatToIntBits(getConfidence()) != java.lang.Float.floatToIntBits(other.getConfidence())) return false; if (getTrackId() != other.getTrackId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + TRACK_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrackId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject 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; } /** * * *
     * Each DetectedObject is one particular identification of an object
     * specified with the AnnotationSpec id and display_name, the bounding box,
     * the associated confidence score and the corresponding track_id.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_DetectedObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_DetectedObject_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .Builder.class); } // Construct using // com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBoundingBoxFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; displayName_ = ""; boundingBox_ = null; if (boundingBoxBuilder_ != null) { boundingBoxBuilder_.dispose(); boundingBoxBuilder_ = null; } confidence_ = 0F; trackId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_DetectedObject_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject getDefaultInstanceForType() { return com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject build() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject buildPartial() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject result = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject( this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.boundingBox_ = boundingBoxBuilder_ == null ? boundingBox_ : boundingBoxBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.confidence_ = confidence_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.trackId_ = trackId_; } result.bitField0_ |= to_bitField0_; } @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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) { return mergeFrom( (com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject other) { if (other == com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasBoundingBox()) { mergeBoundingBox(other.getBoundingBox()); } if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } if (other.getTrackId() != 0L) { setTrackId(other.getTrackId()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getBoundingBoxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 37: { confidence_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 case 40: { trackId_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * * *
       * The resource ID of the AnnotationSpec that had been identified.
       * 
* * string id = 1; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The resource ID of the AnnotationSpec that had been identified.
       * 
* * string id = 1; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The resource ID of the AnnotationSpec that had been identified.
       * 
* * string id = 1; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The resource ID of the AnnotationSpec that had been identified.
       * 
* * string id = 1; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The resource ID of the AnnotationSpec that had been identified.
       * 
* * string id = 1; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
       * The display name of the AnnotationSpec that had been identified.
       * 
* * string display_name = 2; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The display name of the AnnotationSpec that had been identified.
       * 
* * string display_name = 2; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The display name of the AnnotationSpec that had been identified.
       * 
* * string display_name = 2; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The display name of the AnnotationSpec that had been identified.
       * 
* * string display_name = 2; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The display name of the AnnotationSpec that had been identified.
       * 
* * string display_name = 2; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox boundingBox_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder> boundingBoxBuilder_; /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return Whether the boundingBox field is set. */ public boolean hasBoundingBox() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * * * @return The boundingBox. */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox getBoundingBox() { if (boundingBoxBuilder_ == null) { return boundingBox_ == null ? com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public Builder setBoundingBox( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox value) { if (boundingBoxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } boundingBox_ = value; } else { boundingBoxBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public Builder setBoundingBox( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder builderForValue) { if (boundingBoxBuilder_ == null) { boundingBox_ = builderForValue.build(); } else { boundingBoxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public Builder mergeBoundingBox( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox value) { if (boundingBoxBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && boundingBox_ != null && boundingBox_ != com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance()) { getBoundingBoxBuilder().mergeFrom(value); } else { boundingBox_ = value; } } else { boundingBoxBuilder_.mergeFrom(value); } if (boundingBox_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public Builder clearBoundingBox() { bitField0_ = (bitField0_ & ~0x00000004); boundingBox_ = null; if (boundingBoxBuilder_ != null) { boundingBoxBuilder_.dispose(); boundingBoxBuilder_ = null; } onChanged(); return this; } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder getBoundingBoxBuilder() { bitField0_ |= 0x00000004; onChanged(); return getBoundingBoxFieldBuilder().getBuilder(); } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder getBoundingBoxOrBuilder() { if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { return boundingBox_ == null ? com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .getDefaultInstance() : boundingBox_; } } /** * * *
       * Boundingbox.
       * 
* * * .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox bounding_box = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox.Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBoxOrBuilder> getBoundingBoxFieldBuilder() { if (boundingBoxBuilder_ == null) { boundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox .Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .BoundingBoxOrBuilder>(getBoundingBox(), getParentForChildren(), isClean()); boundingBox_ = null; } return boundingBoxBuilder_; } private float confidence_; /** * * *
       * The Model's confidence in correction of this identification, higher
       * value means higher confidence.
       * 
* * float confidence = 4; * * @return The confidence. */ @java.lang.Override public float getConfidence() { return confidence_; } /** * * *
       * The Model's confidence in correction of this identification, higher
       * value means higher confidence.
       * 
* * float confidence = 4; * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { confidence_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The Model's confidence in correction of this identification, higher
       * value means higher confidence.
       * 
* * float confidence = 4; * * @return This builder for chaining. */ public Builder clearConfidence() { bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; } private long trackId_; /** * * *
       * The same object may be identified on muitiple frames which are typical
       * adjacent. The set of frames where a particular object has been detected
       * form a track. This track_id can be used to trace down all frames for an
       * detected object.
       * 
* * int64 track_id = 5; * * @return The trackId. */ @java.lang.Override public long getTrackId() { return trackId_; } /** * * *
       * The same object may be identified on muitiple frames which are typical
       * adjacent. The set of frames where a particular object has been detected
       * form a track. This track_id can be used to trace down all frames for an
       * detected object.
       * 
* * int64 track_id = 5; * * @param value The trackId to set. * @return This builder for chaining. */ public Builder setTrackId(long value) { trackId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The same object may be identified on muitiple frames which are typical
       * adjacent. The set of frames where a particular object has been detected
       * form a track. This track_id can be used to trace down all frames for an
       * detected object.
       * 
* * int64 track_id = 5; * * @return This builder for chaining. */ public Builder clearTrackId() { bitField0_ = (bitField0_ & ~0x00000010); trackId_ = 0L; onChanged(); return this; } @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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject) private static final com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObject DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject(); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DetectedObject parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SEGMENT_START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp segmentStartTime_; /** * * *
   * The beginning, inclusive, of the video's time segment in which the
   * current identifications happens.
   * 
* * .google.protobuf.Timestamp segment_start_time = 1; * * @return Whether the segmentStartTime field is set. */ @java.lang.Override public boolean hasSegmentStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The beginning, inclusive, of the video's time segment in which the
   * current identifications happens.
   * 
* * .google.protobuf.Timestamp segment_start_time = 1; * * @return The segmentStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSegmentStartTime() { return segmentStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentStartTime_; } /** * * *
   * The beginning, inclusive, of the video's time segment in which the
   * current identifications happens.
   * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSegmentStartTimeOrBuilder() { return segmentStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentStartTime_; } public static final int SEGMENT_END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp segmentEndTime_; /** * * *
   * The end, inclusive, of the video's time segment in which the current
   * identifications happen. Particularly, if the end is the same as the start,
   * it means the identifications happen on a specific video frame.
   * 
* * .google.protobuf.Timestamp segment_end_time = 2; * * @return Whether the segmentEndTime field is set. */ @java.lang.Override public boolean hasSegmentEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The end, inclusive, of the video's time segment in which the current
   * identifications happen. Particularly, if the end is the same as the start,
   * it means the identifications happen on a specific video frame.
   * 
* * .google.protobuf.Timestamp segment_end_time = 2; * * @return The segmentEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSegmentEndTime() { return segmentEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentEndTime_; } /** * * *
   * The end, inclusive, of the video's time segment in which the current
   * identifications happen. Particularly, if the end is the same as the start,
   * it means the identifications happen on a specific video frame.
   * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSegmentEndTimeOrBuilder() { return segmentEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentEndTime_; } public static final int OBJECTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject> objects_; /** * * *
   * All of the objects detected in the specified time range.
   * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ @java.lang.Override public java.util.List< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject> getObjectsList() { return objects_; } /** * * *
   * All of the objects detected in the specified time range.
   * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObjectOrBuilder> getObjectsOrBuilderList() { return objects_; } /** * * *
   * All of the objects detected in the specified time range.
   * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ @java.lang.Override public int getObjectsCount() { return objects_.size(); } /** * * *
   * All of the objects detected in the specified time range.
   * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject getObjects( int index) { return objects_.get(index); } /** * * *
   * All of the objects detected in the specified time range.
   * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObjectOrBuilder getObjectsOrBuilder(int index) { return objects_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSegmentStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getSegmentEndTime()); } for (int i = 0; i < objects_.size(); i++) { output.writeMessage(3, objects_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegmentStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentEndTime()); } for (int i = 0; i < objects_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, objects_.get(i)); } size += getUnknownFields().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.visionai.v1.VideoObjectTrackingPredictionResult)) { return super.equals(obj); } com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult other = (com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult) obj; if (hasSegmentStartTime() != other.hasSegmentStartTime()) return false; if (hasSegmentStartTime()) { if (!getSegmentStartTime().equals(other.getSegmentStartTime())) return false; } if (hasSegmentEndTime() != other.hasSegmentEndTime()) return false; if (hasSegmentEndTime()) { if (!getSegmentEndTime().equals(other.getSegmentEndTime())) return false; } if (!getObjectsList().equals(other.getObjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSegmentStartTime()) { hash = (37 * hash) + SEGMENT_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getSegmentStartTime().hashCode(); } if (hasSegmentEndTime()) { hash = (37 * hash) + SEGMENT_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getSegmentEndTime().hashCode(); } if (getObjectsCount() > 0) { hash = (37 * hash) + OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getObjectsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult 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.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult 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.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult 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.visionai.v1.VideoObjectTrackingPredictionResult parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult 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.visionai.v1.VideoObjectTrackingPredictionResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult 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.visionai.v1.VideoObjectTrackingPredictionResult 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; } /** * * *
   * Prediction output format for Video Object Tracking.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.VideoObjectTrackingPredictionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult) com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.class, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.Builder.class); } // Construct using com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSegmentStartTimeFieldBuilder(); getSegmentEndTimeFieldBuilder(); getObjectsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; segmentStartTime_ = null; if (segmentStartTimeBuilder_ != null) { segmentStartTimeBuilder_.dispose(); segmentStartTimeBuilder_ = null; } segmentEndTime_ = null; if (segmentEndTimeBuilder_ != null) { segmentEndTimeBuilder_.dispose(); segmentEndTimeBuilder_ = null; } if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); } else { objects_ = null; objectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.AnnotationsProto .internal_static_google_cloud_visionai_v1_VideoObjectTrackingPredictionResult_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult getDefaultInstanceForType() { return com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult build() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult buildPartial() { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult result = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult result) { if (objectsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { objects_ = java.util.Collections.unmodifiableList(objects_); bitField0_ = (bitField0_ & ~0x00000004); } result.objects_ = objects_; } else { result.objects_ = objectsBuilder_.build(); } } private void buildPartial0( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.segmentStartTime_ = segmentStartTimeBuilder_ == null ? segmentStartTime_ : segmentStartTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.segmentEndTime_ = segmentEndTimeBuilder_ == null ? segmentEndTime_ : segmentEndTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.visionai.v1.VideoObjectTrackingPredictionResult) { return mergeFrom((com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult other) { if (other == com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.getDefaultInstance()) return this; if (other.hasSegmentStartTime()) { mergeSegmentStartTime(other.getSegmentStartTime()); } if (other.hasSegmentEndTime()) { mergeSegmentEndTime(other.getSegmentEndTime()); } if (objectsBuilder_ == null) { if (!other.objects_.isEmpty()) { if (objects_.isEmpty()) { objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureObjectsIsMutable(); objects_.addAll(other.objects_); } onChanged(); } } else { if (!other.objects_.isEmpty()) { if (objectsBuilder_.isEmpty()) { objectsBuilder_.dispose(); objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000004); objectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSegmentStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSegmentEndTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject m = input.readMessage( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObject.parser(), extensionRegistry); if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(m); } else { objectsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp segmentStartTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> segmentStartTimeBuilder_; /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; * * @return Whether the segmentStartTime field is set. */ public boolean hasSegmentStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; * * @return The segmentStartTime. */ public com.google.protobuf.Timestamp getSegmentStartTime() { if (segmentStartTimeBuilder_ == null) { return segmentStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentStartTime_; } else { return segmentStartTimeBuilder_.getMessage(); } } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public Builder setSegmentStartTime(com.google.protobuf.Timestamp value) { if (segmentStartTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentStartTime_ = value; } else { segmentStartTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public Builder setSegmentStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (segmentStartTimeBuilder_ == null) { segmentStartTime_ = builderForValue.build(); } else { segmentStartTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public Builder mergeSegmentStartTime(com.google.protobuf.Timestamp value) { if (segmentStartTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && segmentStartTime_ != null && segmentStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSegmentStartTimeBuilder().mergeFrom(value); } else { segmentStartTime_ = value; } } else { segmentStartTimeBuilder_.mergeFrom(value); } if (segmentStartTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public Builder clearSegmentStartTime() { bitField0_ = (bitField0_ & ~0x00000001); segmentStartTime_ = null; if (segmentStartTimeBuilder_ != null) { segmentStartTimeBuilder_.dispose(); segmentStartTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public com.google.protobuf.Timestamp.Builder getSegmentStartTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSegmentStartTimeFieldBuilder().getBuilder(); } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ public com.google.protobuf.TimestampOrBuilder getSegmentStartTimeOrBuilder() { if (segmentStartTimeBuilder_ != null) { return segmentStartTimeBuilder_.getMessageOrBuilder(); } else { return segmentStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentStartTime_; } } /** * * *
     * The beginning, inclusive, of the video's time segment in which the
     * current identifications happens.
     * 
* * .google.protobuf.Timestamp segment_start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSegmentStartTimeFieldBuilder() { if (segmentStartTimeBuilder_ == null) { segmentStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSegmentStartTime(), getParentForChildren(), isClean()); segmentStartTime_ = null; } return segmentStartTimeBuilder_; } private com.google.protobuf.Timestamp segmentEndTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> segmentEndTimeBuilder_; /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; * * @return Whether the segmentEndTime field is set. */ public boolean hasSegmentEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; * * @return The segmentEndTime. */ public com.google.protobuf.Timestamp getSegmentEndTime() { if (segmentEndTimeBuilder_ == null) { return segmentEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentEndTime_; } else { return segmentEndTimeBuilder_.getMessage(); } } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public Builder setSegmentEndTime(com.google.protobuf.Timestamp value) { if (segmentEndTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentEndTime_ = value; } else { segmentEndTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public Builder setSegmentEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (segmentEndTimeBuilder_ == null) { segmentEndTime_ = builderForValue.build(); } else { segmentEndTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public Builder mergeSegmentEndTime(com.google.protobuf.Timestamp value) { if (segmentEndTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && segmentEndTime_ != null && segmentEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSegmentEndTimeBuilder().mergeFrom(value); } else { segmentEndTime_ = value; } } else { segmentEndTimeBuilder_.mergeFrom(value); } if (segmentEndTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public Builder clearSegmentEndTime() { bitField0_ = (bitField0_ & ~0x00000002); segmentEndTime_ = null; if (segmentEndTimeBuilder_ != null) { segmentEndTimeBuilder_.dispose(); segmentEndTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public com.google.protobuf.Timestamp.Builder getSegmentEndTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSegmentEndTimeFieldBuilder().getBuilder(); } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ public com.google.protobuf.TimestampOrBuilder getSegmentEndTimeOrBuilder() { if (segmentEndTimeBuilder_ != null) { return segmentEndTimeBuilder_.getMessageOrBuilder(); } else { return segmentEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : segmentEndTime_; } } /** * * *
     * The end, inclusive, of the video's time segment in which the current
     * identifications happen. Particularly, if the end is the same as the start,
     * it means the identifications happen on a specific video frame.
     * 
* * .google.protobuf.Timestamp segment_end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSegmentEndTimeFieldBuilder() { if (segmentEndTimeBuilder_ == null) { segmentEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSegmentEndTime(), getParentForChildren(), isClean()); segmentEndTime_ = null; } return segmentEndTimeBuilder_; } private java.util.List< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject> objects_ = java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { objects_ = new java.util.ArrayList< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject>( objects_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObjectOrBuilder> objectsBuilder_; /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public java.util.List< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject> getObjectsList() { if (objectsBuilder_ == null) { return java.util.Collections.unmodifiableList(objects_); } else { return objectsBuilder_.getMessageList(); } } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public int getObjectsCount() { if (objectsBuilder_ == null) { return objects_.size(); } else { return objectsBuilder_.getCount(); } } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject getObjects(int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessage(index); } } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder setObjects( int index, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.set(index, value); onChanged(); } else { objectsBuilder_.setMessage(index, value); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder setObjects( int index, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder addObjects( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(value); onChanged(); } else { objectsBuilder_.addMessage(value); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder addObjects( int index, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectsIsMutable(); objects_.add(index, value); onChanged(); } else { objectsBuilder_.addMessage(index, value); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder addObjects( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder addObjects( int index, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); onChanged(); } else { objectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder addAllObjects( java.lang.Iterable< ? extends com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject> values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder clearObjects() { if (objectsBuilder_ == null) { objects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { objectsBuilder_.clear(); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public Builder removeObjects(int index) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.remove(index); onChanged(); } else { objectsBuilder_.remove(index); } return this; } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder getObjectsBuilder(int index) { return getObjectsFieldBuilder().getBuilder(index); } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObjectOrBuilder getObjectsOrBuilder(int index) { if (objectsBuilder_ == null) { return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public java.util.List< ? extends com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObjectOrBuilder> getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objects_); } } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder addObjectsBuilder() { return getObjectsFieldBuilder() .addBuilder( com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .getDefaultInstance()); } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder addObjectsBuilder(int index) { return getObjectsFieldBuilder() .addBuilder( index, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .getDefaultInstance()); } /** * * *
     * All of the objects detected in the specified time range.
     * 
* * * repeated .google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject objects = 3; * */ public java.util.List< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder> getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject.Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObjectOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject .Builder, com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult .DetectedObjectOrBuilder>( objects_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); objects_ = null; } return objectsBuilder_; } @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.visionai.v1.VideoObjectTrackingPredictionResult) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.VideoObjectTrackingPredictionResult) private static final com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult(); } public static com.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VideoObjectTrackingPredictionResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.visionai.v1.VideoObjectTrackingPredictionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy