Home
last modified time | relevance | path

Searched refs:DescriptorProto (Results 1 – 25 of 42) sorted by relevance

12

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DParseExceptionsTest.java38 import com.google.protobuf.DescriptorProtos.DescriptorProto;
63 DescriptorProto parse(InputStream in) throws IOException; in parse()
69 serializedProto = DescriptorProto.getDescriptor().toProto().toByteArray(); in setup()
75 DescriptorProto.getDescriptor().toProto().writeDelimitedTo(bos); in setupDelimited()
87 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_InputStream()
88 return DescriptorProto.parseFrom(in); in message_parseFrom_InputStream()
98 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_InputStreamAndExtensionRegistry()
99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry()
109 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_CodedInputStream()
110 return DescriptorProto.parseFrom(CodedInputStream.newInstance(in)); in message_parseFrom_CodedInputStream()
[all …]
DDescriptorsTest.java33 import com.google.protobuf.DescriptorProtos.DescriptorProto;
454 .addMessageType(DescriptorProto.newBuilder() in testDescriptorValidatorException()
486 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
495 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
578 .addMessageType(DescriptorProto.newBuilder() in testUnknownFieldsDenied()
600 .addMessageType(DescriptorProto.newBuilder() in testUnknownFieldsAllowed()
614 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testHiddenDependency()
623 .addMessageType(DescriptorProto.newBuilder() in testHiddenDependency()
649 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testPublicDependency()
659 .addMessageType(DescriptorProto.newBuilder() in testPublicDependency()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dparser.h295 bool ParseMessageDefinition(DescriptorProto* message,
316 bool ParseMessageBlock(DescriptorProto* message,
328 bool ParseMessageStatement(DescriptorProto* message,
347 RepeatedPtrField<DescriptorProto>* messages,
356 RepeatedPtrField<DescriptorProto>* messages,
363 bool ParseExtensions(DescriptorProto* message,
368 bool ParseReserved(DescriptorProto* message,
370 bool ParseReservedNames(DescriptorProto* message,
372 bool ParseReservedNumbers(DescriptorProto* message,
378 RepeatedPtrField<DescriptorProto>* messages,
[all …]
Dparser.cc650 DescriptorProto* message, in ParseMessageDefinition()
656 DescriptorProto::kNameFieldNumber); in ParseMessageDefinition()
669 bool IsMessageSetWireFormatMessage(const DescriptorProto& message) { in IsMessageSetWireFormatMessage()
685 void AdjustExtensionRangesWithMaxEndNumber(DescriptorProto* message) { in AdjustExtensionRangesWithMaxEndNumber()
699 bool Parser::ParseMessageBlock(DescriptorProto* message, in ParseMessageBlock()
723 bool Parser::ParseMessageStatement(DescriptorProto* message, in ParseMessageStatement()
731 DescriptorProto::kNestedTypeFieldNumber, in ParseMessageStatement()
737 DescriptorProto::kEnumTypeFieldNumber, in ParseMessageStatement()
743 DescriptorProto::kExtensionRangeFieldNumber); in ParseMessageStatement()
749 DescriptorProto::kExtensionFieldNumber); in ParseMessageStatement()
[all …]
Dparser_unittest.cc1646 DescriptorProto::descriptor()->file()->CopyTo(&descriptor_proto); in TEST_F()
1660 DescriptorProto* message(other_file.add_message_type()); in TEST_F()
1705 bool operator()(const DescriptorProto* left, in operator ()()
1706 const DescriptorProto* right) const { in operator ()()
1712 void SortMessages(DescriptorProto *descriptor_proto) { in SortMessages()
1718 DescriptorProto **data = in SortMessages()
1730 DescriptorProto **data = in SortMessages()
1736 void StripFieldTypeName(DescriptorProto* proto) { in StripFieldTypeName()
2486 const DescriptorProto::ExtensionRange& range1 = in TEST_F()
2488 const DescriptorProto::ExtensionRange& range2 = in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/
Ddescriptor.pb.h41 class DescriptorProto; variable
407 const ::google::protobuf::DescriptorProto& message_type(int index) const;
408 ::google::protobuf::DescriptorProto* mutable_message_type(int index);
409 ::google::protobuf::DescriptorProto* add_message_type();
410 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
412 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
502 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
716 class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
718 DescriptorProto();
719 virtual ~DescriptorProto();
[all …]
Ddescriptor.pb.cc155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
157 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
158 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
[all …]
Ddescriptor_unittest.cc69 DescriptorProto* AddMessage(FileDescriptorProto* file, const string& name) { in AddMessage()
70 DescriptorProto* result = file->add_message_type(); in AddMessage()
75 DescriptorProto* AddNestedMessage(DescriptorProto* parent, const string& name) { in AddNestedMessage()
76 DescriptorProto* result = parent->add_nested_type(); in AddNestedMessage()
87 EnumDescriptorProto* AddNestedEnum(DescriptorProto* parent, in AddNestedEnum()
101 FieldDescriptorProto* AddField(DescriptorProto* parent, in AddField()
127 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent, in AddNestedExtension()
141 DescriptorProto::ExtensionRange* AddExtensionRange(DescriptorProto* parent, in AddExtensionRange()
143 DescriptorProto::ExtensionRange* result = parent->add_extension_range(); in AddExtensionRange()
149 DescriptorProto::ReservedRange* AddReservedRange(DescriptorProto* parent, in AddReservedRange()
[all …]
Ddescriptor.cc1786 void Descriptor::CopyTo(DescriptorProto* proto) const { in CopyTo()
1802 DescriptorProto::ExtensionRange* range = proto->add_extension_range(); in CopyTo()
1810 DescriptorProto::ReservedRange* range = proto->add_reserved_range(); in CopyTo()
1823 void Descriptor::CopyJsonNameTo(DescriptorProto* proto) const { in CopyJsonNameTo()
2678 output->push_back(DescriptorProto::kNestedTypeFieldNumber); in GetLocationPath()
2693 output->push_back(DescriptorProto::kExtensionFieldNumber); in GetLocationPath()
2698 output->push_back(DescriptorProto::kFieldFieldNumber); in GetLocationPath()
2705 output->push_back(DescriptorProto::kOneofDeclFieldNumber); in GetLocationPath()
2712 output->push_back(DescriptorProto::kEnumTypeFieldNumber); in GetLocationPath()
2951 void BuildMessage(const DescriptorProto& proto,
[all …]
Ddescriptor_database.h169 bool AddNestedExtensions(const DescriptorProto& message_type,
/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb.cc39 using protos::DescriptorProto;
132 const DescriptorProto* descriptor;
140 const DescriptorProto* descriptor, in ParserDelegate()
143 std::map<std::string, const DescriptorProto*> name_to_descriptor, in ParserDelegate()
327 const DescriptorProto* nested_descriptor = name_to_descriptor_[type_name]; in BeginNestedMessage()
439 const DescriptorProto* descriptor() { in descriptor()
453 std::map<std::string, const DescriptorProto*> name_to_descriptor_;
615 const DescriptorProto* descriptor, in AddNestedDescriptors()
616 std::map<std::string, const DescriptorProto*>* name_to_descriptor, in AddNestedDescriptors()
622 for (const DescriptorProto& nested_descriptor : descriptor->nested_type()) { in AddNestedDescriptors()
[all …]
/external/tensorflow/tensorflow/core/util/proto/
Dproto_utils_test.cc30 protobuf::DescriptorProto output; in TEST()
36 protobuf::DescriptorProto output; in TEST()
44 protobuf::DescriptorProto output; in TEST()
/external/golang-protobuf/protoc-gen-go/descriptor/
Ddescriptor.pb.go400 …MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" j…
478 func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto {
528 type DescriptorProto struct { struct
532 …NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nest… argument
546 func (m *DescriptorProto) Reset() { *m = DescriptorProto{} } argument
547 func (m *DescriptorProto) String() string { return proto.CompactTextString(m) } argument
548 func (*DescriptorProto) ProtoMessage() {} argument
549 func (*DescriptorProto) Descriptor() ([]byte, []int) { argument
553 func (m *DescriptorProto) XXX_Unmarshal(b []byte) error { argument
556 func (m *DescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument
[all …]
/external/syzkaller/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/
Ddescriptor.pb.go373 …MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" j…
450 func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto {
500 type DescriptorProto struct { struct
504 …NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nest… argument
518 func (m *DescriptorProto) Reset() { *m = DescriptorProto{} } argument
519 func (m *DescriptorProto) String() string { return proto.CompactTextString(m) } argument
520 func (*DescriptorProto) ProtoMessage() {} argument
521 func (*DescriptorProto) Descriptor() ([]byte, []int) { argument
524 func (m *DescriptorProto) XXX_Unmarshal(b []byte) error { argument
527 func (m *DescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs146DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field… in DescriptorReflection()
147 …bal::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Refl… in DescriptorReflection()
375 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeat…
376 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
377 …gle.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Prot…
381 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
663 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> { class
664 …tic readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>((…
665 public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
675 public DescriptorProto() { in DescriptorProto() method in Google.Protobuf.Reflection.DescriptorProto
[all …]
DMessageDescriptor.cs63 …internal MessageDescriptor(DescriptorProto proto, FileDescriptor file, MessageDescriptor parent, i… in MessageDescriptor()
116 internal DescriptorProto Proto { get; }
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyDescriptor.java78 this.builder = DescriptorProtos.DescriptorProto.newBuilder(); in initialize()
228 public DescriptorProtos.DescriptorProto.Builder getBuilder() { in getBuilder()
265 private DescriptorProtos.DescriptorProto.Builder builder;
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py546 descriptor_pb2.DescriptorProto,
562 descriptor_pb2.DescriptorProto,
579 descriptor_pb2.DescriptorProto,
620 descriptor_pb2.DescriptorProto,
634 descriptor_pb2.DescriptorProto,
656 descriptor_pb2.DescriptorProto,
797 descriptor_proto = descriptor_pb2.DescriptorProto()
807 descriptor_proto = descriptor_pb2.DescriptorProto()
/external/perfetto/protos/perfetto/common/
Ddescriptor.proto44 repeated DescriptorProto message_type = 4;
55 message DescriptorProto { message
61 repeated DescriptorProto nested_type = 3;
/external/golang-protobuf/descriptor/
Ddescriptor_test.go13 var msg *protobuf.DescriptorProto
Ddescriptor.go81 func ForMessage(msg Message) (fd *protobuf.FileDescriptorProto, md *protobuf.DescriptorProto) {
/external/tensorflow/tensorflow/tools/api/lib/
Dapi_objects.proto34 optional google.protobuf.DescriptorProto descriptor = 1;
/external/protobuf/js/
DREADME.md77 goog.provide('proto.google.protobuf.DescriptorProto');
78 goog.provide('proto.google.protobuf.DescriptorProto.ExtensionRange');
79 goog.provide('proto.google.protobuf.DescriptorProto.ReservedRange');
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java598 public DescriptorProto toProto() { in toProto()
663 for (final DescriptorProto.ExtensionRange range : in isExtensionNumber()
674 for (final DescriptorProto.ReservedRange range : in isReservedNumber()
760 private DescriptorProto proto;
780 this.proto = DescriptorProto.newBuilder().setName(name).addExtensionRange( in Descriptor()
781 DescriptorProto.ExtensionRange.newBuilder().setStart(1) in Descriptor()
796 private Descriptor(final DescriptorProto proto, in Descriptor()
867 private void setProto(final DescriptorProto proto) { in setProto()
/external/golang-protobuf/ptypes/
Dany_test.go62 if Is(a, &pb.DescriptorProto{}) {

12