kubernetes/vendor/github.com/golang/protobuf/jsonpb/encode.go

const wrapJSONMarshalV2

type Marshaler

type JSONPBMarshaler

// Marshal serializes a protobuf message as JSON into w.
func (jm *Marshaler) Marshal(w io.Writer, m proto.Message) error {}

// MarshalToString serializes a protobuf message as JSON in string form.
func (jm *Marshaler) MarshalToString(m proto.Message) (string, error) {}

func (jm *Marshaler) marshal(m proto.Message) ([]byte, error) {}

type jsonWriter

func (w *jsonWriter) write(s string) {}

func (w *jsonWriter) marshalMessage(m protoreflect.Message, indent, typeURL string) error {}

func (w *jsonWriter) writeComma() {}

func (w *jsonWriter) marshalAny(m protoreflect.Message, indent string) error {}

func (w *jsonWriter) marshalTypeURL(indent, typeURL string) error {}

// marshalField writes field description and value to the Writer.
func (w *jsonWriter) marshalField(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error {}

func (w *jsonWriter) marshalValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error {}

func (w *jsonWriter) marshalSingularValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error {}