google.golang.org/protobuf/reflect/protoreflect.Value.Bytes (method)
24 uses
google.golang.org/protobuf/reflect/protoreflect (current package)
value_equal.go#L61: return eqType && bytes.Equal(x.Bytes(), y.Bytes())
value_union.go#L219: return v.Bytes()
value_union.go#L321: func (v Value) Bytes() []byte {
google.golang.org/protobuf/encoding/protojson
encode.go#L325: 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#L247: e.WriteString(string(val.Bytes()))
encode.go#L363: }.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#L741: 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#L5629: return tagsize + protowire.SizeBytes(len(v.Bytes()))
codec_gen.go#L5635: b = protowire.AppendBytes(b, v.Bytes())
codec_gen.go#L5664: size += tagsize + protowire.SizeBytes(len(v.Bytes()))
codec_gen.go#L5675: b = protowire.AppendBytes(b, v.Bytes())
convert.go#L358: return reflect.ValueOf(v.Bytes()).Convert(c.goType)
merge.go#L120: return protoreflect.ValueOfBytes(append(emptyBuf[:], src.Bytes()...))
merge.go#L136: sb := srcl.Get(i).Bytes()
google.golang.org/protobuf/proto
decode.go#L212: if err := o.unmarshalMessage(v.Bytes(), m2); err != nil {
decode.go#L269: if err := o.unmarshalMessage(v.Bytes(), val.Message()); err != nil {
encode_gen.go#L76: b = protowire.AppendBytes(b, v.Bytes())
merge.go#L144: return protoreflect.ValueOfBytes(append([]byte{}, v.Bytes()...))
size_gen.go#L47: return protowire.SizeBytes(len(v.Bytes()))