My favorites | English | Sign in

More personalization in Google Friend Connect New!

Protocol Buffers

descriptor.pb.h

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

Protocol buffer representations of descriptors.

This file defines a set of protocol message classes which represent the same information represented by the classes defined in descriptor.h. You can convert a FileDescriptorProto to a FileDescriptor using the DescriptorPool class. Thus, the classes in this file allow protocol type definitions to be communicated efficiently between processes.

The protocol compiler currently doesn't support auto-generated documentation, hence this page contains no descriptions. This file was generated by the protocol compiler from descriptor.proto, whose contents are as follows:

// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc.  All rights reserved.
// http://code.google.com/p/protobuf/
//
// 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.

// 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).



package google.protobuf;
option java_package = "com.google.protobuf";
option java_outer_classname = "DescriptorProtos";

// descriptor.proto must be optimized for speed because reflection-based
// algorithms don't work during bootstrapping.
option optimize_for = SPEED;

// The protocol compiler can output a FileDescriptorSet containing the .proto
// files it parses.
message FileDescriptorSet {
  repeated FileDescriptorProto file = 1;
}

// Describes a complete .proto file.
message FileDescriptorProto {
  optional string name = 1;       // file name, relative to root of source tree
  optional string package = 2;    // e.g. "foo", "foo.bar", etc.

  // Names of files imported by this file.
  repeated string dependency = 3;

  // All top-level definitions in this file.
  repeated DescriptorProto message_type = 4;
  repeated EnumDescriptorProto enum_type = 5;
  repeated ServiceDescriptorProto service = 6;
  repeated FieldDescriptorProto extension = 7;

  optional FileOptions options = 8;
}

// Describes a message type.
message DescriptorProto {
  optional string name = 1;

  repeated FieldDescriptorProto field = 2;
  repeated FieldDescriptorProto extension = 6;

  repeated DescriptorProto nested_type = 3;
  repeated EnumDescriptorProto enum_type = 4;

  message ExtensionRange {
    optional int32 start = 1;
    optional int32 end = 2;
  }
  repeated ExtensionRange extension_range = 5;

  optional MessageOptions options = 7;
}

// Describes a field within a message.
message FieldDescriptorProto {
  enum Type {
    // 0 is reserved for errors.
    // Order is weird for historical reasons.
    TYPE_DOUBLE         = 1;
    TYPE_FLOAT          = 2;
    TYPE_INT64          = 3;   // Not ZigZag encoded.  Negative numbers
                               // take 10 bytes.  Use TYPE_SINT64 if negative
                               // values are likely.
    TYPE_UINT64         = 4;
    TYPE_INT32          = 5;   // Not ZigZag encoded.  Negative numbers
                               // take 10 bytes.  Use TYPE_SINT32 if negative
                               // values are likely.
    TYPE_FIXED64        = 6;
    TYPE_FIXED32        = 7;
    TYPE_BOOL           = 8;
    TYPE_STRING         = 9;
    TYPE_GROUP          = 10;  // Tag-delimited aggregate.
    TYPE_MESSAGE        = 11;  // Length-delimited aggregate.

    // New in version 2.
    TYPE_BYTES          = 12;
    TYPE_UINT32         = 13;
    TYPE_ENUM           = 14;
    TYPE_SFIXED32       = 15;
    TYPE_SFIXED64       = 16;
    TYPE_SINT32         = 17;  // Uses ZigZag encoding.
    TYPE_SINT64         = 18;  // Uses ZigZag encoding.
  };

  enum Label {
    // 0 is reserved for errors
    LABEL_OPTIONAL      = 1;
    LABEL_REQUIRED      = 2;
    LABEL_REPEATED      = 3;
    // TODO(sanjay): Should we add LABEL_MAP?
  };

  optional string name = 1;
  optional int32 number = 3;
  optional Label label = 4;

  // If type_name is set, this need not be set.  If both this and type_name
  // are set, this must be either TYPE_ENUM or TYPE_MESSAGE.
  optional Type type = 5;

  // 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).
  optional string type_name = 6;

  // For extensions, this is the name of the type being extended.  It is
  // resolved in the same manner as type_name.
  optional string extendee = 2;

  // 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?
  optional string default_value = 7;

  optional FieldOptions options = 8;
}

// Describes an enum type.
message EnumDescriptorProto {
  optional string name = 1;

  repeated EnumValueDescriptorProto value = 2;

  optional EnumOptions options = 3;
}

// Describes a value within an enum.
message EnumValueDescriptorProto {
  optional string name = 1;
  optional int32 number = 2;

  optional EnumValueOptions options = 3;
}

// Describes a service.
message ServiceDescriptorProto {
  optional string name = 1;
  repeated MethodDescriptorProto method = 2;

  optional ServiceOptions options = 3;
}

// Describes a method of a service.
message MethodDescriptorProto {
  optional string name = 1;

  // Input and output type names.  These are resolved in the same way as
  // FieldDescriptorProto.type_name, but must refer to a message type.
  optional string input_type = 2;
  optional string output_type = 3;

  optional MethodOptions options = 4;
}

// ===================================================================
// Options

// 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 kenton@google.com to reserve extension
//   numbers.  Simply tell me how many you need and I'll send you back a
//   set of numbers to use -- there's no need to explain how you intend to
//   use them.  If this turns out to be popular, a web service will be set up
//   to automatically assign option numbers.


message FileOptions {

  // 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.
  optional string java_package = 1;


  // 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).
  optional string java_outer_classname = 8;

  // 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.
  optional bool java_multiple_files = 10 [default=false];

  // Generated classes can be optimized for speed or code size.
  enum OptimizeMode {
    SPEED = 1;        // Generate complete code for parsing, serialization,
                      // etc.
    CODE_SIZE = 2;    // Use ReflectionOps to implement these methods.
    LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
  }
  optional OptimizeMode optimize_for = 9 [default=SPEED];



  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message MessageOptions {
  // Set true to use the old proto1 MessageSet wire format for extensions.
  // This is provided for backwards-compatibility with the MessageSet wire
  // format.  You should not use this for any other reason:  It's less
  // efficient, has fewer features, and is more complicated.
  //
  // The message must be defined exactly as follows:
  //   message Foo {
  //     option message_set_wire_format = true;
  //     extensions 4 to max;
  //   }
  // Note that the message cannot have any defined fields; MessageSets only
  // have extensions.
  //
  // All extensions of your type must be singular messages; e.g. they cannot
  // be int32s, enums, or repeated messages.
  //
  // Because this is an option, the above two restrictions are not enforced by
  // the protocol compiler.
  optional bool message_set_wire_format = 1 [default=false];

  // Disables the generation of the standard "descriptor()" accessor, which can
  // conflict with a field of the same name.  This is meant to make migration
  // from proto1 easier; new code should avoid fields named "descriptor".
  optional bool no_standard_descriptor_accessor = 2 [default=false];

  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message FieldOptions {
  // 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!
  optional CType ctype = 1;
  enum CType {
    CORD = 1;

    STRING_PIECE = 2;
  }
  // 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.
  optional bool packed = 2;

  // 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.
  optional bool deprecated = 3 [default=false];

  // EXPERIMENTAL.  DO NOT USE.
  // For "map" fields, the name of the field in the enclosed type that
  // is the key for this map.  For example, suppose we have:
  //   message Item {
  //     required string name = 1;
  //     required string value = 2;
  //   }
  //   message Config {
  //     repeated Item items = 1 [experimental_map_key="name"];
  //   }
  // In this situation, the map key for Item will be set to "name".
  // TODO: Fully-implement this, then remove the "experimental_" prefix.
  optional string experimental_map_key = 9;

  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message EnumOptions {

  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message EnumValueOptions {
  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message ServiceOptions {

  // 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.

  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

message MethodOptions {

  // 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.

  // The parser stores options it doesn't recognize here. See above.
  repeated UninterpretedOption uninterpreted_option = 999;

  // Clients can define custom options in extensions of this message. See above.
  extensions 1000 to max;
}

// 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.
message UninterpretedOption {
  // 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".
  message NamePart {
    required string name_part = 1;
    required bool is_extension = 2;
  }
  repeated NamePart name = 2;

  // The value of the uninterpreted option, in whatever type the tokenizer
  // identified it as during parsing. Exactly one of these should be set.
  optional string identifier_value = 3;
  optional uint64 positive_int_value = 4;
  optional int64 negative_int_value = 5;
  optional double double_value = 6;
  optional bytes string_value = 7;
}

Classes in this file

See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.
See the docs for descriptor.pb.h for more information about this class.

File Members

These definitions are not part of any class.
enum
FieldDescriptorProto_Type
enum
FieldDescriptorProto_Label
enum
FileOptions_OptimizeMode
enum
FieldOptions_CType
const FieldDescriptorProto_Type
FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE
const FieldDescriptorProto_Type
FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64
const FieldDescriptorProto_Label
FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL
const FieldDescriptorProto_Label
FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED
const FileOptions_OptimizeMode
FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED
const FileOptions_OptimizeMode
FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME
const FieldOptions_CType
FieldOptions_CType_CType_MIN = FieldOptions_CType_CORD
const FieldOptions_CType
FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE
void
protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto()
Internal implementation detail -- do not call these.
void
protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto()
void
protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto()
bool
FieldDescriptorProto_Type_IsValid(int value)
const EnumDescriptor *
FieldDescriptorProto_Type_descriptor()
const ::std::string &
FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value)
bool
FieldDescriptorProto_Type_Parse(const ::std::string & name, FieldDescriptorProto_Type * value)
bool
FieldDescriptorProto_Label_IsValid(int value)
const EnumDescriptor *
FieldDescriptorProto_Label_descriptor()
const ::std::string &
FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value)
bool
FieldDescriptorProto_Label_Parse(const ::std::string & name, FieldDescriptorProto_Label * value)
bool
FileOptions_OptimizeMode_IsValid(int value)
const EnumDescriptor *
FileOptions_OptimizeMode_descriptor()
const ::std::string &
FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value)
bool
FileOptions_OptimizeMode_Parse(const ::std::string & name, FileOptions_OptimizeMode * value)
bool
FieldOptions_CType_IsValid(int value)
const EnumDescriptor *
FieldOptions_CType_descriptor()
const ::std::string &
FieldOptions_CType_Name(FieldOptions_CType value)
bool
FieldOptions_CType_Parse(const ::std::string & name, FieldOptions_CType * value)
const EnumDescriptor *
GetEnumDescriptor< FieldDescriptorProto_Type >()
const EnumDescriptor *
GetEnumDescriptor< FieldDescriptorProto_Label >()
const EnumDescriptor *
GetEnumDescriptor< FileOptions_OptimizeMode >()
const EnumDescriptor *
GetEnumDescriptor< FieldOptions_CType >()

enum protobuf::FieldDescriptorProto_Type {
  FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  FieldDescriptorProto_Type_TYPE_INT64 = 3,
  FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  FieldDescriptorProto_Type_TYPE_INT32 = 5,
  FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  FieldDescriptorProto_Type_TYPE_BOOL = 8,
  FieldDescriptorProto_Type_TYPE_STRING = 9,
  FieldDescriptorProto_Type_TYPE_GROUP = 10,
  FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  FieldDescriptorProto_Type_TYPE_BYTES = 12,
  FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  FieldDescriptorProto_Type_TYPE_ENUM = 14,
  FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  FieldDescriptorProto_Type_TYPE_SINT64 = 18
}

FieldDescriptorProto_Type_TYPE_DOUBLE
FieldDescriptorProto_Type_TYPE_FLOAT
FieldDescriptorProto_Type_TYPE_INT64
FieldDescriptorProto_Type_TYPE_UINT64
FieldDescriptorProto_Type_TYPE_INT32
FieldDescriptorProto_Type_TYPE_FIXED64
FieldDescriptorProto_Type_TYPE_FIXED32
FieldDescriptorProto_Type_TYPE_BOOL
FieldDescriptorProto_Type_TYPE_STRING
FieldDescriptorProto_Type_TYPE_GROUP
FieldDescriptorProto_Type_TYPE_MESSAGE
FieldDescriptorProto_Type_TYPE_BYTES
FieldDescriptorProto_Type_TYPE_UINT32
FieldDescriptorProto_Type_TYPE_ENUM
FieldDescriptorProto_Type_TYPE_SFIXED32
FieldDescriptorProto_Type_TYPE_SFIXED64
FieldDescriptorProto_Type_TYPE_SINT32
FieldDescriptorProto_Type_TYPE_SINT64

enum protobuf::FieldDescriptorProto_Label {
  FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  FieldDescriptorProto_Label_LABEL_REPEATED = 3
}

FieldDescriptorProto_Label_LABEL_OPTIONAL
FieldDescriptorProto_Label_LABEL_REQUIRED
FieldDescriptorProto_Label_LABEL_REPEATED

enum protobuf::FileOptions_OptimizeMode {
  FileOptions_OptimizeMode_SPEED = 1,
  FileOptions_OptimizeMode_CODE_SIZE = 2,
  FileOptions_OptimizeMode_LITE_RUNTIME = 3
}

FileOptions_OptimizeMode_SPEED
FileOptions_OptimizeMode_CODE_SIZE
FileOptions_OptimizeMode_LITE_RUNTIME

enum protobuf::FieldOptions_CType {
  FieldOptions_CType_CORD = 1,
  FieldOptions_CType_STRING_PIECE = 2
}

FieldOptions_CType_CORD
FieldOptions_CType_STRING_PIECE

class FileDescriptorSet: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

FileDescriptorSet()
virtual
~FileDescriptorSet()
FileDescriptorSet(const FileDescriptorSet & from)
FileDescriptorSet &
operator=(const FileDescriptorSet & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(FileDescriptorSet * other)
static const Descriptor *
descriptor()
static const FileDescriptorSet &
default_instance()

accessors

const int
kFileFieldNumber = 1
int
file_size() const
repeated .google.protobuf.FileDescriptorProto file = 1;
void
clear_file()
const RepeatedPtrField< FileDescriptorProto > &
file() const
RepeatedPtrField< FileDescriptorProto > *
mutable_file()
const FileDescriptorProto &
file(int index) const
FileDescriptorProto *
mutable_file(int index)
FileDescriptorProto *
add_file()

implements Message

FileDescriptorSet *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const FileDescriptorSet & from)
void
MergeFrom(const FileDescriptorSet & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class FileDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

FileDescriptorProto()
virtual
~FileDescriptorProto()
FileDescriptorProto(const FileDescriptorProto & from)
FileDescriptorProto &
operator=(const FileDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(FileDescriptorProto * other)
static const Descriptor *
descriptor()
static const FileDescriptorProto &
default_instance()

accessors

const int
kNameFieldNumber = 1
const int
kPackageFieldNumber = 2
const int
kDependencyFieldNumber = 3
const int
kMessageTypeFieldNumber = 4
const int
kEnumTypeFieldNumber = 5
const int
kServiceFieldNumber = 6
const int
kExtensionFieldNumber = 7
const int
kOptionsFieldNumber = 8
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
bool
has_package() const
optional string package = 2;
void
clear_package()
const ::std::string &
package() const
void
set_package(const ::std::string & value)
void
set_package(const char * value)
void
set_package(const char * value, size_t size)
inline::std::string *
mutable_package()
int
dependency_size() const
repeated string dependency = 3;
void
clear_dependency()
const RepeatedPtrField< ::std::string > &
dependency() const
RepeatedPtrField< ::std::string > *
mutable_dependency()
const ::std::string &
dependency(int index) const
inline::std::string *
mutable_dependency(int index)
void
set_dependency(int index, const ::std::string & value)
void
set_dependency(int index, const char * value)
void
set_dependency(int index, const char * value, size_t size)
inline::std::string *
add_dependency()
void
add_dependency(const ::std::string & value)
void
add_dependency(const char * value)
void
add_dependency(const char * value, size_t size)
int
message_type_size() const
repeated .google.protobuf.DescriptorProto message_type = 4;
void
clear_message_type()
const RepeatedPtrField< DescriptorProto > &
message_type() const
RepeatedPtrField< DescriptorProto > *
mutable_message_type()
const DescriptorProto &
message_type(int index) const
DescriptorProto *
mutable_message_type(int index)
DescriptorProto *
add_message_type()
int
enum_type_size() const
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
void
clear_enum_type()
const RepeatedPtrField< EnumDescriptorProto > &
enum_type() const
RepeatedPtrField< EnumDescriptorProto > *
mutable_enum_type()
const EnumDescriptorProto &
enum_type(int index) const
EnumDescriptorProto *
mutable_enum_type(int index)
EnumDescriptorProto *
add_enum_type()
int
service_size() const
repeated .google.protobuf.ServiceDescriptorProto service = 6;
void
clear_service()
const RepeatedPtrField< ServiceDescriptorProto > &
service() const
RepeatedPtrField< ServiceDescriptorProto > *
mutable_service()
const ServiceDescriptorProto &
service(int index) const
ServiceDescriptorProto *
mutable_service(int index)
ServiceDescriptorProto *
add_service()
int
extension_size() const
repeated .google.protobuf.FieldDescriptorProto extension = 7;
void
clear_extension()
const RepeatedPtrField< FieldDescriptorProto > &
extension() const
RepeatedPtrField< FieldDescriptorProto > *
mutable_extension()
const FieldDescriptorProto &
extension(int index) const
FieldDescriptorProto *
mutable_extension(int index)
FieldDescriptorProto *
add_extension()
bool
has_options() const
optional .google.protobuf.FileOptions options = 8;
void
clear_options()
const FileOptions &
options() const
FileOptions *
mutable_options()

implements Message

FileDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const FileDescriptorProto & from)
void
MergeFrom(const FileDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class DescriptorProto_ExtensionRange: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

DescriptorProto_ExtensionRange()
virtual
~DescriptorProto_ExtensionRange()
DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange & from)
DescriptorProto_ExtensionRange &
operator=(const DescriptorProto_ExtensionRange & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(DescriptorProto_ExtensionRange * other)
static const Descriptor *
descriptor()
static const DescriptorProto_ExtensionRange &
default_instance()

accessors

const int
kStartFieldNumber = 1
const int
kEndFieldNumber = 2
bool
has_start() const
optional int32 start = 1;
void
clear_start()
int32
start() const
void
set_start(int32 value)
bool
has_end() const
optional int32 end = 2;
void
clear_end()
int32
end() const
void
set_end(int32 value)

implements Message

DescriptorProto_ExtensionRange *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const DescriptorProto_ExtensionRange & from)
void
MergeFrom(const DescriptorProto_ExtensionRange & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class DescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

DescriptorProto()
virtual
~DescriptorProto()
DescriptorProto(const DescriptorProto & from)
DescriptorProto &
operator=(const DescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(DescriptorProto * other)
static const Descriptor *
descriptor()
static const DescriptorProto &
default_instance()

nested types

typedef
DescriptorProto_ExtensionRange ExtensionRange

accessors

const int
kNameFieldNumber = 1
const int
kFieldFieldNumber = 2
const int
kExtensionFieldNumber = 6
const int
kNestedTypeFieldNumber = 3
const int
kEnumTypeFieldNumber = 4
const int
kExtensionRangeFieldNumber = 5
const int
kOptionsFieldNumber = 7
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
int
field_size() const
repeated .google.protobuf.FieldDescriptorProto field = 2;
void
clear_field()
const RepeatedPtrField< FieldDescriptorProto > &
field() const
RepeatedPtrField< FieldDescriptorProto > *
mutable_field()
const FieldDescriptorProto &
field(int index) const
FieldDescriptorProto *
mutable_field(int index)
FieldDescriptorProto *
add_field()
int
extension_size() const
repeated .google.protobuf.FieldDescriptorProto extension = 6;
void
clear_extension()
const RepeatedPtrField< FieldDescriptorProto > &
extension() const
RepeatedPtrField< FieldDescriptorProto > *
mutable_extension()
const FieldDescriptorProto &
extension(int index) const
FieldDescriptorProto *
mutable_extension(int index)
FieldDescriptorProto *
add_extension()
int
nested_type_size() const
repeated .google.protobuf.DescriptorProto nested_type = 3;
void
clear_nested_type()
const RepeatedPtrField< DescriptorProto > &
nested_type() const
RepeatedPtrField< DescriptorProto > *
mutable_nested_type()
const DescriptorProto &
nested_type(int index) const
DescriptorProto *
mutable_nested_type(int index)
DescriptorProto *
add_nested_type()
int
enum_type_size() const
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
void
clear_enum_type()
const RepeatedPtrField< EnumDescriptorProto > &
enum_type() const
RepeatedPtrField< EnumDescriptorProto > *
mutable_enum_type()
const EnumDescriptorProto &
enum_type(int index) const
EnumDescriptorProto *
mutable_enum_type(int index)
EnumDescriptorProto *
add_enum_type()
int
extension_range_size() const
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
void
clear_extension_range()
const RepeatedPtrField< DescriptorProto_ExtensionRange > &
extension_range() const
RepeatedPtrField< DescriptorProto_ExtensionRange > *
mutable_extension_range()
const DescriptorProto_ExtensionRange &
extension_range(int index) const
DescriptorProto_ExtensionRange *
mutable_extension_range(int index)
DescriptorProto_ExtensionRange *
add_extension_range()
bool
has_options() const
optional .google.protobuf.MessageOptions options = 7;
void
clear_options()
const MessageOptions &
options() const
MessageOptions *
mutable_options()

implements Message

DescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const DescriptorProto & from)
void
MergeFrom(const DescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class FieldDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

FieldDescriptorProto()
virtual
~FieldDescriptorProto()
FieldDescriptorProto(const FieldDescriptorProto & from)
FieldDescriptorProto &
operator=(const FieldDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(FieldDescriptorProto * other)
static const Descriptor *
descriptor()
static const FieldDescriptorProto &
default_instance()

nested types

typedef
FieldDescriptorProto_Type Type
typedef
FieldDescriptorProto_Label Label
const Type
TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE
const Type
TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT
const Type
TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64
const Type
TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64
const Type
TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32
const Type
TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64
const Type
TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32
const Type
TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL
const Type
TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING
const Type
TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP
const Type
TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE
const Type
TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES
const Type
TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32
const Type
TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM
const Type
TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32
const Type
TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64
const Type
TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32
const Type
TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64
const Type
Type_MIN = FieldDescriptorProto_Type_Type_MIN
const Type
Type_MAX = FieldDescriptorProto_Type_Type_MAX
const Label
LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL
const Label
LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED
const Label
LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED
const Label
Label_MIN = FieldDescriptorProto_Label_Label_MIN
const Label
Label_MAX = FieldDescriptorProto_Label_Label_MAX
static bool
Type_IsValid(int value)
static const EnumDescriptor *
Type_descriptor()
static const ::std::string &
Type_Name(Type value)
static bool
Type_Parse(const ::std::string & name, Type * value)
static bool
Label_IsValid(int value)
static const EnumDescriptor *
Label_descriptor()
static const ::std::string &
Label_Name(Label value)
static bool
Label_Parse(const ::std::string & name, Label * value)

accessors

const int
kNameFieldNumber = 1
const int
kNumberFieldNumber = 3
const int
kLabelFieldNumber = 4
const int
kTypeFieldNumber = 5
const int
kTypeNameFieldNumber = 6
const int
kExtendeeFieldNumber = 2
const int
kDefaultValueFieldNumber = 7
const int
kOptionsFieldNumber = 8
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
bool
has_number() const
optional int32 number = 3;
void
clear_number()
int32
number() const
void
set_number(int32 value)
bool
has_label() const
optional .google.protobuf.FieldDescriptorProto.Label label = 4;
void
clear_label()
FieldDescriptorProto_Label
label() const
void
set_label(FieldDescriptorProto_Label value)
bool
has_type() const
optional .google.protobuf.FieldDescriptorProto.Type type = 5;
void
clear_type()
FieldDescriptorProto_Type
type() const
void
set_type(FieldDescriptorProto_Type value)
bool
has_type_name() const
optional string type_name = 6;
void
clear_type_name()
const ::std::string &
type_name() const
void
set_type_name(const ::std::string & value)
void
set_type_name(const char * value)
void
set_type_name(const char * value, size_t size)
inline::std::string *
mutable_type_name()
bool
has_extendee() const
optional string extendee = 2;
void
clear_extendee()
const ::std::string &
extendee() const
void
set_extendee(const ::std::string & value)
void
set_extendee(const char * value)
void
set_extendee(const char * value, size_t size)
inline::std::string *
mutable_extendee()
bool
has_default_value() const
optional string default_value = 7;
void
clear_default_value()
const ::std::string &
default_value() const
void
set_default_value(const ::std::string & value)
void
set_default_value(const char * value)
void
set_default_value(const char * value, size_t size)
inline::std::string *
mutable_default_value()
bool
has_options() const
optional .google.protobuf.FieldOptions options = 8;
void
clear_options()
const FieldOptions &
options() const
FieldOptions *
mutable_options()

implements Message

FieldDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const FieldDescriptorProto & from)
void
MergeFrom(const FieldDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class EnumDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

EnumDescriptorProto()
virtual
~EnumDescriptorProto()
EnumDescriptorProto(const EnumDescriptorProto & from)
EnumDescriptorProto &
operator=(const EnumDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(EnumDescriptorProto * other)
static const Descriptor *
descriptor()
static const EnumDescriptorProto &
default_instance()

accessors

const int
kNameFieldNumber = 1
const int
kValueFieldNumber = 2
const int
kOptionsFieldNumber = 3
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
int
value_size() const
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
void
clear_value()
const RepeatedPtrField< EnumValueDescriptorProto > &
value() const
RepeatedPtrField< EnumValueDescriptorProto > *
mutable_value()
const EnumValueDescriptorProto &
value(int index) const
EnumValueDescriptorProto *
mutable_value(int index)
EnumValueDescriptorProto *
add_value()
bool
has_options() const
optional .google.protobuf.EnumOptions options = 3;
void
clear_options()
const EnumOptions &
options() const
EnumOptions *
mutable_options()

implements Message

EnumDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const EnumDescriptorProto & from)
void
MergeFrom(const EnumDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class EnumValueDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

EnumValueDescriptorProto()
virtual
~EnumValueDescriptorProto()
EnumValueDescriptorProto(const EnumValueDescriptorProto & from)
EnumValueDescriptorProto &
operator=(const EnumValueDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(EnumValueDescriptorProto * other)
static const Descriptor *
descriptor()
static const EnumValueDescriptorProto &
default_instance()

accessors

const int
kNameFieldNumber = 1
const int
kNumberFieldNumber = 2
const int
kOptionsFieldNumber = 3
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
bool
has_number() const
optional int32 number = 2;
void
clear_number()
int32
number() const
void
set_number(int32 value)
bool
has_options() const
optional .google.protobuf.EnumValueOptions options = 3;
void
clear_options()
const EnumValueOptions &
options() const
EnumValueOptions *
mutable_options()

implements Message

EnumValueDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const EnumValueDescriptorProto & from)
void
MergeFrom(const EnumValueDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class ServiceDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

ServiceDescriptorProto()
virtual
~ServiceDescriptorProto()
ServiceDescriptorProto(const ServiceDescriptorProto & from)
ServiceDescriptorProto &
operator=(const ServiceDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(ServiceDescriptorProto * other)
static const Descriptor *
descriptor()
static const ServiceDescriptorProto &
default_instance()

accessors

const int
kNameFieldNumber = 1
const int
kMethodFieldNumber = 2
const int
kOptionsFieldNumber = 3
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
int
method_size() const
repeated .google.protobuf.MethodDescriptorProto method = 2;
void
clear_method()
const RepeatedPtrField< MethodDescriptorProto > &
method() const
RepeatedPtrField< MethodDescriptorProto > *
mutable_method()
const MethodDescriptorProto &
method(int index) const
MethodDescriptorProto *
mutable_method(int index)
MethodDescriptorProto *
add_method()
bool
has_options() const
optional .google.protobuf.ServiceOptions options = 3;
void
clear_options()
const ServiceOptions &
options() const
ServiceOptions *
mutable_options()

implements Message

ServiceDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const ServiceDescriptorProto & from)
void
MergeFrom(const ServiceDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class MethodDescriptorProto: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

MethodDescriptorProto()
virtual
~MethodDescriptorProto()
MethodDescriptorProto(const MethodDescriptorProto & from)
MethodDescriptorProto &
operator=(const MethodDescriptorProto & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(MethodDescriptorProto * other)
static const Descriptor *
descriptor()
static const MethodDescriptorProto &
default_instance()

accessors

const int
kNameFieldNumber = 1
const int
kInputTypeFieldNumber = 2
const int
kOutputTypeFieldNumber = 3
const int
kOptionsFieldNumber = 4
bool
has_name() const
optional string name = 1;
void
clear_name()
const ::std::string &
name() const
void
set_name(const ::std::string & value)
void
set_name(const char * value)
void
set_name(const char * value, size_t size)
inline::std::string *
mutable_name()
bool
has_input_type() const
optional string input_type = 2;
void
clear_input_type()
const ::std::string &
input_type() const
void
set_input_type(const ::std::string & value)
void
set_input_type(const char * value)
void
set_input_type(const char * value, size_t size)
inline::std::string *
mutable_input_type()
bool
has_output_type() const
optional string output_type = 3;
void
clear_output_type()
const ::std::string &
output_type() const
void
set_output_type(const ::std::string & value)
void
set_output_type(const char * value)
void
set_output_type(const char * value, size_t size)
inline::std::string *
mutable_output_type()
bool
has_options() const
optional .google.protobuf.MethodOptions options = 4;
void
clear_options()
const MethodOptions &
options() const
MethodOptions *
mutable_options()

implements Message

MethodDescriptorProto *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const MethodDescriptorProto & from)
void
MergeFrom(const MethodDescriptorProto & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class FileOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

FileOptions()
virtual
~FileOptions()
FileOptions(const FileOptions & from)
FileOptions &
operator=(const FileOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(FileOptions * other)
static const Descriptor *
descriptor()
static const FileOptions &
default_instance()

nested types

typedef
FileOptions_OptimizeMode OptimizeMode
const OptimizeMode
SPEED = FileOptions_OptimizeMode_SPEED
const OptimizeMode
CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE
const OptimizeMode
LITE_RUNTIME = FileOptions_OptimizeMode_LITE_RUNTIME
const OptimizeMode
OptimizeMode_MIN = FileOptions_OptimizeMode_OptimizeMode_MIN
const OptimizeMode
OptimizeMode_MAX = FileOptions_OptimizeMode_OptimizeMode_MAX
static bool
OptimizeMode_IsValid(int value)
static const EnumDescriptor *
OptimizeMode_descriptor()
static const ::std::string &
OptimizeMode_Name(OptimizeMode value)
static bool
OptimizeMode_Parse(const ::std::string & name, OptimizeMode * value)

accessors

const int
kJavaPackageFieldNumber = 1
const int
kJavaOuterClassnameFieldNumber = 8
const int
kJavaMultipleFilesFieldNumber = 10
const int
kOptimizeForFieldNumber = 9
const int
kUninterpretedOptionFieldNumber = 999
bool
has_java_package() const
optional string java_package = 1;
void
clear_java_package()
const ::std::string &
java_package() const
void
set_java_package(const ::std::string & value)
void
set_java_package(const char * value)
void
set_java_package(const char * value, size_t size)
inline::std::string *
mutable_java_package()
bool
has_java_outer_classname() const
optional string java_outer_classname = 8;
void
clear_java_outer_classname()
const ::std::string &
java_outer_classname() const
void
set_java_outer_classname(const ::std::string & value)
void
set_java_outer_classname(const char * value)
void
set_java_outer_classname(const char * value, size_t size)
inline::std::string *
mutable_java_outer_classname()
bool
has_java_multiple_files() const
optional bool java_multiple_files = 10 [default = false];
void
clear_java_multiple_files()
bool
java_multiple_files() const
void
set_java_multiple_files(bool value)
bool
has_optimize_for() const
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
void
clear_optimize_for()
FileOptions_OptimizeMode
optimize_for() const
void
set_optimize_for(FileOptions_OptimizeMode value)
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

FileOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const FileOptions & from)
void
MergeFrom(const FileOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class MessageOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

MessageOptions()
virtual
~MessageOptions()
MessageOptions(const MessageOptions & from)
MessageOptions &
operator=(const MessageOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(MessageOptions * other)
static const Descriptor *
descriptor()
static const MessageOptions &
default_instance()

accessors

const int
kMessageSetWireFormatFieldNumber = 1
const int
kNoStandardDescriptorAccessorFieldNumber = 2
const int
kUninterpretedOptionFieldNumber = 999
bool
has_message_set_wire_format() const
optional bool message_set_wire_format = 1 [default = false];
void
clear_message_set_wire_format()
bool
message_set_wire_format() const
void
set_message_set_wire_format(bool value)
bool
has_no_standard_descriptor_accessor() const
optional bool no_standard_descriptor_accessor = 2 [default = false];
void
clear_no_standard_descriptor_accessor()
bool
no_standard_descriptor_accessor() const
void
set_no_standard_descriptor_accessor(bool value)
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

MessageOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const MessageOptions & from)
void
MergeFrom(const MessageOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class FieldOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

FieldOptions()
virtual
~FieldOptions()
FieldOptions(const FieldOptions & from)
FieldOptions &
operator=(const FieldOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(FieldOptions * other)
static const Descriptor *
descriptor()
static const FieldOptions &
default_instance()

nested types

typedef
FieldOptions_CType CType
const CType
CORD = FieldOptions_CType_CORD
const CType
STRING_PIECE = FieldOptions_CType_STRING_PIECE
const CType
CType_MIN = FieldOptions_CType_CType_MIN
const CType
CType_MAX = FieldOptions_CType_CType_MAX
static bool
CType_IsValid(int value)
static const EnumDescriptor *
CType_descriptor()
static const ::std::string &
CType_Name(CType value)
static bool
CType_Parse(const ::std::string & name, CType * value)

accessors

const int
kCtypeFieldNumber = 1
const int
kPackedFieldNumber = 2
const int
kDeprecatedFieldNumber = 3
const int
kExperimentalMapKeyFieldNumber = 9
const int
kUninterpretedOptionFieldNumber = 999
bool
has_ctype() const
optional .google.protobuf.FieldOptions.CType ctype = 1;
void
clear_ctype()
FieldOptions_CType
ctype() const
void
set_ctype(FieldOptions_CType value)
bool
has_packed() const
optional bool packed = 2;
void
clear_packed()
bool
packed() const
void
set_packed(bool value)
bool
has_deprecated() const
optional bool deprecated = 3 [default = false];
void
clear_deprecated()
bool
deprecated() const
void
set_deprecated(bool value)
bool
has_experimental_map_key() const
optional string experimental_map_key = 9;
void
clear_experimental_map_key()
const ::std::string &
experimental_map_key() const
void
set_experimental_map_key(const ::std::string & value)
void
set_experimental_map_key(const char * value)
void
set_experimental_map_key(const char * value, size_t size)
inline::std::string *
mutable_experimental_map_key()
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

FieldOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const FieldOptions & from)
void
MergeFrom(const FieldOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class EnumOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

EnumOptions()
virtual
~EnumOptions()
EnumOptions(const EnumOptions & from)
EnumOptions &
operator=(const EnumOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(EnumOptions * other)
static const Descriptor *
descriptor()
static const EnumOptions &
default_instance()

accessors

const int
kUninterpretedOptionFieldNumber = 999
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

EnumOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const EnumOptions & from)
void
MergeFrom(const EnumOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class EnumValueOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

EnumValueOptions()
virtual
~EnumValueOptions()
EnumValueOptions(const EnumValueOptions & from)
EnumValueOptions &
operator=(const EnumValueOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(EnumValueOptions * other)
static const Descriptor *
descriptor()
static const EnumValueOptions &
default_instance()

accessors

const int
kUninterpretedOptionFieldNumber = 999
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

EnumValueOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const EnumValueOptions & from)
void
MergeFrom(const EnumValueOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class ServiceOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

ServiceOptions()
virtual
~ServiceOptions()
ServiceOptions(const ServiceOptions & from)
ServiceOptions &
operator=(const ServiceOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(ServiceOptions * other)
static const Descriptor *
descriptor()
static const ServiceOptions &
default_instance()

accessors

const int
kUninterpretedOptionFieldNumber = 999
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

ServiceOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const ServiceOptions & from)
void
MergeFrom(const ServiceOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class MethodOptions: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

MethodOptions()
virtual
~MethodOptions()
MethodOptions(const MethodOptions & from)
MethodOptions &
operator=(const MethodOptions & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(MethodOptions * other)
static const Descriptor *
descriptor()
static const MethodOptions &
default_instance()

accessors

const int
kUninterpretedOptionFieldNumber = 999
int
uninterpreted_option_size() const
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
void
clear_uninterpreted_option()
const RepeatedPtrField< UninterpretedOption > &
uninterpreted_option() const
RepeatedPtrField< UninterpretedOption > *
mutable_uninterpreted_option()
const UninterpretedOption &
uninterpreted_option(int index) const
UninterpretedOption *
mutable_uninterpreted_option(int index)
UninterpretedOption *
add_uninterpreted_option()

implements Message

MethodOptions *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const MethodOptions & from)
void
MergeFrom(const MethodOptions & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class UninterpretedOption_NamePart: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

UninterpretedOption_NamePart()
virtual
~UninterpretedOption_NamePart()
UninterpretedOption_NamePart(const UninterpretedOption_NamePart & from)
UninterpretedOption_NamePart &
operator=(const UninterpretedOption_NamePart & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(UninterpretedOption_NamePart * other)
static const Descriptor *
descriptor()
static const UninterpretedOption_NamePart &
default_instance()

accessors

const int
kNamePartFieldNumber = 1
const int
kIsExtensionFieldNumber = 2
bool
has_name_part() const
required string name_part = 1;
void
clear_name_part()
const ::std::string &
name_part() const
void
set_name_part(const ::std::string & value)
void
set_name_part(const char * value)
void
set_name_part(const char * value, size_t size)
inline::std::string *
mutable_name_part()
bool
has_is_extension() const
required bool is_extension = 2;
void
clear_is_extension()
bool
is_extension() const
void
set_is_extension(bool value)

implements Message

UninterpretedOption_NamePart *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const UninterpretedOption_NamePart & from)
void
MergeFrom(const UninterpretedOption_NamePart & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const

class UninterpretedOption: public Message

#include <google/protobuf/descriptor.pb.h>
namespace google::protobuf

See the docs for descriptor.pb.h for more information about this class.

Members

UninterpretedOption()
virtual
~UninterpretedOption()
UninterpretedOption(const UninterpretedOption & from)
UninterpretedOption &
operator=(const UninterpretedOption & from)
const UnknownFieldSet &
unknown_fields() const
UnknownFieldSet *
mutable_unknown_fields()
void
Swap(UninterpretedOption * other)
static const Descriptor *
descriptor()
static const UninterpretedOption &
default_instance()

nested types

typedef
UninterpretedOption_NamePart NamePart

accessors

const int
kNameFieldNumber = 2
const int
kIdentifierValueFieldNumber = 3
const int
kPositiveIntValueFieldNumber = 4
const int
kNegativeIntValueFieldNumber = 5
const int
kDoubleValueFieldNumber = 6
const int
kStringValueFieldNumber = 7
int
name_size() const
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
void
clear_name()
const RepeatedPtrField< UninterpretedOption_NamePart > &
name() const
RepeatedPtrField< UninterpretedOption_NamePart > *
mutable_name()
const UninterpretedOption_NamePart &
name(int index) const
UninterpretedOption_NamePart *
mutable_name(int index)
UninterpretedOption_NamePart *
add_name()
bool
has_identifier_value() const
optional string identifier_value = 3;
void
clear_identifier_value()
const ::std::string &
identifier_value() const
void
set_identifier_value(const ::std::string & value)
void
set_identifier_value(const char * value)
void
set_identifier_value(const char * value, size_t size)
inline::std::string *
mutable_identifier_value()
bool
has_positive_int_value() const
optional uint64 positive_int_value = 4;
void
clear_positive_int_value()
uint64
positive_int_value() const
void
set_positive_int_value(uint64 value)
bool
has_negative_int_value() const
optional int64 negative_int_value = 5;
void
clear_negative_int_value()
int64
negative_int_value() const
void
set_negative_int_value(int64 value)
bool
has_double_value() const
optional double double_value = 6;
void
clear_double_value()
double
double_value() const
void
set_double_value(double value)
bool
has_string_value() const
optional bytes string_value = 7;
void
clear_string_value()
const ::std::string &
string_value() const
void
set_string_value(const ::std::string & value)
void
set_string_value(const char * value)
void
set_string_value(const void * value, size_t size)
inline::std::string *
mutable_string_value()

implements Message

UninterpretedOption *
New() const
void
CopyFrom(const Message & from)
void
MergeFrom(const Message & from)
void
CopyFrom(const UninterpretedOption & from)
void
MergeFrom(const UninterpretedOption & from)
void
Clear()
bool
IsInitialized() const
int
ByteSize() const
bool
MergePartialFromCodedStream(io::CodedInputStream * input)
void
SerializeWithCachedSizes(io::CodedOutputStream * output) const
uint8 *
SerializeWithCachedSizesToArray(uint8 * output) const
int
GetCachedSize() const
Metadata
GetMetadata() const