Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
2807436c
Commit
2807436c
authored
Aug 30, 2017
by
Paul Yang
Committed by
GitHub
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the field number of php_generic_service to fix the conflict with (#3576)
internal descriptor.proto
parent
21b23723
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
118 additions
and
53 deletions
+118
-53
Makefile.am
Makefile.am
+1
-0
Descriptor.cs
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
+10
-10
Descriptor.php
php/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php
+1
-1
ExtensionRangeOptions.php
php/src/Google/Protobuf/Internal/ExtensionRangeOptions.php
+64
-0
FileOptions.php
php/src/Google/Protobuf/Internal/FileOptions.php
+3
-3
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+0
-0
descriptor.pb.h
src/google/protobuf/descriptor.pb.h
+38
-38
descriptor.proto
src/google/protobuf/descriptor.proto
+1
-1
No files found.
Makefile.am
View file @
2807436c
...
...
@@ -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
\
...
...
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
View file @
2807436c
...
...
@@ -92,7 +92,7 @@ namespace Google.Protobuf.Reflection {
"T3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19wYWNrYWdlGAsgASgJEiIKE2Nj"
,
"X2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlEiQKFWphdmFfZ2VuZXJp"
,
"Y19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoTcHlfZ2VuZXJpY19zZXJ2aWNl"
,
"cxgSIAEoCDoFZmFsc2USIwoUcGhwX2dlbmVyaWNfc2VydmljZXMY
Ey
ABKAg6"
,
"cxgSIAEoCDoFZmFsc2USIwoUcGhwX2dlbmVyaWNfc2VydmljZXMY
Ki
ABKAg6"
,
"BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6BWZhbHNlEh8KEGNjX2VuYWJs"
,
"ZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9iamNfY2xhc3NfcHJlZml4GCQg"
,
"ASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSABKAkSFAoMc3dpZnRfcHJlZml4"
,
...
...
@@ -3135,7 +3135,7 @@ namespace Google.Protobuf.Reflection {
}
/// <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
{
...
...
@@ -3366,10 +3366,6 @@ namespace Google.Protobuf.Reflection {
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
);
...
...
@@ -3406,6 +3402,10 @@ namespace Google.Protobuf.Reflection {
output
.
WriteRawTag
(
202
,
2
);
output
.
WriteString
(
PhpNamespace
);
}
if
(
PhpGenericServices
!=
false
)
{
output
.
WriteRawTag
(
208
,
2
);
output
.
WriteBool
(
PhpGenericServices
);
}
uninterpretedOption_
.
WriteTo
(
output
,
_repeated_uninterpretedOption_codec
);
}
...
...
@@ -3572,10 +3572,6 @@ namespace Google.Protobuf.Reflection {
PyGenericServices
=
input
.
ReadBool
();
break
;
}
case
152
:
{
PhpGenericServices
=
input
.
ReadBool
();
break
;
}
case
160
:
{
JavaGenerateEqualsAndHash
=
input
.
ReadBool
();
break
;
...
...
@@ -3612,6 +3608,10 @@ namespace Google.Protobuf.Reflection {
PhpNamespace
=
input
.
ReadString
();
break
;
}
case
336
:
{
PhpGenericServices
=
input
.
ReadBool
();
break
;
}
case
7994
:
{
uninterpretedOption_
.
AddEntriesFrom
(
input
,
_repeated_uninterpretedOption_codec
);
break
;
...
...
php/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php
View file @
2807436c
...
...
@@ -144,7 +144,7 @@ class Descriptor
->
optional
(
'cc_generic_services'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
16
)
->
optional
(
'java_generic_services'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
17
)
->
optional
(
'py_generic_services'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
18
)
->
optional
(
'php_generic_services'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
19
)
->
optional
(
'php_generic_services'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
42
)
->
optional
(
'deprecated'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
23
)
->
optional
(
'cc_enable_arenas'
,
\Google\Protobuf\Internal\GPBType
::
BOOL
,
31
)
->
optional
(
'objc_class_prefix'
,
\Google\Protobuf\Internal\GPBType
::
STRING
,
36
)
...
...
php/src/Google/Protobuf/Internal/ExtensionRangeOptions.php
0 → 100644
View file @
2807436c
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/descriptor.proto
namespace
Google\Protobuf\Internal
;
use
Google\Protobuf\Internal\GPBType
;
use
Google\Protobuf\Internal\GPBWire
;
use
Google\Protobuf\Internal\RepeatedField
;
use
Google\Protobuf\Internal\InputStream
;
use
Google\Protobuf\Internal\GPBUtil
;
/**
* Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code>
*/
class
ExtensionRangeOptions
extends
\Google\Protobuf\Internal\Message
{
/**
* The parser stores options it doesn't recognize here. See above.
*
* Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
*/
private
$uninterpreted_option
;
private
$has_uninterpreted_option
=
false
;
public
function
__construct
()
{
\GPBMetadata\Google\Protobuf\Internal\Descriptor
::
initOnce
();
parent
::
__construct
();
}
/**
* The parser stores options it doesn't recognize here. See above.
*
* Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public
function
getUninterpretedOption
()
{
return
$this
->
uninterpreted_option
;
}
/**
* The parser stores options it doesn't recognize here. See above.
*
* Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
* @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public
function
setUninterpretedOption
(
$var
)
{
$arr
=
GPBUtil
::
checkRepeatedField
(
$var
,
\Google\Protobuf\Internal\GPBType
::
MESSAGE
,
\Google\Protobuf\Internal\UninterpretedOption
::
class
);
$this
->
uninterpreted_option
=
$arr
;
$this
->
has_uninterpreted_option
=
true
;
return
$this
;
}
public
function
hasUninterpretedOption
()
{
return
$this
->
has_uninterpreted_option
;
}
}
php/src/Google/Protobuf/Internal/FileOptions.php
View file @
2807436c
...
...
@@ -109,7 +109,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
private
$py_generic_services
=
false
;
private
$has_py_generic_services
=
false
;
/**
* Generated from protobuf field <code>optional bool php_generic_services =
19
[default = false];</code>
* Generated from protobuf field <code>optional bool php_generic_services =
42
[default = false];</code>
*/
private
$php_generic_services
=
false
;
private
$has_php_generic_services
=
false
;
...
...
@@ -553,7 +553,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
}
/**
* Generated from protobuf field <code>optional bool php_generic_services =
19
[default = false];</code>
* Generated from protobuf field <code>optional bool php_generic_services =
42
[default = false];</code>
* @return bool
*/
public
function
getPhpGenericServices
()
...
...
@@ -562,7 +562,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
}
/**
* Generated from protobuf field <code>optional bool php_generic_services =
19
[default = false];</code>
* Generated from protobuf field <code>optional bool php_generic_services =
42
[default = false];</code>
* @param bool $var
* @return $this
*/
...
...
src/google/protobuf/descriptor.pb.cc
View file @
2807436c
This diff is collapsed.
Click to expand it.
src/google/protobuf/descriptor.pb.h
View file @
2807436c
...
...
@@ -2570,6 +2570,13 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
::
std
::
string
*
release_php_namespace
();
void
set_allocated_php_namespace
(
::
std
::
string
*
php_namespace
);
// 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 bool java_multiple_files = 10 [default = false];
bool
has_java_multiple_files
()
const
;
void
clear_java_multiple_files
();
...
...
@@ -2612,10 +2619,10 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool
py_generic_services
()
const
;
void
set_py_generic_services
(
bool
value
);
// optional bool php_generic_services =
19
[default = false];
// optional bool php_generic_services =
42
[default = false];
bool
has_php_generic_services
()
const
;
void
clear_php_generic_services
();
static
const
int
kPhpGenericServicesFieldNumber
=
19
;
static
const
int
kPhpGenericServicesFieldNumber
=
42
;
bool
php_generic_services
()
const
;
void
set_php_generic_services
(
bool
value
);
...
...
@@ -2626,13 +2633,6 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool
deprecated
()
const
;
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];
bool
has_optimize_for
()
const
;
void
clear_optimize_for
();
...
...
@@ -2694,6 +2694,7 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
::
google
::
protobuf
::
internal
::
ArenaStringPtr
swift_prefix_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
php_class_prefix_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
php_namespace_
;
bool
cc_enable_arenas_
;
bool
java_multiple_files_
;
bool
java_generate_equals_and_hash_
;
bool
java_string_check_utf8_
;
...
...
@@ -2702,7 +2703,6 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool
py_generic_services_
;
bool
php_generic_services_
;
bool
deprecated_
;
bool
cc_enable_arenas_
;
int
optimize_for_
;
friend
struct
protobuf_google_2fprotobuf_2fdescriptor_2eproto
::
TableStruct
;
};
...
...
@@ -7205,13 +7205,13 @@ inline void FileOptions::set_allocated_java_outer_classname(::std::string* java_
// optional bool java_multiple_files = 10 [default = false];
inline
bool
FileOptions
::
has_java_multiple_files
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
1
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
2
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_multiple_files
()
{
_has_bits_
[
0
]
|=
0x00000
1
00u
;
_has_bits_
[
0
]
|=
0x00000
2
00u
;
}
inline
void
FileOptions
::
clear_has_java_multiple_files
()
{
_has_bits_
[
0
]
&=
~
0x00000
1
00u
;
_has_bits_
[
0
]
&=
~
0x00000
2
00u
;
}
inline
void
FileOptions
::
clear_java_multiple_files
()
{
java_multiple_files_
=
false
;
...
...
@@ -7229,13 +7229,13 @@ inline void FileOptions::set_java_multiple_files(bool value) {
// optional bool java_generate_equals_and_hash = 20 [deprecated = true];
inline
bool
FileOptions
::
has_java_generate_equals_and_hash
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
2
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
4
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_generate_equals_and_hash
()
{
_has_bits_
[
0
]
|=
0x00000
2
00u
;
_has_bits_
[
0
]
|=
0x00000
4
00u
;
}
inline
void
FileOptions
::
clear_has_java_generate_equals_and_hash
()
{
_has_bits_
[
0
]
&=
~
0x00000
2
00u
;
_has_bits_
[
0
]
&=
~
0x00000
4
00u
;
}
inline
void
FileOptions
::
clear_java_generate_equals_and_hash
()
{
java_generate_equals_and_hash_
=
false
;
...
...
@@ -7253,13 +7253,13 @@ inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
// optional bool java_string_check_utf8 = 27 [default = false];
inline
bool
FileOptions
::
has_java_string_check_utf8
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
4
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
8
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_string_check_utf8
()
{
_has_bits_
[
0
]
|=
0x00000
4
00u
;
_has_bits_
[
0
]
|=
0x00000
8
00u
;
}
inline
void
FileOptions
::
clear_has_java_string_check_utf8
()
{
_has_bits_
[
0
]
&=
~
0x00000
4
00u
;
_has_bits_
[
0
]
&=
~
0x00000
8
00u
;
}
inline
void
FileOptions
::
clear_java_string_check_utf8
()
{
java_string_check_utf8_
=
false
;
...
...
@@ -7365,13 +7365,13 @@ inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
// optional bool cc_generic_services = 16 [default = false];
inline
bool
FileOptions
::
has_cc_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
08
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
10
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_cc_generic_services
()
{
_has_bits_
[
0
]
|=
0x0000
08
00u
;
_has_bits_
[
0
]
|=
0x0000
10
00u
;
}
inline
void
FileOptions
::
clear_has_cc_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x0000
08
00u
;
_has_bits_
[
0
]
&=
~
0x0000
10
00u
;
}
inline
void
FileOptions
::
clear_cc_generic_services
()
{
cc_generic_services_
=
false
;
...
...
@@ -7389,13 +7389,13 @@ inline void FileOptions::set_cc_generic_services(bool value) {
// optional bool java_generic_services = 17 [default = false];
inline
bool
FileOptions
::
has_java_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
1
000u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
2
000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_generic_services
()
{
_has_bits_
[
0
]
|=
0x0000
1
000u
;
_has_bits_
[
0
]
|=
0x0000
2
000u
;
}
inline
void
FileOptions
::
clear_has_java_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x0000
1
000u
;
_has_bits_
[
0
]
&=
~
0x0000
2
000u
;
}
inline
void
FileOptions
::
clear_java_generic_services
()
{
java_generic_services_
=
false
;
...
...
@@ -7413,13 +7413,13 @@ inline void FileOptions::set_java_generic_services(bool value) {
// optional bool py_generic_services = 18 [default = false];
inline
bool
FileOptions
::
has_py_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
2
000u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
4
000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_py_generic_services
()
{
_has_bits_
[
0
]
|=
0x0000
2
000u
;
_has_bits_
[
0
]
|=
0x0000
4
000u
;
}
inline
void
FileOptions
::
clear_has_py_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x0000
2
000u
;
_has_bits_
[
0
]
&=
~
0x0000
4
000u
;
}
inline
void
FileOptions
::
clear_py_generic_services
()
{
py_generic_services_
=
false
;
...
...
@@ -7435,15 +7435,15 @@ inline void FileOptions::set_py_generic_services(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
}
// optional bool php_generic_services =
19
[default = false];
// optional bool php_generic_services =
42
[default = false];
inline
bool
FileOptions
::
has_php_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
4
000u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
8
000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_php_generic_services
()
{
_has_bits_
[
0
]
|=
0x0000
4
000u
;
_has_bits_
[
0
]
|=
0x0000
8
000u
;
}
inline
void
FileOptions
::
clear_has_php_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x0000
4
000u
;
_has_bits_
[
0
]
&=
~
0x0000
8
000u
;
}
inline
void
FileOptions
::
clear_php_generic_services
()
{
php_generic_services_
=
false
;
...
...
@@ -7461,13 +7461,13 @@ inline void FileOptions::set_php_generic_services(bool value) {
// optional bool deprecated = 23 [default = false];
inline
bool
FileOptions
::
has_deprecated
()
const
{
return
(
_has_bits_
[
0
]
&
0x000
08
000u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000
10
000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_deprecated
()
{
_has_bits_
[
0
]
|=
0x000
08
000u
;
_has_bits_
[
0
]
|=
0x000
10
000u
;
}
inline
void
FileOptions
::
clear_has_deprecated
()
{
_has_bits_
[
0
]
&=
~
0x000
08
000u
;
_has_bits_
[
0
]
&=
~
0x000
10
000u
;
}
inline
void
FileOptions
::
clear_deprecated
()
{
deprecated_
=
false
;
...
...
@@ -7485,13 +7485,13 @@ inline void FileOptions::set_deprecated(bool value) {
// optional bool cc_enable_arenas = 31 [default = false];
inline
bool
FileOptions
::
has_cc_enable_arenas
()
const
{
return
(
_has_bits_
[
0
]
&
0x000
100
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000
001
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_cc_enable_arenas
()
{
_has_bits_
[
0
]
|=
0x000
100
00u
;
_has_bits_
[
0
]
|=
0x000
001
00u
;
}
inline
void
FileOptions
::
clear_has_cc_enable_arenas
()
{
_has_bits_
[
0
]
&=
~
0x000
100
00u
;
_has_bits_
[
0
]
&=
~
0x000
001
00u
;
}
inline
void
FileOptions
::
clear_cc_enable_arenas
()
{
cc_enable_arenas_
=
false
;
...
...
src/google/protobuf/descriptor.proto
View file @
2807436c
...
...
@@ -361,7 +361,7 @@ message FileOptions {
optional
bool
cc_generic_services
=
16
[
default
=
false
];
optional
bool
java_generic_services
=
17
[
default
=
false
];
optional
bool
py_generic_services
=
18
[
default
=
false
];
optional
bool
php_generic_services
=
19
[
default
=
false
];
optional
bool
php_generic_services
=
42
[
default
=
false
];
// Is this file deprecated?
// Depending on the target platform, this can emit Deprecated annotations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment