Class ProtobufFile


  • public class ProtobufFile
    extends Object
    Indexed representation of the data resulting from parsing a single .proto protobuf schema file, used mainly for schema validation.
    Author:
    Jonathan Halliday, Ales Justin
    See Also:
    Protolock, ProtobufCompatibilityChecker
    • Constructor Detail

      • ProtobufFile

        public ProtobufFile​(String data)
      • ProtobufFile

        public ProtobufFile​(com.squareup.wire.schema.internal.parser.ProtoFileElement element)
    • Method Detail

      • toProtoFileElement

        public static com.squareup.wire.schema.internal.parser.ProtoFileElement toProtoFileElement​(String data)
      • getPackageName

        public String getPackageName()
      • getFieldMap

        public Map<String,​Map<String,​com.squareup.wire.schema.internal.parser.FieldElement>> getFieldMap()
      • getEnumFieldMap

        public Map<String,​Map<String,​com.squareup.wire.schema.internal.parser.EnumConstantElement>> getEnumFieldMap()
      • getMapMap

        public Map<String,​Map<String,​com.squareup.wire.schema.internal.parser.FieldElement>> getMapMap()