kubernetes/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go

type marshalFunc

// wellKnownTypeMarshaler returns a marshal function if the message type
// has specialized serialization behavior. It returns nil otherwise.
func wellKnownTypeMarshaler(name protoreflect.FullName) marshalFunc {}

type unmarshalFunc

// wellKnownTypeUnmarshaler returns a unmarshal function if the message type
// has specialized serialization behavior. It returns nil otherwise.
func wellKnownTypeUnmarshaler(name protoreflect.FullName) unmarshalFunc {}

func (e encoder) marshalAny(m protoreflect.Message) error {}

func (d decoder) unmarshalAny(m protoreflect.Message) error {}

var errEmptyObject

var errMissingType

// findTypeURL returns the token for the "@type" field value from the given
// JSON bytes. It is expected that the given bytes start with json.ObjectOpen.
// It returns errEmptyObject if the JSON object is empty or errMissingType if
// @type field does not exist. It returns other error if the @type field is not
// valid or other decoding issues.
func findTypeURL(d decoder) (json.Token, error) {}

// skipJSONValue parses a JSON value (null, boolean, string, number, object and
// array) in order to advance the read to the next JSON value. It relies on
// the decoder returning an error if the types are not in valid sequence.
func (d decoder) skipJSONValue() error {}

// unmarshalAnyValue unmarshals the given custom-type message from the JSON
// object's "value" field.
func (d decoder) unmarshalAnyValue(unmarshal unmarshalFunc, m protoreflect.Message) error {}

func (e encoder) marshalWrapperType(m protoreflect.Message) error {}

func (d decoder) unmarshalWrapperType(m protoreflect.Message) error {}

func (e encoder) marshalEmpty(protoreflect.Message) error {}

func (d decoder) unmarshalEmpty(protoreflect.Message) error {}

func (e encoder) marshalStruct(m protoreflect.Message) error {}

func (d decoder) unmarshalStruct(m protoreflect.Message) error {}

func (e encoder) marshalListValue(m protoreflect.Message) error {}

func (d decoder) unmarshalListValue(m protoreflect.Message) error {}

func (e encoder) marshalKnownValue(m protoreflect.Message) error {}

func (d decoder) unmarshalKnownValue(m protoreflect.Message) error {}

const secondsInNanos

const maxSecondsInDuration

func (e encoder) marshalDuration(m protoreflect.Message) error {}

func (d decoder) unmarshalDuration(m protoreflect.Message) error {}

// parseDuration parses the given input string for seconds and nanoseconds value
// for the Duration JSON format. The format is a decimal number with a suffix
// 's'. It can have optional plus/minus sign. There needs to be at least an
// integer or fractional part. Fractional part is limited to 9 digits only for
// nanoseconds precision, regardless of whether there are trailing zero digits.
// Example values are 1s, 0.1s, 1.s, .1s, +1s, -1s, -.1s.
func parseDuration(input string) (int64, int32, bool) {}

const maxTimestampSeconds

const minTimestampSeconds

func (e encoder) marshalTimestamp(m protoreflect.Message) error {}

func (d decoder) unmarshalTimestamp(m protoreflect.Message) error {}

func (e encoder) marshalFieldMask(m protoreflect.Message) error {}

func (d decoder) unmarshalFieldMask(m protoreflect.Message) error {}