kubernetes/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go

type doNotImplement

type ProtoMessage

type Syntax

type syntax

const Proto2

const Proto3

const Editions

// IsValid reports whether the syntax is valid.
func (s Syntax) IsValid() bool {}

// String returns s as a proto source identifier (e.g., "proto2").
func (s Syntax) String() string {}

// GoString returns s as a Go source identifier (e.g., "Proto2").
func (s Syntax) GoString() string {}

type Cardinality

type cardinality

const Optional

const Required

const Repeated

// IsValid reports whether the cardinality is valid.
func (c Cardinality) IsValid() bool {}

// String returns c as a proto source identifier (e.g., "optional").
func (c Cardinality) String() string {}

// GoString returns c as a Go source identifier (e.g., "Optional").
func (c Cardinality) GoString() string {}

type Kind

type kind

const BoolKind

const EnumKind

const Int32Kind

const Sint32Kind

const Uint32Kind

const Int64Kind

const Sint64Kind

const Uint64Kind

const Sfixed32Kind

const Fixed32Kind

const FloatKind

const Sfixed64Kind

const Fixed64Kind

const DoubleKind

const StringKind

const BytesKind

const MessageKind

const GroupKind

// IsValid reports whether the kind is valid.
func (k Kind) IsValid() bool {}

// String returns k as a proto source identifier (e.g., "bool").
func (k Kind) String() string {}

// GoString returns k as a Go source identifier (e.g., "BoolKind").
func (k Kind) GoString() string {}

type FieldNumber

type FieldNumbers

type FieldRanges

type EnumNumber

type EnumRanges

type Name

// IsValid reports whether s is a syntactically valid name.
// An empty name is invalid.
func (s Name) IsValid() bool {}

type Names

type FullName

// IsValid reports whether s is a syntactically valid full name.
// An empty full name is invalid.
func (s FullName) IsValid() bool {}

func consumeIdent(s string) (i int) {}

func isLetter(c byte) bool {}

func isLetterDigit(c byte) bool {}

// Name returns the short name, which is the last identifier segment.
// A single segment FullName is the [Name] itself.
func (n FullName) Name() Name {}

// Parent returns the full name with the trailing identifier removed.
// A single segment FullName has no parent.
func (n FullName) Parent() FullName {}

// Append returns the qualified name appended with the provided short name.
//
// Invariant: n == n.Parent().Append(n.Name()) // assuming n is valid
func (n FullName) Append(s Name) FullName {}