Class CodedInputStreamReader

    • Constructor Detail

      • CodedInputStreamReader

        private CodedInputStreamReader​(CodedInputStream input)
    • Method Detail

      • shouldDiscardUnknownFields

        public boolean shouldDiscardUnknownFields()
      • getFieldNumber

        public int getFieldNumber()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getTag

        public int getTag()
      • skipField

        public boolean skipField()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • requireWireType

        private void requireWireType​(int requiredWireType)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readDouble

        public double readDouble()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt64

        public long readUInt64()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt64

        public long readInt64()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt32

        public int readInt32()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readFixed64

        public long readFixed64()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readFixed32

        public int readFixed32()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readBool

        public boolean readBool()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readString

        public java.lang.String readString()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readStringRequireUtf8

        public java.lang.String readStringRequireUtf8()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readMessage

        public <T> T readMessage​(java.lang.Class<T> clazz,
                                 ExtensionRegistryLite extensionRegistry)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readMessageBySchemaWithCheck

        public <T> T readMessageBySchemaWithCheck​(Schema<T> schema,
                                                  ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readGroup

        @Deprecated
        public <T> T readGroup​(java.lang.Class<T> clazz,
                               ExtensionRegistryLite extensionRegistry)
                        throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • readGroupBySchemaWithCheck

        @Deprecated
        public <T> T readGroupBySchemaWithCheck​(Schema<T> schema,
                                                ExtensionRegistryLite extensionRegistry)
                                         throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • mergeMessageField

        public <T> void mergeMessageField​(T target,
                                          Schema<T> schema,
                                          ExtensionRegistryLite extensionRegistry)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • mergeMessageFieldInternal

        private <T> void mergeMessageFieldInternal​(T target,
                                                   Schema<T> schema,
                                                   ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readMessage

        private <T> T readMessage​(Schema<T> schema,
                                  ExtensionRegistryLite extensionRegistry)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • mergeGroupField

        public <T> void mergeGroupField​(T target,
                                        Schema<T> schema,
                                        ExtensionRegistryLite extensionRegistry)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • mergeGroupFieldInternal

        private <T> void mergeGroupFieldInternal​(T target,
                                                 Schema<T> schema,
                                                 ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readGroup

        private <T> T readGroup​(Schema<T> schema,
                                ExtensionRegistryLite extensionRegistry)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readBytes

        public ByteString readBytes()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt32

        public int readUInt32()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readEnum

        public int readEnum()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readSFixed32

        public int readSFixed32()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readSFixed64

        public long readSFixed64()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readSInt32

        public int readSInt32()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readSInt64

        public long readSInt64()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readDoubleList

        public void readDoubleList​(java.util.List<java.lang.Double> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readFloatList

        public void readFloatList​(java.util.List<java.lang.Float> target)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt64List

        public void readUInt64List​(java.util.List<java.lang.Long> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt64List

        public void readInt64List​(java.util.List<java.lang.Long> target)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt32List

        public void readInt32List​(java.util.List<java.lang.Integer> target)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readFixed64List

        public void readFixed64List​(java.util.List<java.lang.Long> target)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readFixed32List

        public void readFixed32List​(java.util.List<java.lang.Integer> target)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readBoolList

        public void readBoolList​(java.util.List<java.lang.Boolean> target)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readStringList

        public void readStringList​(java.util.List<java.lang.String> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readStringListRequireUtf8

        public void readStringListRequireUtf8​(java.util.List<java.lang.String> target)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readStringListInternal

        public void readStringListInternal​(java.util.List<java.lang.String> target,
                                           boolean requireUtf8)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readMessageList

        public <T> void readMessageList​(java.util.List<T> target,
                                        java.lang.Class<T> targetType,
                                        ExtensionRegistryLite extensionRegistry)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readMessageList

        public <T> void readMessageList​(java.util.List<T> target,
                                        Schema<T> schema,
                                        ExtensionRegistryLite extensionRegistry)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readGroupList

        @Deprecated
        public <T> void readGroupList​(java.util.List<T> target,
                                      java.lang.Class<T> targetType,
                                      ExtensionRegistryLite extensionRegistry)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • readGroupList

        @Deprecated
        public <T> void readGroupList​(java.util.List<T> target,
                                      Schema<T> schema,
                                      ExtensionRegistryLite extensionRegistry)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • readBytesList

        public void readBytesList​(java.util.List<ByteString> target)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt32List

        public void readUInt32List​(java.util.List<java.lang.Integer> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readEnumList

        public void readEnumList​(java.util.List<java.lang.Integer> target)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readSFixed32List

        public void readSFixed32List​(java.util.List<java.lang.Integer> target)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readSFixed64List

        public void readSFixed64List​(java.util.List<java.lang.Long> target)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readSInt32List

        public void readSInt32List​(java.util.List<java.lang.Integer> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readSInt64List

        public void readSInt64List​(java.util.List<java.lang.Long> target)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • verifyPackedFixed64Length

        private void verifyPackedFixed64Length​(int bytes)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readMap

        public <K,​V> void readMap​(java.util.Map<K,​V> target,
                                        MapEntryLite.Metadata<K,​V> metadata,
                                        ExtensionRegistryLite extensionRegistry)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readField

        private java.lang.Object readField​(WireFormat.FieldType fieldType,
                                           java.lang.Class<?> messageType,
                                           ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • verifyPackedFixed32Length

        private void verifyPackedFixed32Length​(int bytes)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • requirePosition

        private void requirePosition​(int expectedPosition)
                              throws java.io.IOException
        Throws:
        java.io.IOException