Home
last modified time | relevance | path

Searched refs:TypeUrl (Results 1 – 12 of 12) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DAny.cs155 public string TypeUrl { property in Google.Protobuf.WellKnownTypes.Any
186 if (TypeUrl != other.TypeUrl) return false; in Equals()
193 if (TypeUrl.Length != 0) hash ^= TypeUrl.GetHashCode(); in GetHashCode()
203 if (TypeUrl.Length != 0) { in WriteTo()
205 output.WriteString(TypeUrl); in WriteTo()
215 if (TypeUrl.Length != 0) { in CalculateSize()
216 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); in CalculateSize()
228 if (other.TypeUrl.Length != 0) { in MergeFrom()
229 TypeUrl = other.TypeUrl; in MergeFrom()
244 TypeUrl = input.ReadString(); in MergeFrom()
DType.cs431 public string TypeUrl { property in Google.Protobuf.WellKnownTypes.Field
518 if (TypeUrl != other.TypeUrl) return false; in Equals()
533 if (TypeUrl.Length != 0) hash ^= TypeUrl.GetHashCode(); in GetHashCode()
563 if (TypeUrl.Length != 0) { in WriteTo()
565 output.WriteString(TypeUrl); in WriteTo()
600 if (TypeUrl.Length != 0) { in CalculateSize()
601 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); in CalculateSize()
635 if (other.TypeUrl.Length != 0) { in MergeFrom()
636 TypeUrl = other.TypeUrl; in MergeFrom()
677 TypeUrl = input.ReadString(); in MergeFrom()
DAnyPartial.cs74 if (GetTypeName(TypeUrl) != target.Descriptor.FullName)
102 TypeUrl = GetTypeUrl(message.Descriptor, typeUrlPrefix), in Pack()
/external/golang-protobuf/ptypes/
Dany_test.go77 a := &any.Any{TypeUrl: "foo/bar/" + proto.MessageName(m)}
79 …t.Errorf("message with type url %q didn't satisfy Is for type %q", a.TypeUrl, proto.MessageName(m))
88 noPrefix := &any.Any{TypeUrl: proto.MessageName(m)}
90 …t.Errorf("message with type url %q incorrectly claimed to be %q", noPrefix.TypeUrl, proto.MessageN…
92 shortPrefix := &any.Any{TypeUrl: "/" + proto.MessageName(m)}
94 …t.Errorf("message with type url %q didn't satisfy Is for type %q", shortPrefix.TypeUrl, proto.Mess…
129 a.TypeUrl = "type.googleapis.com/google.protobuf.FieldMask"
131 …t no error for an attempt to create a message of type %q, which shouldn't be linked in", a.TypeUrl)
141 noPrefix := &any.Any{TypeUrl: proto.MessageName(want)}
144 t.Errorf("expected Empty for any type %q to fail", noPrefix.TypeUrl)
[all …]
Dany.go57 slash := strings.LastIndex(any.TypeUrl, "/")
59 return "", fmt.Errorf("message type url %q is invalid", any.TypeUrl)
61 return any.TypeUrl[slash+1:], nil
70 return &any.Any{TypeUrl: googleApis + proto.MessageName(pb), Value: value}, nil
139 prefix := len(any.TypeUrl) - len(name)
140 return prefix >= 1 && any.TypeUrl[prefix-1] == '/' && any.TypeUrl[prefix:] == name
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/
Dany.go57 slash := strings.LastIndex(any.TypeUrl, "/")
59 return "", fmt.Errorf("message type url %q is invalid", any.TypeUrl)
61 return any.TypeUrl[slash+1:], nil
70 return &any.Any{TypeUrl: googleApis + proto.MessageName(pb), Value: value}, nil
139 prefix := len(any.TypeUrl) - len(name)
140 return prefix >= 1 && any.TypeUrl[prefix-1] == '/' && any.TypeUrl[prefix:] == name
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DAnyTest.cs45 Assert.AreEqual("type.googleapis.com/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack()
54 Assert.AreEqual("foo.bar/baz/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefix()
63 Assert.AreEqual("foo.bar/baz/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefixTrailingSlash()
/external/golang-protobuf/proto/
Dany_test.go81 Anything: &anypb.Any{TypeUrl: "type.googleapis.com/" + proto.MessageName(nested), Value: nb},
86 …Anything: &anypb.Any{TypeUrl: "http://[::1]/type.googleapis.com/" + proto.MessageName(nested), …
91 Anything: &anypb.Any{TypeUrl: `type.googleapis.com/"/` + proto.MessageName(nested), Value: nb},
245 TypeUrl: "foo",
Dtext_test.go490 Anything: &anypb.Any{TypeUrl: "type.googleapis.com/" + proto.MessageName(any), Value: b},
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/any/
Dany.pb.go124 TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` member
159 return m.TypeUrl
/external/golang-protobuf/ptypes/any/
Dany.pb.go131 TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` member
168 return m.TypeUrl
/external/golang-protobuf/jsonpb/
Djsonpb_test.go348 TypeUrl: "something.example.com/jsonpb.Simple",
365 TypeUrl: "type.googleapis.com/google.protobuf.Duration",
973 TypeUrl: "https://foobar.com/some.random.MessageKind",
1044 want.TypeUrl = "blah.com/" + dynamicMessageName