+protos/google_unittest_custom_options.protoz google/protobuf/descriptor.protogoogle.protobuf"M FileDescriptorSet8 file ( 2$.google.protobuf.FileDescriptorProtoRfile" FileDescriptorProto name ( Rname package ( Rpackage dependency ( R dependency+ public_dependency (RpublicDependency' weak_dependency (RweakDependencyC message_type ( 2 .google.protobuf.DescriptorProtoR messageTypeA enum_type ( 2$.google.protobuf.EnumDescriptorProtoRenumTypeA service ( 2'.google.protobuf.ServiceDescriptorProtoRserviceC extension ( 2%.google.protobuf.FieldDescriptorProtoR extension6 options ( 2.google.protobuf.FileOptionsRoptionsI source_code_info ( 2.google.protobuf.SourceCodeInfoRsourceCodeInfo syntax ( Rsyntax" DescriptorProto name ( Rname; field ( 2%.google.protobuf.FieldDescriptorProtoRfieldC extension ( 2%.google.protobuf.FieldDescriptorProtoR extensionA nested_type ( 2 .google.protobuf.DescriptorProtoR nestedTypeA enum_type ( 2$.google.protobuf.EnumDescriptorProtoRenumTypeX extension_range ( 2/.google.protobuf.DescriptorProto.ExtensionRangeRextensionRangeD oneof_decl ( 2%.google.protobuf.OneofDescriptorProtoR oneofDecl9 options ( 2.google.protobuf.MessageOptionsRoptionsU reserved_range ( 2..google.protobuf.DescriptorProto.ReservedRangeR reservedRange# reserved_name ( R reservedName8 ExtensionRange start (Rstart end (Rend7 ReservedRange start (Rstart end (Rend" FieldDescriptorProto name ( Rname number (RnumberA label (2+.google.protobuf.FieldDescriptorProto.LabelRlabel> type (2*.google.protobuf.FieldDescriptorProto.TypeRtype type_name ( RtypeName extendee ( Rextendee# default_value ( R defaultValue oneof_index (R oneofIndex json_name ( RjsonName7 options ( 2.google.protobuf.FieldOptionsRoptions" Type TYPE_DOUBLE TYPE_FLOAT TYPE_INT64 TYPE_UINT64 TYPE_INT32 TYPE_FIXED64 TYPE_FIXED32 TYPE_BOOL TYPE_STRING  TYPE_GROUP  TYPE_MESSAGE  TYPE_BYTES  TYPE_UINT32  TYPE_ENUM TYPE_SFIXED32 TYPE_SFIXED64 TYPE_SINT32 TYPE_SINT64"C Label LABEL_OPTIONAL LABEL_REQUIRED LABEL_REPEATED"* OneofDescriptorProto name ( Rname" EnumDescriptorProto name ( Rname? value ( 2).google.protobuf.EnumValueDescriptorProtoRvalue6 options ( 2.google.protobuf.EnumOptionsRoptions" EnumValueDescriptorProto name ( Rname number (Rnumber; options ( 2!.google.protobuf.EnumValueOptionsRoptions" ServiceDescriptorProto name ( Rname> method ( 2&.google.protobuf.MethodDescriptorProtoRmethod9 options ( 2.google.protobuf.ServiceOptionsRoptions" MethodDescriptorProto name ( Rname input_type ( R inputType output_type ( R outputType8 options ( 2.google.protobuf.MethodOptionsRoptions0 client_streaming (:falseRclientStreaming0 server_streaming (:falseRserverStreaming" FileOptions! java_package ( R javaPackage0 java_outer_classname ( RjavaOuterClassname5 java_multiple_files (:falseRjavaMultipleFilesG java_generate_equals_and_hash (:falseRjavaGenerateEqualsAndHash: java_string_check_utf8 (:falseRjavaStringCheckUtf8S optimize_for (2).google.protobuf.FileOptions.OptimizeMode:SPEEDR optimizeFor go_package ( R goPackage5 cc_generic_services (:falseRccGenericServices9 java_generic_services (:falseRjavaGenericServices5 py_generic_services (:falseRpyGenericServices% deprecated (:falseR deprecated/ cc_enable_arenas (:falseRccEnableArenas* objc_class_prefix$ ( RobjcClassPrefix) csharp_namespace% ( RcsharpNamespaceI javanano_use_deprecated_package& (BRjavananoUseDeprecatedPackageX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption": OptimizeMode SPEED CODE_SIZE LITE_RUNTIME* " MessageOptions< message_set_wire_format (:falseRmessageSetWireFormatL no_standard_descriptor_accessor (:falseRnoStandardDescriptorAccessor% deprecated (:falseR deprecated map_entry (RmapEntryX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* " FieldOptionsA ctype (2#.google.protobuf.FieldOptions.CType:STRINGRctype packed (RpackedG jstype (2$.google.protobuf.FieldOptions.JSType: JS_NORMALRjstype lazy (:falseRlazy% deprecated (:falseR deprecated weak (:falseRweakX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption"/ CType STRING CORD STRING_PIECE"5 JSType JS_NORMAL JS_STRING JS_NUMBER* " EnumOptions allow_alias (R allowAlias% deprecated (:falseR deprecatedX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* " EnumValueOptions% deprecated (:falseR deprecatedX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* " ServiceOptions% deprecated! (:falseR deprecatedX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* " MethodOptions% deprecated! (:falseR deprecatedX uninterpreted_option ( 2$.google.protobuf.UninterpretedOptionRuninterpretedOption* " UninterpretedOptionA name ( 2-.google.protobuf.UninterpretedOption.NamePartRname) identifier_value ( RidentifierValue, positive_int_value (RpositiveIntValue, negative_int_value (RnegativeIntValue! double_value (R doubleValue! string_value ( R stringValue' aggregate_value ( RaggregateValueJ NamePart name_part ( RnamePart! is_extension (R isExtension" SourceCodeInfoD location ( 2(.google.protobuf.SourceCodeInfo.LocationRlocation Location path (BRpath span (BRspan) leading_comments ( RleadingComments+ trailing_comments ( RtrailingComments: leading_detached_comments ( RleadingDetachedComments" GeneratedCodeInfoM annotation ( 2-.google.protobuf.GeneratedCodeInfo.AnnotationR annotationm Annotation path (BRpath source_file ( R sourceFile begin (Rbegin end (RendBX com.google.protobufBDescriptorProtosHZ descriptorGPBGoogle.Protobuf.ReflectionJ '   '2 Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. All rights reserved. https://developers.google.com/protocol-buffers/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2 Author: kenton@google.com (Kenton Varda) Based on original Protocol Buffers design by Sanjay Ghemawat, Jeff Dean, and others. The messages in this file describe the definitions found in .proto files. A valid .proto file can be translated directly to a FileDescriptorProto without any other information (e.g. without reading its imports).  )  *! *! * *  * *  +, +, + +  + ++  ,1 ,1 , ,  , ,0  -7 -7 - -  - -6  .! .! . .  . .  2  2t descriptor.proto must be optimized for speed because reflection-based algorithms don't work during bootstrapping. 2 2  2 2 j 68^ The protocol compiler can output a FileDescriptorSet containing the .proto files it parses. 6 7( 7 7  7# 7&' / ;X# Describes a complete .proto file. ; 9 <", file name, relative to root of source tree < <  < < * =" e.g. "foo", "foo.bar", etc. = =  = = 4 @!' Names of files imported by this file. @ @  @ @ Q B(D Indexes of the public imported files in the dependency list above. B B  B" B%' z E&m Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use. E E  E E#% 6 H,) All top-level definitions in this file. H H  H' H*+ I- I I  I( I+, J. J J ! J") J,- K. K K  K ) K,-  M#  M  M   M  M!"   S/ This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.  S  S   S*  S-. ]  WP The syntax of the proto file. The supported values are "proto2" and "proto3".  W  W   W  W ' [y Describes a message type. [ \ \ \  \ \ ^* ^ ^  ^ % ^() _. _ _  _ ) _,- a+ a a  a& a)* b- b b  b( b+, dg d  e  e  e   e  e f  f  f   f  f h. h h  h) h,- j/ j j  j * j-. l& l l  l! l$%  qt Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap. q   r" Inclusive.  r  r   r  r  s" Exclusive.  s  s   s  s u, u u  u' u*+   x%u Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.  x  x   x  x"$ 2 |% Describes a field within a message. | } } S C 0 is reserved for errors. Order is weird for historical reasons.           w g Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.           w g Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.                             *  " Tag-delimited aggregate.       -  " Length-delimited aggregate.       #   New in version 2.                                     ' " Uses ZigZag encoding.     ' " Uses ZigZag encoding.        *  0 is reserved for errors           8 "( TODO(sanjay): Should we add LABEL_MAP?                         If type_name is set, this need not be set. If both this and type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.         For message and enum types, this is the name of the type. If the name starts with a '.', it is fully-qualified. Otherwise, C++-like scoping rules are used to find the type (i.e. first the nested types within this message are searched, then within the parent, on up to the root namespace).      ~ p For extensions, this is the name of the type being extended. It is resolved in the same manner as type_name.       $ For numeric types, contains the original text representation of the value. For booleans, "true" or "false". For strings, contains the default text contents (not escaped in any way). For bytes, contains the C escaped value. All bytes >= 128 are escaped. TODO(kenton): Base-64 encode?     "#  !v If set, gives the index of a oneof in the containing type's oneof_decl list. This field is a member of that oneof.       ! JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.       $         "# "  Describes a oneof.        '  Describes an enum type.        .   # $) ,- #     !" 1 # Describes a value within an enum.              (    # &' $  Describes a service.        ,   !' *+ &    ! $% 0 " Describes a method of a service.         ! Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.      "      ! %     #$ E 57 Identifies if client streams multiple client messages     #$ %4 .3 E 57 Identifies if server streams multiple server messages     #$ %4 .3   2N =================================================================== Options 2 Each of the definitions above may have "options" attached. These are just annotations which may cause code to be generated slightly differently or may contain hints for code that manipulates protocol messages. Clients may define custom options as extensions of the *Options messages. These extensions may not yet be known at parsing time, so the parser cannot store the values in them. Instead it stores them in a field in the *Options message called uninterpreted_option. This field must have the same name across all *Options messages. We then use this field to populate the extensions when we build a descriptor, at which point all protos have been parsed and so all extensions are known. Extension numbers for custom options may be chosen as follows: * For options which will only be used within a single application or organization, or for experimental options, use field numbers 50000 through 99999. It is up to you to ensure that you do not use the same number for multiple options. * For options which will be published and used publicly by multiple independent entities, e-mail protobuf-global-extension-registry@google.com to reserve extension numbers. Simply provide your project name (e.g. Objective-C plugin) and your project website (if available) -- there's no need to explain how you intend to use them. Usually you only need one extension number. You can declare multiple options with only one extension number by putting them in a sub-message. See the Custom Options section of the docs for examples: https://developers.google.com/protocol-buffers/docs/proto#options If this turns out to be popular, a web service will be set up to automatically assign option numbers.     # Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.         !"   + If set, all the classes from the .proto file are wrapped in a single outer class with the given name. This applies to both Proto1 (equivalent to the old "--one_java_file" option) and Proto2 (where a .proto always translates to a single class, but you may want to explicitly choose the class name).       &  )*   9 If set true, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will *not* be nested inside the outer class named by java_outer_classname. However, the outer class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.       #  &(  )8  27   C If set true, then the Java code generator will generate equals() and hashCode() methods for all messages defined in the .proto file. This increases generated code size, potentially substantially for large protos, which may harm a memory-constrained application. - In the full runtime this is a speed optimization, as the AbstractMessage base class includes reflection-based implementations of these methods. - In the lite runtime, setting this option changes the semantics of equals() and hashCode() to more closely match those of the full runtime; the generated methods compute their results based on field values rather than object identity. (Implementations should not assume that hashcodes will be consistent across runtimes or versions of the protocol compiler.)       -  02  3B   map_field = 1; The parsed descriptor looks like: message MapFieldEntry { option map_entry = true; optional KeyType key = 1; optional ValueType value = 2; } repeated MapFieldEntry map_field = 1; Implementations may choose not to generate the map_entry=true message, but use a native map in the target language to hold the keys and values. The reflection APIs in such implementions still need to work as if the field is a repeated message field. NOTE: Do not set the option in .proto files. Always use the maps syntax instead. The option should only be implicitly set by the proto compiler parser.          O  :A The parser stores options it doesn't recognize here. See above.       3  69 Z  M Clients can define custom options in extensions of this message. See above.               . The ctype option instructs the C++ code generator to use a different representation of the field than it normally would. See the specific options below. This option is not yet implemented in the open source release -- sorry, we'll try to include it in a future version!           -  &,         Default mode.                             The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire. Rather than repeatedly writing the tag and type for each element, the entire array is encoded as a single length-delimited blob. In proto3, only explicit setting it to false will avoid using packed encoding.            3 The jstype option determines the JavaScript type used for values of the field. The option is permitted only for 64 bit integral and fixed types (int64, uint64, sint64, fixed64, sfixed64). By default these types are represented as JavaScript strings. This avoids loss of precision that can happen when a large value is converted to a floating point JavaScript numbers. Specifying JS_NUMBER for the jstype causes the generated JavaScript code to use the JavaScript "number" type instead of strings. This option is an enum to permit additional types to be added, e.g. goog.math.Integer.           2  (1      '   Use the default type.       )   Use JavaScript strings.       )   Use JavaScript numbers.        ) Should this field be parsed lazily? Lazy applies only to message-type fields. It means that when the outer message is initially parsed, the inner message's contents will not be parsed but instead stored in encoded form. The inner message will actually be parsed when it is first accessed. This is only a hint. Implementations are free to choose whether to use eager or lazy parsing regardless of the value of this option. However, setting this option true suggests that the protocol author believes that using lazy parsing on this field is worth the additional bookkeeping overhead typically needed to implement it. This option does not affect the public interface of any generated code; all method signatures remain the same. Furthermore, thread-safety of the interface is not affected by this option; const methods remain safe to call from multiple threads concurrently, while non-const methods continue to require exclusive access. Note that implementations may choose not to check required fields within a lazy sub-message. That is, calling IsInitialized() on the outher message may return true even if the inner message has missing required fields. This is necessary because otherwise the inner message would have to be parsed in order to perform the check, defeating the purpose of lazy parsing. An implementation which chooses not to check required fields must be consistent about it. That is, for any particular sub-message, the implementation must either *always* check its required fields, or *never* check its required fields, regardless of whether or not the message has been parsed.           (  "'   / Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields.           .  (- ?  *1 For Google-internal migration only. Do not use.           )  #( O  :A The parser stores options it doesn't recognize here. See above.       3  69 Z  M Clients can define custom options in extensions of this message. See above.             `   R Set this option to true to allow mapping different tag names to the same value.            / Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.           .  (- O  :A The parser stores options it doesn't recognize here. See above.       3  69 Z  M Clients can define custom options in extensions of this message. See above.               / Is this enum value deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum value, or it will be completely ignored; in the very least, this is a formalization for deprecating enum values.           .  (- O  :A The parser stores options it doesn't recognize here. See above.       3  69 Z  M Clients can define custom options in extensions of this message. See above.            0 Is this service deprecated? Depending on the target platform, this can emit Deprecated annotations for the service, or it will be completely ignored; in the very least, this is a formalization for deprecating services. 2 Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers.       / ). O :A The parser stores options it doesn't recognize here. See above.    3 69 Z M Clients can define custom options in extensions of this message. See above.         0 Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods. 2 Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers.       / ). O :A The parser stores options it doesn't recognize here. See above.    3 69 Z M Clients can define custom options in extensions of this message. See above.        A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.    The name of the uninterpreted option. Each string represents a segment in a dot-separated name. is_extension is true iff a segment represents an extension (denoted with parentheses in options specs in .proto files). E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents "foo.(bar.baz).qux".    "          !  #         !"        ' The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.    " %& )    $ '( (    # &' #     !" "      ! &    ! $%  j Encapsulates information about the original source file from which a FileDescriptorProto was generated. 2` =================================================================== Optional source code info   ! A Location identifies a piece of source code in a .proto file which corresponds to a particular definition. This information is intended to be useful to IDEs, code indexers, documentation generators, and similar tools. For example, say we have a file like: message Foo { optional string foo = 1; } Let's look at just the field definition: optional string foo = 1; ^ ^^ ^^ ^ ^^^ a bc de f ghi We have the following locations: span path represents [a,i) [ 4, 0, 2, 0 ] The whole field definition. [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). [c,d) [ 4, 0, 2, 0, 5 ] The type (string). [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). [g,h) [ 4, 0, 2, 0, 3 ] The number (1). Notes: - A location may refer to a repeated field itself (i.e. not to any particular index within it). This is used whenever a set of elements are logically enclosed in a single code segment. For example, an entire extend block (possibly containing multiple extension definitions) will have an outer location whose path refers to the "extensions" repeated field without an index. - Multiple locations may have the same path. This happens when a single logical declaration is spread out across multiple places. The most obvious example is the "extend" block again -- there may be multiple extend blocks in the same scope, each of which will have the same path. - A location's span is not always a subset of its parent's span. For example, the "extendee" of an extension declaration appears at the beginning of the "extend" block and is shared by all extensions within the block. - Just because a location's span is a subset of some other location's span does not mean that it is a descendent. For example, a "group" defines both a type and a field in a single declaration. Thus, the locations corresponding to the type and field and their components will overlap. - Code which tries to interpret locations should probably be designed to ignore those that it doesn't understand, as more types of locations could be recorded in the future.           * Identifies which part of the FileDescriptorProto was defined at this location. Each element is a field number or an index. They form a path from the root FileDescriptorProto to the place where the definition. For example, this path: [ 4, 3, 2, 7, 1 ] refers to: file.message_type(3) // 4, 3 .field(7) // 2, 7 .name() // 1 This is because FileDescriptorProto.message_type has field number 4: repeated DescriptorProto message_type = 4; and DescriptorProto.field has field number 2: repeated FieldDescriptorProto field = 2; and FieldDescriptorProto.name has field number 1: optional string name = 1; Thus, the above path gives the location of a field name. If we removed the last element: [ 4, 3, 2, 7 ] this path refers to the whole field declaration (from the beginning of the label to the terminating semicolon).           )  (  #  #  #  $(  * Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.           )  (  #  #  #  $( ) If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration. A series of line comments appearing on consecutive lines, with no other tokens appearing on those lines, will be treated as a single comment. leading_detached_comments will keep paragraphs of comments that appear before (but not connected to) the current element. Each paragraph, separated by empty lines, will be one comment element in the repeated field. Only the comment content is provided; comment markers (e.g. //) are stripped out. For block comments, leading whitespace and an asterisk will be stripped from the beginning of each line other than the first. Newlines are included in the output. Examples: optional int32 foo = 1; // Comment attached to foo. // Comment attached to bar. optional int32 bar = 2; optional string baz = 3; // Comment attached to baz. // Another line attached to baz. // Comment attached to qux. // // Another line attached to qux. optional double qux = 4; // Detached comment for corge. This is not leading or trailing comments // to qux or corge because there are blank lines separating it from // both. // Detached comment for corge paragraph 2. optional string corge = 5; /* Block comment attached * to corge. Leading asterisks * will be removed. */ /* Block comment attached to * grault. */ optional int32 grault = 6; // ignored detached comments.       $  '(  *       %  ()  2       -  01   Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.  x %j An Annotation connects some span of text in generated code to an element of its generating .proto file.     #$      * Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.           )  (  #  #  #  $( O $? Identifies the filesystem path to the original source .proto.         "# w g Identifies the starting offset in bytes in the generated code that relates to the identified object.            Identifies the ending offset in bytes in the generated code that relates to the identified offset. The end offset should be one past the last relevant byte (so the length of the text = end - begin).         z +protos/google_unittest_custom_options.protoprotobuf_unittest google/protobuf/descriptor.proto" TestMessageWithCustomOptions& field1 ( B-u Rfield1"; AnEnum ANENUM_VAL1 ANENUM_VAL2{:" CustomOptionFooRequest" CustomOptionFooResponse" CustomOptionFooClientMessage" CustomOptionFooServerMessage"m DummyMessageContainingEnum"O TestEnumType TEST_OPTION_ENUM_TYPE1# TEST_OPTION_ENUM_TYPE2"! DummyMessageInvalidAsOptionType" CustomOptionMinIntegerValues:j޲Ʋİ֨" CustomOptionMaxIntegerValues:q޲Ʋİ֨"n CustomOptionOtherValues:SƲߣEAܢYB?ܢHello, "World"٢ HelloWorld٢"4 SettingRealsFromPositiveInts:ߣ@Aܢ@c@"4 SettingRealsFromNegativeInts:ߣ@ܢ@c"l ComplexOptionType1 foo (Rfoo foo2 (Rfoo2 foo3 (Rfoo3 foo4 (Rfoo4*d" ComplexOptionType27 bar ( 2%.protobuf_unittest.ComplexOptionType1Rbar baz (RbazL fred ( 28.protobuf_unittest.ComplexOptionType2.ComplexOptionType4RfredP barney ( 28.protobuf_unittest.ComplexOptionType2.ComplexOptionType4Rbarney ComplexOptionType4 waldo (Rwaldo2 complex_opt4.google.protobuf.MessageOptions ( 28.protobuf_unittest.ComplexOptionType2.ComplexOptionType4R complexOpt4*d"& ComplexOptionType3 qux (Rqux" VariousComplexOptions:*؅ c X  ؅ ¬ ¬؅ ¬Ҩ"e"ސ ߐߐߐߐ"# AggregateMessageSet*:" AggregateMessageSetElement s ( Rs2 message_set_extension&.protobuf_unittest.AggregateMessageSet ( 2-.protobuf_unittest.AggregateMessageSetElementRmessageSetExtension" Aggregate i (Ri s ( Rs. sub ( 2.protobuf_unittest.AggregateRsub0 file ( 2.google.protobuf.FileOptionsRfile: mset ( 2&.protobuf_unittest.AggregateMessageSetRmset2U nested.google.protobuf.FileOptionsѰ ( 2.protobuf_unittest.AggregateRnested"d AggregateMessage4 fieldname (B;FieldAnnotationR fieldname:ц;eMessageAnnotation" NestedOptionTypeH NestedMessage/ nested_field (B R nestedField:"5 NestedEnum NESTED_ENUM_VALUE2R nested_extension.google.protobuf.FileOptions (BȋRnestedExtension"k OldOptionType? value (2).protobuf_unittest.OldOptionType.TestEnumRvalue" TestEnum OLD_VALUE"z NewOptionType? value (2).protobuf_unittest.NewOptionType.TestEnumRvalue"( TestEnum OLD_VALUE NEW_VALUE"- !TestMessageWithRequiredEnumOption:*6 MethodOpt1 METHODOPT1_VAL1 METHODOPT1_VAL2*M AggregateEnum% VALUE;EnumValueAnnotation;EnumAnnotation2 TestServiceWithCustomOptionsc Foo).protobuf_unittest.CustomOptionFooRequest*.protobuf_unittest.CustomOptionFooResponse" ۀI2 AggregateServicek Method#.protobuf_unittest.AggregateMessage#.protobuf_unittest.AggregateMessage"Ȗ;MethodAnnotation;ServiceAnnotation:< file_opt1.google.protobuf.FileOptions (RfileOpt1:E message_opt1.google.protobuf.MessageOptions (R messageOpt1:? field_opt1.google.protobuf.FieldOptions (R fieldOpt1:C field_opt2.google.protobuf.FieldOptions (:42R fieldOpt2:< enum_opt1.google.protobuf.EnumOptions (RenumOpt1:K enum_value_opt1!.google.protobuf.EnumValueOptions_ (R enumValueOpt1:E service_opt1.google.protobuf.ServiceOptions (R serviceOpt1:a method_opt1.google.protobuf.MethodOptions (2.protobuf_unittest.MethodOpt1R methodOpt1:= bool_opt.google.protobuf.MessageOptions (RboolOpt:? int32_opt.google.protobuf.MessageOptions (Rint32Opt:? int64_opt.google.protobuf.MessageOptionsƧ (Rint64Opt:A uint32_opt.google.protobuf.MessageOptions ( R uint32Opt:A uint64_opt.google.protobuf.MessageOptionsߎ (R uint64Opt:A sint32_opt.google.protobuf.MessageOptions (R sint32Opt:A sint64_opt.google.protobuf.MessageOptions (R sint64Opt:C fixed32_opt.google.protobuf.MessageOptions (R fixed32Opt:C fixed64_opt.google.protobuf.MessageOptions (R fixed64Opt:E sfixed32_opt.google.protobuf.MessageOptions (R sfixed32Opt:E sfixed64_opt.google.protobuf.MessageOptions (R sfixed64Opt:? float_opt.google.protobuf.MessageOptions (RfloatOpt:A double_opt.google.protobuf.MessageOptionsͫ (R doubleOpt:A string_opt.google.protobuf.MessageOptionsū ( R stringOpt:? bytes_opt.google.protobuf.MessageOptions ( RbytesOpt:y enum_opt.google.protobuf.MessageOptions (2:.protobuf_unittest.DummyMessageContainingEnum.TestEnumTypeRenumOpt: message_type_opt.google.protobuf.MessageOptions ( 22.protobuf_unittest.DummyMessageInvalidAsOptionTypeRmessageTypeOpt:< quux%.protobuf_unittest.ComplexOptionType1 (Rquux:e corge%.protobuf_unittest.ComplexOptionType1 ( 2%.protobuf_unittest.ComplexOptionType3Rcorge:@ grault%.protobuf_unittest.ComplexOptionType2 (Rgrault:g garply%.protobuf_unittest.ComplexOptionType2 ( 2%.protobuf_unittest.ComplexOptionType1Rgarply:l complex_opt1.google.protobuf.MessageOptions ( 2%.protobuf_unittest.ComplexOptionType1R complexOpt1:l complex_opt2.google.protobuf.MessageOptionsՏ ( 2%.protobuf_unittest.ComplexOptionType2R complexOpt2:l complex_opt3.google.protobuf.MessageOptions ( 2%.protobuf_unittest.ComplexOptionType3R complexOpt3:G repeated_opt1.google.protobuf.MessageOptions (R repeatedOpt1:n repeated_opt2.google.protobuf.MessageOptions ( 2%.protobuf_unittest.ComplexOptionType3R repeatedOpt2:W fileopt.google.protobuf.FileOptionsݰ ( 2.protobuf_unittest.AggregateRfileopt:X msgopt.google.protobuf.MessageOptions ( 2.protobuf_unittest.AggregateRmsgopt:Z fieldopt.google.protobuf.FieldOptions ( 2.protobuf_unittest.AggregateRfieldopt:W enumopt.google.protobuf.EnumOptions҂ ( 2.protobuf_unittest.AggregateRenumopt:b enumvalopt!.google.protobuf.EnumValueOptionsɟ ( 2.protobuf_unittest.AggregateR enumvalopt:` serviceopt.google.protobuf.ServiceOptions ( 2.protobuf_unittest.AggregateR serviceopt:] methodopt.google.protobuf.MethodOptions ( 2.protobuf_unittest.AggregateR methodopt:p required_enum_opt.google.protobuf.MessageOptions2 ( 2 .protobuf_unittest.OldOptionTypeRrequiredEnumOptB$;ldFileAnnotationNestedFileAnnotation";FileExtensionAnnotation* : EmbeddedMessageSetElementJ $   $2 Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. All rights reserved. https://developers.google.com/protocol-buffers/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2 Author: benjy@google.com (Benjy Weinberger) Based on original Protocol Buffers design by Sanjay Ghemawat, Jeff Dean, and others. A proto file used to test the "custom options" feature of google.protobuf.  ("  ("g Some generic_services option(s) added automatically. See: http://go/proto2-generic-services-default " auto-added ( (  ( (!  )$  )$" auto-added ) )  ) )#  *" *" * *  * *!  - 4 - ' A custom file option (defined below). - -  - - /)  3 We don't put this in a package within proto2 because we need to make sure that the generated code doesn't depend on being in the proto2 namespace. > 8:23 Some simple test custom options of various types. 9& 8" 9 9  9 9% <> =( <% = =  = = ' @E A( @# A A  A A ' i D3^ This is useful for testing that we correctly register default values for extension options. @# D D  D D% D&2 D/1 GI H( G" H H  H H ' KM L+ K' L L  L L#* OQ P) O% P P  P P!( SV S T T T U U U XZ Y, X$ Y Y  Y! Y$+  ^m A test message with custom options at all possible locations (and also some regular options, to make sure they interact nicely). ^$ _) _)  _  _  _  _#( a a  a   a   a   a 7 de7) TODO: do we need to support ctype=CORD? d d  d d de6  d(  d#  d#  d#  d$(  e5  e*  e*  e)  e+5 gl g h  h  h   h   h   h j  j  j k.  k  k  k-  k,  k&  k&  k%  k),  rs A test RPC service with custom options at all possible locations (and also some regular options, to make sure they interact nicely). r uv u xy x$ {| {$ ~ ~$ & &           %     +B +  +           * [ 2M Options of every possible field type, so we can test them all exhaustively. "           !      '  / %   $ '.  /  %      $  '.  /  %      $  '.  /  %      $  '.  /  %      $  '.  /  %      $  '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. / %   $ '. F %   2 3; >E F %   * +; >E  $              &  &           % .  .           -                             &  &           % .  .           -                             &   &               % .   .               -  $              %  %           $ -  -           , %  %           $ -  -           , %  %           $ -  -           , %  %           $ -  -           , %   %               $ -   -               ,       )  " To test sign-extension.                 #   #               "  -   -               ,  +   +               *  '   '               &  / '  / TODO: this is missing               .    $                                            $                                           Z TODO: do we want to support packed ints? e.g.: repeated int32 foo4 = 4 [packed = true]; 2V Options of complex message types, themselves combined and extended in various ways.                                                              &       !  $%                                       9    )      !   ".   18  '       "  %&  )       $  '(                           .     # &-  "      ! /     $ '.  G %   / 0< ?F 5 %    * -4 5 %    * -4  )  %         !( !H !% ! ! / !0= !@G U G Note that we try various different ways of naming the same extension.  4  4   .   *   )  +.  +.  13 J  J   C   )   (  *C  +B  FI O  O   H   *   )  +D  ,C  EH  EH  KN 4  4   .   )   (  *.  *.  13 4  4   .   )   (  *.  *.  13 "  "               ! '  '              #& &  &                   "% *  *   "            "  !  %) A   A    9                 5   4   69   69   <@ +   +    $                 !$   !$   '* B   B    :                 !:   "9   =A F   F    >           2   1   3:   49   ;>   ;>   AE K   K    C    =    <   >C   >C   FJ )  )   "            "  "  %( 0  0               !/ 0  0               !/ 2  2   -   )   (  *-  *-  01                             &  &           % & D &"4option (complex_opt3).complexoptiontype5.plugh = 22;           %  2 ------------------------------------------------------ Definitions for testing aggregate option parsing. See descriptor_unittest.cc.  )  )        #(        "  I     ' (= @H       C 5 A helper type used to test aggregate option parsing                A nested object      I 0; To test the parsing of extensions inside aggregate values   & '+ ./  )  $      ( ' ( An embedded message set    # &' f U[ Allow Aggregate to be used as an option at all possible locations in the .proto grammer. "*S "" "*2 "3< "=D "JR U #*S #% #*2 #3< #=C #JR U $*S $# $*2 $3< $=E $JR U %*S %" %*2 %3< %=D %JR U &*S &' &*2 &3< &=G &JR U '*S '% '*2 '3< '=G 'JR U (*S ($ (*2 (3< (=F (JR  T D Try using AggregateOption at different points in the proto grammar          4  4           3 F      E   D   *   *  !)  -D   2  2           1     )9 2  2           1   ,  ,           + 9    8   7          7 4 & Test custom options for nested type.      !  !             :         "#  $9  %8  %1  %1  &0  48                  2 5" TODO: support enum value options      4  3  ,  ,  +  /3  D  $    # &- .C  /B  /;  /;  0:  >B m _ Custom message option that has a required enum field. WARNING: this is strongly discouraged!                 ; - Updated version of the custom option above.                        )7 )% ) )  )* )-6 P B Test message using the "required_enum_opt" option defined above. ) 4  4           3