kubernetes/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go

type Kind

const Invalid

const EOF

const Name

const Scalar

const MessageOpen

const MessageClose

const ListOpen

const ListClose

const comma

const semicolon

const bof

func (t Kind) String() string {}

type NameKind

const IdentName

const TypeName

const FieldNumber

func (t NameKind) String() string {}

const hasSeparator

const numberValue

const stringValue

const literalValue

const isNegative

type Token

// Kind returns the token kind.
func (t Token) Kind() Kind {}

// RawString returns the read value in string.
func (t Token) RawString() string {}

// Pos returns the token position from the input.
func (t Token) Pos() int {}

// NameKind returns IdentName, TypeName or FieldNumber.
// It panics if type is not Name.
func (t Token) NameKind() NameKind {}

// HasSeparator returns true if the field name is followed by the separator char
// ':', else false. It panics if type is not Name.
func (t Token) HasSeparator() bool {}

// IdentName returns the value for IdentName type.
func (t Token) IdentName() string {}

// TypeName returns the value for TypeName type.
func (t Token) TypeName() string {}

// FieldNumber returns the value for FieldNumber type. It returns a
// non-negative int32 value. Caller will still need to validate for the correct
// field number range.
func (t Token) FieldNumber() int32 {}

// String returns the string value for a Scalar type.
func (t Token) String() (string, bool) {}

// Enum returns the literal value for a Scalar type for use as enum literals.
func (t Token) Enum() (string, bool) {}

// Bool returns the bool value for a Scalar type.
func (t Token) Bool() (bool, bool) {}

var boolLits

// Uint64 returns the uint64 value for a Scalar type.
func (t Token) Uint64() (uint64, bool) {}

// Uint32 returns the uint32 value for a Scalar type.
func (t Token) Uint32() (uint32, bool) {}

// Int64 returns the int64 value for a Scalar type.
func (t Token) Int64() (int64, bool) {}

// Int32 returns the int32 value for a Scalar type.
func (t Token) Int32() (int32, bool) {}

// Float64 returns the float64 value for a Scalar type.
func (t Token) Float64() (float64, bool) {}

// Float32 returns the float32 value for a Scalar type.
func (t Token) Float32() (float32, bool) {}

var floatLits

// TokenEquals returns true if given Tokens are equal, else false.
func TokenEquals(x, y Token) bool {}