Skip to content

Commit

Permalink
change the field number of php_generic_service to fix the conflict wi…
Browse files Browse the repository at this point in the history
…th (#3576)

internal descriptor.proto
  • Loading branch information
TeBoring committed Aug 30, 2017
1 parent 21b2372 commit 2807436
Show file tree
Hide file tree
Showing 8 changed files with 216 additions and 151 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ php_EXTRA_DIST= \
php/src/Google/Protobuf/Internal/EnumOptions.php \
php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php \
php/src/Google/Protobuf/Internal/EnumValueOptions.php \
php/src/Google/Protobuf/Internal/ExtensionRangeOptions.php \
php/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php \
php/src/Google/Protobuf/Internal/FieldDescriptorProto.php \
php/src/Google/Protobuf/Internal/FieldDescriptor.php \
Expand Down
20 changes: 10 additions & 10 deletions csharp/src/Google.Protobuf/Reflection/Descriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static DescriptorReflection() {
"T3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19wYWNrYWdlGAsgASgJEiIKE2Nj",
"X2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlEiQKFWphdmFfZ2VuZXJp",
"Y19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoTcHlfZ2VuZXJpY19zZXJ2aWNl",
"cxgSIAEoCDoFZmFsc2USIwoUcGhwX2dlbmVyaWNfc2VydmljZXMYEyABKAg6",
"cxgSIAEoCDoFZmFsc2USIwoUcGhwX2dlbmVyaWNfc2VydmljZXMYKiABKAg6",
"BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6BWZhbHNlEh8KEGNjX2VuYWJs",
"ZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9iamNfY2xhc3NfcHJlZml4GCQg",
"ASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSABKAkSFAoMc3dpZnRfcHJlZml4",
Expand Down Expand Up @@ -3135,7 +3135,7 @@ public bool PyGenericServices {
}

/// <summary>Field number for the "php_generic_services" field.</summary>
public const int PhpGenericServicesFieldNumber = 19;
public const int PhpGenericServicesFieldNumber = 42;
private bool phpGenericServices_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool PhpGenericServices {
Expand Down Expand Up @@ -3366,10 +3366,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(144, 1);
output.WriteBool(PyGenericServices);
}
if (PhpGenericServices != false) {
output.WriteRawTag(152, 1);
output.WriteBool(PhpGenericServices);
}
if (JavaGenerateEqualsAndHash != false) {
output.WriteRawTag(160, 1);
output.WriteBool(JavaGenerateEqualsAndHash);
Expand Down Expand Up @@ -3406,6 +3402,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(202, 2);
output.WriteString(PhpNamespace);
}
if (PhpGenericServices != false) {
output.WriteRawTag(208, 2);
output.WriteBool(PhpGenericServices);
}
uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
}

Expand Down Expand Up @@ -3572,10 +3572,6 @@ public void MergeFrom(pb::CodedInputStream input) {
PyGenericServices = input.ReadBool();
break;
}
case 152: {
PhpGenericServices = input.ReadBool();
break;
}
case 160: {
JavaGenerateEqualsAndHash = input.ReadBool();
break;
Expand Down Expand Up @@ -3612,6 +3608,10 @@ public void MergeFrom(pb::CodedInputStream input) {
PhpNamespace = input.ReadString();
break;
}
case 336: {
PhpGenericServices = input.ReadBool();
break;
}
case 7994: {
uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
break;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions php/src/Google/Protobuf/Internal/ExtensionRangeOptions.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions php/src/Google/Protobuf/Internal/FileOptions.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2807436

Please sign in to comment.