Home
last modified time | relevance | path

Searched refs:messageDescriptor (Results 1 – 6 of 6) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs348 private readonly MessageDescriptor messageDescriptor; field in Google.Protobuf.Reflection.MessageDescriptor.FieldCollection
350 internal FieldCollection(MessageDescriptor messageDescriptor) in FieldCollection() argument
352 this.messageDescriptor = messageDescriptor; in FieldCollection()
359 … public IList<FieldDescriptor> InDeclarationOrder() => messageDescriptor.fieldsInDeclarationOrder; in InDeclarationOrder()
367 … public IList<FieldDescriptor> InFieldNumberOrder() => messageDescriptor.fieldsInNumberOrder; in InFieldNumberOrder()
377 … internal IDictionary<string, FieldDescriptor> ByJsonName() => messageDescriptor.jsonFieldMap; in ByJsonName()
390 var fieldDescriptor = messageDescriptor.FindFieldByNumber(number);
410 var fieldDescriptor = messageDescriptor.FindFieldByName(name);
DTypeRegistry.cs165 private void AddMessage(MessageDescriptor messageDescriptor) in AddMessage() argument
167 foreach (var nestedType in messageDescriptor.NestedTypes) in AddMessage()
174 types[messageDescriptor.FullName] = messageDescriptor; in AddMessage()
DDescriptorPool.cs209 internal FieldDescriptor FindFieldByNumber(MessageDescriptor messageDescriptor, int number) in FindFieldByNumber() argument
212 … fieldsByNumber.TryGetValue(new ObjectIntPair<IDescriptor>(messageDescriptor, number), out ret); in FindFieldByNumber()
/third_party/grpc/src/csharp/Grpc.Reflection/
DSymbolRegistry.cs117 private void AddMessage(MessageDescriptor messageDescriptor) in AddMessage() argument
119 foreach (var nestedEnum in messageDescriptor.EnumTypes) in AddMessage()
123 foreach (var nestedType in messageDescriptor.NestedTypes) in AddMessage()
127 filesBySymbol[messageDescriptor.FullName] = messageDescriptor.File; in AddMessage()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DCustomOptionsTest.cs134 var messageDescriptor = TestMessageWithCustomOptions.Descriptor; in OptionLocations()
135 …AssertOption(-56, messageDescriptor.CustomOptions.TryGetInt32, MessageOpt1, messageDescriptor.GetO… in OptionLocations()
197 var messageDescriptor = AggregateMessage.Descriptor; in AggregateOptions()
198 … = "MessageAnnotation" }, messageDescriptor.CustomOptions.TryGetMessage, Msgopt, messageDescriptor in AggregateOptions()
200 var fieldDescriptor = messageDescriptor.Fields["fieldname"]; in AggregateOptions()
208 var messageDescriptor = TestAllTypes.Descriptor; in NoOptions()
210 Assert.NotNull(messageDescriptor.CustomOptions); in NoOptions()
211 Assert.NotNull(messageDescriptor.Fields[1].CustomOptions); in NoOptions()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptorMessageInfoFactory.java102 private static MessageInfo convert(Class<?> messageType, Descriptor messageDescriptor) { in convert() argument
103 switch (messageDescriptor.getFile().getSyntax()) { in convert()
105 return convertProto2(messageType, messageDescriptor); in convert()
107 return convertProto3(messageType, messageDescriptor); in convert()
110 "Unsupported syntax: " + messageDescriptor.getFile().getSyntax()); in convert()
260 Class<?> messageType, Descriptor messageDescriptor) { in convertProto2() argument
261 List<FieldDescriptor> fieldDescriptors = messageDescriptor.getFields(); in convertProto2()
266 builder.withMessageSetWireFormat(messageDescriptor.getOptions().getMessageSetWireFormat()); in convertProto2()
394 Class<?> messageType, Descriptor messageDescriptor) { in convertProto3() argument
395 List<FieldDescriptor> fieldDescriptors = messageDescriptor.getFields(); in convertProto3()