Add file option php_metadata_namespace and ruby_package (#4609)

pull/4604/merge
Paul Yang 7 years ago committed by GitHub
parent 2213c1c1f6
commit b61dd9d9a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 181
      csharp/src/Google.Protobuf/Reflection/Descriptor.cs
  2. 2
      php/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php
  3. 90
      php/src/Google/Protobuf/Internal/FileOptions.php
  4. 385
      src/google/protobuf/descriptor.pb.cc
  5. 304
      src/google/protobuf/descriptor.pb.h
  6. 11
      src/google/protobuf/descriptor.proto

@ -89,7 +89,7 @@ namespace Google.Protobuf.Reflection {
"KAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0aW9ucxgEIAEoCzIeLmdv", "KAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0aW9ucxgEIAEoCzIeLmdv",
"b2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zEh8KEGNsaWVudF9zdHJlYW1p", "b2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zEh8KEGNsaWVudF9zdHJlYW1p",
"bmcYBSABKAg6BWZhbHNlEh8KEHNlcnZlcl9zdHJlYW1pbmcYBiABKAg6BWZh", "bmcYBSABKAg6BWZhbHNlEh8KEHNlcnZlcl9zdHJlYW1pbmcYBiABKAg6BWZh",
"bHNlIvAFCgtGaWxlT3B0aW9ucxIUCgxqYXZhX3BhY2thZ2UYASABKAkSHAoU", "bHNlIqYGCgtGaWxlT3B0aW9ucxIUCgxqYXZhX3BhY2thZ2UYASABKAkSHAoU",
"amF2YV9vdXRlcl9jbGFzc25hbWUYCCABKAkSIgoTamF2YV9tdWx0aXBsZV9m", "amF2YV9vdXRlcl9jbGFzc25hbWUYCCABKAkSIgoTamF2YV9tdWx0aXBsZV9m",
"aWxlcxgKIAEoCDoFZmFsc2USKQodamF2YV9nZW5lcmF0ZV9lcXVhbHNfYW5k", "aWxlcxgKIAEoCDoFZmFsc2USKQodamF2YV9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WYuUmVmbGVjdGlvbg=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { }, new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
@ -171,7 +172,7 @@ namespace Google.Protobuf.Reflection {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "PhpMetadataNamespace", "RubyPackage", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null),
@ -3341,6 +3342,8 @@ namespace Google.Protobuf.Reflection {
swiftPrefix_ = other.swiftPrefix_; swiftPrefix_ = other.swiftPrefix_;
phpClassPrefix_ = other.phpClassPrefix_; phpClassPrefix_ = other.phpClassPrefix_;
phpNamespace_ = other.phpNamespace_; phpNamespace_ = other.phpNamespace_;
phpMetadataNamespace_ = other.phpMetadataNamespace_;
rubyPackage_ = other.rubyPackage_;
uninterpretedOption_ = other.uninterpretedOption_.Clone(); uninterpretedOption_ = other.uninterpretedOption_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
} }
@ -3632,6 +3635,38 @@ namespace Google.Protobuf.Reflection {
} }
} }
/// <summary>Field number for the "php_metadata_namespace" field.</summary>
public const int PhpMetadataNamespaceFieldNumber = 44;
private string phpMetadataNamespace_ = "";
/// <summary>
/// Use this option to change the namespace of php generated metadata classes.
/// Default is empty. When this option is empty, the proto file name will be used
/// for determining the namespace.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string PhpMetadataNamespace {
get { return phpMetadataNamespace_; }
set {
phpMetadataNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "ruby_package" field.</summary>
public const int RubyPackageFieldNumber = 45;
private string rubyPackage_ = "";
/// <summary>
/// Use this option to change the package of ruby generated classes. Default
/// is empty. When this option is not set, the package name will be used for
/// determining the ruby package.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string RubyPackage {
get { return rubyPackage_; }
set {
rubyPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "uninterpreted_option" field.</summary> /// <summary>Field number for the "uninterpreted_option" field.</summary>
public const int UninterpretedOptionFieldNumber = 999; public const int UninterpretedOptionFieldNumber = 999;
private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
@ -3677,6 +3712,8 @@ namespace Google.Protobuf.Reflection {
if (SwiftPrefix != other.SwiftPrefix) return false; if (SwiftPrefix != other.SwiftPrefix) return false;
if (PhpClassPrefix != other.PhpClassPrefix) return false; if (PhpClassPrefix != other.PhpClassPrefix) return false;
if (PhpNamespace != other.PhpNamespace) return false; if (PhpNamespace != other.PhpNamespace) return false;
if (PhpMetadataNamespace != other.PhpMetadataNamespace) return false;
if (RubyPackage != other.RubyPackage) return false;
if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
return Equals(_unknownFields, other._unknownFields); return Equals(_unknownFields, other._unknownFields);
} }
@ -3702,6 +3739,8 @@ namespace Google.Protobuf.Reflection {
if (SwiftPrefix.Length != 0) hash ^= SwiftPrefix.GetHashCode(); if (SwiftPrefix.Length != 0) hash ^= SwiftPrefix.GetHashCode();
if (PhpClassPrefix.Length != 0) hash ^= PhpClassPrefix.GetHashCode(); if (PhpClassPrefix.Length != 0) hash ^= PhpClassPrefix.GetHashCode();
if (PhpNamespace.Length != 0) hash ^= PhpNamespace.GetHashCode(); if (PhpNamespace.Length != 0) hash ^= PhpNamespace.GetHashCode();
if (PhpMetadataNamespace.Length != 0) hash ^= PhpMetadataNamespace.GetHashCode();
if (RubyPackage.Length != 0) hash ^= RubyPackage.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode(); hash ^= uninterpretedOption_.GetHashCode();
if (_unknownFields != null) { if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode(); hash ^= _unknownFields.GetHashCode();
@ -3788,6 +3827,14 @@ namespace Google.Protobuf.Reflection {
output.WriteRawTag(208, 2); output.WriteRawTag(208, 2);
output.WriteBool(PhpGenericServices); output.WriteBool(PhpGenericServices);
} }
if (PhpMetadataNamespace.Length != 0) {
output.WriteRawTag(226, 2);
output.WriteString(PhpMetadataNamespace);
}
if (RubyPackage.Length != 0) {
output.WriteRawTag(234, 2);
output.WriteString(RubyPackage);
}
uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
if (_unknownFields != null) { if (_unknownFields != null) {
_unknownFields.WriteTo(output); _unknownFields.WriteTo(output);
@ -3851,6 +3898,12 @@ namespace Google.Protobuf.Reflection {
if (PhpNamespace.Length != 0) { if (PhpNamespace.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace); size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace);
} }
if (PhpMetadataNamespace.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpMetadataNamespace);
}
if (RubyPackage.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(RubyPackage);
}
size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
if (_unknownFields != null) { if (_unknownFields != null) {
size += _unknownFields.CalculateSize(); size += _unknownFields.CalculateSize();
@ -3917,6 +3970,12 @@ namespace Google.Protobuf.Reflection {
if (other.PhpNamespace.Length != 0) { if (other.PhpNamespace.Length != 0) {
PhpNamespace = other.PhpNamespace; PhpNamespace = other.PhpNamespace;
} }
if (other.PhpMetadataNamespace.Length != 0) {
PhpMetadataNamespace = other.PhpMetadataNamespace;
}
if (other.RubyPackage.Length != 0) {
RubyPackage = other.RubyPackage;
}
uninterpretedOption_.Add(other.uninterpretedOption_); uninterpretedOption_.Add(other.uninterpretedOption_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
} }
@ -4001,6 +4060,14 @@ namespace Google.Protobuf.Reflection {
PhpGenericServices = input.ReadBool(); PhpGenericServices = input.ReadBool();
break; break;
} }
case 354: {
PhpMetadataNamespace = input.ReadString();
break;
}
case 362: {
RubyPackage = input.ReadString();
break;
}
case 7994: { case 7994: {
uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
break; break;

@ -159,6 +159,8 @@ class Descriptor
->optional('swift_prefix', \Google\Protobuf\Internal\GPBType::STRING, 39) ->optional('swift_prefix', \Google\Protobuf\Internal\GPBType::STRING, 39)
->optional('php_class_prefix', \Google\Protobuf\Internal\GPBType::STRING, 40) ->optional('php_class_prefix', \Google\Protobuf\Internal\GPBType::STRING, 40)
->optional('php_namespace', \Google\Protobuf\Internal\GPBType::STRING, 41) ->optional('php_namespace', \Google\Protobuf\Internal\GPBType::STRING, 41)
->optional('php_metadata_namespace', \Google\Protobuf\Internal\GPBType::STRING, 44)
->optional('ruby_package', \Google\Protobuf\Internal\GPBType::STRING, 45)
->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption') ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
->finalizeToPool(); ->finalizeToPool();

@ -173,6 +173,24 @@ class FileOptions extends \Google\Protobuf\Internal\Message
*/ */
private $php_namespace = ''; private $php_namespace = '';
private $has_php_namespace = false; private $has_php_namespace = false;
/**
* Use this option to change the namespace of php generated metadata classes.
* Default is empty. When this option is empty, the proto file name will be used
* for determining the namespace.
*
* Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
*/
private $php_metadata_namespace = '';
private $has_php_metadata_namespace = false;
/**
* Use this option to change the package of ruby generated classes. Default
* is empty. When this option is not set, the package name will be used for
* determining the ruby package.
*
* Generated from protobuf field <code>optional string ruby_package = 45;</code>
*/
private $ruby_package = '';
private $has_ruby_package = false;
/** /**
* The parser stores options it doesn't recognize here. * The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above. * See the documentation for the "Options" section above.
@ -827,6 +845,78 @@ class FileOptions extends \Google\Protobuf\Internal\Message
return $this->has_php_namespace; return $this->has_php_namespace;
} }
/**
* Use this option to change the namespace of php generated metadata classes.
* Default is empty. When this option is empty, the proto file name will be used
* for determining the namespace.
*
* Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
* @return string
*/
public function getPhpMetadataNamespace()
{
return $this->php_metadata_namespace;
}
/**
* Use this option to change the namespace of php generated metadata classes.
* Default is empty. When this option is empty, the proto file name will be used
* for determining the namespace.
*
* Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
* @param string $var
* @return $this
*/
public function setPhpMetadataNamespace($var)
{
GPBUtil::checkString($var, True);
$this->php_metadata_namespace = $var;
$this->has_php_metadata_namespace = true;
return $this;
}
public function hasPhpMetadataNamespace()
{
return $this->has_php_metadata_namespace;
}
/**
* Use this option to change the package of ruby generated classes. Default
* is empty. When this option is not set, the package name will be used for
* determining the ruby package.
*
* Generated from protobuf field <code>optional string ruby_package = 45;</code>
* @return string
*/
public function getRubyPackage()
{
return $this->ruby_package;
}
/**
* Use this option to change the package of ruby generated classes. Default
* is empty. When this option is not set, the package name will be used for
* determining the ruby package.
*
* Generated from protobuf field <code>optional string ruby_package = 45;</code>
* @param string $var
* @return $this
*/
public function setRubyPackage($var)
{
GPBUtil::checkString($var, True);
$this->ruby_package = $var;
$this->has_ruby_package = true;
return $this;
}
public function hasRubyPackage()
{
return $this->has_ruby_package;
}
/** /**
* The parser stores options it doesn't recognize here. * The parser stores options it doesn't recognize here.
* See the documentation for the "Options" section above. * See the documentation for the "Options" section above.

@ -841,25 +841,29 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, swift_prefix_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, swift_prefix_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_class_prefix_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_class_prefix_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_namespace_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_namespace_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_metadata_namespace_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, ruby_package_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, uninterpreted_option_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, uninterpreted_option_),
0, 0,
1, 1,
9,
10, 10,
11, 11,
17,
2,
12, 12,
19,
2,
13, 13,
14, 14,
15, 15,
16, 16,
8, 17,
18,
3, 3,
4, 4,
5, 5,
6, 6,
7, 7,
8,
9,
~0u, ~0u,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _internal_metadata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _internal_metadata_),
@ -1027,20 +1031,20 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT
{ 146, 154, sizeof(::google::protobuf::EnumValueDescriptorProto)}, { 146, 154, sizeof(::google::protobuf::EnumValueDescriptorProto)},
{ 157, 165, sizeof(::google::protobuf::ServiceDescriptorProto)}, { 157, 165, sizeof(::google::protobuf::ServiceDescriptorProto)},
{ 168, 179, sizeof(::google::protobuf::MethodDescriptorProto)}, { 168, 179, sizeof(::google::protobuf::MethodDescriptorProto)},
{ 185, 209, sizeof(::google::protobuf::FileOptions)}, { 185, 211, sizeof(::google::protobuf::FileOptions)},
{ 228, 238, sizeof(::google::protobuf::MessageOptions)}, { 232, 242, sizeof(::google::protobuf::MessageOptions)},
{ 243, 255, sizeof(::google::protobuf::FieldOptions)}, { 247, 259, sizeof(::google::protobuf::FieldOptions)},
{ 262, 268, sizeof(::google::protobuf::OneofOptions)}, { 266, 272, sizeof(::google::protobuf::OneofOptions)},
{ 269, 277, sizeof(::google::protobuf::EnumOptions)}, { 273, 281, sizeof(::google::protobuf::EnumOptions)},
{ 280, 287, sizeof(::google::protobuf::EnumValueOptions)}, { 284, 291, sizeof(::google::protobuf::EnumValueOptions)},
{ 289, 296, sizeof(::google::protobuf::ServiceOptions)}, { 293, 300, sizeof(::google::protobuf::ServiceOptions)},
{ 298, 306, sizeof(::google::protobuf::MethodOptions)}, { 302, 310, sizeof(::google::protobuf::MethodOptions)},
{ 309, 316, sizeof(::google::protobuf::UninterpretedOption_NamePart)}, { 313, 320, sizeof(::google::protobuf::UninterpretedOption_NamePart)},
{ 318, 330, sizeof(::google::protobuf::UninterpretedOption)}, { 322, 334, sizeof(::google::protobuf::UninterpretedOption)},
{ 337, 347, sizeof(::google::protobuf::SourceCodeInfo_Location)}, { 341, 351, sizeof(::google::protobuf::SourceCodeInfo_Location)},
{ 352, 358, sizeof(::google::protobuf::SourceCodeInfo)}, { 356, 362, sizeof(::google::protobuf::SourceCodeInfo)},
{ 359, 368, sizeof(::google::protobuf::GeneratedCodeInfo_Annotation)}, { 363, 372, sizeof(::google::protobuf::GeneratedCodeInfo_Annotation)},
{ 372, 378, sizeof(::google::protobuf::GeneratedCodeInfo)}, { 376, 382, sizeof(::google::protobuf::GeneratedCodeInfo)},
}; };
static ::google::protobuf::Message const * const file_default_instances[] = { static ::google::protobuf::Message const * const file_default_instances[] = {
@ -1167,7 +1171,7 @@ void AddDescriptorsImpl() {
"ut_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google." "ut_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google."
"protobuf.MethodOptions\022\037\n\020client_streami" "protobuf.MethodOptions\022\037\n\020client_streami"
"ng\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(" "ng\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001("
"\010:\005false\"\360\005\n\013FileOptions\022\024\n\014java_package" "\010:\005false\"\246\006\n\013FileOptions\022\024\n\014java_package"
"\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023" "\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023"
"java_multiple_files\030\n \001(\010:\005false\022)\n\035java" "java_multiple_files\030\n \001(\010:\005false\022)\n\035java"
"_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026j" "_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026j"
@ -1182,71 +1186,72 @@ void AddDescriptorsImpl() {
"\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$ \001(\t" "\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$ \001(\t"
"\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pref" "\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pref"
"ix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rph" "ix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rph"
"p_namespace\030) \001(\t\022C\n\024uninterpreted_optio" "p_namespace\030) \001(\t\022\036\n\026php_metadata_namesp"
"ace\030, \001(\t\022\024\n\014ruby_package\030- \001(\t\022C\n\024unint"
"erpreted_option\030\347\007 \003(\0132$.google.protobuf"
".UninterpretedOption\":\n\014OptimizeMode\022\t\n\005"
"SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003"
"*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\362\001\n\016MessageOptions\022&\n\027"
"message_set_wire_format\030\001 \001(\010:\005false\022.\n\037"
"no_standard_descriptor_accessor\030\002 \001(\010:\005f"
"alse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_e"
"ntry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003("
"\0132$.google.protobuf.UninterpretedOption*"
"\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\tJ\004\010\t\020\n\"\236\003\n\014FieldOptions\022"
":\n\005ctype\030\001 \001(\0162#.google.protobuf.FieldOp"
"tions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006j"
"stype\030\006 \001(\0162$.google.protobuf.FieldOptio"
"ns.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005fals"
"e\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001"
"(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013"
"2$.google.protobuf.UninterpretedOption\"/"
"\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_"
"PIECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_S"
"TRING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\""
"^\n\014OneofOptions\022C\n\024uninterpreted_option\030"
"\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
"tion*\t\010\350\007\020\200\200\200\200\002\"\223\001\n\013EnumOptions\022\023\n\013allow"
"_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022"
"C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
"protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J"
"\004\010\005\020\006\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030"
"\001 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 "
"\003(\0132$.google.protobuf.UninterpretedOptio"
"n*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprec"
"ated\030! \001(\010:\005false\022C\n\024uninterpreted_optio"
"n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted" "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted"
"Option\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCOD" "Option*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\nd"
"E_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010" "eprecated\030! \001(\010:\005false\022_\n\021idempotency_le"
"&\020\'\"\362\001\n\016MessageOptions\022&\n\027message_set_wi" "vel\030\" \001(\0162/.google.protobuf.MethodOption"
"re_format\030\001 \001(\010:\005false\022.\n\037no_standard_de" "s.IdempotencyLevel:\023IDEMPOTENCY_UNKNOWN\022"
"scriptor_accessor\030\002 \001(\010:\005false\022\031\n\ndeprec" "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
"ated\030\003 \001(\010:\005false\022\021\n\tmap_entry\030\007 \001(\010\022C\n\024" "protobuf.UninterpretedOption\"P\n\020Idempote"
"uninterpreted_option\030\347\007 \003(\0132$.google.pro" "ncyLevel\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_"
"tobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\010" "SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200"
"\020\tJ\004\010\t\020\n\"\236\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\016" "\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132"
"2#.google.protobuf.FieldOptions.CType:\006S" "-.google.protobuf.UninterpretedOption.Na"
"TRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$." "mePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posi"
"google.protobuf.FieldOptions.JSType:\tJS_" "tive_int_value\030\004 \001(\004\022\032\n\022negative_int_val"
"NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecate" "ue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string"
"d\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024u" "_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n"
"ninterpreted_option\030\347\007 \003(\0132$.google.prot" "\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exten"
"obuf.UninterpretedOption\"/\n\005CType\022\n\n\006STR" "sion\030\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010locatio"
"ING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JST" "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo"
"ype\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_" ".Location\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001"
"NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n\014OneofOption" "\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003"
"s\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.googl" " \001(\t\022\031\n\021trailing_comments\030\004 \001(\t\022!\n\031leadi"
"e.protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200" "ng_detached_comments\030\006 \003(\t\"\247\001\n\021Generated"
"\002\"\223\001\n\013EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031" "CodeInfo\022A\n\nannotation\030\001 \003(\0132-.google.pr"
"\n\ndeprecated\030\003 \001(\010:\005false\022C\n\024uninterpret" "otobuf.GeneratedCodeInfo.Annotation\032O\n\nA"
"ed_option\030\347\007 \003(\0132$.google.protobuf.Unint" "nnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_fi"
"erpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\005\020\006\"}\n\020EnumV" "le\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B\217\001\n"
"alueOptions\022\031\n\ndeprecated\030\001 \001(\010:\005false\022C" "\023com.google.protobufB\020DescriptorProtosH\001"
"\n\024uninterpreted_option\030\347\007 \003(\0132$.google.p" "Z>github.com/golang/protobuf/protoc-gen-"
"rotobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"{" "go/descriptor;descriptor\370\001\001\242\002\003GPB\252\002\032Goog"
"\n\016ServiceOptions\022\031\n\ndeprecated\030! \001(\010:\005fa" "le.Protobuf.Reflection"
"lse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo"
"gle.protobuf.UninterpretedOption*\t\010\350\007\020\200\200"
"\200\200\002\"\255\002\n\rMethodOptions\022\031\n\ndeprecated\030! \001("
"\010:\005false\022_\n\021idempotency_level\030\" \001(\0162/.go"
"ogle.protobuf.MethodOptions.IdempotencyL"
"evel:\023IDEMPOTENCY_UNKNOWN\022C\n\024uninterpret"
"ed_option\030\347\007 \003(\0132$.google.protobuf.Unint"
"erpretedOption\"P\n\020IdempotencyLevel\022\027\n\023ID"
"EMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_SIDE_EFFECTS\020\001"
"\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterp"
"retedOption\022;\n\004name\030\002 \003(\0132-.google.proto"
"buf.UninterpretedOption.NamePart\022\030\n\020iden"
"tifier_value\030\003 \001(\t\022\032\n\022positive_int_value"
"\030\004 \001(\004\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014do"
"uble_value\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027"
"\n\017aggregate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tn"
"ame_part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n"
"\016SourceCodeInfo\022:\n\010location\030\001 \003(\0132(.goog"
"le.protobuf.SourceCodeInfo.Location\032\206\001\n\010"
"Location\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005"
"B\002\020\001\022\030\n\020leading_comments\030\003 \001(\t\022\031\n\021traili"
"ng_comments\030\004 \001(\t\022!\n\031leading_detached_co"
"mments\030\006 \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nan"
"notation\030\001 \003(\0132-.google.protobuf.Generat"
"edCodeInfo.Annotation\032O\n\nAnnotation\022\020\n\004p"
"ath\030\001 \003(\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005be"
"gin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B\217\001\n\023com.google.pr"
"otobufB\020DescriptorProtosH\001Z>github.com/g"
"olang/protobuf/protoc-gen-go/descriptor;"
"descriptor\370\001\001\242\002\003GPB\252\002\032Google.Protobuf.Re"
"flection"
}; };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile( ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 5968); descriptor, 6022);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"google/protobuf/descriptor.proto", &protobuf_RegisterTypes); "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
} }
@ -7564,6 +7569,8 @@ const int FileOptions::kCsharpNamespaceFieldNumber;
const int FileOptions::kSwiftPrefixFieldNumber; const int FileOptions::kSwiftPrefixFieldNumber;
const int FileOptions::kPhpClassPrefixFieldNumber; const int FileOptions::kPhpClassPrefixFieldNumber;
const int FileOptions::kPhpNamespaceFieldNumber; const int FileOptions::kPhpNamespaceFieldNumber;
const int FileOptions::kPhpMetadataNamespaceFieldNumber;
const int FileOptions::kRubyPackageFieldNumber;
const int FileOptions::kUninterpretedOptionFieldNumber; const int FileOptions::kUninterpretedOptionFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
@ -7631,9 +7638,19 @@ FileOptions::FileOptions(const FileOptions& from)
php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_namespace(), php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_namespace(),
GetArenaNoVirtual()); GetArenaNoVirtual());
} }
::memcpy(&cc_enable_arenas_, &from.cc_enable_arenas_, php_metadata_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_php_metadata_namespace()) {
php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_metadata_namespace(),
GetArenaNoVirtual());
}
ruby_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_ruby_package()) {
ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ruby_package(),
GetArenaNoVirtual());
}
::memcpy(&java_multiple_files_, &from.java_multiple_files_,
static_cast<size_t>(reinterpret_cast<char*>(&optimize_for_) - static_cast<size_t>(reinterpret_cast<char*>(&optimize_for_) -
reinterpret_cast<char*>(&cc_enable_arenas_)) + sizeof(optimize_for_)); reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(optimize_for_));
// @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
} }
@ -7646,9 +7663,11 @@ void FileOptions::SharedCtor() {
swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
php_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); php_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
php_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); php_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&cc_enable_arenas_, 0, static_cast<size_t>( php_metadata_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
reinterpret_cast<char*>(&deprecated_) - ruby_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
reinterpret_cast<char*>(&cc_enable_arenas_)) + sizeof(deprecated_)); ::memset(&java_multiple_files_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&cc_enable_arenas_) -
reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(cc_enable_arenas_));
optimize_for_ = 1; optimize_for_ = 1;
} }
@ -7667,6 +7686,8 @@ void FileOptions::SharedDtor() {
swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
php_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); php_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
php_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); php_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
php_metadata_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ruby_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
} }
void FileOptions::ArenaDtor(void* object) { void FileOptions::ArenaDtor(void* object) {
@ -7724,13 +7745,23 @@ void FileOptions::Clear() {
php_namespace_.ClearNonDefaultToEmpty(); php_namespace_.ClearNonDefaultToEmpty();
} }
} }
if (cached_has_bits & 65280u) { if (cached_has_bits & 768u) {
::memset(&cc_enable_arenas_, 0, static_cast<size_t>( if (cached_has_bits & 0x00000100u) {
reinterpret_cast<char*>(&php_generic_services_) - php_metadata_namespace_.ClearNonDefaultToEmpty();
reinterpret_cast<char*>(&cc_enable_arenas_)) + sizeof(php_generic_services_));
} }
if (cached_has_bits & 196608u) { if (cached_has_bits & 0x00000200u) {
deprecated_ = false; ruby_package_.ClearNonDefaultToEmpty();
}
}
if (cached_has_bits & 64512u) {
::memset(&java_multiple_files_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&py_generic_services_) -
reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(py_generic_services_));
}
if (cached_has_bits & 983040u) {
::memset(&php_generic_services_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&cc_enable_arenas_) -
reinterpret_cast<char*>(&php_generic_services_)) + sizeof(cc_enable_arenas_));
optimize_for_ = 1; optimize_for_ = 1;
} }
_has_bits_.Clear(); _has_bits_.Clear();
@ -8021,6 +8052,38 @@ bool FileOptions::MergePartialFromCodedStream(
break; break;
} }
// optional string php_metadata_namespace = 44;
case 44: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(98u /* 354 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_php_metadata_namespace()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
::google::protobuf::internal::WireFormat::PARSE,
"google.protobuf.FileOptions.php_metadata_namespace");
} else {
goto handle_unusual;
}
break;
}
// optional string ruby_package = 45;
case 45: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(106u /* 362 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_ruby_package()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
::google::protobuf::internal::WireFormat::PARSE,
"google.protobuf.FileOptions.ruby_package");
} else {
goto handle_unusual;
}
break;
}
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
case 999: { case 999: {
if (static_cast< ::google::protobuf::uint8>(tag) == if (static_cast< ::google::protobuf::uint8>(tag) ==
@ -8087,13 +8150,13 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
if (cached_has_bits & 0x00020000u) { if (cached_has_bits & 0x00080000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum( ::google::protobuf::internal::WireFormatLite::WriteEnum(
9, this->optimize_for(), output); 9, this->optimize_for(), output);
} }
// optional bool java_multiple_files = 10 [default = false]; // optional bool java_multiple_files = 10 [default = false];
if (cached_has_bits & 0x00000200u) { if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
} }
@ -8108,37 +8171,37 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional bool cc_generic_services = 16 [default = false]; // optional bool cc_generic_services = 16 [default = false];
if (cached_has_bits & 0x00001000u) { if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
} }
// optional bool java_generic_services = 17 [default = false]; // optional bool java_generic_services = 17 [default = false];
if (cached_has_bits & 0x00002000u) { if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
} }
// optional bool py_generic_services = 18 [default = false]; // optional bool py_generic_services = 18 [default = false];
if (cached_has_bits & 0x00004000u) { if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
} }
// optional bool java_generate_equals_and_hash = 20 [deprecated = true]; // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
if (cached_has_bits & 0x00000400u) { if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
} }
// optional bool deprecated = 23 [default = false]; // optional bool deprecated = 23 [default = false];
if (cached_has_bits & 0x00010000u) { if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
} }
// optional bool java_string_check_utf8 = 27 [default = false]; // optional bool java_string_check_utf8 = 27 [default = false];
if (cached_has_bits & 0x00000800u) { if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
} }
// optional bool cc_enable_arenas = 31 [default = false]; // optional bool cc_enable_arenas = 31 [default = false];
if (cached_has_bits & 0x00000100u) { if (cached_has_bits & 0x00040000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
} }
@ -8193,10 +8256,30 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional bool php_generic_services = 42 [default = false]; // optional bool php_generic_services = 42 [default = false];
if (cached_has_bits & 0x00008000u) { if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(42, this->php_generic_services(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(42, this->php_generic_services(), output);
} }
// optional string php_metadata_namespace = 44;
if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"google.protobuf.FileOptions.php_metadata_namespace");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
44, this->php_metadata_namespace(), output);
}
// optional string ruby_package = 45;
if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"google.protobuf.FileOptions.ruby_package");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
45, this->ruby_package(), output);
}
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) { n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
@ -8248,13 +8331,13 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
if (cached_has_bits & 0x00020000u) { if (cached_has_bits & 0x00080000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9, this->optimize_for(), target); 9, this->optimize_for(), target);
} }
// optional bool java_multiple_files = 10 [default = false]; // optional bool java_multiple_files = 10 [default = false];
if (cached_has_bits & 0x00000200u) { if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
} }
@ -8270,37 +8353,37 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional bool cc_generic_services = 16 [default = false]; // optional bool cc_generic_services = 16 [default = false];
if (cached_has_bits & 0x00001000u) { if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
} }
// optional bool java_generic_services = 17 [default = false]; // optional bool java_generic_services = 17 [default = false];
if (cached_has_bits & 0x00002000u) { if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
} }
// optional bool py_generic_services = 18 [default = false]; // optional bool py_generic_services = 18 [default = false];
if (cached_has_bits & 0x00004000u) { if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
} }
// optional bool java_generate_equals_and_hash = 20 [deprecated = true]; // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
if (cached_has_bits & 0x00000400u) { if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
} }
// optional bool deprecated = 23 [default = false]; // optional bool deprecated = 23 [default = false];
if (cached_has_bits & 0x00010000u) { if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
} }
// optional bool java_string_check_utf8 = 27 [default = false]; // optional bool java_string_check_utf8 = 27 [default = false];
if (cached_has_bits & 0x00000800u) { if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
} }
// optional bool cc_enable_arenas = 31 [default = false]; // optional bool cc_enable_arenas = 31 [default = false];
if (cached_has_bits & 0x00000100u) { if (cached_has_bits & 0x00040000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
} }
@ -8360,10 +8443,32 @@ void FileOptions::SerializeWithCachedSizes(
} }
// optional bool php_generic_services = 42 [default = false]; // optional bool php_generic_services = 42 [default = false];
if (cached_has_bits & 0x00008000u) { if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(42, this->php_generic_services(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(42, this->php_generic_services(), target);
} }
// optional string php_metadata_namespace = 44;
if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"google.protobuf.FileOptions.php_metadata_namespace");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
44, this->php_metadata_namespace(), target);
}
// optional string ruby_package = 45;
if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"google.protobuf.FileOptions.ruby_package");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
45, this->ruby_package(), target);
}
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
for (unsigned int i = 0, for (unsigned int i = 0,
n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) { n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
@ -8465,9 +8570,18 @@ size_t FileOptions::ByteSizeLong() const {
} }
if (_has_bits_[8 / 32] & 65280u) { if (_has_bits_[8 / 32] & 65280u) {
// optional bool cc_enable_arenas = 31 [default = false]; // optional string php_metadata_namespace = 44;
if (has_cc_enable_arenas()) { if (has_php_metadata_namespace()) {
total_size += 2 + 1; total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->php_metadata_namespace());
}
// optional string ruby_package = 45;
if (has_ruby_package()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->ruby_package());
} }
// optional bool java_multiple_files = 10 [default = false]; // optional bool java_multiple_files = 10 [default = false];
@ -8500,18 +8614,23 @@ size_t FileOptions::ByteSizeLong() const {
total_size += 2 + 1; total_size += 2 + 1;
} }
}
if (_has_bits_[16 / 32] & 983040u) {
// optional bool php_generic_services = 42 [default = false]; // optional bool php_generic_services = 42 [default = false];
if (has_php_generic_services()) { if (has_php_generic_services()) {
total_size += 2 + 1; total_size += 2 + 1;
} }
}
if (_has_bits_[16 / 32] & 196608u) {
// optional bool deprecated = 23 [default = false]; // optional bool deprecated = 23 [default = false];
if (has_deprecated()) { if (has_deprecated()) {
total_size += 2 + 1; total_size += 2 + 1;
} }
// optional bool cc_enable_arenas = 31 [default = false];
if (has_cc_enable_arenas()) {
total_size += 2 + 1;
}
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
if (has_optimize_for()) { if (has_optimize_for()) {
total_size += 1 + total_size += 1 +
@ -8577,36 +8696,42 @@ void FileOptions::MergeFrom(const FileOptions& from) {
} }
if (cached_has_bits & 65280u) { if (cached_has_bits & 65280u) {
if (cached_has_bits & 0x00000100u) { if (cached_has_bits & 0x00000100u) {
cc_enable_arenas_ = from.cc_enable_arenas_; set_php_metadata_namespace(from.php_metadata_namespace());
} }
if (cached_has_bits & 0x00000200u) { if (cached_has_bits & 0x00000200u) {
java_multiple_files_ = from.java_multiple_files_; set_ruby_package(from.ruby_package());
} }
if (cached_has_bits & 0x00000400u) { if (cached_has_bits & 0x00000400u) {
java_generate_equals_and_hash_ = from.java_generate_equals_and_hash_; java_multiple_files_ = from.java_multiple_files_;
} }
if (cached_has_bits & 0x00000800u) { if (cached_has_bits & 0x00000800u) {
java_string_check_utf8_ = from.java_string_check_utf8_; java_generate_equals_and_hash_ = from.java_generate_equals_and_hash_;
} }
if (cached_has_bits & 0x00001000u) { if (cached_has_bits & 0x00001000u) {
cc_generic_services_ = from.cc_generic_services_; java_string_check_utf8_ = from.java_string_check_utf8_;
} }
if (cached_has_bits & 0x00002000u) { if (cached_has_bits & 0x00002000u) {
java_generic_services_ = from.java_generic_services_; cc_generic_services_ = from.cc_generic_services_;
} }
if (cached_has_bits & 0x00004000u) { if (cached_has_bits & 0x00004000u) {
py_generic_services_ = from.py_generic_services_; java_generic_services_ = from.java_generic_services_;
} }
if (cached_has_bits & 0x00008000u) { if (cached_has_bits & 0x00008000u) {
php_generic_services_ = from.php_generic_services_; py_generic_services_ = from.py_generic_services_;
} }
_has_bits_[0] |= cached_has_bits; _has_bits_[0] |= cached_has_bits;
} }
if (cached_has_bits & 196608u) { if (cached_has_bits & 983040u) {
if (cached_has_bits & 0x00010000u) { if (cached_has_bits & 0x00010000u) {
deprecated_ = from.deprecated_; php_generic_services_ = from.php_generic_services_;
} }
if (cached_has_bits & 0x00020000u) { if (cached_has_bits & 0x00020000u) {
deprecated_ = from.deprecated_;
}
if (cached_has_bits & 0x00040000u) {
cc_enable_arenas_ = from.cc_enable_arenas_;
}
if (cached_has_bits & 0x00080000u) {
optimize_for_ = from.optimize_for_; optimize_for_ = from.optimize_for_;
} }
_has_bits_[0] |= cached_has_bits; _has_bits_[0] |= cached_has_bits;
@ -8674,7 +8799,10 @@ void FileOptions::InternalSwap(FileOptions* other) {
GetArenaNoVirtual()); GetArenaNoVirtual());
php_namespace_.Swap(&other->php_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_namespace_.Swap(&other->php_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual()); GetArenaNoVirtual());
swap(cc_enable_arenas_, other->cc_enable_arenas_); php_metadata_namespace_.Swap(&other->php_metadata_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
ruby_package_.Swap(&other->ruby_package_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(java_multiple_files_, other->java_multiple_files_); swap(java_multiple_files_, other->java_multiple_files_);
swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_); swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
swap(java_string_check_utf8_, other->java_string_check_utf8_); swap(java_string_check_utf8_, other->java_string_check_utf8_);
@ -8683,6 +8811,7 @@ void FileOptions::InternalSwap(FileOptions* other) {
swap(py_generic_services_, other->py_generic_services_); swap(py_generic_services_, other->py_generic_services_);
swap(php_generic_services_, other->php_generic_services_); swap(php_generic_services_, other->php_generic_services_);
swap(deprecated_, other->deprecated_); swap(deprecated_, other->deprecated_);
swap(cc_enable_arenas_, other->cc_enable_arenas_);
swap(optimize_for_, other->optimize_for_); swap(optimize_for_, other->optimize_for_);
swap(_has_bits_[0], other->_has_bits_[0]); swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_); _internal_metadata_.Swap(&other->_internal_metadata_);

@ -3326,12 +3326,53 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
void unsafe_arena_set_allocated_php_namespace( void unsafe_arena_set_allocated_php_namespace(
::std::string* php_namespace); ::std::string* php_namespace);
// optional bool cc_enable_arenas = 31 [default = false]; // optional string php_metadata_namespace = 44;
bool has_cc_enable_arenas() const; bool has_php_metadata_namespace() const;
void clear_cc_enable_arenas(); void clear_php_metadata_namespace();
static const int kCcEnableArenasFieldNumber = 31; static const int kPhpMetadataNamespaceFieldNumber = 44;
bool cc_enable_arenas() const; const ::std::string& php_metadata_namespace() const;
void set_cc_enable_arenas(bool value); void set_php_metadata_namespace(const ::std::string& value);
#if LANG_CXX11
void set_php_metadata_namespace(::std::string&& value);
#endif
void set_php_metadata_namespace(const char* value);
void set_php_metadata_namespace(const char* value, size_t size);
::std::string* mutable_php_metadata_namespace();
::std::string* release_php_metadata_namespace();
void set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_php_metadata_namespace();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_php_metadata_namespace(
::std::string* php_metadata_namespace);
// optional string ruby_package = 45;
bool has_ruby_package() const;
void clear_ruby_package();
static const int kRubyPackageFieldNumber = 45;
const ::std::string& ruby_package() const;
void set_ruby_package(const ::std::string& value);
#if LANG_CXX11
void set_ruby_package(::std::string&& value);
#endif
void set_ruby_package(const char* value);
void set_ruby_package(const char* value, size_t size);
::std::string* mutable_ruby_package();
::std::string* release_ruby_package();
void set_allocated_ruby_package(::std::string* ruby_package);
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
::std::string* unsafe_arena_release_ruby_package();
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
" string fields are deprecated and will be removed in a"
" future release.")
void unsafe_arena_set_allocated_ruby_package(
::std::string* ruby_package);
// optional bool java_multiple_files = 10 [default = false]; // optional bool java_multiple_files = 10 [default = false];
bool has_java_multiple_files() const; bool has_java_multiple_files() const;
@ -3389,6 +3430,13 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool deprecated() const; bool deprecated() const;
void set_deprecated(bool value); void set_deprecated(bool value);
// optional bool cc_enable_arenas = 31 [default = false];
bool has_cc_enable_arenas() const;
void clear_cc_enable_arenas();
static const int kCcEnableArenasFieldNumber = 31;
bool cc_enable_arenas() const;
void set_cc_enable_arenas(bool value);
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
bool has_optimize_for() const; bool has_optimize_for() const;
void clear_optimize_for(); void clear_optimize_for();
@ -3435,6 +3483,10 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
void clear_has_php_class_prefix(); void clear_has_php_class_prefix();
void set_has_php_namespace(); void set_has_php_namespace();
void clear_has_php_namespace(); void clear_has_php_namespace();
void set_has_php_metadata_namespace();
void clear_has_php_metadata_namespace();
void set_has_ruby_package();
void clear_has_ruby_package();
::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::ExtensionSet _extensions_;
@ -3453,7 +3505,8 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
::google::protobuf::internal::ArenaStringPtr swift_prefix_; ::google::protobuf::internal::ArenaStringPtr swift_prefix_;
::google::protobuf::internal::ArenaStringPtr php_class_prefix_; ::google::protobuf::internal::ArenaStringPtr php_class_prefix_;
::google::protobuf::internal::ArenaStringPtr php_namespace_; ::google::protobuf::internal::ArenaStringPtr php_namespace_;
bool cc_enable_arenas_; ::google::protobuf::internal::ArenaStringPtr php_metadata_namespace_;
::google::protobuf::internal::ArenaStringPtr ruby_package_;
bool java_multiple_files_; bool java_multiple_files_;
bool java_generate_equals_and_hash_; bool java_generate_equals_and_hash_;
bool java_string_check_utf8_; bool java_string_check_utf8_;
@ -3462,6 +3515,7 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool py_generic_services_; bool py_generic_services_;
bool php_generic_services_; bool php_generic_services_;
bool deprecated_; bool deprecated_;
bool cc_enable_arenas_;
int optimize_for_; int optimize_for_;
friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct; friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
}; };
@ -9130,13 +9184,13 @@ inline void FileOptions::unsafe_arena_set_allocated_java_outer_classname(
// optional bool java_multiple_files = 10 [default = false]; // optional bool java_multiple_files = 10 [default = false];
inline bool FileOptions::has_java_multiple_files() const { inline bool FileOptions::has_java_multiple_files() const {
return (_has_bits_[0] & 0x00000200u) != 0; return (_has_bits_[0] & 0x00000400u) != 0;
} }
inline void FileOptions::set_has_java_multiple_files() { inline void FileOptions::set_has_java_multiple_files() {
_has_bits_[0] |= 0x00000200u; _has_bits_[0] |= 0x00000400u;
} }
inline void FileOptions::clear_has_java_multiple_files() { inline void FileOptions::clear_has_java_multiple_files() {
_has_bits_[0] &= ~0x00000200u; _has_bits_[0] &= ~0x00000400u;
} }
inline void FileOptions::clear_java_multiple_files() { inline void FileOptions::clear_java_multiple_files() {
java_multiple_files_ = false; java_multiple_files_ = false;
@ -9154,13 +9208,13 @@ inline void FileOptions::set_java_multiple_files(bool value) {
// optional bool java_generate_equals_and_hash = 20 [deprecated = true]; // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
inline bool FileOptions::has_java_generate_equals_and_hash() const { inline bool FileOptions::has_java_generate_equals_and_hash() const {
return (_has_bits_[0] & 0x00000400u) != 0; return (_has_bits_[0] & 0x00000800u) != 0;
} }
inline void FileOptions::set_has_java_generate_equals_and_hash() { inline void FileOptions::set_has_java_generate_equals_and_hash() {
_has_bits_[0] |= 0x00000400u; _has_bits_[0] |= 0x00000800u;
} }
inline void FileOptions::clear_has_java_generate_equals_and_hash() { inline void FileOptions::clear_has_java_generate_equals_and_hash() {
_has_bits_[0] &= ~0x00000400u; _has_bits_[0] &= ~0x00000800u;
} }
inline void FileOptions::clear_java_generate_equals_and_hash() { inline void FileOptions::clear_java_generate_equals_and_hash() {
java_generate_equals_and_hash_ = false; java_generate_equals_and_hash_ = false;
@ -9178,13 +9232,13 @@ inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
// optional bool java_string_check_utf8 = 27 [default = false]; // optional bool java_string_check_utf8 = 27 [default = false];
inline bool FileOptions::has_java_string_check_utf8() const { inline bool FileOptions::has_java_string_check_utf8() const {
return (_has_bits_[0] & 0x00000800u) != 0; return (_has_bits_[0] & 0x00001000u) != 0;
} }
inline void FileOptions::set_has_java_string_check_utf8() { inline void FileOptions::set_has_java_string_check_utf8() {
_has_bits_[0] |= 0x00000800u; _has_bits_[0] |= 0x00001000u;
} }
inline void FileOptions::clear_has_java_string_check_utf8() { inline void FileOptions::clear_has_java_string_check_utf8() {
_has_bits_[0] &= ~0x00000800u; _has_bits_[0] &= ~0x00001000u;
} }
inline void FileOptions::clear_java_string_check_utf8() { inline void FileOptions::clear_java_string_check_utf8() {
java_string_check_utf8_ = false; java_string_check_utf8_ = false;
@ -9202,13 +9256,13 @@ inline void FileOptions::set_java_string_check_utf8(bool value) {
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
inline bool FileOptions::has_optimize_for() const { inline bool FileOptions::has_optimize_for() const {
return (_has_bits_[0] & 0x00020000u) != 0; return (_has_bits_[0] & 0x00080000u) != 0;
} }
inline void FileOptions::set_has_optimize_for() { inline void FileOptions::set_has_optimize_for() {
_has_bits_[0] |= 0x00020000u; _has_bits_[0] |= 0x00080000u;
} }
inline void FileOptions::clear_has_optimize_for() { inline void FileOptions::clear_has_optimize_for() {
_has_bits_[0] &= ~0x00020000u; _has_bits_[0] &= ~0x00080000u;
} }
inline void FileOptions::clear_optimize_for() { inline void FileOptions::clear_optimize_for() {
optimize_for_ = 1; optimize_for_ = 1;
@ -9315,13 +9369,13 @@ inline void FileOptions::unsafe_arena_set_allocated_go_package(
// optional bool cc_generic_services = 16 [default = false]; // optional bool cc_generic_services = 16 [default = false];
inline bool FileOptions::has_cc_generic_services() const { inline bool FileOptions::has_cc_generic_services() const {
return (_has_bits_[0] & 0x00001000u) != 0; return (_has_bits_[0] & 0x00002000u) != 0;
} }
inline void FileOptions::set_has_cc_generic_services() { inline void FileOptions::set_has_cc_generic_services() {
_has_bits_[0] |= 0x00001000u; _has_bits_[0] |= 0x00002000u;
} }
inline void FileOptions::clear_has_cc_generic_services() { inline void FileOptions::clear_has_cc_generic_services() {
_has_bits_[0] &= ~0x00001000u; _has_bits_[0] &= ~0x00002000u;
} }
inline void FileOptions::clear_cc_generic_services() { inline void FileOptions::clear_cc_generic_services() {
cc_generic_services_ = false; cc_generic_services_ = false;
@ -9339,13 +9393,13 @@ inline void FileOptions::set_cc_generic_services(bool value) {
// optional bool java_generic_services = 17 [default = false]; // optional bool java_generic_services = 17 [default = false];
inline bool FileOptions::has_java_generic_services() const { inline bool FileOptions::has_java_generic_services() const {
return (_has_bits_[0] & 0x00002000u) != 0; return (_has_bits_[0] & 0x00004000u) != 0;
} }
inline void FileOptions::set_has_java_generic_services() { inline void FileOptions::set_has_java_generic_services() {
_has_bits_[0] |= 0x00002000u; _has_bits_[0] |= 0x00004000u;
} }
inline void FileOptions::clear_has_java_generic_services() { inline void FileOptions::clear_has_java_generic_services() {
_has_bits_[0] &= ~0x00002000u; _has_bits_[0] &= ~0x00004000u;
} }
inline void FileOptions::clear_java_generic_services() { inline void FileOptions::clear_java_generic_services() {
java_generic_services_ = false; java_generic_services_ = false;
@ -9363,13 +9417,13 @@ inline void FileOptions::set_java_generic_services(bool value) {
// optional bool py_generic_services = 18 [default = false]; // optional bool py_generic_services = 18 [default = false];
inline bool FileOptions::has_py_generic_services() const { inline bool FileOptions::has_py_generic_services() const {
return (_has_bits_[0] & 0x00004000u) != 0; return (_has_bits_[0] & 0x00008000u) != 0;
} }
inline void FileOptions::set_has_py_generic_services() { inline void FileOptions::set_has_py_generic_services() {
_has_bits_[0] |= 0x00004000u; _has_bits_[0] |= 0x00008000u;
} }
inline void FileOptions::clear_has_py_generic_services() { inline void FileOptions::clear_has_py_generic_services() {
_has_bits_[0] &= ~0x00004000u; _has_bits_[0] &= ~0x00008000u;
} }
inline void FileOptions::clear_py_generic_services() { inline void FileOptions::clear_py_generic_services() {
py_generic_services_ = false; py_generic_services_ = false;
@ -9387,13 +9441,13 @@ inline void FileOptions::set_py_generic_services(bool value) {
// optional bool php_generic_services = 42 [default = false]; // optional bool php_generic_services = 42 [default = false];
inline bool FileOptions::has_php_generic_services() const { inline bool FileOptions::has_php_generic_services() const {
return (_has_bits_[0] & 0x00008000u) != 0; return (_has_bits_[0] & 0x00010000u) != 0;
} }
inline void FileOptions::set_has_php_generic_services() { inline void FileOptions::set_has_php_generic_services() {
_has_bits_[0] |= 0x00008000u; _has_bits_[0] |= 0x00010000u;
} }
inline void FileOptions::clear_has_php_generic_services() { inline void FileOptions::clear_has_php_generic_services() {
_has_bits_[0] &= ~0x00008000u; _has_bits_[0] &= ~0x00010000u;
} }
inline void FileOptions::clear_php_generic_services() { inline void FileOptions::clear_php_generic_services() {
php_generic_services_ = false; php_generic_services_ = false;
@ -9411,13 +9465,13 @@ inline void FileOptions::set_php_generic_services(bool value) {
// optional bool deprecated = 23 [default = false]; // optional bool deprecated = 23 [default = false];
inline bool FileOptions::has_deprecated() const { inline bool FileOptions::has_deprecated() const {
return (_has_bits_[0] & 0x00010000u) != 0; return (_has_bits_[0] & 0x00020000u) != 0;
} }
inline void FileOptions::set_has_deprecated() { inline void FileOptions::set_has_deprecated() {
_has_bits_[0] |= 0x00010000u; _has_bits_[0] |= 0x00020000u;
} }
inline void FileOptions::clear_has_deprecated() { inline void FileOptions::clear_has_deprecated() {
_has_bits_[0] &= ~0x00010000u; _has_bits_[0] &= ~0x00020000u;
} }
inline void FileOptions::clear_deprecated() { inline void FileOptions::clear_deprecated() {
deprecated_ = false; deprecated_ = false;
@ -9435,13 +9489,13 @@ inline void FileOptions::set_deprecated(bool value) {
// optional bool cc_enable_arenas = 31 [default = false]; // optional bool cc_enable_arenas = 31 [default = false];
inline bool FileOptions::has_cc_enable_arenas() const { inline bool FileOptions::has_cc_enable_arenas() const {
return (_has_bits_[0] & 0x00000100u) != 0; return (_has_bits_[0] & 0x00040000u) != 0;
} }
inline void FileOptions::set_has_cc_enable_arenas() { inline void FileOptions::set_has_cc_enable_arenas() {
_has_bits_[0] |= 0x00000100u; _has_bits_[0] |= 0x00040000u;
} }
inline void FileOptions::clear_has_cc_enable_arenas() { inline void FileOptions::clear_has_cc_enable_arenas() {
_has_bits_[0] &= ~0x00000100u; _has_bits_[0] &= ~0x00040000u;
} }
inline void FileOptions::clear_cc_enable_arenas() { inline void FileOptions::clear_cc_enable_arenas() {
cc_enable_arenas_ = false; cc_enable_arenas_ = false;
@ -9897,6 +9951,182 @@ inline void FileOptions::unsafe_arena_set_allocated_php_namespace(
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_namespace) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_namespace)
} }
// optional string php_metadata_namespace = 44;
inline bool FileOptions::has_php_metadata_namespace() const {
return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void FileOptions::set_has_php_metadata_namespace() {
_has_bits_[0] |= 0x00000100u;
}
inline void FileOptions::clear_has_php_metadata_namespace() {
_has_bits_[0] &= ~0x00000100u;
}
inline void FileOptions::clear_php_metadata_namespace() {
php_metadata_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_php_metadata_namespace();
}
inline const ::std::string& FileOptions::php_metadata_namespace() const {
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
return php_metadata_namespace_.Get();
}
inline void FileOptions::set_php_metadata_namespace(const ::std::string& value) {
set_has_php_metadata_namespace();
php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
}
#if LANG_CXX11
inline void FileOptions::set_php_metadata_namespace(::std::string&& value) {
set_has_php_metadata_namespace();
php_metadata_namespace_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_metadata_namespace)
}
#endif
inline void FileOptions::set_php_metadata_namespace(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_php_metadata_namespace();
php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_metadata_namespace)
}
inline void FileOptions::set_php_metadata_namespace(const char* value,
size_t size) {
set_has_php_metadata_namespace();
php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_metadata_namespace)
}
inline ::std::string* FileOptions::mutable_php_metadata_namespace() {
set_has_php_metadata_namespace();
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
return php_metadata_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* FileOptions::release_php_metadata_namespace() {
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
if (!has_php_metadata_namespace()) {
return NULL;
}
clear_has_php_metadata_namespace();
return php_metadata_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void FileOptions::set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace) {
if (php_metadata_namespace != NULL) {
set_has_php_metadata_namespace();
} else {
clear_has_php_metadata_namespace();
}
php_metadata_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
}
inline ::std::string* FileOptions::unsafe_arena_release_php_metadata_namespace() {
// @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_metadata_namespace)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_php_metadata_namespace();
return php_metadata_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void FileOptions::unsafe_arena_set_allocated_php_metadata_namespace(
::std::string* php_metadata_namespace) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (php_metadata_namespace != NULL) {
set_has_php_metadata_namespace();
} else {
clear_has_php_metadata_namespace();
}
php_metadata_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
php_metadata_namespace, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
}
// optional string ruby_package = 45;
inline bool FileOptions::has_ruby_package() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void FileOptions::set_has_ruby_package() {
_has_bits_[0] |= 0x00000200u;
}
inline void FileOptions::clear_has_ruby_package() {
_has_bits_[0] &= ~0x00000200u;
}
inline void FileOptions::clear_ruby_package() {
ruby_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
clear_has_ruby_package();
}
inline const ::std::string& FileOptions::ruby_package() const {
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
return ruby_package_.Get();
}
inline void FileOptions::set_ruby_package(const ::std::string& value) {
set_has_ruby_package();
ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
}
#if LANG_CXX11
inline void FileOptions::set_ruby_package(::std::string&& value) {
set_has_ruby_package();
ruby_package_.Set(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.ruby_package)
}
#endif
inline void FileOptions::set_ruby_package(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_ruby_package();
ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.ruby_package)
}
inline void FileOptions::set_ruby_package(const char* value,
size_t size) {
set_has_ruby_package();
ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.ruby_package)
}
inline ::std::string* FileOptions::mutable_ruby_package() {
set_has_ruby_package();
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
return ruby_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline ::std::string* FileOptions::release_ruby_package() {
// @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
if (!has_ruby_package()) {
return NULL;
}
clear_has_ruby_package();
return ruby_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
}
inline void FileOptions::set_allocated_ruby_package(::std::string* ruby_package) {
if (ruby_package != NULL) {
set_has_ruby_package();
} else {
clear_has_ruby_package();
}
ruby_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ruby_package,
GetArenaNoVirtual());
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
}
inline ::std::string* FileOptions::unsafe_arena_release_ruby_package() {
// @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.ruby_package)
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
clear_has_ruby_package();
return ruby_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
}
inline void FileOptions::unsafe_arena_set_allocated_ruby_package(
::std::string* ruby_package) {
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
if (ruby_package != NULL) {
set_has_ruby_package();
} else {
clear_has_ruby_package();
}
ruby_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
ruby_package, GetArenaNoVirtual());
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.ruby_package)
}
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
inline int FileOptions::uninterpreted_option_size() const { inline int FileOptions::uninterpreted_option_size() const {
return uninterpreted_option_.size(); return uninterpreted_option_.size();

@ -417,6 +417,17 @@ message FileOptions {
// determining the namespace. // determining the namespace.
optional string php_namespace = 41; optional string php_namespace = 41;
// Use this option to change the namespace of php generated metadata classes.
// Default is empty. When this option is empty, the proto file name will be used
// for determining the namespace.
optional string php_metadata_namespace = 44;
// Use this option to change the package of ruby generated classes. Default
// is empty. When this option is not set, the package name will be used for
// determining the ruby package.
optional string ruby_package = 45;
// The parser stores options it doesn't recognize here. // The parser stores options it doesn't recognize here.
// See the documentation for the "Options" section above. // See the documentation for the "Options" section above.
repeated UninterpretedOption uninterpreted_option = 999; repeated UninterpretedOption uninterpreted_option = 999;

Loading…
Cancel
Save