Home
last modified time | relevance | path

Searched refs:MessageDescriptor (Results 1 – 25 of 72) sorted by relevance

123

/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DTypeRegistry.cs45 …static TypeRegistry Empty { get; } = new TypeRegistry(new Dictionary<string, MessageDescriptor>());
47 private readonly Dictionary<string, MessageDescriptor> fullNameToMessageMap;
49 private TypeRegistry(Dictionary<string, MessageDescriptor> fullNameToMessageMap) in TypeRegistry()
61 public MessageDescriptor Find(string fullName) in Find()
63 MessageDescriptor ret; in Find()
113 public static TypeRegistry FromMessages(params MessageDescriptor[] messageDescriptors) in FromMessages()
115 return FromMessages((IEnumerable<MessageDescriptor>) messageDescriptors); in FromMessages()
129 public static TypeRegistry FromMessages(IEnumerable<MessageDescriptor> messageDescriptors) in FromMessages()
140 private readonly Dictionary<string, MessageDescriptor> types;
145 types = new Dictionary<string, MessageDescriptor>(); in Builder()
[all …]
DMethodDescriptor.cs45 private MessageDescriptor inputType;
46 private MessageDescriptor outputType;
56 public MessageDescriptor InputType { get { return inputType; } }
61 public MessageDescriptor OutputType { get { return outputType; } }
125 if (!(lookup is MessageDescriptor)) in CrossLink()
129 inputType = (MessageDescriptor) lookup; in CrossLink()
132 if (!(lookup is MessageDescriptor)) in CrossLink()
136 outputType = (MessageDescriptor) lookup; in CrossLink()
DExtensionCollection.cs44 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInDeclarationOrder;
45 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInNumberOrder;
63 internal ExtensionCollection(MessageDescriptor message, Extension[] extensions) in ExtensionCollection()
89 public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor) in GetExtensionsInDeclarationOrder()
98 public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor) in GetExtensionsInNumberOrder()
105 …Dictionary<MessageDescriptor, IList<FieldDescriptor>> declarationOrder = new Dictionary<MessageDes… in CrossLink()
DFieldDescriptor.cs45 private MessageDescriptor extendeeType;
46 private MessageDescriptor messageType;
54 public MessageDescriptor ContainingType { get; }
96MessageDescriptor parent, int index, string propertyName, Extension extension) in FieldDescriptor()
292 public MessageDescriptor MessageType
307 public MessageDescriptor ExtendeeType
365 if (typeDescriptor is MessageDescriptor) in CrossLink()
381 if (!(typeDescriptor is MessageDescriptor)) in CrossLink()
385 messageType = (MessageDescriptor) typeDescriptor; in CrossLink()
415 … extendeeType = File.DescriptorPool.LookupSymbol(Proto.Extendee, this) as MessageDescriptor; in CrossLink()
DMessageDescriptor.cs48 public sealed class MessageDescriptor : DescriptorBase class
69 …internal MessageDescriptor(DescriptorProto proto, FileDescriptor file, MessageDescriptor parent, i… in MessageDescriptor() method in Google.Protobuf.Reflection.MessageDescriptor
100 … new MessageDescriptor(type, file, this, index, generatedCodeInfo?.NestedTypes[index])); in MessageDescriptor()
224 public MessageDescriptor ContainingType { get; }
242 public IList<MessageDescriptor> NestedTypes { get; }
325 foreach (MessageDescriptor message in NestedTypes) in CrossLink()
348 private readonly MessageDescriptor messageDescriptor;
350 internal FieldCollection(MessageDescriptor messageDescriptor) in FieldCollection()
DEnumDescriptor.cs45 private readonly MessageDescriptor containingType;
49 …internal EnumDescriptor(EnumDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, … in EnumDescriptor()
95 public MessageDescriptor ContainingType
DOneofDescriptor.cs49 private MessageDescriptor containingType;
53 …internal OneofDescriptor(OneofDescriptorProto proto, FileDescriptor file, MessageDescriptor parent… in OneofDescriptor()
79 public MessageDescriptor ContainingType
DFileDescriptor.cs96 … new MessageDescriptor(message, this, null, index, generatedCodeInfo?.NestedTypes[index])); in FileDescriptor()
201 internal string ComputeFullName(MessageDescriptor parent, string name) in ComputeFullName()
271 public IList<MessageDescriptor> MessageTypes { get; }
398 foreach (MessageDescriptor message in MessageTypes) in CrossLink()
468 …private static IEnumerable<Extension> GetAllDependedExtensionsFromMessage(MessageDescriptor descri… in GetAllDependedExtensionsFromMessage()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorDeclarationTest.cs76 … var message = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in MessageComments()
87 … var message = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in MessageLocations()
107 … var outer = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in NestedMessageComments()
108 var nested = outer.FindDescriptor<MessageDescriptor>("NestedCommentMessage"); in NestedMessageComments()
116 … var outer = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in NestedEnumComments()
125 … var message = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in FieldComments()
135 … var outer = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in NestedMessageFieldComments()
136 var nested = outer.FindDescriptor<MessageDescriptor>("NestedCommentMessage"); in NestedMessageFieldComments()
154 … var outer = unitTestProto3Descriptor.FindTypeByName<MessageDescriptor>("CommentMessage"); in NestedEnumValueComments()
DDescriptorsTest.cs89 Assert.Null(file.FindTypeByName<MessageDescriptor>("NoSuchType")); in TestFileDescriptor()
90 Assert.Null(file.FindTypeByName<MessageDescriptor>("protobuf_unittest3.TestAllTypes")); in TestFileDescriptor()
162 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptorFromGeneratedCodeFileDescriptor()
166 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in MessageDescriptorFromGeneratedCodeFileDescriptor()
170 public void MessageDescriptor() in MessageDescriptor() method in Google.Protobuf.Reflection.DescriptorsTest
172 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
173 MessageDescriptor nestedType = TestAllTypes.Types.NestedMessage.Descriptor; in MessageDescriptor()
201 … Assert.AreEqual(nestedType, messageType.FindDescriptor<MessageDescriptor>("NestedMessage")); in MessageDescriptor()
202 Assert.Null(messageType.FindDescriptor<MessageDescriptor>("NoSuchType")); in MessageDescriptor()
236 converted[2].FindTypeByName<MessageDescriptor>("TestAllTypes"), in FieldDescriptor_BuildFromByteStrings()
[all …]
DTypeRegistryTest.cs84 … private static void AssertDescriptorPresent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorPresent()
89 … private static void AssertDescriptorAbsent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorAbsent()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs65 MessageDescriptor messageType = TestAllTypes.Descriptor; in FileDescriptor()
69 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in FileDescriptor()
70 Assert.Null(file.FindTypeByName<MessageDescriptor>("NoSuchType")); in FileDescriptor()
71 Assert.Null(file.FindTypeByName<MessageDescriptor>("protobuf_unittest.TestAllTypes")); in FileDescriptor()
91 public void MessageDescriptor() in MessageDescriptor() method in Google.Protobuf.Reflection.DescriptorsTest
93 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
94 MessageDescriptor nestedType = TestAllTypes.Types.NestedMessage.Descriptor; in MessageDescriptor()
122 … Assert.AreEqual(nestedType, messageType.FindDescriptor<MessageDescriptor>("NestedMessage")); in MessageDescriptor()
123 Assert.Null(messageType.FindDescriptor<MessageDescriptor>("NoSuchType")); in MessageDescriptor()
140 MessageDescriptor messageType = TestAllTypes.Descriptor; in FieldDescriptor()
DTypeRegistryTest.cs84 … private static void AssertDescriptorPresent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorPresent()
89 … private static void AssertDescriptorAbsent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorAbsent()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DWrappers.cs71 public static pbr::MessageDescriptor Descriptor {
76 pbr::MessageDescriptor pb::IMessage.Descriptor {
251 public static pbr::MessageDescriptor Descriptor {
256 pbr::MessageDescriptor pb::IMessage.Descriptor {
431 public static pbr::MessageDescriptor Descriptor {
436 pbr::MessageDescriptor pb::IMessage.Descriptor {
611 public static pbr::MessageDescriptor Descriptor {
616 pbr::MessageDescriptor pb::IMessage.Descriptor {
791 public static pbr::MessageDescriptor Descriptor {
796 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DAnyPartial.cs43 private static string GetTypeUrl(MessageDescriptor descriptor, string prefix) => in GetTypeUrl()
75 public bool Is(MessageDescriptor descriptor) in Is()
/third_party/grpc/examples/csharp/HelloworldUnity/Assets/Scripts/
DHelloworld.cs51 public static pbr::MessageDescriptor Descriptor {
56 pbr::MessageDescriptor pb::IMessage.Descriptor {
171 public static pbr::MessageDescriptor Descriptor {
176 pbr::MessageDescriptor pb::IMessage.Descriptor {
/third_party/grpc/examples/csharp/HelloworldXamarin/HelloworldXamarin/
DHelloworld.cs51 public static pbr::MessageDescriptor Descriptor {
56 pbr::MessageDescriptor pb::IMessage.Descriptor {
171 public static pbr::MessageDescriptor Descriptor {
176 pbr::MessageDescriptor pb::IMessage.Descriptor {
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestCustomOptionsProto3.cs271 public static pbr::MessageDescriptor Descriptor {
276 pbr::MessageDescriptor pb::IMessage.Descriptor {
524 public static pbr::MessageDescriptor Descriptor {
529 pbr::MessageDescriptor pb::IMessage.Descriptor {
660 public static pbr::MessageDescriptor Descriptor {
665 pbr::MessageDescriptor pb::IMessage.Descriptor {
796 public static pbr::MessageDescriptor Descriptor {
801 pbr::MessageDescriptor pb::IMessage.Descriptor {
932 public static pbr::MessageDescriptor Descriptor {
937 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DUnittestIssues.cs112 public static pbr::MessageDescriptor Descriptor {
117 pbr::MessageDescriptor pb::IMessage.Descriptor {
250 public static pbr::MessageDescriptor Descriptor {
255 pbr::MessageDescriptor pb::IMessage.Descriptor {
388 public static pbr::MessageDescriptor Descriptor {
393 pbr::MessageDescriptor pb::IMessage.Descriptor {
534 public static pbr::MessageDescriptor Descriptor {
539 pbr::MessageDescriptor pb::IMessage.Descriptor {
760 public static pbr::MessageDescriptor Descriptor {
765 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DUnittestProto3.cs268 public static pbr::MessageDescriptor Descriptor {
273 pbr::MessageDescriptor pb::IMessage.Descriptor {
2033 public static pbr::MessageDescriptor Descriptor {
2038 pbr::MessageDescriptor pb::IMessage.Descriptor {
2218 public static pbr::MessageDescriptor Descriptor {
2223 pbr::MessageDescriptor pb::IMessage.Descriptor {
2469 public static pbr::MessageDescriptor Descriptor {
2474 pbr::MessageDescriptor pb::IMessage.Descriptor {
2646 public static pbr::MessageDescriptor Descriptor {
2651 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/third_party/grpc/src/csharp/Grpc.Examples/
DMath.cs61 public static pbr::MessageDescriptor Descriptor {
66 pbr::MessageDescriptor pb::IMessage.Descriptor {
269 public static pbr::MessageDescriptor Descriptor {
274 pbr::MessageDescriptor pb::IMessage.Descriptor {
477 public static pbr::MessageDescriptor Descriptor {
482 pbr::MessageDescriptor pb::IMessage.Descriptor {
649 public static pbr::MessageDescriptor Descriptor {
654 pbr::MessageDescriptor pb::IMessage.Descriptor {
821 public static pbr::MessageDescriptor Descriptor {
826 pbr::MessageDescriptor pb::IMessage.Descriptor {
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/
DMessages.cs178 public static pbr::MessageDescriptor Descriptor {
183 pbr::MessageDescriptor pb::IMessage.Descriptor {
356 public static pbr::MessageDescriptor Descriptor {
361 pbr::MessageDescriptor pb::IMessage.Descriptor {
574 public static pbr::MessageDescriptor Descriptor {
579 pbr::MessageDescriptor pb::IMessage.Descriptor {
785 public static pbr::MessageDescriptor Descriptor {
790 pbr::MessageDescriptor pb::IMessage.Descriptor {
1354 public static pbr::MessageDescriptor Descriptor {
1359 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
DMetrics.cs62 public static pbr::MessageDescriptor Descriptor {
67 pbr::MessageDescriptor pb::IMessage.Descriptor {
379 public static pbr::MessageDescriptor Descriptor {
384 pbr::MessageDescriptor pb::IMessage.Descriptor {
551 public static pbr::MessageDescriptor Descriptor {
556 pbr::MessageDescriptor pb::IMessage.Descriptor {
DPayloads.cs60 public static pbr::MessageDescriptor Descriptor {
65 pbr::MessageDescriptor pb::IMessage.Descriptor {
268 public static pbr::MessageDescriptor Descriptor {
273 pbr::MessageDescriptor pb::IMessage.Descriptor {
480 public static pbr::MessageDescriptor Descriptor {
485 pbr::MessageDescriptor pb::IMessage.Descriptor {
616 public static pbr::MessageDescriptor Descriptor {
621 pbr::MessageDescriptor pb::IMessage.Descriptor {
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/CoreStats/
DStats.cs57 public static pbr::MessageDescriptor Descriptor {
62 pbr::MessageDescriptor pb::IMessage.Descriptor {
265 public static pbr::MessageDescriptor Descriptor {
270 pbr::MessageDescriptor pb::IMessage.Descriptor {
426 public static pbr::MessageDescriptor Descriptor {
431 pbr::MessageDescriptor pb::IMessage.Descriptor {
714 public static pbr::MessageDescriptor Descriptor {
719 pbr::MessageDescriptor pb::IMessage.Descriptor {

123