Home
last modified time | relevance | path

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

1234

/external/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; } }
117 if (!(lookup is MessageDescriptor)) in CrossLink()
121 inputType = (MessageDescriptor) lookup; in CrossLink()
124 if (!(lookup is MessageDescriptor)) in CrossLink()
128 outputType = (MessageDescriptor) lookup; in CrossLink()
DExtensionCollection.cs44 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInDeclarationOrder;
45 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInNumberOrder;
54 internal ExtensionCollection(MessageDescriptor message, Extension[] extensions) in ExtensionCollection()
71 public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor) in GetExtensionsInDeclarationOrder()
80 public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor) in GetExtensionsInNumberOrder()
87 …Dictionary<MessageDescriptor, IList<FieldDescriptor>> declarationOrder = new Dictionary<MessageDes… in CrossLink()
DMessageDescriptor.cs47 public sealed class MessageDescriptor : DescriptorBase class
67 …internal MessageDescriptor(DescriptorProto proto, FileDescriptor file, MessageDescriptor parent, i… in MessageDescriptor() method in Google.Protobuf.Reflection.MessageDescriptor
84 … new MessageDescriptor(type, file, this, index, generatedCodeInfo?.NestedTypes[index])); in MessageDescriptor()
193 public MessageDescriptor ContainingType { get; }
208 public IList<MessageDescriptor> NestedTypes { get; }
273 foreach (MessageDescriptor message in NestedTypes) in CrossLink()
296 private readonly MessageDescriptor messageDescriptor;
298 internal FieldCollection(MessageDescriptor messageDescriptor) in FieldCollection()
DFieldDescriptor.cs45 private MessageDescriptor extendeeType;
46 private MessageDescriptor messageType;
54 public MessageDescriptor ContainingType { get; }
72MessageDescriptor parent, int index, string propertyName, Extension extension) in FieldDescriptor()
250 public MessageDescriptor MessageType
265 public MessageDescriptor ExtendeeType
315 if (typeDescriptor is MessageDescriptor) in CrossLink()
331 if (!(typeDescriptor is MessageDescriptor)) in CrossLink()
335 messageType = (MessageDescriptor) typeDescriptor; in CrossLink()
365 … extendeeType = File.DescriptorPool.LookupSymbol(Proto.Extendee, this) as MessageDescriptor; in CrossLink()
DEnumDescriptor.cs45 private readonly MessageDescriptor containingType;
49 …internal EnumDescriptor(EnumDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, … in EnumDescriptor()
95 public MessageDescriptor ContainingType
DOneofDescriptor.cs48 private MessageDescriptor containingType;
52 …internal OneofDescriptor(OneofDescriptorProto proto, FileDescriptor file, MessageDescriptor parent… in OneofDescriptor()
73 public MessageDescriptor ContainingType
/external/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.cs88 Assert.Null(file.FindTypeByName<MessageDescriptor>("NoSuchType")); in TestFileDescriptor()
89 Assert.Null(file.FindTypeByName<MessageDescriptor>("protobuf_unittest3.TestAllTypes")); in TestFileDescriptor()
161 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptorFromGeneratedCodeFileDescriptor()
165 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in MessageDescriptorFromGeneratedCodeFileDescriptor()
169 public void MessageDescriptor() in MessageDescriptor() method in Google.Protobuf.Reflection.DescriptorsTest
171 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
172 MessageDescriptor nestedType = TestAllTypes.Types.NestedMessage.Descriptor; in MessageDescriptor()
200 … Assert.AreEqual(nestedType, messageType.FindDescriptor<MessageDescriptor>("NestedMessage")); in MessageDescriptor()
201 Assert.Null(messageType.FindDescriptor<MessageDescriptor>("NoSuchType")); in MessageDescriptor()
235 converted[2].FindTypeByName<MessageDescriptor>("TestAllTypes"), in FieldDescriptor_BuildFromByteStrings()
[all …]
/external/rust/crates/protobuf/src/reflect/
Dmessage.rs29 pub struct MessageDescriptor { struct
40 impl MessageDescriptor { argument
47 pub fn for_type<M: Message>() -> &'static MessageDescriptor { in for_type() argument
73 ) -> MessageDescriptor { in new_non_generic_by_rust_name() argument
115 MessageDescriptor { in new_non_generic_by_rust_name()
133 ) -> MessageDescriptor { in new_non_generic_by_pb_name() argument
149 let full_name = MessageDescriptor::compute_full_name( in new_non_generic_by_pb_name()
179 MessageDescriptor { in new_non_generic_by_pb_name()
203 ) -> MessageDescriptor { in new() argument
205 MessageDescriptor::new_non_generic_by_rust_name(rust_name, fields, file, factory) in new()
[all …]
/external/rust/crates/protobuf/src/well_known_types/
Dwrappers.rs127 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
135 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
136 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
144 crate::reflect::MessageDescriptor::new_pb_name::<DoubleValue>( in descriptor_static()
282 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
290 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
291 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
299 crate::reflect::MessageDescriptor::new_pb_name::<FloatValue>( in descriptor_static()
437 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
445 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
[all …]
Dempty.rs97 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
105 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
106 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
109 crate::reflect::MessageDescriptor::new_pb_name::<Empty>( in descriptor_static()
Dsource_context.rs134 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
142 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
143 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
151 crate::reflect::MessageDescriptor::new_pb_name::<SourceContext>( in descriptor_static()
Dfield_mask.rs133 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
141 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
142 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
150 crate::reflect::MessageDescriptor::new_pb_name::<FieldMask>( in descriptor_static()
Dduration.rs156 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
164 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
165 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
178 crate::reflect::MessageDescriptor::new_pb_name::<Duration>( in descriptor_static()
Dtimestamp.rs156 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
164 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
165 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
178 crate::reflect::MessageDescriptor::new_pb_name::<Timestamp>( in descriptor_static()
/external/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()
/external/perfetto/src/trace_processor/importers/ftrace/
Dftrace_descriptors.h45 struct MessageDescriptor { struct
51 MessageDescriptor* GetMessageDescriptorForId(size_t id); argument
52 MessageDescriptor* GetMessageDescriptorForName(base::StringView name);
/external/rust/crates/protobuf/src/
Dany.rs2 use crate::reflect::MessageDescriptor;
8 fn type_url(type_url_prefix: &str, descriptor: &MessageDescriptor) -> String { in type_url()
76 pub fn is_dyn(&self, descriptor: &MessageDescriptor) -> bool { in is_dyn()
104 descriptor: &MessageDescriptor, in unpack_dyn() argument
Dplugin.rs243 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
251 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
252 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
275 crate::reflect::MessageDescriptor::new_pb_name::<Version>( in descriptor_static()
562 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
570 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
571 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()
594 crate::reflect::MessageDescriptor::new_pb_name::<CodeGeneratorRequest>( in descriptor_static()
828 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor() argument
836 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()
[all …]
/external/rust/crates/protobuf/src/well_known_types_util/
Dany.rs1 use crate::reflect::MessageDescriptor;
7 fn type_url(type_url_prefix: &str, descriptor: &MessageDescriptor) -> String { in type_url()
75 pub fn is_dyn(&self, descriptor: &MessageDescriptor) -> bool { in is_dyn()
103 descriptor: &MessageDescriptor, in unpack_dyn() argument
/external/starlark-go/lib/proto/
Dproto.go247 var desc MessageDescriptor
257 var desc MessageDescriptor
312 func (d MessageDescriptor) CallInternal(thread *starlark.Thread, args starlark.Tuple, kwargs []star…
624 func (m *Message) desc() protoreflect.MessageDescriptor { return m.msg.Descriptor() }
630 func Unmarshal(desc protoreflect.MessageDescriptor, data []byte) (*Message, error) { argument
636 func UnmarshalText(desc protoreflect.MessageDescriptor, data []byte) (*Message, error) { argument
641 func unmarshalData(desc protoreflect.MessageDescriptor, data []byte, binary bool) (*Message, error)… argument
713 return MessageDescriptor{Desc: m.desc()}, nil
771 func newMessage(desc protoreflect.MessageDescriptor) protoreflect.Message { argument
784 func fieldDesc(desc protoreflect.MessageDescriptor, name string) (protoreflect.FieldDescriptor, err… argument
[all …]
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DWrappers.cs67 public static pbr::MessageDescriptor Descriptor {
72 pbr::MessageDescriptor pb::IMessage.Descriptor {
204 public static pbr::MessageDescriptor Descriptor {
209 pbr::MessageDescriptor pb::IMessage.Descriptor {
341 public static pbr::MessageDescriptor Descriptor {
346 pbr::MessageDescriptor pb::IMessage.Descriptor {
478 public static pbr::MessageDescriptor Descriptor {
483 pbr::MessageDescriptor pb::IMessage.Descriptor {
615 public static pbr::MessageDescriptor Descriptor {
620 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]
/external/grpc-grpc/src/csharp/Grpc.Examples/
DMath.cs57 public static pbr::MessageDescriptor Descriptor {
62 pbr::MessageDescriptor pb::IMessage.Descriptor {
214 public static pbr::MessageDescriptor Descriptor {
219 pbr::MessageDescriptor pb::IMessage.Descriptor {
371 public static pbr::MessageDescriptor Descriptor {
376 pbr::MessageDescriptor pb::IMessage.Descriptor {
500 public static pbr::MessageDescriptor Descriptor {
505 pbr::MessageDescriptor pb::IMessage.Descriptor {
629 public static pbr::MessageDescriptor Descriptor {
634 pbr::MessageDescriptor pb::IMessage.Descriptor {
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestCustomOptionsProto3.cs267 public static pbr::MessageDescriptor Descriptor {
272 pbr::MessageDescriptor pb::IMessage.Descriptor {
469 public static pbr::MessageDescriptor Descriptor {
474 pbr::MessageDescriptor pb::IMessage.Descriptor {
570 public static pbr::MessageDescriptor Descriptor {
575 pbr::MessageDescriptor pb::IMessage.Descriptor {
671 public static pbr::MessageDescriptor Descriptor {
676 pbr::MessageDescriptor pb::IMessage.Descriptor {
772 public static pbr::MessageDescriptor Descriptor {
777 pbr::MessageDescriptor pb::IMessage.Descriptor {
[all …]

1234