Lines Matching refs:stpb
50 stpb "github.com/golang/protobuf/ptypes/struct" packageName
487 {"Struct", marshaler, &pb.KnownTypes{St: &stpb.Struct{
488 Fields: map[string]*stpb.Value{
489 "one": {Kind: &stpb.Value_StringValue{"loneliest number"}},
490 "two": {Kind: &stpb.Value_NullValue{stpb.NullValue_NULL_VALUE}},
493 {"empty ListValue", marshaler, &pb.KnownTypes{Lv: &stpb.ListValue{}}, `{"lv":[]}`},
494 {"basic ListValue", marshaler, &pb.KnownTypes{Lv: &stpb.ListValue{Values: []*stpb.Value{
495 {Kind: &stpb.Value_StringValue{"x"}},
496 {Kind: &stpb.Value_NullValue{}},
497 {Kind: &stpb.Value_NumberValue{3}},
498 {Kind: &stpb.Value_BoolValue{true}},
502 …{"number Value", marshaler, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_NumberValue{1}}}, `{…
503 …{"null Value", marshaler, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_NullValue{stpb.NullVal…
504 …{"string number value", marshaler, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_StringValue{"…
505 {"list of lists Value", marshaler, &pb.KnownTypes{Val: &stpb.Value{
506 Kind: &stpb.Value_ListValue{&stpb.ListValue{
507 Values: []*stpb.Value{
508 {Kind: &stpb.Value_StringValue{"x"}},
509 {Kind: &stpb.Value_ListValue{&stpb.ListValue{
510 Values: []*stpb.Value{
511 {Kind: &stpb.Value_ListValue{&stpb.ListValue{
512 Values: []*stpb.Value{{Kind: &stpb.Value_StringValue{"y"}}},
514 {Kind: &stpb.Value_StringValue{"z"}},
802 {"empty Struct", Unmarshaler{}, `{"st": {}}`, &pb.KnownTypes{St: &stpb.Struct{}}},
803 …"x", "b": null, "c": 3, "d": true}}`, &pb.KnownTypes{St: &stpb.Struct{Fields: map[string]*stpb.Val…
804 "a": {Kind: &stpb.Value_StringValue{"x"}},
805 "b": {Kind: &stpb.Value_NullValue{}},
806 "c": {Kind: &stpb.Value_NumberValue{3}},
807 "d": {Kind: &stpb.Value_BoolValue{true}},
809 …{"b": 1, "c": [{"d": true}, "f"]}}}`, &pb.KnownTypes{St: &stpb.Struct{Fields: map[string]*stpb.Val…
810 "a": {Kind: &stpb.Value_StructValue{&stpb.Struct{Fields: map[string]*stpb.Value{
811 "b": {Kind: &stpb.Value_NumberValue{1}},
812 "c": {Kind: &stpb.Value_ListValue{&stpb.ListValue{Values: []*stpb.Value{
813 …{Kind: &stpb.Value_StructValue{&stpb.Struct{Fields: map[string]*stpb.Value{"d": {Kind: &stpb.Value…
814 {Kind: &stpb.Value_StringValue{"f"}},
819 {"empty ListValue", Unmarshaler{}, `{"lv": []}`, &pb.KnownTypes{Lv: &stpb.ListValue{}}},
820 …shaler{}, `{"lv": ["x", null, 3, true]}`, &pb.KnownTypes{Lv: &stpb.ListValue{Values: []*stpb.Value{
821 {Kind: &stpb.Value_StringValue{"x"}},
822 {Kind: &stpb.Value_NullValue{}},
823 {Kind: &stpb.Value_NumberValue{3}},
824 {Kind: &stpb.Value_BoolValue{true}},
826 …{"number Value", Unmarshaler{}, `{"val":1}`, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_Num…
827 …", Unmarshaler{}, `{"val":null}`, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_NullValue{stpb…
828 …{"bool Value", Unmarshaler{}, `{"val":true}`, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_Bo…
829 …{"string Value", Unmarshaler{}, `{"val":"x"}`, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_S…
830 …rshaler{}, `{"val":"9223372036854775807"}`, &pb.KnownTypes{Val: &stpb.Value{Kind: &stpb.Value_Stri…
831 …{"list of lists Value", Unmarshaler{}, `{"val":["x", [["y"], "z"]]}`, &pb.KnownTypes{Val: &stpb.Va…
832 Kind: &stpb.Value_ListValue{&stpb.ListValue{
833 Values: []*stpb.Value{
834 {Kind: &stpb.Value_StringValue{"x"}},
835 {Kind: &stpb.Value_ListValue{&stpb.ListValue{
836 Values: []*stpb.Value{
837 {Kind: &stpb.Value_ListValue{&stpb.ListValue{
838 Values: []*stpb.Value{{Kind: &stpb.Value_StringValue{"y"}}},
840 {Kind: &stpb.Value_StringValue{"z"}},
856 &stpb.Struct{
857 Fields: map[string]*stpb.Value{
858 "escaped": {Kind: &stpb.Value_StringValue{"a/b"}},
859 "unicode": {Kind: &stpb.Value_StringValue{"\u00004E16\u0000754C"}},
967 {"StructValue containing invalid character", `{"str": "\U00004E16\U0000754C"}`, &stpb.Struct{}},