kubernetes/vendor/github.com/gogo/protobuf/proto/text_parser.go

const anyRepeatedlyUnpacked

type ParseError

func (p *ParseError) Error() string {}

type token

func (t *token) String() string {}

type textParser

func newTextParser(s string) *textParser {}

func (p *textParser) errorf(format string, a ...interface{}

// Numbers and identifiers are matched by [-+._A-Za-z0-9]
func isIdentOrNumberChar(c byte) bool {}

func isWhitespace(c byte) bool {}

func isQuote(c byte) bool {}

func (p *textParser) skipWhitespace() {}

func (p *textParser) advance() {}

var errBadUTF8

func unquoteC(s string, quote rune) (string, error) {}

func unescape(s string) (ch string, tail string, err error) {}

// Back off the parser by one token. Can only be done between calls to next().
// It makes the next advance() a no-op.
func (p *textParser) back() {}

// Advances the parser and returns the new current token.
func (p *textParser) next() *token {}

func (p *textParser) consumeToken(s string) error {}

// Return a RequiredNotSetError indicating which required field was not set.
func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError {}

// Returns the index in the struct for the named field, as well as the parsed tag properties.
func structFieldByName(sprops *StructProperties, name string) (int, *Properties, bool) {}

// Consume a ':' from the input stream (if the next token is a colon),
// returning an error if a colon is needed but not present.
func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError {}

func (p *textParser) readStruct(sv reflect.Value, terminator string) error {}

// consumeExtName consumes extension name or expanded Any type URL and the
// following ']'. It returns the name or URL consumed.
func (p *textParser) consumeExtName() (string, error) {}

// consumeOptionalSeparator consumes an optional semicolon or comma.
// It is used in readStruct to provide backward compatibility.
func (p *textParser) consumeOptionalSeparator() error {}

func (p *textParser) readAny(v reflect.Value, props *Properties) error {}

// UnmarshalText reads a protocol buffer in Text format. UnmarshalText resets pb
// before starting to unmarshal, so any existing data in pb is always removed.
// If a required field is not set and no other error occurs,
// UnmarshalText returns *RequiredNotSetError.
func UnmarshalText(s string, pb Message) error {}