Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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;
462 .addMessageType(DescriptorProto.newBuilder() in testDescriptorValidatorException()
494 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
503 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
586 .addMessageType(DescriptorProto.newBuilder() in testUnknownFieldsDenied()
608 .addMessageType(DescriptorProto.newBuilder() in testUnknownFieldsAllowed()
622 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testHiddenDependency()
631 .addMessageType(DescriptorProto.newBuilder() in testHiddenDependency()
657 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testPublicDependency()
667 .addMessageType(DescriptorProto.newBuilder() in testPublicDependency()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddescriptor.pb.h41 class DescriptorProto; variable
416 const ::google::protobuf::DescriptorProto& message_type(int index) const;
417 ::google::protobuf::DescriptorProto* mutable_message_type(int index);
418 ::google::protobuf::DescriptorProto* add_message_type();
419 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
421 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
511 ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
733 class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion…
735 DescriptorProto();
736 virtual ~DescriptorProto();
[all …]
Ddescriptor.pb.cc159 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
160 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
[all …]
Ddescriptor_unittest.cc68 DescriptorProto* AddMessage(FileDescriptorProto* file, const string& name) { in AddMessage()
69 DescriptorProto* result = file->add_message_type(); in AddMessage()
74 DescriptorProto* AddNestedMessage(DescriptorProto* parent, const string& name) { in AddNestedMessage()
75 DescriptorProto* result = parent->add_nested_type(); in AddNestedMessage()
86 EnumDescriptorProto* AddNestedEnum(DescriptorProto* parent, in AddNestedEnum()
100 FieldDescriptorProto* AddField(DescriptorProto* parent, in AddField()
126 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent, in AddNestedExtension()
140 DescriptorProto::ExtensionRange* AddExtensionRange(DescriptorProto* parent, in AddExtensionRange()
142 DescriptorProto::ExtensionRange* result = parent->add_extension_range(); in AddExtensionRange()
148 DescriptorProto::ReservedRange* AddReservedRange(DescriptorProto* parent, in AddReservedRange()
[all …]
Ddescriptor_database.h169 bool AddNestedExtensions(const DescriptorProto& message_type,
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()
2684 output->push_back(DescriptorProto::kNestedTypeFieldNumber); in GetLocationPath()
2699 output->push_back(DescriptorProto::kExtensionFieldNumber); in GetLocationPath()
2704 output->push_back(DescriptorProto::kFieldFieldNumber); in GetLocationPath()
2711 output->push_back(DescriptorProto::kOneofDeclFieldNumber); in GetLocationPath()
2718 output->push_back(DescriptorProto::kEnumTypeFieldNumber); in GetLocationPath()
2957 void BuildMessage(const DescriptorProto& proto,
[all …]
Ddescriptor.h87 class DescriptorProto; variable
205 void CopyTo(DescriptorProto* proto) const;
371 void CopyJsonNameTo(DescriptorProto* proto) const;
Ddescriptor.proto74 repeated DescriptorProto message_type = 4;
93 message DescriptorProto { message
99 repeated DescriptorProto nested_type = 3;
716 // repeated DescriptorProto message_type = 4;
717 // and DescriptorProto.field has field number 2:
Ddescriptor_database.cc138 const DescriptorProto& message_type, in AddNestedExtensions()
/frameworks/base/tools/streaming_proto/java/
Dmain.cpp120 write_message(stringstream& text, const DescriptorProto& message, const string& indent) in write_message()
159 const vector<EnumDescriptorProto>& enums, const vector<DescriptorProto>& messages) in write_file()
222 vector<DescriptorProto> messages; in write_multiple_files()
234 vector<DescriptorProto> messages; in write_multiple_files()
254 vector<DescriptorProto> messages; in write_single_file()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java34 import com.google.protobuf.DescriptorProtos.DescriptorProto;
440 .addMessageType(DescriptorProto.newBuilder() in testDescriptorValidatorException()
472 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
481 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
538 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testHiddenDependency()
547 .addMessageType(DescriptorProto.newBuilder() in testHiddenDependency()
573 .addMessageType(DescriptorProto.newBuilder().setName("Bar")) in testPublicDependency()
583 .addMessageType(DescriptorProto.newBuilder() in testPublicDependency()
617 .addMessageType(DescriptorProto.newBuilder() in testComplexNamespacePublicDependency()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs148DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field… in DescriptorReflection()
149 …bal::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Refl… in DescriptorReflection()
402 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeat…
403 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
404 …gle.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Prot…
409 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
704 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> { class
705 …tic readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>((…
707 public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
720 public DescriptorProto() { in DescriptorProto() method in Google.Protobuf.Reflection.DescriptorProto
[all …]
DMessageDescriptor.cs67 …internal MessageDescriptor(DescriptorProto proto, FileDescriptor file, MessageDescriptor parent, i… in MessageDescriptor()
120 internal DescriptorProto Proto { get; }
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_test.py547 descriptor_pb2.DescriptorProto,
563 descriptor_pb2.DescriptorProto,
580 descriptor_pb2.DescriptorProto,
621 descriptor_pb2.DescriptorProto,
635 descriptor_pb2.DescriptorProto,
657 descriptor_pb2.DescriptorProto,
798 descriptor_proto = descriptor_pb2.DescriptorProto()
808 descriptor_proto = descriptor_pb2.DescriptorProto()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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');
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/base/tools/streaming_proto/cpp/
Dmain.cpp77 write_message(stringstream& text, const DescriptorProto& message, const string& indent) in write_message()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/
Ddescriptor.proto69 repeated DescriptorProto message_type = 4;
84 message DescriptorProto { message
90 repeated DescriptorProto nested_type = 3;
563 // repeated DescriptorProto message_type = 4;
564 // and DescriptorProto.field has field number 2:
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/
Ddescriptor.proto69 repeated DescriptorProto message_type = 4;
84 message DescriptorProto { message
90 repeated DescriptorProto nested_type = 3;
563 // repeated DescriptorProto message_type = 4;
564 // and DescriptorProto.field has field number 2:
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.cc754 DescriptorProto edp; in PrintDescriptor()

12