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
7ec023ac
Commit
7ec023ac
authored
Jul 30, 2015
by
Jan Tattermusch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenerate code
parent
3783d9a8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
0 additions
and
431 deletions
+0
-431
Addressbook.cs
csharp/src/AddressBook/Addressbook.cs
+0
-28
MapUnittestProto3.cs
.../src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+0
-88
UnittestImportProto3.cs
...c/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+0
-8
UnittestImportPublicProto3.cs
...le.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+0
-8
UnittestIssues.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+0
-60
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+0
-0
UnittestWellKnownTypes.cs
...Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+0
-0
DescriptorProtoFile.cs
csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
+0
-0
Any.cs
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+0
-9
Api.cs
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
+0
-26
Duration.cs
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
+0
-9
Empty.cs
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
+0
-7
FieldMask.cs
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
+0
-8
SourceContext.cs
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
+0
-8
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+0
-31
Timestamp.cs
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
+0
-9
Type.cs
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
+0
-60
Wrappers.cs
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+0
-72
No files found.
csharp/src/AddressBook/Addressbook.cs
View file @
7ec023ac
...
@@ -74,20 +74,11 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -74,20 +74,11 @@ namespace Google.Protobuf.Examples.AddressBook {
return
new
Person
(
this
);
return
new
Person
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
phones_
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -97,7 +88,6 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -97,7 +88,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
int
Id
{
public
int
Id
{
get
{
return
id_
;
}
get
{
return
id_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
id_
=
value
;
id_
=
value
;
}
}
}
}
...
@@ -107,7 +97,6 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -107,7 +97,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
string
Email
{
public
string
Email
{
get
{
return
email_
;
}
get
{
return
email_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
email_
=
value
??
""
;
email_
=
value
??
""
;
}
}
}
}
...
@@ -269,19 +258,11 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -269,19 +258,11 @@ namespace Google.Protobuf.Examples.AddressBook {
return
new
PhoneNumber
(
this
);
return
new
PhoneNumber
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
NumberFieldNumber
=
1
;
public
const
int
NumberFieldNumber
=
1
;
private
string
number_
=
""
;
private
string
number_
=
""
;
public
string
Number
{
public
string
Number
{
get
{
return
number_
;
}
get
{
return
number_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
number_
=
value
??
""
;
number_
=
value
??
""
;
}
}
}
}
...
@@ -291,7 +272,6 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -291,7 +272,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
Type
{
public
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
Type
{
get
{
return
type_
;
}
get
{
return
type_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
type_
=
value
;
type_
=
value
;
}
}
}
}
...
@@ -417,14 +397,6 @@ namespace Google.Protobuf.Examples.AddressBook {
...
@@ -417,14 +397,6 @@ namespace Google.Protobuf.Examples.AddressBook {
return
new
AddressBook
(
this
);
return
new
AddressBook
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
people_
.
Freeze
();
}
public
const
int
PeopleFieldNumber
=
1
;
public
const
int
PeopleFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>
_repeated_people_codec
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>
_repeated_people_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Parser
);
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Parser
);
...
...
csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
View file @
7ec023ac
...
@@ -216,30 +216,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -216,30 +216,6 @@ namespace Google.Protobuf.TestProtos {
return
new
TestMap
(
this
);
return
new
TestMap
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
mapInt32Int32_
.
Freeze
();
mapInt64Int64_
.
Freeze
();
mapUint32Uint32_
.
Freeze
();
mapUint64Uint64_
.
Freeze
();
mapSint32Sint32_
.
Freeze
();
mapSint64Sint64_
.
Freeze
();
mapFixed32Fixed32_
.
Freeze
();
mapFixed64Fixed64_
.
Freeze
();
mapSfixed32Sfixed32_
.
Freeze
();
mapSfixed64Sfixed64_
.
Freeze
();
mapInt32Float_
.
Freeze
();
mapInt32Double_
.
Freeze
();
mapBoolBool_
.
Freeze
();
mapStringString_
.
Freeze
();
mapInt32Bytes_
.
Freeze
();
mapInt32Enum_
.
Freeze
();
mapInt32ForeignMessage_
.
Freeze
();
}
public
const
int
MapInt32Int32FieldNumber
=
1
;
public
const
int
MapInt32Int32FieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_mapInt32Int32_codec
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_mapInt32Int32_codec
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
...
@@ -613,20 +589,11 @@ namespace Google.Protobuf.TestProtos {
...
@@ -613,20 +589,11 @@ namespace Google.Protobuf.TestProtos {
return
new
TestMapSubmessage
(
this
);
return
new
TestMapSubmessage
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
if
(
testMap_
!=
null
)
TestMap
.
Freeze
();
}
public
const
int
TestMapFieldNumber
=
1
;
public
const
int
TestMapFieldNumber
=
1
;
private
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
testMap_
;
private
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
testMap_
;
public
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
TestMap
{
public
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
TestMap
{
get
{
return
testMap_
;
}
get
{
return
testMap_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
testMap_
=
value
;
testMap_
=
value
;
}
}
}
}
...
@@ -737,14 +704,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -737,14 +704,6 @@ namespace Google.Protobuf.TestProtos {
return
new
TestMessageMap
(
this
);
return
new
TestMessageMap
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
mapInt32Message_
.
Freeze
();
}
public
const
int
MapInt32MessageFieldNumber
=
1
;
public
const
int
MapInt32MessageFieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
>.
Codec
_map_mapInt32Message_codec
private
static
readonly
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
>.
Codec
_map_mapInt32Message_codec
=
new
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Parser
),
10
);
=
new
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Parser
),
10
);
...
@@ -847,15 +806,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -847,15 +806,6 @@ namespace Google.Protobuf.TestProtos {
return
new
TestSameTypeMap
(
this
);
return
new
TestSameTypeMap
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
map1_
.
Freeze
();
map2_
.
Freeze
();
}
public
const
int
Map1FieldNumber
=
1
;
public
const
int
Map1FieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_map1_codec
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_map1_codec
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
...
@@ -988,28 +938,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -988,28 +938,6 @@ namespace Google.Protobuf.TestProtos {
return
new
TestArenaMap
(
this
);
return
new
TestArenaMap
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
mapInt32Int32_
.
Freeze
();
mapInt64Int64_
.
Freeze
();
mapUint32Uint32_
.
Freeze
();
mapUint64Uint64_
.
Freeze
();
mapSint32Sint32_
.
Freeze
();
mapSint64Sint64_
.
Freeze
();
mapFixed32Fixed32_
.
Freeze
();
mapFixed64Fixed64_
.
Freeze
();
mapSfixed32Sfixed32_
.
Freeze
();
mapSfixed64Sfixed64_
.
Freeze
();
mapInt32Float_
.
Freeze
();
mapInt32Double_
.
Freeze
();
mapBoolBool_
.
Freeze
();
mapInt32Enum_
.
Freeze
();
mapInt32ForeignMessage_
.
Freeze
();
}
public
const
int
MapInt32Int32FieldNumber
=
1
;
public
const
int
MapInt32Int32FieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_mapInt32Int32_codec
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_mapInt32Int32_codec
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
...
@@ -1349,14 +1277,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -1349,14 +1277,6 @@ namespace Google.Protobuf.TestProtos {
return
new
MessageContainingEnumCalledType
(
this
);
return
new
MessageContainingEnumCalledType
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
type_
.
Freeze
();
}
public
const
int
TypeFieldNumber
=
1
;
public
const
int
TypeFieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
>.
Codec
_map_type_codec
private
static
readonly
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
>.
Codec
_map_type_codec
=
new
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Parser
),
10
);
=
new
pbc
::
MapField
<
int
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Parser
),
10
);
...
@@ -1468,14 +1388,6 @@ namespace Google.Protobuf.TestProtos {
...
@@ -1468,14 +1388,6 @@ namespace Google.Protobuf.TestProtos {
return
new
MessageContainingMapCalledEntry
(
this
);
return
new
MessageContainingMapCalledEntry
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
entry_
.
Freeze
();
}
public
const
int
EntryFieldNumber
=
1
;
public
const
int
EntryFieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_entry_codec
private
static
readonly
pbc
::
MapField
<
int
,
int
>.
Codec
_map_entry_codec
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
=
new
pbc
::
MapField
<
int
,
int
>.
Codec
(
pb
::
FieldCodec
.
ForInt32
(
8
),
pb
::
FieldCodec
.
ForInt32
(
16
),
10
);
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
View file @
7ec023ac
...
@@ -79,19 +79,11 @@ namespace Google.Protobuf.TestProtos {
...
@@ -79,19 +79,11 @@ namespace Google.Protobuf.TestProtos {
return
new
ImportMessage
(
this
);
return
new
ImportMessage
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
DFieldNumber
=
1
;
public
const
int
DFieldNumber
=
1
;
private
int
d_
;
private
int
d_
;
public
int
D
{
public
int
D
{
get
{
return
d_
;
}
get
{
return
d_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
d_
=
value
;
d_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
View file @
7ec023ac
...
@@ -65,19 +65,11 @@ namespace Google.Protobuf.TestProtos {
...
@@ -65,19 +65,11 @@ namespace Google.Protobuf.TestProtos {
return
new
PublicImportMessage
(
this
);
return
new
PublicImportMessage
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
EFieldNumber
=
1
;
public
const
int
EFieldNumber
=
1
;
private
int
e_
;
private
int
e_
;
public
int
E
{
public
int
E
{
get
{
return
e_
;
}
get
{
return
e_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
e_
=
value
;
e_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
View file @
7ec023ac
...
@@ -96,13 +96,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -96,13 +96,6 @@ namespace UnitTest.Issues.TestProtos {
return
new
Issue307
(
this
);
return
new
Issue307
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
override
bool
Equals
(
object
other
)
{
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
Issue307
);
return
Equals
(
other
as
Issue307
);
}
}
...
@@ -187,13 +180,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -187,13 +180,6 @@ namespace UnitTest.Issues.TestProtos {
return
new
NestedOnce
(
this
);
return
new
NestedOnce
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
override
bool
Equals
(
object
other
)
{
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
NestedOnce
);
return
Equals
(
other
as
NestedOnce
);
}
}
...
@@ -278,13 +264,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -278,13 +264,6 @@ namespace UnitTest.Issues.TestProtos {
return
new
NestedTwice
(
this
);
return
new
NestedTwice
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
override
bool
Equals
(
object
other
)
{
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
NestedTwice
);
return
Equals
(
other
as
NestedTwice
);
}
}
...
@@ -381,21 +360,11 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -381,21 +360,11 @@ namespace UnitTest.Issues.TestProtos {
return
new
NegativeEnumMessage
(
this
);
return
new
NegativeEnumMessage
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
values_
.
Freeze
();
packedValues_
.
Freeze
();
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
value_
=
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
.
NEGATIVE_ENUM_ZERO
;
private
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
value_
=
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
.
NEGATIVE_ENUM_ZERO
;
public
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
Value
{
public
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -535,13 +504,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -535,13 +504,6 @@ namespace UnitTest.Issues.TestProtos {
return
new
DeprecatedChild
(
this
);
return
new
DeprecatedChild
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
override
bool
Equals
(
object
other
)
{
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
DeprecatedChild
);
return
Equals
(
other
as
DeprecatedChild
);
}
}
...
@@ -631,24 +593,12 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -631,24 +593,12 @@ namespace UnitTest.Issues.TestProtos {
return
new
DeprecatedFieldsMessage
(
this
);
return
new
DeprecatedFieldsMessage
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
primitiveArray_
.
Freeze
();
if
(
messageValue_
!=
null
)
MessageValue
.
Freeze
();
messageArray_
.
Freeze
();
enumArray_
.
Freeze
();
}
public
const
int
PrimitiveValueFieldNumber
=
1
;
public
const
int
PrimitiveValueFieldNumber
=
1
;
private
int
primitiveValue_
;
private
int
primitiveValue_
;
[
global
::
System
.
ObsoleteAttribute
()]
[
global
::
System
.
ObsoleteAttribute
()]
public
int
PrimitiveValue
{
public
int
PrimitiveValue
{
get
{
return
primitiveValue_
;
}
get
{
return
primitiveValue_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
primitiveValue_
=
value
;
primitiveValue_
=
value
;
}
}
}
}
...
@@ -668,7 +618,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -668,7 +618,6 @@ namespace UnitTest.Issues.TestProtos {
public
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
MessageValue
{
public
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
MessageValue
{
get
{
return
messageValue_
;
}
get
{
return
messageValue_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
messageValue_
=
value
;
messageValue_
=
value
;
}
}
}
}
...
@@ -688,7 +637,6 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -688,7 +637,6 @@ namespace UnitTest.Issues.TestProtos {
public
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedEnum
EnumValue
{
public
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedEnum
EnumValue
{
get
{
return
enumValue_
;
}
get
{
return
enumValue_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
enumValue_
=
value
;
enumValue_
=
value
;
}
}
}
}
...
@@ -869,19 +817,11 @@ namespace UnitTest.Issues.TestProtos {
...
@@ -869,19 +817,11 @@ namespace UnitTest.Issues.TestProtos {
return
new
ItemField
(
this
);
return
new
ItemField
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ItemFieldNumber
=
1
;
public
const
int
ItemFieldNumber
=
1
;
private
int
item_
;
private
int
item_
;
public
int
Item
{
public
int
Item
{
get
{
return
item_
;
}
get
{
return
item_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
item_
=
value
;
item_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
7ec023ac
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
View file @
7ec023ac
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
View file @
7ec023ac
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
View file @
7ec023ac
...
@@ -69,19 +69,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -69,19 +69,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Any
(
this
);
return
new
Any
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
TypeUrlFieldNumber
=
1
;
public
const
int
TypeUrlFieldNumber
=
1
;
private
string
typeUrl_
=
""
;
private
string
typeUrl_
=
""
;
public
string
TypeUrl
{
public
string
TypeUrl
{
get
{
return
typeUrl_
;
}
get
{
return
typeUrl_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
typeUrl_
=
value
??
""
;
typeUrl_
=
value
??
""
;
}
}
}
}
...
@@ -91,7 +83,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -91,7 +83,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
pb
::
ByteString
Value
{
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
??
pb
::
ByteString
.
Empty
;
value_
=
value
??
pb
::
ByteString
.
Empty
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
View file @
7ec023ac
...
@@ -82,22 +82,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -82,22 +82,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Api
(
this
);
return
new
Api
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
methods_
.
Freeze
();
options_
.
Freeze
();
if
(
sourceContext_
!=
null
)
SourceContext
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -123,7 +112,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -123,7 +112,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Version
{
public
string
Version
{
get
{
return
version_
;
}
get
{
return
version_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
version_
=
value
??
""
;
version_
=
value
??
""
;
}
}
}
}
...
@@ -133,7 +121,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -133,7 +121,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
get
{
return
sourceContext_
;
}
get
{
return
sourceContext_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
sourceContext_
=
value
;
sourceContext_
=
value
;
}
}
}
}
...
@@ -299,20 +286,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -299,20 +286,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Method
(
this
);
return
new
Method
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
options_
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -322,7 +300,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -322,7 +300,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
RequestTypeUrl
{
public
string
RequestTypeUrl
{
get
{
return
requestTypeUrl_
;
}
get
{
return
requestTypeUrl_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
requestTypeUrl_
=
value
??
""
;
requestTypeUrl_
=
value
??
""
;
}
}
}
}
...
@@ -332,7 +309,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -332,7 +309,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
bool
RequestStreaming
{
public
bool
RequestStreaming
{
get
{
return
requestStreaming_
;
}
get
{
return
requestStreaming_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
requestStreaming_
=
value
;
requestStreaming_
=
value
;
}
}
}
}
...
@@ -342,7 +318,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -342,7 +318,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
ResponseTypeUrl
{
public
string
ResponseTypeUrl
{
get
{
return
responseTypeUrl_
;
}
get
{
return
responseTypeUrl_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
responseTypeUrl_
=
value
??
""
;
responseTypeUrl_
=
value
??
""
;
}
}
}
}
...
@@ -352,7 +327,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -352,7 +327,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
bool
ResponseStreaming
{
public
bool
ResponseStreaming
{
get
{
return
responseStreaming_
;
}
get
{
return
responseStreaming_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
responseStreaming_
=
value
;
responseStreaming_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
View file @
7ec023ac
...
@@ -70,19 +70,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -70,19 +70,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Duration
(
this
);
return
new
Duration
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
SecondsFieldNumber
=
1
;
public
const
int
SecondsFieldNumber
=
1
;
private
long
seconds_
;
private
long
seconds_
;
public
long
Seconds
{
public
long
Seconds
{
get
{
return
seconds_
;
}
get
{
return
seconds_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
seconds_
=
value
;
seconds_
=
value
;
}
}
}
}
...
@@ -92,7 +84,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -92,7 +84,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
int
Nanos
{
public
int
Nanos
{
get
{
return
nanos_
;
}
get
{
return
nanos_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
nanos_
=
value
;
nanos_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
View file @
7ec023ac
...
@@ -67,13 +67,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -67,13 +67,6 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Empty
(
this
);
return
new
Empty
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
override
bool
Equals
(
object
other
)
{
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
Empty
);
return
Equals
(
other
as
Empty
);
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
View file @
7ec023ac
...
@@ -68,14 +68,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -68,14 +68,6 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
FieldMask
(
this
);
return
new
FieldMask
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
paths_
.
Freeze
();
}
public
const
int
PathsFieldNumber
=
1
;
public
const
int
PathsFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_paths_codec
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_paths_codec
=
pb
::
FieldCodec
.
ForString
(
10
);
=
pb
::
FieldCodec
.
ForString
(
10
);
...
...
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
View file @
7ec023ac
...
@@ -69,19 +69,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -69,19 +69,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
SourceContext
(
this
);
return
new
SourceContext
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
FileNameFieldNumber
=
1
;
public
const
int
FileNameFieldNumber
=
1
;
private
string
fileName_
=
""
;
private
string
fileName_
=
""
;
public
string
FileName
{
public
string
FileName
{
get
{
return
fileName_
;
}
get
{
return
fileName_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
fileName_
=
value
??
""
;
fileName_
=
value
??
""
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
7ec023ac
...
@@ -87,14 +87,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -87,14 +87,6 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Struct
(
this
);
return
new
Struct
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
fields_
.
Freeze
();
}
public
const
int
FieldsFieldNumber
=
1
;
public
const
int
FieldsFieldNumber
=
1
;
private
static
readonly
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
_map_fields_codec
private
static
readonly
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
_map_fields_codec
=
new
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
(
pb
::
FieldCodec
.
ForString
(
10
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
),
10
);
=
new
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
(
pb
::
FieldCodec
.
ForString
(
10
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
),
10
);
...
@@ -216,19 +208,10 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -216,19 +208,10 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Value
(
this
);
return
new
Value
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
if
(
kind_
is
IFreezable
)
((
IFreezable
)
kind_
).
Freeze
();
}
public
const
int
NullValueFieldNumber
=
1
;
public
const
int
NullValueFieldNumber
=
1
;
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
NullValue
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
NullValue
{
get
{
return
kindCase_
==
KindOneofCase
.
NullValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
)
kind_
:
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
.
NULL_VALUE
;
}
get
{
return
kindCase_
==
KindOneofCase
.
NullValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
)
kind_
:
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
.
NULL_VALUE
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
kindCase_
=
KindOneofCase
.
NullValue
;
kindCase_
=
KindOneofCase
.
NullValue
;
}
}
...
@@ -238,7 +221,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -238,7 +221,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
double
NumberValue
{
public
double
NumberValue
{
get
{
return
kindCase_
==
KindOneofCase
.
NumberValue
?
(
double
)
kind_
:
0D
;
}
get
{
return
kindCase_
==
KindOneofCase
.
NumberValue
?
(
double
)
kind_
:
0D
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
kindCase_
=
KindOneofCase
.
NumberValue
;
kindCase_
=
KindOneofCase
.
NumberValue
;
}
}
...
@@ -248,7 +230,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -248,7 +230,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
StringValue
{
public
string
StringValue
{
get
{
return
kindCase_
==
KindOneofCase
.
StringValue
?
(
string
)
kind_
:
""
;
}
get
{
return
kindCase_
==
KindOneofCase
.
StringValue
?
(
string
)
kind_
:
""
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
??
""
;
kind_
=
value
??
""
;
kindCase_
=
KindOneofCase
.
StringValue
;
kindCase_
=
KindOneofCase
.
StringValue
;
}
}
...
@@ -258,7 +239,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -258,7 +239,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
bool
BoolValue
{
public
bool
BoolValue
{
get
{
return
kindCase_
==
KindOneofCase
.
BoolValue
?
(
bool
)
kind_
:
false
;
}
get
{
return
kindCase_
==
KindOneofCase
.
BoolValue
?
(
bool
)
kind_
:
false
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
kindCase_
=
KindOneofCase
.
BoolValue
;
kindCase_
=
KindOneofCase
.
BoolValue
;
}
}
...
@@ -268,7 +248,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -268,7 +248,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
StructValue
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
StructValue
{
get
{
return
kindCase_
==
KindOneofCase
.
StructValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
)
kind_
:
null
;
}
get
{
return
kindCase_
==
KindOneofCase
.
StructValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
)
kind_
:
null
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
kindCase_
=
value
==
null
?
KindOneofCase
.
None
:
KindOneofCase
.
StructValue
;
kindCase_
=
value
==
null
?
KindOneofCase
.
None
:
KindOneofCase
.
StructValue
;
}
}
...
@@ -278,7 +257,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -278,7 +257,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
ListValue
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
ListValue
{
get
{
return
kindCase_
==
KindOneofCase
.
ListValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
)
kind_
:
null
;
}
get
{
return
kindCase_
==
KindOneofCase
.
ListValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
)
kind_
:
null
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
kindCase_
=
value
==
null
?
KindOneofCase
.
None
:
KindOneofCase
.
ListValue
;
kindCase_
=
value
==
null
?
KindOneofCase
.
None
:
KindOneofCase
.
ListValue
;
}
}
...
@@ -300,7 +278,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -300,7 +278,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
}
public
void
ClearKind
()
{
public
void
ClearKind
()
{
pb
::
Freezable
.
CheckMutable
(
this
);
kindCase_
=
KindOneofCase
.
None
;
kindCase_
=
KindOneofCase
.
None
;
kind_
=
null
;
kind_
=
null
;
}
}
...
@@ -499,14 +476,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -499,14 +476,6 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
ListValue
(
this
);
return
new
ListValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
values_
.
Freeze
();
}
public
const
int
ValuesFieldNumber
=
1
;
public
const
int
ValuesFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
_repeated_values_codec
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
_repeated_values_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
);
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
);
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
View file @
7ec023ac
...
@@ -70,19 +70,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -70,19 +70,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Timestamp
(
this
);
return
new
Timestamp
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
SecondsFieldNumber
=
1
;
public
const
int
SecondsFieldNumber
=
1
;
private
long
seconds_
;
private
long
seconds_
;
public
long
Seconds
{
public
long
Seconds
{
get
{
return
seconds_
;
}
get
{
return
seconds_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
seconds_
=
value
;
seconds_
=
value
;
}
}
}
}
...
@@ -92,7 +84,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -92,7 +84,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
int
Nanos
{
public
int
Nanos
{
get
{
return
nanos_
;
}
get
{
return
nanos_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
nanos_
=
value
;
nanos_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
View file @
7ec023ac
...
@@ -103,23 +103,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -103,23 +103,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Type
(
this
);
return
new
Type
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
fields_
.
Freeze
();
oneofs_
.
Freeze
();
options_
.
Freeze
();
if
(
sourceContext_
!=
null
)
SourceContext
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -153,7 +141,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -153,7 +141,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
get
{
return
sourceContext_
;
}
get
{
return
sourceContext_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
sourceContext_
=
value
;
sourceContext_
=
value
;
}
}
}
}
...
@@ -314,20 +301,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -314,20 +301,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Field
(
this
);
return
new
Field
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
options_
.
Freeze
();
}
public
const
int
KindFieldNumber
=
1
;
public
const
int
KindFieldNumber
=
1
;
private
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
kind_
=
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
.
TYPE_UNKNOWN
;
private
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
kind_
=
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
.
TYPE_UNKNOWN
;
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
Kind
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
Kind
{
get
{
return
kind_
;
}
get
{
return
kind_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
kind_
=
value
;
kind_
=
value
;
}
}
}
}
...
@@ -337,7 +315,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -337,7 +315,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Cardinality
Cardinality
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Cardinality
Cardinality
{
get
{
return
cardinality_
;
}
get
{
return
cardinality_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
cardinality_
=
value
;
cardinality_
=
value
;
}
}
}
}
...
@@ -347,7 +324,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -347,7 +324,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
int
Number
{
public
int
Number
{
get
{
return
number_
;
}
get
{
return
number_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
number_
=
value
;
number_
=
value
;
}
}
}
}
...
@@ -357,7 +333,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -357,7 +333,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -367,7 +342,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -367,7 +342,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
TypeUrl
{
public
string
TypeUrl
{
get
{
return
typeUrl_
;
}
get
{
return
typeUrl_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
typeUrl_
=
value
??
""
;
typeUrl_
=
value
??
""
;
}
}
}
}
...
@@ -377,7 +351,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -377,7 +351,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
int
OneofIndex
{
public
int
OneofIndex
{
get
{
return
oneofIndex_
;
}
get
{
return
oneofIndex_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
oneofIndex_
=
value
;
oneofIndex_
=
value
;
}
}
}
}
...
@@ -387,7 +360,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -387,7 +360,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
bool
Packed
{
public
bool
Packed
{
get
{
return
packed_
;
}
get
{
return
packed_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
packed_
=
value
;
packed_
=
value
;
}
}
}
}
...
@@ -642,22 +614,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -642,22 +614,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Enum
(
this
);
return
new
Enum
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
enumvalue_
.
Freeze
();
options_
.
Freeze
();
if
(
sourceContext_
!=
null
)
SourceContext
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -683,7 +644,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -683,7 +644,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
get
{
return
sourceContext_
;
}
get
{
return
sourceContext_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
sourceContext_
=
value
;
sourceContext_
=
value
;
}
}
}
}
...
@@ -830,20 +790,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -830,20 +790,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
EnumValue
(
this
);
return
new
EnumValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
options_
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -853,7 +804,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -853,7 +804,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
int
Number
{
public
int
Number
{
get
{
return
number_
;
}
get
{
return
number_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
number_
=
value
;
number_
=
value
;
}
}
}
}
...
@@ -992,20 +942,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -992,20 +942,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Option
(
this
);
return
new
Option
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
if
(
value_
!=
null
)
Value
.
Freeze
();
}
public
const
int
NameFieldNumber
=
1
;
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
private
string
name_
=
""
;
public
string
Name
{
public
string
Name
{
get
{
return
name_
;
}
get
{
return
name_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
name_
=
value
??
""
;
name_
=
value
??
""
;
}
}
}
}
...
@@ -1015,7 +956,6 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -1015,7 +956,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
Value
{
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
View file @
7ec023ac
...
@@ -78,19 +78,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -78,19 +78,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
DoubleValue
(
this
);
return
new
DoubleValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
double
value_
;
private
double
value_
;
public
double
Value
{
public
double
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -195,19 +187,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -195,19 +187,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
FloatValue
(
this
);
return
new
FloatValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
float
value_
;
private
float
value_
;
public
float
Value
{
public
float
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -312,19 +296,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -312,19 +296,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Int64Value
(
this
);
return
new
Int64Value
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
long
value_
;
private
long
value_
;
public
long
Value
{
public
long
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -429,19 +405,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -429,19 +405,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
UInt64Value
(
this
);
return
new
UInt64Value
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
ulong
value_
;
private
ulong
value_
;
public
ulong
Value
{
public
ulong
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -546,19 +514,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -546,19 +514,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
Int32Value
(
this
);
return
new
Int32Value
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
int
value_
;
private
int
value_
;
public
int
Value
{
public
int
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -663,19 +623,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -663,19 +623,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
UInt32Value
(
this
);
return
new
UInt32Value
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
uint
value_
;
private
uint
value_
;
public
uint
Value
{
public
uint
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -780,19 +732,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -780,19 +732,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
BoolValue
(
this
);
return
new
BoolValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
bool
value_
;
private
bool
value_
;
public
bool
Value
{
public
bool
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
;
value_
=
value
;
}
}
}
}
...
@@ -897,19 +841,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -897,19 +841,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
StringValue
(
this
);
return
new
StringValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
string
value_
=
""
;
private
string
value_
=
""
;
public
string
Value
{
public
string
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
??
""
;
value_
=
value
??
""
;
}
}
}
}
...
@@ -1014,19 +950,11 @@ namespace Google.Protobuf.WellKnownTypes {
...
@@ -1014,19 +950,11 @@ namespace Google.Protobuf.WellKnownTypes {
return
new
BytesValue
(
this
);
return
new
BytesValue
(
this
);
}
}
public
void
Freeze
()
{
if
(
IsFrozen
)
{
return
;
}
_frozen
=
true
;
}
public
const
int
ValueFieldNumber
=
1
;
public
const
int
ValueFieldNumber
=
1
;
private
pb
::
ByteString
value_
=
pb
::
ByteString
.
Empty
;
private
pb
::
ByteString
value_
=
pb
::
ByteString
.
Empty
;
public
pb
::
ByteString
Value
{
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
get
{
return
value_
;
}
set
{
set
{
pb
::
Freezable
.
CheckMutable
(
this
);
value_
=
value
??
pb
::
ByteString
.
Empty
;
value_
=
value
??
pb
::
ByteString
.
Empty
;
}
}
}
}
...
...
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