OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/struct.proto | 2 // source: google/protobuf/struct.proto |
3 #pragma warning disable 1591, 0612, 3021 | 3 #pragma warning disable 1591, 0612, 3021 |
4 #region Designer generated code | 4 #region Designer generated code |
5 | 5 |
6 using pb = global::Google.Protobuf; | 6 using pb = global::Google.Protobuf; |
7 using pbc = global::Google.Protobuf.Collections; | 7 using pbc = global::Google.Protobuf.Collections; |
8 using pbr = global::Google.Protobuf.Reflection; | 8 using pbr = global::Google.Protobuf.Reflection; |
9 using scg = global::System.Collections.Generic; | 9 using scg = global::System.Collections.Generic; |
10 namespace Google.Protobuf.WellKnownTypes { | 10 namespace Google.Protobuf.WellKnownTypes { |
11 | 11 |
12 /// <summary>Holder for reflection information generated from google/protobuf/
struct.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
struct.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
13 public static partial class StructReflection { | 14 public static partial class StructReflection { |
14 | 15 |
15 #region Descriptor | 16 #region Descriptor |
16 /// <summary>File descriptor for google/protobuf/struct.proto</summary> | 17 /// <summary>File descriptor for google/protobuf/struct.proto</summary> |
17 public static pbr::FileDescriptor Descriptor { | 18 public static pbr::FileDescriptor Descriptor { |
18 get { return descriptor; } | 19 get { return descriptor; } |
19 } | 20 } |
20 private static pbr::FileDescriptor descriptor; | 21 private static pbr::FileDescriptor descriptor; |
21 | 22 |
22 static StructReflection() { | 23 static StructReflection() { |
23 byte[] descriptorData = global::System.Convert.FromBase64String( | 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
24 string.Concat( | 25 string.Concat( |
25 "Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i", | 26 "Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i", |
26 "dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i", | 27 "dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i", |
27 "dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB", | 28 "dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB", |
28 "IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC", | 29 "IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC", |
29 "OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv", | 30 "OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv", |
30 "dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM", | 31 "dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM", |
31 "c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K", | 32 "c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K", |
32 "DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI", | 33 "DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI", |
33 "ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW", | 34 "ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW", |
34 "YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW", | 35 "YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW", |
35 "Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W", | 36 "Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W", |
36 "QUxVRRAAQoEBChNjb20uZ29vZ2xlLnByb3RvYnVmQgtTdHJ1Y3RQcm90b1AB", | 37 "QUxVRRAAQoEBChNjb20uZ29vZ2xlLnByb3RvYnVmQgtTdHJ1Y3RQcm90b1AB", |
37 "WjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wdHlwZXMvc3RydWN0O3N0", | 38 "WjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wdHlwZXMvc3RydWN0O3N0", |
38 "cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5", | 39 "cnVjdHBioAEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5", |
39 "cGVzYgZwcm90bzM=")); | 40 "cGVzYgZwcm90bzM=")); |
40 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | 41 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
41 new pbr::FileDescriptor[] { }, | 42 new pbr::FileDescriptor[] { }, |
42 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.We
llKnownTypes.NullValue), }, new pbr::GeneratedClrTypeInfo[] { | 43 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.We
llKnownTypes.NullValue), }, new pbr::GeneratedClrTypeInfo[] { |
43 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Struct), global::Google.Protobuf.WellKnownTypes.Struct.Parser, new[]{ "F
ields" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), | 44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Struct), global::Google.Protobuf.WellKnownTypes.Struct.Parser, new[]{ "F
ields" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), |
44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Value), global::Google.Protobuf.WellKnownTypes.Value.Parser, new[]{ "Nul
lValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue" }
, new[]{ "Kind" }, null, null), | 45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Value), global::Google.Protobuf.WellKnownTypes.Value.Parser, new[]{ "Nul
lValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue" }
, new[]{ "Kind" }, null, null), |
45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.ListValue), global::Google.Protobuf.WellKnownTypes.ListValue.Parser, new
[]{ "Values" }, null, null, null) | 46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.ListValue), global::Google.Protobuf.WellKnownTypes.ListValue.Parser, new
[]{ "Values" }, null, null, null) |
46 })); | 47 })); |
47 } | 48 } |
48 #endregion | 49 #endregion |
49 | 50 |
50 } | 51 } |
51 #region Enums | 52 #region Enums |
52 /// <summary> | 53 /// <summary> |
53 /// `NullValue` is a singleton enumeration to represent the null value for the | 54 /// `NullValue` is a singleton enumeration to represent the null value for th
e |
54 /// `Value` type union. | 55 /// `Value` type union. |
55 /// | 56 /// |
56 /// The JSON representation for `NullValue` is JSON `null`. | 57 /// The JSON representation for `NullValue` is JSON `null`. |
57 /// </summary> | 58 /// </summary> |
58 public enum NullValue { | 59 public enum NullValue { |
59 /// <summary> | 60 /// <summary> |
60 /// Null value. | 61 /// Null value. |
61 /// </summary> | 62 /// </summary> |
62 [pbr::OriginalName("NULL_VALUE")] NullValue = 0, | 63 [pbr::OriginalName("NULL_VALUE")] NullValue = 0, |
63 } | 64 } |
64 | 65 |
65 #endregion | 66 #endregion |
66 | 67 |
67 #region Messages | 68 #region Messages |
68 /// <summary> | 69 /// <summary> |
69 /// `Struct` represents a structured data value, consisting of fields | 70 /// `Struct` represents a structured data value, consisting of fields |
70 /// which map to dynamically typed values. In some languages, `Struct` | 71 /// which map to dynamically typed values. In some languages, `Struct` |
71 /// might be supported by a native representation. For example, in | 72 /// might be supported by a native representation. For example, in |
72 /// scripting languages like JS a struct is represented as an | 73 /// scripting languages like JS a struct is represented as an |
73 /// object. The details of that representation are described together | 74 /// object. The details of that representation are described together |
74 /// with the proto support for the language. | 75 /// with the proto support for the language. |
75 /// | 76 /// |
76 /// The JSON representation for `Struct` is JSON object. | 77 /// The JSON representation for `Struct` is JSON object. |
77 /// </summary> | 78 /// </summary> |
| 79 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
78 public sealed partial class Struct : pb::IMessage<Struct> { | 80 public sealed partial class Struct : pb::IMessage<Struct> { |
79 private static readonly pb::MessageParser<Struct> _parser = new pb::MessageP
arser<Struct>(() => new Struct()); | 81 private static readonly pb::MessageParser<Struct> _parser = new pb::MessageP
arser<Struct>(() => new Struct()); |
80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
81 public static pb::MessageParser<Struct> Parser { get { return _parser; } } | 82 public static pb::MessageParser<Struct> Parser { get { return _parser; } } |
82 | 83 |
83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
84 public static pbr::MessageDescriptor Descriptor { | 84 public static pbr::MessageDescriptor Descriptor { |
85 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[0]; } | 85 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[0]; } |
86 } | 86 } |
87 | 87 |
88 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
89 pbr::MessageDescriptor pb::IMessage.Descriptor { | 88 pbr::MessageDescriptor pb::IMessage.Descriptor { |
90 get { return Descriptor; } | 89 get { return Descriptor; } |
91 } | 90 } |
92 | 91 |
93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
94 public Struct() { | 92 public Struct() { |
95 OnConstruction(); | 93 OnConstruction(); |
96 } | 94 } |
97 | 95 |
98 partial void OnConstruction(); | 96 partial void OnConstruction(); |
99 | 97 |
100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
101 public Struct(Struct other) : this() { | 98 public Struct(Struct other) : this() { |
102 fields_ = other.fields_.Clone(); | 99 fields_ = other.fields_.Clone(); |
103 } | 100 } |
104 | 101 |
105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
106 public Struct Clone() { | 102 public Struct Clone() { |
107 return new Struct(this); | 103 return new Struct(this); |
108 } | 104 } |
109 | 105 |
110 /// <summary>Field number for the "fields" field.</summary> | 106 /// <summary>Field number for the "fields" field.</summary> |
111 public const int FieldsFieldNumber = 1; | 107 public const int FieldsFieldNumber = 1; |
112 private static readonly pbc::MapField<string, global::Google.Protobuf.WellKn
ownTypes.Value>.Codec _map_fields_codec | 108 private static readonly pbc::MapField<string, global::Google.Protobuf.WellKn
ownTypes.Value>.Codec _map_fields_codec |
113 = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value
>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Goog
le.Protobuf.WellKnownTypes.Value.Parser), 10); | 109 = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value
>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Goog
le.Protobuf.WellKnownTypes.Value.Parser), 10); |
114 private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownType
s.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTy
pes.Value>(); | 110 private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownType
s.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTy
pes.Value>(); |
115 /// <summary> | 111 /// <summary> |
116 /// Unordered map of dynamically typed values. | 112 /// Unordered map of dynamically typed values. |
117 /// </summary> | 113 /// </summary> |
118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
119 public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> F
ields { | 114 public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> F
ields { |
120 get { return fields_; } | 115 get { return fields_; } |
121 } | 116 } |
122 | 117 |
123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
124 public override bool Equals(object other) { | 118 public override bool Equals(object other) { |
125 return Equals(other as Struct); | 119 return Equals(other as Struct); |
126 } | 120 } |
127 | 121 |
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
129 public bool Equals(Struct other) { | 122 public bool Equals(Struct other) { |
130 if (ReferenceEquals(other, null)) { | 123 if (ReferenceEquals(other, null)) { |
131 return false; | 124 return false; |
132 } | 125 } |
133 if (ReferenceEquals(other, this)) { | 126 if (ReferenceEquals(other, this)) { |
134 return true; | 127 return true; |
135 } | 128 } |
136 if (!Fields.Equals(other.Fields)) return false; | 129 if (!Fields.Equals(other.Fields)) return false; |
137 return true; | 130 return true; |
138 } | 131 } |
139 | 132 |
140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
141 public override int GetHashCode() { | 133 public override int GetHashCode() { |
142 int hash = 1; | 134 int hash = 1; |
143 hash ^= Fields.GetHashCode(); | 135 hash ^= Fields.GetHashCode(); |
144 return hash; | 136 return hash; |
145 } | 137 } |
146 | 138 |
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
148 public override string ToString() { | 139 public override string ToString() { |
149 return pb::JsonFormatter.ToDiagnosticString(this); | 140 return pb::JsonFormatter.ToDiagnosticString(this); |
150 } | 141 } |
151 | 142 |
152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
153 public void WriteTo(pb::CodedOutputStream output) { | 143 public void WriteTo(pb::CodedOutputStream output) { |
154 fields_.WriteTo(output, _map_fields_codec); | 144 fields_.WriteTo(output, _map_fields_codec); |
155 } | 145 } |
156 | 146 |
157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
158 public int CalculateSize() { | 147 public int CalculateSize() { |
159 int size = 0; | 148 int size = 0; |
160 size += fields_.CalculateSize(_map_fields_codec); | 149 size += fields_.CalculateSize(_map_fields_codec); |
161 return size; | 150 return size; |
162 } | 151 } |
163 | 152 |
164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
165 public void MergeFrom(Struct other) { | 153 public void MergeFrom(Struct other) { |
166 if (other == null) { | 154 if (other == null) { |
167 return; | 155 return; |
168 } | 156 } |
169 fields_.Add(other.fields_); | 157 fields_.Add(other.fields_); |
170 } | 158 } |
171 | 159 |
172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
173 public void MergeFrom(pb::CodedInputStream input) { | 160 public void MergeFrom(pb::CodedInputStream input) { |
174 uint tag; | 161 uint tag; |
175 while ((tag = input.ReadTag()) != 0) { | 162 while ((tag = input.ReadTag()) != 0) { |
176 switch(tag) { | 163 switch(tag) { |
177 default: | 164 default: |
178 input.SkipLastField(); | 165 input.SkipLastField(); |
179 break; | 166 break; |
180 case 10: { | 167 case 10: { |
181 fields_.AddEntriesFrom(input, _map_fields_codec); | 168 fields_.AddEntriesFrom(input, _map_fields_codec); |
182 break; | 169 break; |
183 } | 170 } |
184 } | 171 } |
185 } | 172 } |
186 } | 173 } |
187 | 174 |
188 } | 175 } |
189 | 176 |
190 /// <summary> | 177 /// <summary> |
191 /// `Value` represents a dynamically typed value which can be either | 178 /// `Value` represents a dynamically typed value which can be either |
192 /// null, a number, a string, a boolean, a recursive struct value, or a | 179 /// null, a number, a string, a boolean, a recursive struct value, or a |
193 /// list of values. A producer of value is expected to set one of that | 180 /// list of values. A producer of value is expected to set one of that |
194 /// variants, absence of any variant indicates an error. | 181 /// variants, absence of any variant indicates an error. |
195 /// | 182 /// |
196 /// The JSON representation for `Value` is JSON value. | 183 /// The JSON representation for `Value` is JSON value. |
197 /// </summary> | 184 /// </summary> |
| 185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
198 public sealed partial class Value : pb::IMessage<Value> { | 186 public sealed partial class Value : pb::IMessage<Value> { |
199 private static readonly pb::MessageParser<Value> _parser = new pb::MessagePa
rser<Value>(() => new Value()); | 187 private static readonly pb::MessageParser<Value> _parser = new pb::MessagePa
rser<Value>(() => new Value()); |
200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
201 public static pb::MessageParser<Value> Parser { get { return _parser; } } | 188 public static pb::MessageParser<Value> Parser { get { return _parser; } } |
202 | 189 |
203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
204 public static pbr::MessageDescriptor Descriptor { | 190 public static pbr::MessageDescriptor Descriptor { |
205 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[1]; } | 191 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[1]; } |
206 } | 192 } |
207 | 193 |
208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
209 pbr::MessageDescriptor pb::IMessage.Descriptor { | 194 pbr::MessageDescriptor pb::IMessage.Descriptor { |
210 get { return Descriptor; } | 195 get { return Descriptor; } |
211 } | 196 } |
212 | 197 |
213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
214 public Value() { | 198 public Value() { |
215 OnConstruction(); | 199 OnConstruction(); |
216 } | 200 } |
217 | 201 |
218 partial void OnConstruction(); | 202 partial void OnConstruction(); |
219 | 203 |
220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
221 public Value(Value other) : this() { | 204 public Value(Value other) : this() { |
222 switch (other.KindCase) { | 205 switch (other.KindCase) { |
223 case KindOneofCase.NullValue: | 206 case KindOneofCase.NullValue: |
224 NullValue = other.NullValue; | 207 NullValue = other.NullValue; |
225 break; | 208 break; |
226 case KindOneofCase.NumberValue: | 209 case KindOneofCase.NumberValue: |
227 NumberValue = other.NumberValue; | 210 NumberValue = other.NumberValue; |
228 break; | 211 break; |
229 case KindOneofCase.StringValue: | 212 case KindOneofCase.StringValue: |
230 StringValue = other.StringValue; | 213 StringValue = other.StringValue; |
231 break; | 214 break; |
232 case KindOneofCase.BoolValue: | 215 case KindOneofCase.BoolValue: |
233 BoolValue = other.BoolValue; | 216 BoolValue = other.BoolValue; |
234 break; | 217 break; |
235 case KindOneofCase.StructValue: | 218 case KindOneofCase.StructValue: |
236 StructValue = other.StructValue.Clone(); | 219 StructValue = other.StructValue.Clone(); |
237 break; | 220 break; |
238 case KindOneofCase.ListValue: | 221 case KindOneofCase.ListValue: |
239 ListValue = other.ListValue.Clone(); | 222 ListValue = other.ListValue.Clone(); |
240 break; | 223 break; |
241 } | 224 } |
242 | 225 |
243 } | 226 } |
244 | 227 |
245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
246 public Value Clone() { | 228 public Value Clone() { |
247 return new Value(this); | 229 return new Value(this); |
248 } | 230 } |
249 | 231 |
250 /// <summary>Field number for the "null_value" field.</summary> | 232 /// <summary>Field number for the "null_value" field.</summary> |
251 public const int NullValueFieldNumber = 1; | 233 public const int NullValueFieldNumber = 1; |
252 /// <summary> | 234 /// <summary> |
253 /// Represents a null value. | 235 /// Represents a null value. |
254 /// </summary> | 236 /// </summary> |
255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
256 public global::Google.Protobuf.WellKnownTypes.NullValue NullValue { | 237 public global::Google.Protobuf.WellKnownTypes.NullValue NullValue { |
257 get { return kindCase_ == KindOneofCase.NullValue ? (global::Google.Protob
uf.WellKnownTypes.NullValue) kind_ : 0; } | 238 get { return kindCase_ == KindOneofCase.NullValue ? (global::Google.Protob
uf.WellKnownTypes.NullValue) kind_ : 0; } |
258 set { | 239 set { |
259 kind_ = value; | 240 kind_ = value; |
260 kindCase_ = KindOneofCase.NullValue; | 241 kindCase_ = KindOneofCase.NullValue; |
261 } | 242 } |
262 } | 243 } |
263 | 244 |
264 /// <summary>Field number for the "number_value" field.</summary> | 245 /// <summary>Field number for the "number_value" field.</summary> |
265 public const int NumberValueFieldNumber = 2; | 246 public const int NumberValueFieldNumber = 2; |
266 /// <summary> | 247 /// <summary> |
267 /// Represents a double value. | 248 /// Represents a double value. |
268 /// </summary> | 249 /// </summary> |
269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
270 public double NumberValue { | 250 public double NumberValue { |
271 get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D;
} | 251 get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D;
} |
272 set { | 252 set { |
273 kind_ = value; | 253 kind_ = value; |
274 kindCase_ = KindOneofCase.NumberValue; | 254 kindCase_ = KindOneofCase.NumberValue; |
275 } | 255 } |
276 } | 256 } |
277 | 257 |
278 /// <summary>Field number for the "string_value" field.</summary> | 258 /// <summary>Field number for the "string_value" field.</summary> |
279 public const int StringValueFieldNumber = 3; | 259 public const int StringValueFieldNumber = 3; |
280 /// <summary> | 260 /// <summary> |
281 /// Represents a string value. | 261 /// Represents a string value. |
282 /// </summary> | 262 /// </summary> |
283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
284 public string StringValue { | 263 public string StringValue { |
285 get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : "";
} | 264 get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : "";
} |
286 set { | 265 set { |
287 kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 266 kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
288 kindCase_ = KindOneofCase.StringValue; | 267 kindCase_ = KindOneofCase.StringValue; |
289 } | 268 } |
290 } | 269 } |
291 | 270 |
292 /// <summary>Field number for the "bool_value" field.</summary> | 271 /// <summary>Field number for the "bool_value" field.</summary> |
293 public const int BoolValueFieldNumber = 4; | 272 public const int BoolValueFieldNumber = 4; |
294 /// <summary> | 273 /// <summary> |
295 /// Represents a boolean value. | 274 /// Represents a boolean value. |
296 /// </summary> | 275 /// </summary> |
297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
298 public bool BoolValue { | 276 public bool BoolValue { |
299 get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false;
} | 277 get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false;
} |
300 set { | 278 set { |
301 kind_ = value; | 279 kind_ = value; |
302 kindCase_ = KindOneofCase.BoolValue; | 280 kindCase_ = KindOneofCase.BoolValue; |
303 } | 281 } |
304 } | 282 } |
305 | 283 |
306 /// <summary>Field number for the "struct_value" field.</summary> | 284 /// <summary>Field number for the "struct_value" field.</summary> |
307 public const int StructValueFieldNumber = 5; | 285 public const int StructValueFieldNumber = 5; |
308 /// <summary> | 286 /// <summary> |
309 /// Represents a structured value. | 287 /// Represents a structured value. |
310 /// </summary> | 288 /// </summary> |
311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
312 public global::Google.Protobuf.WellKnownTypes.Struct StructValue { | 289 public global::Google.Protobuf.WellKnownTypes.Struct StructValue { |
313 get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Prot
obuf.WellKnownTypes.Struct) kind_ : null; } | 290 get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Prot
obuf.WellKnownTypes.Struct) kind_ : null; } |
314 set { | 291 set { |
315 kind_ = value; | 292 kind_ = value; |
316 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructVal
ue; | 293 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructVal
ue; |
317 } | 294 } |
318 } | 295 } |
319 | 296 |
320 /// <summary>Field number for the "list_value" field.</summary> | 297 /// <summary>Field number for the "list_value" field.</summary> |
321 public const int ListValueFieldNumber = 6; | 298 public const int ListValueFieldNumber = 6; |
322 /// <summary> | 299 /// <summary> |
323 /// Represents a repeated `Value`. | 300 /// Represents a repeated `Value`. |
324 /// </summary> | 301 /// </summary> |
325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
326 public global::Google.Protobuf.WellKnownTypes.ListValue ListValue { | 302 public global::Google.Protobuf.WellKnownTypes.ListValue ListValue { |
327 get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protob
uf.WellKnownTypes.ListValue) kind_ : null; } | 303 get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protob
uf.WellKnownTypes.ListValue) kind_ : null; } |
328 set { | 304 set { |
329 kind_ = value; | 305 kind_ = value; |
330 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue
; | 306 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue
; |
331 } | 307 } |
332 } | 308 } |
333 | 309 |
334 private object kind_; | 310 private object kind_; |
335 /// <summary>Enum of possible cases for the "kind" oneof.</summary> | 311 /// <summary>Enum of possible cases for the "kind" oneof.</summary> |
336 public enum KindOneofCase { | 312 public enum KindOneofCase { |
337 None = 0, | 313 None = 0, |
338 NullValue = 1, | 314 NullValue = 1, |
339 NumberValue = 2, | 315 NumberValue = 2, |
340 StringValue = 3, | 316 StringValue = 3, |
341 BoolValue = 4, | 317 BoolValue = 4, |
342 StructValue = 5, | 318 StructValue = 5, |
343 ListValue = 6, | 319 ListValue = 6, |
344 } | 320 } |
345 private KindOneofCase kindCase_ = KindOneofCase.None; | 321 private KindOneofCase kindCase_ = KindOneofCase.None; |
346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
347 public KindOneofCase KindCase { | 322 public KindOneofCase KindCase { |
348 get { return kindCase_; } | 323 get { return kindCase_; } |
349 } | 324 } |
350 | 325 |
351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
352 public void ClearKind() { | 326 public void ClearKind() { |
353 kindCase_ = KindOneofCase.None; | 327 kindCase_ = KindOneofCase.None; |
354 kind_ = null; | 328 kind_ = null; |
355 } | 329 } |
356 | 330 |
357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
358 public override bool Equals(object other) { | 331 public override bool Equals(object other) { |
359 return Equals(other as Value); | 332 return Equals(other as Value); |
360 } | 333 } |
361 | 334 |
362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
363 public bool Equals(Value other) { | 335 public bool Equals(Value other) { |
364 if (ReferenceEquals(other, null)) { | 336 if (ReferenceEquals(other, null)) { |
365 return false; | 337 return false; |
366 } | 338 } |
367 if (ReferenceEquals(other, this)) { | 339 if (ReferenceEquals(other, this)) { |
368 return true; | 340 return true; |
369 } | 341 } |
370 if (NullValue != other.NullValue) return false; | 342 if (NullValue != other.NullValue) return false; |
371 if (NumberValue != other.NumberValue) return false; | 343 if (NumberValue != other.NumberValue) return false; |
372 if (StringValue != other.StringValue) return false; | 344 if (StringValue != other.StringValue) return false; |
373 if (BoolValue != other.BoolValue) return false; | 345 if (BoolValue != other.BoolValue) return false; |
374 if (!object.Equals(StructValue, other.StructValue)) return false; | 346 if (!object.Equals(StructValue, other.StructValue)) return false; |
375 if (!object.Equals(ListValue, other.ListValue)) return false; | 347 if (!object.Equals(ListValue, other.ListValue)) return false; |
376 if (KindCase != other.KindCase) return false; | 348 if (KindCase != other.KindCase) return false; |
377 return true; | 349 return true; |
378 } | 350 } |
379 | 351 |
380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
381 public override int GetHashCode() { | 352 public override int GetHashCode() { |
382 int hash = 1; | 353 int hash = 1; |
383 if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode(); | 354 if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode(); |
384 if (kindCase_ == KindOneofCase.NumberValue) hash ^= NumberValue.GetHashCod
e(); | 355 if (kindCase_ == KindOneofCase.NumberValue) hash ^= NumberValue.GetHashCod
e(); |
385 if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCod
e(); | 356 if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCod
e(); |
386 if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); | 357 if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); |
387 if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCod
e(); | 358 if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCod
e(); |
388 if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); | 359 if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); |
389 hash ^= (int) kindCase_; | 360 hash ^= (int) kindCase_; |
390 return hash; | 361 return hash; |
391 } | 362 } |
392 | 363 |
393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
394 public override string ToString() { | 364 public override string ToString() { |
395 return pb::JsonFormatter.ToDiagnosticString(this); | 365 return pb::JsonFormatter.ToDiagnosticString(this); |
396 } | 366 } |
397 | 367 |
398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
399 public void WriteTo(pb::CodedOutputStream output) { | 368 public void WriteTo(pb::CodedOutputStream output) { |
400 if (kindCase_ == KindOneofCase.NullValue) { | 369 if (kindCase_ == KindOneofCase.NullValue) { |
401 output.WriteRawTag(8); | 370 output.WriteRawTag(8); |
402 output.WriteEnum((int) NullValue); | 371 output.WriteEnum((int) NullValue); |
403 } | 372 } |
404 if (kindCase_ == KindOneofCase.NumberValue) { | 373 if (kindCase_ == KindOneofCase.NumberValue) { |
405 output.WriteRawTag(17); | 374 output.WriteRawTag(17); |
406 output.WriteDouble(NumberValue); | 375 output.WriteDouble(NumberValue); |
407 } | 376 } |
408 if (kindCase_ == KindOneofCase.StringValue) { | 377 if (kindCase_ == KindOneofCase.StringValue) { |
409 output.WriteRawTag(26); | 378 output.WriteRawTag(26); |
410 output.WriteString(StringValue); | 379 output.WriteString(StringValue); |
411 } | 380 } |
412 if (kindCase_ == KindOneofCase.BoolValue) { | 381 if (kindCase_ == KindOneofCase.BoolValue) { |
413 output.WriteRawTag(32); | 382 output.WriteRawTag(32); |
414 output.WriteBool(BoolValue); | 383 output.WriteBool(BoolValue); |
415 } | 384 } |
416 if (kindCase_ == KindOneofCase.StructValue) { | 385 if (kindCase_ == KindOneofCase.StructValue) { |
417 output.WriteRawTag(42); | 386 output.WriteRawTag(42); |
418 output.WriteMessage(StructValue); | 387 output.WriteMessage(StructValue); |
419 } | 388 } |
420 if (kindCase_ == KindOneofCase.ListValue) { | 389 if (kindCase_ == KindOneofCase.ListValue) { |
421 output.WriteRawTag(50); | 390 output.WriteRawTag(50); |
422 output.WriteMessage(ListValue); | 391 output.WriteMessage(ListValue); |
423 } | 392 } |
424 } | 393 } |
425 | 394 |
426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
427 public int CalculateSize() { | 395 public int CalculateSize() { |
428 int size = 0; | 396 int size = 0; |
429 if (kindCase_ == KindOneofCase.NullValue) { | 397 if (kindCase_ == KindOneofCase.NullValue) { |
430 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue); | 398 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue); |
431 } | 399 } |
432 if (kindCase_ == KindOneofCase.NumberValue) { | 400 if (kindCase_ == KindOneofCase.NumberValue) { |
433 size += 1 + 8; | 401 size += 1 + 8; |
434 } | 402 } |
435 if (kindCase_ == KindOneofCase.StringValue) { | 403 if (kindCase_ == KindOneofCase.StringValue) { |
436 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); | 404 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); |
437 } | 405 } |
438 if (kindCase_ == KindOneofCase.BoolValue) { | 406 if (kindCase_ == KindOneofCase.BoolValue) { |
439 size += 1 + 1; | 407 size += 1 + 1; |
440 } | 408 } |
441 if (kindCase_ == KindOneofCase.StructValue) { | 409 if (kindCase_ == KindOneofCase.StructValue) { |
442 size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructValue); | 410 size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructValue); |
443 } | 411 } |
444 if (kindCase_ == KindOneofCase.ListValue) { | 412 if (kindCase_ == KindOneofCase.ListValue) { |
445 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListValue); | 413 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListValue); |
446 } | 414 } |
447 return size; | 415 return size; |
448 } | 416 } |
449 | 417 |
450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
451 public void MergeFrom(Value other) { | 418 public void MergeFrom(Value other) { |
452 if (other == null) { | 419 if (other == null) { |
453 return; | 420 return; |
454 } | 421 } |
455 switch (other.KindCase) { | 422 switch (other.KindCase) { |
456 case KindOneofCase.NullValue: | 423 case KindOneofCase.NullValue: |
457 NullValue = other.NullValue; | 424 NullValue = other.NullValue; |
458 break; | 425 break; |
459 case KindOneofCase.NumberValue: | 426 case KindOneofCase.NumberValue: |
460 NumberValue = other.NumberValue; | 427 NumberValue = other.NumberValue; |
461 break; | 428 break; |
462 case KindOneofCase.StringValue: | 429 case KindOneofCase.StringValue: |
463 StringValue = other.StringValue; | 430 StringValue = other.StringValue; |
464 break; | 431 break; |
465 case KindOneofCase.BoolValue: | 432 case KindOneofCase.BoolValue: |
466 BoolValue = other.BoolValue; | 433 BoolValue = other.BoolValue; |
467 break; | 434 break; |
468 case KindOneofCase.StructValue: | 435 case KindOneofCase.StructValue: |
469 StructValue = other.StructValue; | 436 StructValue = other.StructValue; |
470 break; | 437 break; |
471 case KindOneofCase.ListValue: | 438 case KindOneofCase.ListValue: |
472 ListValue = other.ListValue; | 439 ListValue = other.ListValue; |
473 break; | 440 break; |
474 } | 441 } |
475 | 442 |
476 } | 443 } |
477 | 444 |
478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
479 public void MergeFrom(pb::CodedInputStream input) { | 445 public void MergeFrom(pb::CodedInputStream input) { |
480 uint tag; | 446 uint tag; |
481 while ((tag = input.ReadTag()) != 0) { | 447 while ((tag = input.ReadTag()) != 0) { |
482 switch(tag) { | 448 switch(tag) { |
483 default: | 449 default: |
484 input.SkipLastField(); | 450 input.SkipLastField(); |
485 break; | 451 break; |
486 case 8: { | 452 case 8: { |
487 kind_ = input.ReadEnum(); | 453 kind_ = input.ReadEnum(); |
488 kindCase_ = KindOneofCase.NullValue; | 454 kindCase_ = KindOneofCase.NullValue; |
(...skipping 29 matching lines...) Expand all Loading... |
518 ListValue = subBuilder; | 484 ListValue = subBuilder; |
519 break; | 485 break; |
520 } | 486 } |
521 } | 487 } |
522 } | 488 } |
523 } | 489 } |
524 | 490 |
525 } | 491 } |
526 | 492 |
527 /// <summary> | 493 /// <summary> |
528 /// `ListValue` is a wrapper around a repeated field of values. | 494 /// `ListValue` is a wrapper around a repeated field of values. |
529 /// | 495 /// |
530 /// The JSON representation for `ListValue` is JSON array. | 496 /// The JSON representation for `ListValue` is JSON array. |
531 /// </summary> | 497 /// </summary> |
| 498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
532 public sealed partial class ListValue : pb::IMessage<ListValue> { | 499 public sealed partial class ListValue : pb::IMessage<ListValue> { |
533 private static readonly pb::MessageParser<ListValue> _parser = new pb::Messa
geParser<ListValue>(() => new ListValue()); | 500 private static readonly pb::MessageParser<ListValue> _parser = new pb::Messa
geParser<ListValue>(() => new ListValue()); |
534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
535 public static pb::MessageParser<ListValue> Parser { get { return _parser; }
} | 501 public static pb::MessageParser<ListValue> Parser { get { return _parser; }
} |
536 | 502 |
537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
538 public static pbr::MessageDescriptor Descriptor { | 503 public static pbr::MessageDescriptor Descriptor { |
539 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[2]; } | 504 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descr
iptor.MessageTypes[2]; } |
540 } | 505 } |
541 | 506 |
542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
543 pbr::MessageDescriptor pb::IMessage.Descriptor { | 507 pbr::MessageDescriptor pb::IMessage.Descriptor { |
544 get { return Descriptor; } | 508 get { return Descriptor; } |
545 } | 509 } |
546 | 510 |
547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
548 public ListValue() { | 511 public ListValue() { |
549 OnConstruction(); | 512 OnConstruction(); |
550 } | 513 } |
551 | 514 |
552 partial void OnConstruction(); | 515 partial void OnConstruction(); |
553 | 516 |
554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
555 public ListValue(ListValue other) : this() { | 517 public ListValue(ListValue other) : this() { |
556 values_ = other.values_.Clone(); | 518 values_ = other.values_.Clone(); |
557 } | 519 } |
558 | 520 |
559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
560 public ListValue Clone() { | 521 public ListValue Clone() { |
561 return new ListValue(this); | 522 return new ListValue(this); |
562 } | 523 } |
563 | 524 |
564 /// <summary>Field number for the "values" field.</summary> | 525 /// <summary>Field number for the "values" field.</summary> |
565 public const int ValuesFieldNumber = 1; | 526 public const int ValuesFieldNumber = 1; |
566 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType
s.Value> _repeated_values_codec | 527 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType
s.Value> _repeated_values_codec |
567 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.V
alue.Parser); | 528 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.V
alue.Parser); |
568 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.V
alue> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Va
lue>(); | 529 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.V
alue> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Va
lue>(); |
569 /// <summary> | 530 /// <summary> |
570 /// Repeated field of dynamically typed values. | 531 /// Repeated field of dynamically typed values. |
571 /// </summary> | 532 /// </summary> |
572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
573 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Valu
es { | 533 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Valu
es { |
574 get { return values_; } | 534 get { return values_; } |
575 } | 535 } |
576 | 536 |
577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
578 public override bool Equals(object other) { | 537 public override bool Equals(object other) { |
579 return Equals(other as ListValue); | 538 return Equals(other as ListValue); |
580 } | 539 } |
581 | 540 |
582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
583 public bool Equals(ListValue other) { | 541 public bool Equals(ListValue other) { |
584 if (ReferenceEquals(other, null)) { | 542 if (ReferenceEquals(other, null)) { |
585 return false; | 543 return false; |
586 } | 544 } |
587 if (ReferenceEquals(other, this)) { | 545 if (ReferenceEquals(other, this)) { |
588 return true; | 546 return true; |
589 } | 547 } |
590 if(!values_.Equals(other.values_)) return false; | 548 if(!values_.Equals(other.values_)) return false; |
591 return true; | 549 return true; |
592 } | 550 } |
593 | 551 |
594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
595 public override int GetHashCode() { | 552 public override int GetHashCode() { |
596 int hash = 1; | 553 int hash = 1; |
597 hash ^= values_.GetHashCode(); | 554 hash ^= values_.GetHashCode(); |
598 return hash; | 555 return hash; |
599 } | 556 } |
600 | 557 |
601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
602 public override string ToString() { | 558 public override string ToString() { |
603 return pb::JsonFormatter.ToDiagnosticString(this); | 559 return pb::JsonFormatter.ToDiagnosticString(this); |
604 } | 560 } |
605 | 561 |
606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
607 public void WriteTo(pb::CodedOutputStream output) { | 562 public void WriteTo(pb::CodedOutputStream output) { |
608 values_.WriteTo(output, _repeated_values_codec); | 563 values_.WriteTo(output, _repeated_values_codec); |
609 } | 564 } |
610 | 565 |
611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
612 public int CalculateSize() { | 566 public int CalculateSize() { |
613 int size = 0; | 567 int size = 0; |
614 size += values_.CalculateSize(_repeated_values_codec); | 568 size += values_.CalculateSize(_repeated_values_codec); |
615 return size; | 569 return size; |
616 } | 570 } |
617 | 571 |
618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
619 public void MergeFrom(ListValue other) { | 572 public void MergeFrom(ListValue other) { |
620 if (other == null) { | 573 if (other == null) { |
621 return; | 574 return; |
622 } | 575 } |
623 values_.Add(other.values_); | 576 values_.Add(other.values_); |
624 } | 577 } |
625 | 578 |
626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
627 public void MergeFrom(pb::CodedInputStream input) { | 579 public void MergeFrom(pb::CodedInputStream input) { |
628 uint tag; | 580 uint tag; |
629 while ((tag = input.ReadTag()) != 0) { | 581 while ((tag = input.ReadTag()) != 0) { |
630 switch(tag) { | 582 switch(tag) { |
631 default: | 583 default: |
632 input.SkipLastField(); | 584 input.SkipLastField(); |
633 break; | 585 break; |
634 case 10: { | 586 case 10: { |
635 values_.AddEntriesFrom(input, _repeated_values_codec); | 587 values_.AddEntriesFrom(input, _repeated_values_codec); |
636 break; | 588 break; |
637 } | 589 } |
638 } | 590 } |
639 } | 591 } |
640 } | 592 } |
641 | 593 |
642 } | 594 } |
643 | 595 |
644 #endregion | 596 #endregion |
645 | 597 |
646 } | 598 } |
647 | 599 |
648 #endregion Designer generated code | 600 #endregion Designer generated code |
OLD | NEW |