Paths class

Utility class for building paths of proto elements: messages, fields, enums, ooneofs. Each proto element contains a path which is a list of integers. They way they are constructed described in SourceCodeInfo proto in https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto

To build a path of an element you need to have path of the parent and call one of the methods in this class. It will return the new path.

Constructors

Paths.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildFieldPath(List<int> parentPath, ProtobufField field) List<int>
buildNestedMessagePath(List<int> parentPath, int messageIndex) List<int>
buildOneofPath(List<int> parentPath, OneofNames oneof) List<int>
buildTopLevelMessagePath(List<int> parentPath, int messageIndex) List<int>