• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/struct.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.WellKnownTypes {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/struct.proto</summary>
15   public static partial class StructReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/struct.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
StructReflection()24     static StructReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i",
28             "dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i",
29             "dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB",
30             "IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC",
31             "OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv",
32             "dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM",
33             "c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K",
34             "DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI",
35             "ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW",
36             "YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW",
37             "Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W",
38             "QUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFa",
39             "L2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVj",
40             "dHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVz",
41             "YgZwcm90bzM="));
42       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
43           new pbr::FileDescriptor[] { },
44           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.WellKnownTypes.NullValue), }, null, new pbr::GeneratedClrTypeInfo[] {
45             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Struct), global::Google.Protobuf.WellKnownTypes.Struct.Parser, new[]{ "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
46             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Value), global::Google.Protobuf.WellKnownTypes.Value.Parser, new[]{ "NullValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue" }, new[]{ "Kind" }, null, null, null),
47             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.ListValue), global::Google.Protobuf.WellKnownTypes.ListValue.Parser, new[]{ "Values" }, null, null, null, null)
48           }));
49     }
50     #endregion
51 
52   }
53   #region Enums
54   /// <summary>
55   /// `NullValue` is a singleton enumeration to represent the null value for the
56   /// `Value` type union.
57   ///
58   /// The JSON representation for `NullValue` is JSON `null`.
59   /// </summary>
60   public enum NullValue {
61     /// <summary>
62     /// Null value.
63     /// </summary>
64     [pbr::OriginalName("NULL_VALUE")] NullValue = 0,
65   }
66 
67   #endregion
68 
69   #region Messages
70   /// <summary>
71   /// `Struct` represents a structured data value, consisting of fields
72   /// which map to dynamically typed values. In some languages, `Struct`
73   /// might be supported by a native representation. For example, in
74   /// scripting languages like JS a struct is represented as an
75   /// object. The details of that representation are described together
76   /// with the proto support for the language.
77   ///
78   /// The JSON representation for `Struct` is JSON object.
79   /// </summary>
80   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
81   public sealed partial class Struct : pb::IMessage<Struct>
82   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
83       , pb::IBufferMessage
84   #endif
85   {
86     private static readonly pb::MessageParser<Struct> _parser = new pb::MessageParser<Struct>(() => new Struct());
87     private pb::UnknownFieldSet _unknownFields;
88     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
89     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
90     public static pb::MessageParser<Struct> Parser { get { return _parser; } }
91 
92     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
93     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
94     public static pbr::MessageDescriptor Descriptor {
95       get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[0]; }
96     }
97 
98     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
99     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
100     pbr::MessageDescriptor pb::IMessage.Descriptor {
101       get { return Descriptor; }
102     }
103 
104     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
105     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Struct()106     public Struct() {
107       OnConstruction();
108     }
109 
OnConstruction()110     partial void OnConstruction();
111 
112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Struct(Struct other)114     public Struct(Struct other) : this() {
115       fields_ = other.fields_.Clone();
116       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
117     }
118 
119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()121     public Struct Clone() {
122       return new Struct(this);
123     }
124 
125     /// <summary>Field number for the "fields" field.</summary>
126     public const int FieldsFieldNumber = 1;
127     private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec _map_fields_codec
128         = 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);
129     private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>();
130     /// <summary>
131     /// Unordered map of dynamically typed values.
132     /// </summary>
133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
135     public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields {
136       get { return fields_; }
137     }
138 
139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
140     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)141     public override bool Equals(object other) {
142       return Equals(other as Struct);
143     }
144 
145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
146     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Struct other)147     public bool Equals(Struct other) {
148       if (ReferenceEquals(other, null)) {
149         return false;
150       }
151       if (ReferenceEquals(other, this)) {
152         return true;
153       }
154       if (!Fields.Equals(other.Fields)) return false;
155       return Equals(_unknownFields, other._unknownFields);
156     }
157 
158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
159     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()160     public override int GetHashCode() {
161       int hash = 1;
162       hash ^= Fields.GetHashCode();
163       if (_unknownFields != null) {
164         hash ^= _unknownFields.GetHashCode();
165       }
166       return hash;
167     }
168 
169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
170     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()171     public override string ToString() {
172       return pb::JsonFormatter.ToDiagnosticString(this);
173     }
174 
175     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
176     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)177     public void WriteTo(pb::CodedOutputStream output) {
178     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
179       output.WriteRawMessage(this);
180     #else
181       fields_.WriteTo(output, _map_fields_codec);
182       if (_unknownFields != null) {
183         _unknownFields.WriteTo(output);
184       }
185     #endif
186     }
187 
188     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
190     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)191     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
192       fields_.WriteTo(ref output, _map_fields_codec);
193       if (_unknownFields != null) {
194         _unknownFields.WriteTo(ref output);
195       }
196     }
197     #endif
198 
199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()201     public int CalculateSize() {
202       int size = 0;
203       size += fields_.CalculateSize(_map_fields_codec);
204       if (_unknownFields != null) {
205         size += _unknownFields.CalculateSize();
206       }
207       return size;
208     }
209 
210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
211     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Struct other)212     public void MergeFrom(Struct other) {
213       if (other == null) {
214         return;
215       }
216       fields_.MergeFrom(other.fields_);
217       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
218     }
219 
220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)222     public void MergeFrom(pb::CodedInputStream input) {
223     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
224       input.ReadRawMessage(this);
225     #else
226       uint tag;
227       while ((tag = input.ReadTag()) != 0) {
228       if ((tag & 7) == 4) {
229         // Abort on any end group tag.
230         return;
231       }
232       switch(tag) {
233           default:
234             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
235             break;
236           case 10: {
237             fields_.AddEntriesFrom(input, _map_fields_codec);
238             break;
239           }
240         }
241       }
242     #endif
243     }
244 
245     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)248     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
249       uint tag;
250       while ((tag = input.ReadTag()) != 0) {
251       if ((tag & 7) == 4) {
252         // Abort on any end group tag.
253         return;
254       }
255       switch(tag) {
256           default:
257             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
258             break;
259           case 10: {
260             fields_.AddEntriesFrom(ref input, _map_fields_codec);
261             break;
262           }
263         }
264       }
265     }
266     #endif
267 
268   }
269 
270   /// <summary>
271   /// `Value` represents a dynamically typed value which can be either
272   /// null, a number, a string, a boolean, a recursive struct value, or a
273   /// list of values. A producer of value is expected to set one of these
274   /// variants. Absence of any variant indicates an error.
275   ///
276   /// The JSON representation for `Value` is JSON value.
277   /// </summary>
278   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
279   public sealed partial class Value : pb::IMessage<Value>
280   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
281       , pb::IBufferMessage
282   #endif
283   {
284     private static readonly pb::MessageParser<Value> _parser = new pb::MessageParser<Value>(() => new Value());
285     private pb::UnknownFieldSet _unknownFields;
286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
288     public static pb::MessageParser<Value> Parser { get { return _parser; } }
289 
290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
291     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
292     public static pbr::MessageDescriptor Descriptor {
293       get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[1]; }
294     }
295 
296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
297     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
298     pbr::MessageDescriptor pb::IMessage.Descriptor {
299       get { return Descriptor; }
300     }
301 
302     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
303     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Value()304     public Value() {
305       OnConstruction();
306     }
307 
OnConstruction()308     partial void OnConstruction();
309 
310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Value(Value other)312     public Value(Value other) : this() {
313       switch (other.KindCase) {
314         case KindOneofCase.NullValue:
315           NullValue = other.NullValue;
316           break;
317         case KindOneofCase.NumberValue:
318           NumberValue = other.NumberValue;
319           break;
320         case KindOneofCase.StringValue:
321           StringValue = other.StringValue;
322           break;
323         case KindOneofCase.BoolValue:
324           BoolValue = other.BoolValue;
325           break;
326         case KindOneofCase.StructValue:
327           StructValue = other.StructValue.Clone();
328           break;
329         case KindOneofCase.ListValue:
330           ListValue = other.ListValue.Clone();
331           break;
332       }
333 
334       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
335     }
336 
337     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
338     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()339     public Value Clone() {
340       return new Value(this);
341     }
342 
343     /// <summary>Field number for the "null_value" field.</summary>
344     public const int NullValueFieldNumber = 1;
345     /// <summary>
346     /// Represents a null value.
347     /// </summary>
348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
350     public global::Google.Protobuf.WellKnownTypes.NullValue NullValue {
351       get { return HasNullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) kind_ : global::Google.Protobuf.WellKnownTypes.NullValue.NullValue; }
352       set {
353         kind_ = value;
354         kindCase_ = KindOneofCase.NullValue;
355       }
356     }
357     /// <summary>Gets whether the "null_value" field is set</summary>
358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
360     public bool HasNullValue {
361       get { return kindCase_ == KindOneofCase.NullValue; }
362     }
363     /// <summary> Clears the value of the oneof if it's currently set to "null_value" </summary>
364     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNullValue()366     public void ClearNullValue() {
367       if (HasNullValue) {
368         ClearKind();
369       }
370     }
371 
372     /// <summary>Field number for the "number_value" field.</summary>
373     public const int NumberValueFieldNumber = 2;
374     /// <summary>
375     /// Represents a double value.
376     /// </summary>
377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
378     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
379     public double NumberValue {
380       get { return HasNumberValue ? (double) kind_ : 0D; }
381       set {
382         kind_ = value;
383         kindCase_ = KindOneofCase.NumberValue;
384       }
385     }
386     /// <summary>Gets whether the "number_value" field is set</summary>
387     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
388     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
389     public bool HasNumberValue {
390       get { return kindCase_ == KindOneofCase.NumberValue; }
391     }
392     /// <summary> Clears the value of the oneof if it's currently set to "number_value" </summary>
393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
394     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNumberValue()395     public void ClearNumberValue() {
396       if (HasNumberValue) {
397         ClearKind();
398       }
399     }
400 
401     /// <summary>Field number for the "string_value" field.</summary>
402     public const int StringValueFieldNumber = 3;
403     /// <summary>
404     /// Represents a string value.
405     /// </summary>
406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
408     public string StringValue {
409       get { return HasStringValue ? (string) kind_ : ""; }
410       set {
411         kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
412         kindCase_ = KindOneofCase.StringValue;
413       }
414     }
415     /// <summary>Gets whether the "string_value" field is set</summary>
416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
417     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
418     public bool HasStringValue {
419       get { return kindCase_ == KindOneofCase.StringValue; }
420     }
421     /// <summary> Clears the value of the oneof if it's currently set to "string_value" </summary>
422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
423     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringValue()424     public void ClearStringValue() {
425       if (HasStringValue) {
426         ClearKind();
427       }
428     }
429 
430     /// <summary>Field number for the "bool_value" field.</summary>
431     public const int BoolValueFieldNumber = 4;
432     /// <summary>
433     /// Represents a boolean value.
434     /// </summary>
435     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
436     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
437     public bool BoolValue {
438       get { return HasBoolValue ? (bool) kind_ : false; }
439       set {
440         kind_ = value;
441         kindCase_ = KindOneofCase.BoolValue;
442       }
443     }
444     /// <summary>Gets whether the "bool_value" field is set</summary>
445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
447     public bool HasBoolValue {
448       get { return kindCase_ == KindOneofCase.BoolValue; }
449     }
450     /// <summary> Clears the value of the oneof if it's currently set to "bool_value" </summary>
451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
452     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBoolValue()453     public void ClearBoolValue() {
454       if (HasBoolValue) {
455         ClearKind();
456       }
457     }
458 
459     /// <summary>Field number for the "struct_value" field.</summary>
460     public const int StructValueFieldNumber = 5;
461     /// <summary>
462     /// Represents a structured value.
463     /// </summary>
464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
465     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
466     public global::Google.Protobuf.WellKnownTypes.Struct StructValue {
467       get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; }
468       set {
469         kind_ = value;
470         kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructValue;
471       }
472     }
473 
474     /// <summary>Field number for the "list_value" field.</summary>
475     public const int ListValueFieldNumber = 6;
476     /// <summary>
477     /// Represents a repeated `Value`.
478     /// </summary>
479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
480     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
481     public global::Google.Protobuf.WellKnownTypes.ListValue ListValue {
482       get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; }
483       set {
484         kind_ = value;
485         kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue;
486       }
487     }
488 
489     private object kind_;
490     /// <summary>Enum of possible cases for the "kind" oneof.</summary>
491     public enum KindOneofCase {
492       None = 0,
493       NullValue = 1,
494       NumberValue = 2,
495       StringValue = 3,
496       BoolValue = 4,
497       StructValue = 5,
498       ListValue = 6,
499     }
500     private KindOneofCase kindCase_ = KindOneofCase.None;
501     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
502     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
503     public KindOneofCase KindCase {
504       get { return kindCase_; }
505     }
506 
507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearKind()509     public void ClearKind() {
510       kindCase_ = KindOneofCase.None;
511       kind_ = null;
512     }
513 
514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)516     public override bool Equals(object other) {
517       return Equals(other as Value);
518     }
519 
520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
521     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Value other)522     public bool Equals(Value other) {
523       if (ReferenceEquals(other, null)) {
524         return false;
525       }
526       if (ReferenceEquals(other, this)) {
527         return true;
528       }
529       if (NullValue != other.NullValue) return false;
530       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumberValue, other.NumberValue)) return false;
531       if (StringValue != other.StringValue) return false;
532       if (BoolValue != other.BoolValue) return false;
533       if (!object.Equals(StructValue, other.StructValue)) return false;
534       if (!object.Equals(ListValue, other.ListValue)) return false;
535       if (KindCase != other.KindCase) return false;
536       return Equals(_unknownFields, other._unknownFields);
537     }
538 
539     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
540     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()541     public override int GetHashCode() {
542       int hash = 1;
543       if (HasNullValue) hash ^= NullValue.GetHashCode();
544       if (HasNumberValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumberValue);
545       if (HasStringValue) hash ^= StringValue.GetHashCode();
546       if (HasBoolValue) hash ^= BoolValue.GetHashCode();
547       if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode();
548       if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode();
549       hash ^= (int) kindCase_;
550       if (_unknownFields != null) {
551         hash ^= _unknownFields.GetHashCode();
552       }
553       return hash;
554     }
555 
556     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
557     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()558     public override string ToString() {
559       return pb::JsonFormatter.ToDiagnosticString(this);
560     }
561 
562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)564     public void WriteTo(pb::CodedOutputStream output) {
565     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
566       output.WriteRawMessage(this);
567     #else
568       if (HasNullValue) {
569         output.WriteRawTag(8);
570         output.WriteEnum((int) NullValue);
571       }
572       if (HasNumberValue) {
573         output.WriteRawTag(17);
574         output.WriteDouble(NumberValue);
575       }
576       if (HasStringValue) {
577         output.WriteRawTag(26);
578         output.WriteString(StringValue);
579       }
580       if (HasBoolValue) {
581         output.WriteRawTag(32);
582         output.WriteBool(BoolValue);
583       }
584       if (kindCase_ == KindOneofCase.StructValue) {
585         output.WriteRawTag(42);
586         output.WriteMessage(StructValue);
587       }
588       if (kindCase_ == KindOneofCase.ListValue) {
589         output.WriteRawTag(50);
590         output.WriteMessage(ListValue);
591       }
592       if (_unknownFields != null) {
593         _unknownFields.WriteTo(output);
594       }
595     #endif
596     }
597 
598     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)601     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
602       if (HasNullValue) {
603         output.WriteRawTag(8);
604         output.WriteEnum((int) NullValue);
605       }
606       if (HasNumberValue) {
607         output.WriteRawTag(17);
608         output.WriteDouble(NumberValue);
609       }
610       if (HasStringValue) {
611         output.WriteRawTag(26);
612         output.WriteString(StringValue);
613       }
614       if (HasBoolValue) {
615         output.WriteRawTag(32);
616         output.WriteBool(BoolValue);
617       }
618       if (kindCase_ == KindOneofCase.StructValue) {
619         output.WriteRawTag(42);
620         output.WriteMessage(StructValue);
621       }
622       if (kindCase_ == KindOneofCase.ListValue) {
623         output.WriteRawTag(50);
624         output.WriteMessage(ListValue);
625       }
626       if (_unknownFields != null) {
627         _unknownFields.WriteTo(ref output);
628       }
629     }
630     #endif
631 
632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
633     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()634     public int CalculateSize() {
635       int size = 0;
636       if (HasNullValue) {
637         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue);
638       }
639       if (HasNumberValue) {
640         size += 1 + 8;
641       }
642       if (HasStringValue) {
643         size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
644       }
645       if (HasBoolValue) {
646         size += 1 + 1;
647       }
648       if (kindCase_ == KindOneofCase.StructValue) {
649         size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructValue);
650       }
651       if (kindCase_ == KindOneofCase.ListValue) {
652         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListValue);
653       }
654       if (_unknownFields != null) {
655         size += _unknownFields.CalculateSize();
656       }
657       return size;
658     }
659 
660     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
661     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Value other)662     public void MergeFrom(Value other) {
663       if (other == null) {
664         return;
665       }
666       switch (other.KindCase) {
667         case KindOneofCase.NullValue:
668           NullValue = other.NullValue;
669           break;
670         case KindOneofCase.NumberValue:
671           NumberValue = other.NumberValue;
672           break;
673         case KindOneofCase.StringValue:
674           StringValue = other.StringValue;
675           break;
676         case KindOneofCase.BoolValue:
677           BoolValue = other.BoolValue;
678           break;
679         case KindOneofCase.StructValue:
680           if (StructValue == null) {
681             StructValue = new global::Google.Protobuf.WellKnownTypes.Struct();
682           }
683           StructValue.MergeFrom(other.StructValue);
684           break;
685         case KindOneofCase.ListValue:
686           if (ListValue == null) {
687             ListValue = new global::Google.Protobuf.WellKnownTypes.ListValue();
688           }
689           ListValue.MergeFrom(other.ListValue);
690           break;
691       }
692 
693       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
694     }
695 
696     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
697     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)698     public void MergeFrom(pb::CodedInputStream input) {
699     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
700       input.ReadRawMessage(this);
701     #else
702       uint tag;
703       while ((tag = input.ReadTag()) != 0) {
704       if ((tag & 7) == 4) {
705         // Abort on any end group tag.
706         return;
707       }
708       switch(tag) {
709           default:
710             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
711             break;
712           case 8: {
713             kind_ = input.ReadEnum();
714             kindCase_ = KindOneofCase.NullValue;
715             break;
716           }
717           case 17: {
718             NumberValue = input.ReadDouble();
719             break;
720           }
721           case 26: {
722             StringValue = input.ReadString();
723             break;
724           }
725           case 32: {
726             BoolValue = input.ReadBool();
727             break;
728           }
729           case 42: {
730             global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
731             if (kindCase_ == KindOneofCase.StructValue) {
732               subBuilder.MergeFrom(StructValue);
733             }
734             input.ReadMessage(subBuilder);
735             StructValue = subBuilder;
736             break;
737           }
738           case 50: {
739             global::Google.Protobuf.WellKnownTypes.ListValue subBuilder = new global::Google.Protobuf.WellKnownTypes.ListValue();
740             if (kindCase_ == KindOneofCase.ListValue) {
741               subBuilder.MergeFrom(ListValue);
742             }
743             input.ReadMessage(subBuilder);
744             ListValue = subBuilder;
745             break;
746           }
747         }
748       }
749     #endif
750     }
751 
752     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
754     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)755     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
756       uint tag;
757       while ((tag = input.ReadTag()) != 0) {
758       if ((tag & 7) == 4) {
759         // Abort on any end group tag.
760         return;
761       }
762       switch(tag) {
763           default:
764             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
765             break;
766           case 8: {
767             kind_ = input.ReadEnum();
768             kindCase_ = KindOneofCase.NullValue;
769             break;
770           }
771           case 17: {
772             NumberValue = input.ReadDouble();
773             break;
774           }
775           case 26: {
776             StringValue = input.ReadString();
777             break;
778           }
779           case 32: {
780             BoolValue = input.ReadBool();
781             break;
782           }
783           case 42: {
784             global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
785             if (kindCase_ == KindOneofCase.StructValue) {
786               subBuilder.MergeFrom(StructValue);
787             }
788             input.ReadMessage(subBuilder);
789             StructValue = subBuilder;
790             break;
791           }
792           case 50: {
793             global::Google.Protobuf.WellKnownTypes.ListValue subBuilder = new global::Google.Protobuf.WellKnownTypes.ListValue();
794             if (kindCase_ == KindOneofCase.ListValue) {
795               subBuilder.MergeFrom(ListValue);
796             }
797             input.ReadMessage(subBuilder);
798             ListValue = subBuilder;
799             break;
800           }
801         }
802       }
803     }
804     #endif
805 
806   }
807 
808   /// <summary>
809   /// `ListValue` is a wrapper around a repeated field of values.
810   ///
811   /// The JSON representation for `ListValue` is JSON array.
812   /// </summary>
813   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
814   public sealed partial class ListValue : pb::IMessage<ListValue>
815   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
816       , pb::IBufferMessage
817   #endif
818   {
819     private static readonly pb::MessageParser<ListValue> _parser = new pb::MessageParser<ListValue>(() => new ListValue());
820     private pb::UnknownFieldSet _unknownFields;
821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
823     public static pb::MessageParser<ListValue> Parser { get { return _parser; } }
824 
825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
827     public static pbr::MessageDescriptor Descriptor {
828       get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[2]; }
829     }
830 
831     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
832     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
833     pbr::MessageDescriptor pb::IMessage.Descriptor {
834       get { return Descriptor; }
835     }
836 
837     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ListValue()839     public ListValue() {
840       OnConstruction();
841     }
842 
OnConstruction()843     partial void OnConstruction();
844 
845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
846     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ListValue(ListValue other)847     public ListValue(ListValue other) : this() {
848       values_ = other.values_.Clone();
849       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
850     }
851 
852     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()854     public ListValue Clone() {
855       return new ListValue(this);
856     }
857 
858     /// <summary>Field number for the "values" field.</summary>
859     public const int ValuesFieldNumber = 1;
860     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_values_codec
861         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Value.Parser);
862     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>();
863     /// <summary>
864     /// Repeated field of dynamically typed values.
865     /// </summary>
866     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
867     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
868     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Values {
869       get { return values_; }
870     }
871 
872     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
873     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)874     public override bool Equals(object other) {
875       return Equals(other as ListValue);
876     }
877 
878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ListValue other)880     public bool Equals(ListValue other) {
881       if (ReferenceEquals(other, null)) {
882         return false;
883       }
884       if (ReferenceEquals(other, this)) {
885         return true;
886       }
887       if(!values_.Equals(other.values_)) return false;
888       return Equals(_unknownFields, other._unknownFields);
889     }
890 
891     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
892     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()893     public override int GetHashCode() {
894       int hash = 1;
895       hash ^= values_.GetHashCode();
896       if (_unknownFields != null) {
897         hash ^= _unknownFields.GetHashCode();
898       }
899       return hash;
900     }
901 
902     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
903     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()904     public override string ToString() {
905       return pb::JsonFormatter.ToDiagnosticString(this);
906     }
907 
908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)910     public void WriteTo(pb::CodedOutputStream output) {
911     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
912       output.WriteRawMessage(this);
913     #else
914       values_.WriteTo(output, _repeated_values_codec);
915       if (_unknownFields != null) {
916         _unknownFields.WriteTo(output);
917       }
918     #endif
919     }
920 
921     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
922     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
923     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)924     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
925       values_.WriteTo(ref output, _repeated_values_codec);
926       if (_unknownFields != null) {
927         _unknownFields.WriteTo(ref output);
928       }
929     }
930     #endif
931 
932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()934     public int CalculateSize() {
935       int size = 0;
936       size += values_.CalculateSize(_repeated_values_codec);
937       if (_unknownFields != null) {
938         size += _unknownFields.CalculateSize();
939       }
940       return size;
941     }
942 
943     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
944     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ListValue other)945     public void MergeFrom(ListValue other) {
946       if (other == null) {
947         return;
948       }
949       values_.Add(other.values_);
950       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
951     }
952 
953     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
954     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)955     public void MergeFrom(pb::CodedInputStream input) {
956     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
957       input.ReadRawMessage(this);
958     #else
959       uint tag;
960       while ((tag = input.ReadTag()) != 0) {
961       if ((tag & 7) == 4) {
962         // Abort on any end group tag.
963         return;
964       }
965       switch(tag) {
966           default:
967             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
968             break;
969           case 10: {
970             values_.AddEntriesFrom(input, _repeated_values_codec);
971             break;
972           }
973         }
974       }
975     #endif
976     }
977 
978     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
980     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)981     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
982       uint tag;
983       while ((tag = input.ReadTag()) != 0) {
984       if ((tag & 7) == 4) {
985         // Abort on any end group tag.
986         return;
987       }
988       switch(tag) {
989           default:
990             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
991             break;
992           case 10: {
993             values_.AddEntriesFrom(ref input, _repeated_values_codec);
994             break;
995           }
996         }
997       }
998     }
999     #endif
1000 
1001   }
1002 
1003   #endregion
1004 
1005 }
1006 
1007 #endregion Designer generated code
1008