• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/vision/v1/geometry.proto
18 
19 package com.google.cloud.vision.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A 3D position in the image, used primarily for Face detection landmarks.
26  * A valid Position must have both x and y coordinates.
27  * The position coordinates are in the same scale as the original image.
28  * </pre>
29  *
30  * Protobuf type {@code google.cloud.vision.v1.Position}
31  */
32 public final class Position extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.Position)
35     PositionOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use Position.newBuilder() to construct.
Position(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private Position(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
Position()42   private Position() {}
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new Position();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.vision.v1.GeometryProto
57         .internal_static_google_cloud_vision_v1_Position_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.vision.v1.GeometryProto
64         .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.vision.v1.Position.class,
67             com.google.cloud.vision.v1.Position.Builder.class);
68   }
69 
70   public static final int X_FIELD_NUMBER = 1;
71   private float x_ = 0F;
72   /**
73    *
74    *
75    * <pre>
76    * X coordinate.
77    * </pre>
78    *
79    * <code>float x = 1;</code>
80    *
81    * @return The x.
82    */
83   @java.lang.Override
getX()84   public float getX() {
85     return x_;
86   }
87 
88   public static final int Y_FIELD_NUMBER = 2;
89   private float y_ = 0F;
90   /**
91    *
92    *
93    * <pre>
94    * Y coordinate.
95    * </pre>
96    *
97    * <code>float y = 2;</code>
98    *
99    * @return The y.
100    */
101   @java.lang.Override
getY()102   public float getY() {
103     return y_;
104   }
105 
106   public static final int Z_FIELD_NUMBER = 3;
107   private float z_ = 0F;
108   /**
109    *
110    *
111    * <pre>
112    * Z coordinate (or depth).
113    * </pre>
114    *
115    * <code>float z = 3;</code>
116    *
117    * @return The z.
118    */
119   @java.lang.Override
getZ()120   public float getZ() {
121     return z_;
122   }
123 
124   private byte memoizedIsInitialized = -1;
125 
126   @java.lang.Override
isInitialized()127   public final boolean isInitialized() {
128     byte isInitialized = memoizedIsInitialized;
129     if (isInitialized == 1) return true;
130     if (isInitialized == 0) return false;
131 
132     memoizedIsInitialized = 1;
133     return true;
134   }
135 
136   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)137   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
138     if (java.lang.Float.floatToRawIntBits(x_) != 0) {
139       output.writeFloat(1, x_);
140     }
141     if (java.lang.Float.floatToRawIntBits(y_) != 0) {
142       output.writeFloat(2, y_);
143     }
144     if (java.lang.Float.floatToRawIntBits(z_) != 0) {
145       output.writeFloat(3, z_);
146     }
147     getUnknownFields().writeTo(output);
148   }
149 
150   @java.lang.Override
getSerializedSize()151   public int getSerializedSize() {
152     int size = memoizedSize;
153     if (size != -1) return size;
154 
155     size = 0;
156     if (java.lang.Float.floatToRawIntBits(x_) != 0) {
157       size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_);
158     }
159     if (java.lang.Float.floatToRawIntBits(y_) != 0) {
160       size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_);
161     }
162     if (java.lang.Float.floatToRawIntBits(z_) != 0) {
163       size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, z_);
164     }
165     size += getUnknownFields().getSerializedSize();
166     memoizedSize = size;
167     return size;
168   }
169 
170   @java.lang.Override
equals(final java.lang.Object obj)171   public boolean equals(final java.lang.Object obj) {
172     if (obj == this) {
173       return true;
174     }
175     if (!(obj instanceof com.google.cloud.vision.v1.Position)) {
176       return super.equals(obj);
177     }
178     com.google.cloud.vision.v1.Position other = (com.google.cloud.vision.v1.Position) obj;
179 
180     if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX()))
181       return false;
182     if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY()))
183       return false;
184     if (java.lang.Float.floatToIntBits(getZ()) != java.lang.Float.floatToIntBits(other.getZ()))
185       return false;
186     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
187     return true;
188   }
189 
190   @java.lang.Override
hashCode()191   public int hashCode() {
192     if (memoizedHashCode != 0) {
193       return memoizedHashCode;
194     }
195     int hash = 41;
196     hash = (19 * hash) + getDescriptor().hashCode();
197     hash = (37 * hash) + X_FIELD_NUMBER;
198     hash = (53 * hash) + java.lang.Float.floatToIntBits(getX());
199     hash = (37 * hash) + Y_FIELD_NUMBER;
200     hash = (53 * hash) + java.lang.Float.floatToIntBits(getY());
201     hash = (37 * hash) + Z_FIELD_NUMBER;
202     hash = (53 * hash) + java.lang.Float.floatToIntBits(getZ());
203     hash = (29 * hash) + getUnknownFields().hashCode();
204     memoizedHashCode = hash;
205     return hash;
206   }
207 
parseFrom(java.nio.ByteBuffer data)208   public static com.google.cloud.vision.v1.Position parseFrom(java.nio.ByteBuffer data)
209       throws com.google.protobuf.InvalidProtocolBufferException {
210     return PARSER.parseFrom(data);
211   }
212 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)213   public static com.google.cloud.vision.v1.Position parseFrom(
214       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215       throws com.google.protobuf.InvalidProtocolBufferException {
216     return PARSER.parseFrom(data, extensionRegistry);
217   }
218 
parseFrom(com.google.protobuf.ByteString data)219   public static com.google.cloud.vision.v1.Position parseFrom(com.google.protobuf.ByteString data)
220       throws com.google.protobuf.InvalidProtocolBufferException {
221     return PARSER.parseFrom(data);
222   }
223 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)224   public static com.google.cloud.vision.v1.Position parseFrom(
225       com.google.protobuf.ByteString data,
226       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227       throws com.google.protobuf.InvalidProtocolBufferException {
228     return PARSER.parseFrom(data, extensionRegistry);
229   }
230 
parseFrom(byte[] data)231   public static com.google.cloud.vision.v1.Position parseFrom(byte[] data)
232       throws com.google.protobuf.InvalidProtocolBufferException {
233     return PARSER.parseFrom(data);
234   }
235 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)236   public static com.google.cloud.vision.v1.Position parseFrom(
237       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
238       throws com.google.protobuf.InvalidProtocolBufferException {
239     return PARSER.parseFrom(data, extensionRegistry);
240   }
241 
parseFrom(java.io.InputStream input)242   public static com.google.cloud.vision.v1.Position parseFrom(java.io.InputStream input)
243       throws java.io.IOException {
244     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
245   }
246 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)247   public static com.google.cloud.vision.v1.Position parseFrom(
248       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
249       throws java.io.IOException {
250     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
251         PARSER, input, extensionRegistry);
252   }
253 
parseDelimitedFrom(java.io.InputStream input)254   public static com.google.cloud.vision.v1.Position parseDelimitedFrom(java.io.InputStream input)
255       throws java.io.IOException {
256     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
257   }
258 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)259   public static com.google.cloud.vision.v1.Position parseDelimitedFrom(
260       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
261       throws java.io.IOException {
262     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
263         PARSER, input, extensionRegistry);
264   }
265 
parseFrom( com.google.protobuf.CodedInputStream input)266   public static com.google.cloud.vision.v1.Position parseFrom(
267       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
268     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
269   }
270 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)271   public static com.google.cloud.vision.v1.Position parseFrom(
272       com.google.protobuf.CodedInputStream input,
273       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
274       throws java.io.IOException {
275     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
276         PARSER, input, extensionRegistry);
277   }
278 
279   @java.lang.Override
newBuilderForType()280   public Builder newBuilderForType() {
281     return newBuilder();
282   }
283 
newBuilder()284   public static Builder newBuilder() {
285     return DEFAULT_INSTANCE.toBuilder();
286   }
287 
newBuilder(com.google.cloud.vision.v1.Position prototype)288   public static Builder newBuilder(com.google.cloud.vision.v1.Position prototype) {
289     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
290   }
291 
292   @java.lang.Override
toBuilder()293   public Builder toBuilder() {
294     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
295   }
296 
297   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)298   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
299     Builder builder = new Builder(parent);
300     return builder;
301   }
302   /**
303    *
304    *
305    * <pre>
306    * A 3D position in the image, used primarily for Face detection landmarks.
307    * A valid Position must have both x and y coordinates.
308    * The position coordinates are in the same scale as the original image.
309    * </pre>
310    *
311    * Protobuf type {@code google.cloud.vision.v1.Position}
312    */
313   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
314       implements
315       // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.Position)
316       com.google.cloud.vision.v1.PositionOrBuilder {
getDescriptor()317     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
318       return com.google.cloud.vision.v1.GeometryProto
319           .internal_static_google_cloud_vision_v1_Position_descriptor;
320     }
321 
322     @java.lang.Override
323     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()324         internalGetFieldAccessorTable() {
325       return com.google.cloud.vision.v1.GeometryProto
326           .internal_static_google_cloud_vision_v1_Position_fieldAccessorTable
327           .ensureFieldAccessorsInitialized(
328               com.google.cloud.vision.v1.Position.class,
329               com.google.cloud.vision.v1.Position.Builder.class);
330     }
331 
332     // Construct using com.google.cloud.vision.v1.Position.newBuilder()
Builder()333     private Builder() {}
334 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)335     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
336       super(parent);
337     }
338 
339     @java.lang.Override
clear()340     public Builder clear() {
341       super.clear();
342       bitField0_ = 0;
343       x_ = 0F;
344       y_ = 0F;
345       z_ = 0F;
346       return this;
347     }
348 
349     @java.lang.Override
getDescriptorForType()350     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
351       return com.google.cloud.vision.v1.GeometryProto
352           .internal_static_google_cloud_vision_v1_Position_descriptor;
353     }
354 
355     @java.lang.Override
getDefaultInstanceForType()356     public com.google.cloud.vision.v1.Position getDefaultInstanceForType() {
357       return com.google.cloud.vision.v1.Position.getDefaultInstance();
358     }
359 
360     @java.lang.Override
build()361     public com.google.cloud.vision.v1.Position build() {
362       com.google.cloud.vision.v1.Position result = buildPartial();
363       if (!result.isInitialized()) {
364         throw newUninitializedMessageException(result);
365       }
366       return result;
367     }
368 
369     @java.lang.Override
buildPartial()370     public com.google.cloud.vision.v1.Position buildPartial() {
371       com.google.cloud.vision.v1.Position result = new com.google.cloud.vision.v1.Position(this);
372       if (bitField0_ != 0) {
373         buildPartial0(result);
374       }
375       onBuilt();
376       return result;
377     }
378 
buildPartial0(com.google.cloud.vision.v1.Position result)379     private void buildPartial0(com.google.cloud.vision.v1.Position result) {
380       int from_bitField0_ = bitField0_;
381       if (((from_bitField0_ & 0x00000001) != 0)) {
382         result.x_ = x_;
383       }
384       if (((from_bitField0_ & 0x00000002) != 0)) {
385         result.y_ = y_;
386       }
387       if (((from_bitField0_ & 0x00000004) != 0)) {
388         result.z_ = z_;
389       }
390     }
391 
392     @java.lang.Override
clone()393     public Builder clone() {
394       return super.clone();
395     }
396 
397     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)398     public Builder setField(
399         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
400       return super.setField(field, value);
401     }
402 
403     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)404     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
405       return super.clearField(field);
406     }
407 
408     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)409     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
410       return super.clearOneof(oneof);
411     }
412 
413     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)414     public Builder setRepeatedField(
415         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
416       return super.setRepeatedField(field, index, value);
417     }
418 
419     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)420     public Builder addRepeatedField(
421         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
422       return super.addRepeatedField(field, value);
423     }
424 
425     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)426     public Builder mergeFrom(com.google.protobuf.Message other) {
427       if (other instanceof com.google.cloud.vision.v1.Position) {
428         return mergeFrom((com.google.cloud.vision.v1.Position) other);
429       } else {
430         super.mergeFrom(other);
431         return this;
432       }
433     }
434 
mergeFrom(com.google.cloud.vision.v1.Position other)435     public Builder mergeFrom(com.google.cloud.vision.v1.Position other) {
436       if (other == com.google.cloud.vision.v1.Position.getDefaultInstance()) return this;
437       if (other.getX() != 0F) {
438         setX(other.getX());
439       }
440       if (other.getY() != 0F) {
441         setY(other.getY());
442       }
443       if (other.getZ() != 0F) {
444         setZ(other.getZ());
445       }
446       this.mergeUnknownFields(other.getUnknownFields());
447       onChanged();
448       return this;
449     }
450 
451     @java.lang.Override
isInitialized()452     public final boolean isInitialized() {
453       return true;
454     }
455 
456     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)457     public Builder mergeFrom(
458         com.google.protobuf.CodedInputStream input,
459         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
460         throws java.io.IOException {
461       if (extensionRegistry == null) {
462         throw new java.lang.NullPointerException();
463       }
464       try {
465         boolean done = false;
466         while (!done) {
467           int tag = input.readTag();
468           switch (tag) {
469             case 0:
470               done = true;
471               break;
472             case 13:
473               {
474                 x_ = input.readFloat();
475                 bitField0_ |= 0x00000001;
476                 break;
477               } // case 13
478             case 21:
479               {
480                 y_ = input.readFloat();
481                 bitField0_ |= 0x00000002;
482                 break;
483               } // case 21
484             case 29:
485               {
486                 z_ = input.readFloat();
487                 bitField0_ |= 0x00000004;
488                 break;
489               } // case 29
490             default:
491               {
492                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
493                   done = true; // was an endgroup tag
494                 }
495                 break;
496               } // default:
497           } // switch (tag)
498         } // while (!done)
499       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
500         throw e.unwrapIOException();
501       } finally {
502         onChanged();
503       } // finally
504       return this;
505     }
506 
507     private int bitField0_;
508 
509     private float x_;
510     /**
511      *
512      *
513      * <pre>
514      * X coordinate.
515      * </pre>
516      *
517      * <code>float x = 1;</code>
518      *
519      * @return The x.
520      */
521     @java.lang.Override
getX()522     public float getX() {
523       return x_;
524     }
525     /**
526      *
527      *
528      * <pre>
529      * X coordinate.
530      * </pre>
531      *
532      * <code>float x = 1;</code>
533      *
534      * @param value The x to set.
535      * @return This builder for chaining.
536      */
setX(float value)537     public Builder setX(float value) {
538 
539       x_ = value;
540       bitField0_ |= 0x00000001;
541       onChanged();
542       return this;
543     }
544     /**
545      *
546      *
547      * <pre>
548      * X coordinate.
549      * </pre>
550      *
551      * <code>float x = 1;</code>
552      *
553      * @return This builder for chaining.
554      */
clearX()555     public Builder clearX() {
556       bitField0_ = (bitField0_ & ~0x00000001);
557       x_ = 0F;
558       onChanged();
559       return this;
560     }
561 
562     private float y_;
563     /**
564      *
565      *
566      * <pre>
567      * Y coordinate.
568      * </pre>
569      *
570      * <code>float y = 2;</code>
571      *
572      * @return The y.
573      */
574     @java.lang.Override
getY()575     public float getY() {
576       return y_;
577     }
578     /**
579      *
580      *
581      * <pre>
582      * Y coordinate.
583      * </pre>
584      *
585      * <code>float y = 2;</code>
586      *
587      * @param value The y to set.
588      * @return This builder for chaining.
589      */
setY(float value)590     public Builder setY(float value) {
591 
592       y_ = value;
593       bitField0_ |= 0x00000002;
594       onChanged();
595       return this;
596     }
597     /**
598      *
599      *
600      * <pre>
601      * Y coordinate.
602      * </pre>
603      *
604      * <code>float y = 2;</code>
605      *
606      * @return This builder for chaining.
607      */
clearY()608     public Builder clearY() {
609       bitField0_ = (bitField0_ & ~0x00000002);
610       y_ = 0F;
611       onChanged();
612       return this;
613     }
614 
615     private float z_;
616     /**
617      *
618      *
619      * <pre>
620      * Z coordinate (or depth).
621      * </pre>
622      *
623      * <code>float z = 3;</code>
624      *
625      * @return The z.
626      */
627     @java.lang.Override
getZ()628     public float getZ() {
629       return z_;
630     }
631     /**
632      *
633      *
634      * <pre>
635      * Z coordinate (or depth).
636      * </pre>
637      *
638      * <code>float z = 3;</code>
639      *
640      * @param value The z to set.
641      * @return This builder for chaining.
642      */
setZ(float value)643     public Builder setZ(float value) {
644 
645       z_ = value;
646       bitField0_ |= 0x00000004;
647       onChanged();
648       return this;
649     }
650     /**
651      *
652      *
653      * <pre>
654      * Z coordinate (or depth).
655      * </pre>
656      *
657      * <code>float z = 3;</code>
658      *
659      * @return This builder for chaining.
660      */
clearZ()661     public Builder clearZ() {
662       bitField0_ = (bitField0_ & ~0x00000004);
663       z_ = 0F;
664       onChanged();
665       return this;
666     }
667 
668     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)669     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
670       return super.setUnknownFields(unknownFields);
671     }
672 
673     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)674     public final Builder mergeUnknownFields(
675         final com.google.protobuf.UnknownFieldSet unknownFields) {
676       return super.mergeUnknownFields(unknownFields);
677     }
678 
679     // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.Position)
680   }
681 
682   // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.Position)
683   private static final com.google.cloud.vision.v1.Position DEFAULT_INSTANCE;
684 
685   static {
686     DEFAULT_INSTANCE = new com.google.cloud.vision.v1.Position();
687   }
688 
getDefaultInstance()689   public static com.google.cloud.vision.v1.Position getDefaultInstance() {
690     return DEFAULT_INSTANCE;
691   }
692 
693   private static final com.google.protobuf.Parser<Position> PARSER =
694       new com.google.protobuf.AbstractParser<Position>() {
695         @java.lang.Override
696         public Position parsePartialFrom(
697             com.google.protobuf.CodedInputStream input,
698             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699             throws com.google.protobuf.InvalidProtocolBufferException {
700           Builder builder = newBuilder();
701           try {
702             builder.mergeFrom(input, extensionRegistry);
703           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
704             throw e.setUnfinishedMessage(builder.buildPartial());
705           } catch (com.google.protobuf.UninitializedMessageException e) {
706             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
707           } catch (java.io.IOException e) {
708             throw new com.google.protobuf.InvalidProtocolBufferException(e)
709                 .setUnfinishedMessage(builder.buildPartial());
710           }
711           return builder.buildPartial();
712         }
713       };
714 
parser()715   public static com.google.protobuf.Parser<Position> parser() {
716     return PARSER;
717   }
718 
719   @java.lang.Override
getParserForType()720   public com.google.protobuf.Parser<Position> getParserForType() {
721     return PARSER;
722   }
723 
724   @java.lang.Override
getDefaultInstanceForType()725   public com.google.cloud.vision.v1.Position getDefaultInstanceForType() {
726     return DEFAULT_INSTANCE;
727   }
728 }
729