google.golang.org/protobuf/reflect/protoreflect.Value.Bytes (method)
28 uses
google.golang.org/protobuf/reflect/protoreflect (current package)
value_union.go#L219: return v.Bytes()
value_union.go#L321: func (v Value) Bytes() []byte {
google.golang.org/protobuf/encoding/protojson
encode.go#L288: e.WriteString(base64.StdEncoding.EncodeToString(val.Bytes()))
well_known_types.go#L136: }.Unmarshal(valueVal.Bytes(), em.Interface())
google.golang.org/protobuf/encoding/prototext
encode.go#L237: e.WriteString(string(val.Bytes()))
encode.go#L353: }.Unmarshal(value.Bytes(), m)
google.golang.org/protobuf/internal/encoding/defval
default.go#L167: if s, ok := marshalBytes(v.Bytes()); ok {
google.golang.org/protobuf/internal/filedesc
desc.go#L626: if len(dv.bytes) > 0 && !bytes.Equal(dv.bytes, dv.val.Bytes()) {
desc_lazy.go#L52: fd.L1.Default = unmarshalDefault(v.Bytes(), fd.L1.Kind, file, fd.L1.Enum)
desc_lazy.go#L75: xd.L2.Default = unmarshalDefault(v.Bytes(), xd.L1.Kind, file, xd.L2.Enum)
google.golang.org/protobuf/internal/impl
codec_gen.go#L5542: return tagsize + protowire.SizeBytes(len(v.Bytes()))
codec_gen.go#L5548: b = protowire.AppendBytes(b, v.Bytes())
codec_gen.go#L5577: size += tagsize + protowire.SizeBytes(len(v.Bytes()))
codec_gen.go#L5588: b = protowire.AppendBytes(b, v.Bytes())
convert.go#L359: return reflect.ValueOf(v.Bytes()).Convert(c.goType)
merge.go#L93: return protoreflect.ValueOfBytes(append(emptyBuf[:], src.Bytes()...))
merge.go#L109: sb := srcl.Get(i).Bytes()
google.golang.org/protobuf/proto
decode.go#L199: if err := o.unmarshalMessage(v.Bytes(), m2); err != nil {
decode.go#L256: if err := o.unmarshalMessage(v.Bytes(), val.Message()); err != nil {
encode_gen.go#L76: b = protowire.AppendBytes(b, v.Bytes())
equal.go#L140: return bytes.Equal(x.Bytes(), y.Bytes())
merge.go#L138: return protoreflect.ValueOfBytes(append([]byte{}, v.Bytes()...))
size_gen.go#L47: return protowire.SizeBytes(len(v.Bytes()))
github.com/golang/protobuf/jsonpb
encode.go#L320: rawVal := m.Get(md.Fields().ByNumber(2)).Bytes()
github.com/golang/protobuf/proto
defaults.go#L28: v = protoreflect.ValueOf(append([]byte(nil), v.Bytes()...)) // copy the default bytes
text_encode.go#L232: b := m.Get(fdVal).Bytes()
text_encode.go#L371: w.writeQuotedString(string(v.Bytes()))