Searched refs:stpb (Results 1 – 2 of 2) sorted by relevance
/external/golang-protobuf/jsonpb/ |
D | jsonpb_test.go | 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}}, [all …]
|
D | jsonpb.go | 56 stpb "github.com/golang/protobuf/ptypes/struct" packageName 733 …if string(inputValue) == "null" && targetType != reflect.TypeOf(&stpb.Value{}) && !isJSONPBUnmarsh… 847 target.Field(0).Set(reflect.ValueOf(map[string]*stpb.Value{})) 849 pv := &stpb.Value{} 862 target.Field(0).Set(reflect.ValueOf(make([]*stpb.Value, len(s)))) 872 target.Field(0).Set(reflect.ValueOf(&stpb.Value_NullValue{})) 874 target.Field(0).Set(reflect.ValueOf(&stpb.Value_NumberValue{v})) 876 target.Field(0).Set(reflect.ValueOf(&stpb.Value_StringValue{v})) 878 target.Field(0).Set(reflect.ValueOf(&stpb.Value_BoolValue{v})) 880 lv := &stpb.ListValue{} [all …]
|