• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/api.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/api.proto</summary>
15   public static partial class ApiReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/api.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
ApiReflection()24     static ApiReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Chlnb29nbGUvcHJvdG9idWYvYXBpLnByb3RvEg9nb29nbGUucHJvdG9idWYa",
28             "JGdvb2dsZS9wcm90b2J1Zi9zb3VyY2VfY29udGV4dC5wcm90bxoaZ29vZ2xl",
29             "L3Byb3RvYnVmL3R5cGUucHJvdG8igQIKA0FwaRIMCgRuYW1lGAEgASgJEigK",
30             "B21ldGhvZHMYAiADKAsyFy5nb29nbGUucHJvdG9idWYuTWV0aG9kEigKB29w",
31             "dGlvbnMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuT3B0aW9uEg8KB3ZlcnNp",
32             "b24YBCABKAkSNgoOc291cmNlX2NvbnRleHQYBSABKAsyHi5nb29nbGUucHJv",
33             "dG9idWYuU291cmNlQ29udGV4dBImCgZtaXhpbnMYBiADKAsyFi5nb29nbGUu",
34             "cHJvdG9idWYuTWl4aW4SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3Rv",
35             "YnVmLlN5bnRheCLVAQoGTWV0aG9kEgwKBG5hbWUYASABKAkSGAoQcmVxdWVz",
36             "dF90eXBlX3VybBgCIAEoCRIZChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCBIZ",
37             "ChFyZXNwb25zZV90eXBlX3VybBgEIAEoCRIaChJyZXNwb25zZV9zdHJlYW1p",
38             "bmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5P",
39             "cHRpb24SJwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRh",
40             "eCIjCgVNaXhpbhIMCgRuYW1lGAEgASgJEgwKBHJvb3QYAiABKAlCdgoTY29t",
41             "Lmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJvdG9QAVosZ29vZ2xlLmdvbGFuZy5v",
42             "cmcvcHJvdG9idWYvdHlwZXMva25vd24vYXBpcGKiAgNHUEKqAh5Hb29nbGUu",
43             "UHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="));
44       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
45           new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TypeReflection.Descriptor, },
46           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
47             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Api), global::Google.Protobuf.WellKnownTypes.Api.Parser, new[]{ "Name", "Methods", "Options", "Version", "SourceContext", "Mixins", "Syntax" }, null, null, null, null),
48             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Method), global::Google.Protobuf.WellKnownTypes.Method.Parser, new[]{ "Name", "RequestTypeUrl", "RequestStreaming", "ResponseTypeUrl", "ResponseStreaming", "Options", "Syntax" }, null, null, null, null),
49             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Mixin), global::Google.Protobuf.WellKnownTypes.Mixin.Parser, new[]{ "Name", "Root" }, null, null, null, null)
50           }));
51     }
52     #endregion
53 
54   }
55   #region Messages
56   /// <summary>
57   /// Api is a light-weight descriptor for an API Interface.
58   ///
59   /// Interfaces are also described as "protocol buffer services" in some contexts,
60   /// such as by the "service" keyword in a .proto file, but they are different
61   /// from API Services, which represent a concrete implementation of an interface
62   /// as opposed to simply a description of methods and bindings. They are also
63   /// sometimes simply referred to as "APIs" in other contexts, such as the name of
64   /// this message itself. See https://cloud.google.com/apis/design/glossary for
65   /// detailed terminology.
66   /// </summary>
67   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
68   public sealed partial class Api : pb::IMessage<Api>
69   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
70       , pb::IBufferMessage
71   #endif
72   {
73     private static readonly pb::MessageParser<Api> _parser = new pb::MessageParser<Api>(() => new Api());
74     private pb::UnknownFieldSet _unknownFields;
75     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
77     public static pb::MessageParser<Api> Parser { get { return _parser; } }
78 
79     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
80     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
81     public static pbr::MessageDescriptor Descriptor {
82       get { return global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor.MessageTypes[0]; }
83     }
84 
85     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
87     pbr::MessageDescriptor pb::IMessage.Descriptor {
88       get { return Descriptor; }
89     }
90 
91     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Api()93     public Api() {
94       OnConstruction();
95     }
96 
OnConstruction()97     partial void OnConstruction();
98 
99     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Api(Api other)101     public Api(Api other) : this() {
102       name_ = other.name_;
103       methods_ = other.methods_.Clone();
104       options_ = other.options_.Clone();
105       version_ = other.version_;
106       sourceContext_ = other.sourceContext_ != null ? other.sourceContext_.Clone() : null;
107       mixins_ = other.mixins_.Clone();
108       syntax_ = other.syntax_;
109       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
110     }
111 
112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()114     public Api Clone() {
115       return new Api(this);
116     }
117 
118     /// <summary>Field number for the "name" field.</summary>
119     public const int NameFieldNumber = 1;
120     private string name_ = "";
121     /// <summary>
122     /// The fully qualified name of this interface, including package name
123     /// followed by the interface's simple name.
124     /// </summary>
125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
127     public string Name {
128       get { return name_; }
129       set {
130         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
131       }
132     }
133 
134     /// <summary>Field number for the "methods" field.</summary>
135     public const int MethodsFieldNumber = 2;
136     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Method> _repeated_methods_codec
137         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Method.Parser);
138     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> methods_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method>();
139     /// <summary>
140     /// The methods of this interface, in unspecified order.
141     /// </summary>
142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
143     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
144     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods {
145       get { return methods_; }
146     }
147 
148     /// <summary>Field number for the "options" field.</summary>
149     public const int OptionsFieldNumber = 3;
150     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec
151         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Option.Parser);
152     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>();
153     /// <summary>
154     /// Any metadata attached to the interface.
155     /// </summary>
156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
158     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
159       get { return options_; }
160     }
161 
162     /// <summary>Field number for the "version" field.</summary>
163     public const int VersionFieldNumber = 4;
164     private string version_ = "";
165     /// <summary>
166     /// A version string for this interface. If specified, must have the form
167     /// `major-version.minor-version`, as in `1.10`. If the minor version is
168     /// omitted, it defaults to zero. If the entire version field is empty, the
169     /// major version is derived from the package name, as outlined below. If the
170     /// field is not empty, the version in the package name will be verified to be
171     /// consistent with what is provided here.
172     ///
173     /// The versioning schema uses [semantic
174     /// versioning](http://semver.org) where the major version number
175     /// indicates a breaking change and the minor version an additive,
176     /// non-breaking change. Both version numbers are signals to users
177     /// what to expect from different versions, and should be carefully
178     /// chosen based on the product plan.
179     ///
180     /// The major version is also reflected in the package name of the
181     /// interface, which must end in `v&lt;major-version>`, as in
182     /// `google.feature.v1`. For major versions 0 and 1, the suffix can
183     /// be omitted. Zero major versions must only be used for
184     /// experimental, non-GA interfaces.
185     /// </summary>
186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
188     public string Version {
189       get { return version_; }
190       set {
191         version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
192       }
193     }
194 
195     /// <summary>Field number for the "source_context" field.</summary>
196     public const int SourceContextFieldNumber = 5;
197     private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContext_;
198     /// <summary>
199     /// Source context for the protocol buffer service represented by this
200     /// message.
201     /// </summary>
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
204     public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContext {
205       get { return sourceContext_; }
206       set {
207         sourceContext_ = value;
208       }
209     }
210 
211     /// <summary>Field number for the "mixins" field.</summary>
212     public const int MixinsFieldNumber = 6;
213     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Mixin> _repeated_mixins_codec
214         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Mixin.Parser);
215     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> mixins_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin>();
216     /// <summary>
217     /// Included interfaces. See [Mixin][].
218     /// </summary>
219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
220     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
221     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> Mixins {
222       get { return mixins_; }
223     }
224 
225     /// <summary>Field number for the "syntax" field.</summary>
226     public const int SyntaxFieldNumber = 7;
227     private global::Google.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
228     /// <summary>
229     /// The source syntax of the service.
230     /// </summary>
231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
233     public global::Google.Protobuf.WellKnownTypes.Syntax Syntax {
234       get { return syntax_; }
235       set {
236         syntax_ = value;
237       }
238     }
239 
240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
241     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)242     public override bool Equals(object other) {
243       return Equals(other as Api);
244     }
245 
246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Api other)248     public bool Equals(Api other) {
249       if (ReferenceEquals(other, null)) {
250         return false;
251       }
252       if (ReferenceEquals(other, this)) {
253         return true;
254       }
255       if (Name != other.Name) return false;
256       if(!methods_.Equals(other.methods_)) return false;
257       if(!options_.Equals(other.options_)) return false;
258       if (Version != other.Version) return false;
259       if (!object.Equals(SourceContext, other.SourceContext)) return false;
260       if(!mixins_.Equals(other.mixins_)) return false;
261       if (Syntax != other.Syntax) return false;
262       return Equals(_unknownFields, other._unknownFields);
263     }
264 
265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
266     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()267     public override int GetHashCode() {
268       int hash = 1;
269       if (Name.Length != 0) hash ^= Name.GetHashCode();
270       hash ^= methods_.GetHashCode();
271       hash ^= options_.GetHashCode();
272       if (Version.Length != 0) hash ^= Version.GetHashCode();
273       if (sourceContext_ != null) hash ^= SourceContext.GetHashCode();
274       hash ^= mixins_.GetHashCode();
275       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode();
276       if (_unknownFields != null) {
277         hash ^= _unknownFields.GetHashCode();
278       }
279       return hash;
280     }
281 
282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
283     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()284     public override string ToString() {
285       return pb::JsonFormatter.ToDiagnosticString(this);
286     }
287 
288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)290     public void WriteTo(pb::CodedOutputStream output) {
291     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
292       output.WriteRawMessage(this);
293     #else
294       if (Name.Length != 0) {
295         output.WriteRawTag(10);
296         output.WriteString(Name);
297       }
298       methods_.WriteTo(output, _repeated_methods_codec);
299       options_.WriteTo(output, _repeated_options_codec);
300       if (Version.Length != 0) {
301         output.WriteRawTag(34);
302         output.WriteString(Version);
303       }
304       if (sourceContext_ != null) {
305         output.WriteRawTag(42);
306         output.WriteMessage(SourceContext);
307       }
308       mixins_.WriteTo(output, _repeated_mixins_codec);
309       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
310         output.WriteRawTag(56);
311         output.WriteEnum((int) Syntax);
312       }
313       if (_unknownFields != null) {
314         _unknownFields.WriteTo(output);
315       }
316     #endif
317     }
318 
319     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
321     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)322     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
323       if (Name.Length != 0) {
324         output.WriteRawTag(10);
325         output.WriteString(Name);
326       }
327       methods_.WriteTo(ref output, _repeated_methods_codec);
328       options_.WriteTo(ref output, _repeated_options_codec);
329       if (Version.Length != 0) {
330         output.WriteRawTag(34);
331         output.WriteString(Version);
332       }
333       if (sourceContext_ != null) {
334         output.WriteRawTag(42);
335         output.WriteMessage(SourceContext);
336       }
337       mixins_.WriteTo(ref output, _repeated_mixins_codec);
338       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
339         output.WriteRawTag(56);
340         output.WriteEnum((int) Syntax);
341       }
342       if (_unknownFields != null) {
343         _unknownFields.WriteTo(ref output);
344       }
345     }
346     #endif
347 
348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()350     public int CalculateSize() {
351       int size = 0;
352       if (Name.Length != 0) {
353         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
354       }
355       size += methods_.CalculateSize(_repeated_methods_codec);
356       size += options_.CalculateSize(_repeated_options_codec);
357       if (Version.Length != 0) {
358         size += 1 + pb::CodedOutputStream.ComputeStringSize(Version);
359       }
360       if (sourceContext_ != null) {
361         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContext);
362       }
363       size += mixins_.CalculateSize(_repeated_mixins_codec);
364       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
365         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax);
366       }
367       if (_unknownFields != null) {
368         size += _unknownFields.CalculateSize();
369       }
370       return size;
371     }
372 
373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Api other)375     public void MergeFrom(Api other) {
376       if (other == null) {
377         return;
378       }
379       if (other.Name.Length != 0) {
380         Name = other.Name;
381       }
382       methods_.Add(other.methods_);
383       options_.Add(other.options_);
384       if (other.Version.Length != 0) {
385         Version = other.Version;
386       }
387       if (other.sourceContext_ != null) {
388         if (sourceContext_ == null) {
389           SourceContext = new global::Google.Protobuf.WellKnownTypes.SourceContext();
390         }
391         SourceContext.MergeFrom(other.SourceContext);
392       }
393       mixins_.Add(other.mixins_);
394       if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
395         Syntax = other.Syntax;
396       }
397       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
398     }
399 
400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
401     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)402     public void MergeFrom(pb::CodedInputStream input) {
403     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
404       input.ReadRawMessage(this);
405     #else
406       uint tag;
407       while ((tag = input.ReadTag()) != 0) {
408       if ((tag & 7) == 4) {
409         // Abort on any end group tag.
410         return;
411       }
412       switch(tag) {
413           default:
414             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
415             break;
416           case 10: {
417             Name = input.ReadString();
418             break;
419           }
420           case 18: {
421             methods_.AddEntriesFrom(input, _repeated_methods_codec);
422             break;
423           }
424           case 26: {
425             options_.AddEntriesFrom(input, _repeated_options_codec);
426             break;
427           }
428           case 34: {
429             Version = input.ReadString();
430             break;
431           }
432           case 42: {
433             if (sourceContext_ == null) {
434               SourceContext = new global::Google.Protobuf.WellKnownTypes.SourceContext();
435             }
436             input.ReadMessage(SourceContext);
437             break;
438           }
439           case 50: {
440             mixins_.AddEntriesFrom(input, _repeated_mixins_codec);
441             break;
442           }
443           case 56: {
444             Syntax = (global::Google.Protobuf.WellKnownTypes.Syntax) input.ReadEnum();
445             break;
446           }
447         }
448       }
449     #endif
450     }
451 
452     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
453     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
454     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)455     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
456       uint tag;
457       while ((tag = input.ReadTag()) != 0) {
458       if ((tag & 7) == 4) {
459         // Abort on any end group tag.
460         return;
461       }
462       switch(tag) {
463           default:
464             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
465             break;
466           case 10: {
467             Name = input.ReadString();
468             break;
469           }
470           case 18: {
471             methods_.AddEntriesFrom(ref input, _repeated_methods_codec);
472             break;
473           }
474           case 26: {
475             options_.AddEntriesFrom(ref input, _repeated_options_codec);
476             break;
477           }
478           case 34: {
479             Version = input.ReadString();
480             break;
481           }
482           case 42: {
483             if (sourceContext_ == null) {
484               SourceContext = new global::Google.Protobuf.WellKnownTypes.SourceContext();
485             }
486             input.ReadMessage(SourceContext);
487             break;
488           }
489           case 50: {
490             mixins_.AddEntriesFrom(ref input, _repeated_mixins_codec);
491             break;
492           }
493           case 56: {
494             Syntax = (global::Google.Protobuf.WellKnownTypes.Syntax) input.ReadEnum();
495             break;
496           }
497         }
498       }
499     }
500     #endif
501 
502   }
503 
504   /// <summary>
505   /// Method represents a method of an API interface.
506   /// </summary>
507   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
508   public sealed partial class Method : pb::IMessage<Method>
509   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
510       , pb::IBufferMessage
511   #endif
512   {
513     private static readonly pb::MessageParser<Method> _parser = new pb::MessageParser<Method>(() => new Method());
514     private pb::UnknownFieldSet _unknownFields;
515     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
516     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
517     public static pb::MessageParser<Method> Parser { get { return _parser; } }
518 
519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
520     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
521     public static pbr::MessageDescriptor Descriptor {
522       get { return global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor.MessageTypes[1]; }
523     }
524 
525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
527     pbr::MessageDescriptor pb::IMessage.Descriptor {
528       get { return Descriptor; }
529     }
530 
531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Method()533     public Method() {
534       OnConstruction();
535     }
536 
OnConstruction()537     partial void OnConstruction();
538 
539     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
540     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Method(Method other)541     public Method(Method other) : this() {
542       name_ = other.name_;
543       requestTypeUrl_ = other.requestTypeUrl_;
544       requestStreaming_ = other.requestStreaming_;
545       responseTypeUrl_ = other.responseTypeUrl_;
546       responseStreaming_ = other.responseStreaming_;
547       options_ = other.options_.Clone();
548       syntax_ = other.syntax_;
549       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
550     }
551 
552     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
553     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()554     public Method Clone() {
555       return new Method(this);
556     }
557 
558     /// <summary>Field number for the "name" field.</summary>
559     public const int NameFieldNumber = 1;
560     private string name_ = "";
561     /// <summary>
562     /// The simple name of this method.
563     /// </summary>
564     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
565     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
566     public string Name {
567       get { return name_; }
568       set {
569         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
570       }
571     }
572 
573     /// <summary>Field number for the "request_type_url" field.</summary>
574     public const int RequestTypeUrlFieldNumber = 2;
575     private string requestTypeUrl_ = "";
576     /// <summary>
577     /// A URL of the input message type.
578     /// </summary>
579     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
580     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
581     public string RequestTypeUrl {
582       get { return requestTypeUrl_; }
583       set {
584         requestTypeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
585       }
586     }
587 
588     /// <summary>Field number for the "request_streaming" field.</summary>
589     public const int RequestStreamingFieldNumber = 3;
590     private bool requestStreaming_;
591     /// <summary>
592     /// If true, the request is streamed.
593     /// </summary>
594     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
595     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
596     public bool RequestStreaming {
597       get { return requestStreaming_; }
598       set {
599         requestStreaming_ = value;
600       }
601     }
602 
603     /// <summary>Field number for the "response_type_url" field.</summary>
604     public const int ResponseTypeUrlFieldNumber = 4;
605     private string responseTypeUrl_ = "";
606     /// <summary>
607     /// The URL of the output message type.
608     /// </summary>
609     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
610     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
611     public string ResponseTypeUrl {
612       get { return responseTypeUrl_; }
613       set {
614         responseTypeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
615       }
616     }
617 
618     /// <summary>Field number for the "response_streaming" field.</summary>
619     public const int ResponseStreamingFieldNumber = 5;
620     private bool responseStreaming_;
621     /// <summary>
622     /// If true, the response is streamed.
623     /// </summary>
624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
625     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
626     public bool ResponseStreaming {
627       get { return responseStreaming_; }
628       set {
629         responseStreaming_ = value;
630       }
631     }
632 
633     /// <summary>Field number for the "options" field.</summary>
634     public const int OptionsFieldNumber = 6;
635     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Option> _repeated_options_codec
636         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Option.Parser);
637     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>();
638     /// <summary>
639     /// Any metadata attached to the method.
640     /// </summary>
641     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
642     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
643     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options {
644       get { return options_; }
645     }
646 
647     /// <summary>Field number for the "syntax" field.</summary>
648     public const int SyntaxFieldNumber = 7;
649     private global::Google.Protobuf.WellKnownTypes.Syntax syntax_ = global::Google.Protobuf.WellKnownTypes.Syntax.Proto2;
650     /// <summary>
651     /// The source syntax of this method.
652     /// </summary>
653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
654     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
655     public global::Google.Protobuf.WellKnownTypes.Syntax Syntax {
656       get { return syntax_; }
657       set {
658         syntax_ = value;
659       }
660     }
661 
662     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
663     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)664     public override bool Equals(object other) {
665       return Equals(other as Method);
666     }
667 
668     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
669     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Method other)670     public bool Equals(Method other) {
671       if (ReferenceEquals(other, null)) {
672         return false;
673       }
674       if (ReferenceEquals(other, this)) {
675         return true;
676       }
677       if (Name != other.Name) return false;
678       if (RequestTypeUrl != other.RequestTypeUrl) return false;
679       if (RequestStreaming != other.RequestStreaming) return false;
680       if (ResponseTypeUrl != other.ResponseTypeUrl) return false;
681       if (ResponseStreaming != other.ResponseStreaming) return false;
682       if(!options_.Equals(other.options_)) return false;
683       if (Syntax != other.Syntax) return false;
684       return Equals(_unknownFields, other._unknownFields);
685     }
686 
687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()689     public override int GetHashCode() {
690       int hash = 1;
691       if (Name.Length != 0) hash ^= Name.GetHashCode();
692       if (RequestTypeUrl.Length != 0) hash ^= RequestTypeUrl.GetHashCode();
693       if (RequestStreaming != false) hash ^= RequestStreaming.GetHashCode();
694       if (ResponseTypeUrl.Length != 0) hash ^= ResponseTypeUrl.GetHashCode();
695       if (ResponseStreaming != false) hash ^= ResponseStreaming.GetHashCode();
696       hash ^= options_.GetHashCode();
697       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode();
698       if (_unknownFields != null) {
699         hash ^= _unknownFields.GetHashCode();
700       }
701       return hash;
702     }
703 
704     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
705     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()706     public override string ToString() {
707       return pb::JsonFormatter.ToDiagnosticString(this);
708     }
709 
710     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
711     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)712     public void WriteTo(pb::CodedOutputStream output) {
713     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
714       output.WriteRawMessage(this);
715     #else
716       if (Name.Length != 0) {
717         output.WriteRawTag(10);
718         output.WriteString(Name);
719       }
720       if (RequestTypeUrl.Length != 0) {
721         output.WriteRawTag(18);
722         output.WriteString(RequestTypeUrl);
723       }
724       if (RequestStreaming != false) {
725         output.WriteRawTag(24);
726         output.WriteBool(RequestStreaming);
727       }
728       if (ResponseTypeUrl.Length != 0) {
729         output.WriteRawTag(34);
730         output.WriteString(ResponseTypeUrl);
731       }
732       if (ResponseStreaming != false) {
733         output.WriteRawTag(40);
734         output.WriteBool(ResponseStreaming);
735       }
736       options_.WriteTo(output, _repeated_options_codec);
737       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
738         output.WriteRawTag(56);
739         output.WriteEnum((int) Syntax);
740       }
741       if (_unknownFields != null) {
742         _unknownFields.WriteTo(output);
743       }
744     #endif
745     }
746 
747     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
748     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
749     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)750     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
751       if (Name.Length != 0) {
752         output.WriteRawTag(10);
753         output.WriteString(Name);
754       }
755       if (RequestTypeUrl.Length != 0) {
756         output.WriteRawTag(18);
757         output.WriteString(RequestTypeUrl);
758       }
759       if (RequestStreaming != false) {
760         output.WriteRawTag(24);
761         output.WriteBool(RequestStreaming);
762       }
763       if (ResponseTypeUrl.Length != 0) {
764         output.WriteRawTag(34);
765         output.WriteString(ResponseTypeUrl);
766       }
767       if (ResponseStreaming != false) {
768         output.WriteRawTag(40);
769         output.WriteBool(ResponseStreaming);
770       }
771       options_.WriteTo(ref output, _repeated_options_codec);
772       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
773         output.WriteRawTag(56);
774         output.WriteEnum((int) Syntax);
775       }
776       if (_unknownFields != null) {
777         _unknownFields.WriteTo(ref output);
778       }
779     }
780     #endif
781 
782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()784     public int CalculateSize() {
785       int size = 0;
786       if (Name.Length != 0) {
787         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
788       }
789       if (RequestTypeUrl.Length != 0) {
790         size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestTypeUrl);
791       }
792       if (RequestStreaming != false) {
793         size += 1 + 1;
794       }
795       if (ResponseTypeUrl.Length != 0) {
796         size += 1 + pb::CodedOutputStream.ComputeStringSize(ResponseTypeUrl);
797       }
798       if (ResponseStreaming != false) {
799         size += 1 + 1;
800       }
801       size += options_.CalculateSize(_repeated_options_codec);
802       if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
803         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Syntax);
804       }
805       if (_unknownFields != null) {
806         size += _unknownFields.CalculateSize();
807       }
808       return size;
809     }
810 
811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Method other)813     public void MergeFrom(Method other) {
814       if (other == null) {
815         return;
816       }
817       if (other.Name.Length != 0) {
818         Name = other.Name;
819       }
820       if (other.RequestTypeUrl.Length != 0) {
821         RequestTypeUrl = other.RequestTypeUrl;
822       }
823       if (other.RequestStreaming != false) {
824         RequestStreaming = other.RequestStreaming;
825       }
826       if (other.ResponseTypeUrl.Length != 0) {
827         ResponseTypeUrl = other.ResponseTypeUrl;
828       }
829       if (other.ResponseStreaming != false) {
830         ResponseStreaming = other.ResponseStreaming;
831       }
832       options_.Add(other.options_);
833       if (other.Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) {
834         Syntax = other.Syntax;
835       }
836       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
837     }
838 
839     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
840     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)841     public void MergeFrom(pb::CodedInputStream input) {
842     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
843       input.ReadRawMessage(this);
844     #else
845       uint tag;
846       while ((tag = input.ReadTag()) != 0) {
847       if ((tag & 7) == 4) {
848         // Abort on any end group tag.
849         return;
850       }
851       switch(tag) {
852           default:
853             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
854             break;
855           case 10: {
856             Name = input.ReadString();
857             break;
858           }
859           case 18: {
860             RequestTypeUrl = input.ReadString();
861             break;
862           }
863           case 24: {
864             RequestStreaming = input.ReadBool();
865             break;
866           }
867           case 34: {
868             ResponseTypeUrl = input.ReadString();
869             break;
870           }
871           case 40: {
872             ResponseStreaming = input.ReadBool();
873             break;
874           }
875           case 50: {
876             options_.AddEntriesFrom(input, _repeated_options_codec);
877             break;
878           }
879           case 56: {
880             Syntax = (global::Google.Protobuf.WellKnownTypes.Syntax) input.ReadEnum();
881             break;
882           }
883         }
884       }
885     #endif
886     }
887 
888     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
889     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
890     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)891     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
892       uint tag;
893       while ((tag = input.ReadTag()) != 0) {
894       if ((tag & 7) == 4) {
895         // Abort on any end group tag.
896         return;
897       }
898       switch(tag) {
899           default:
900             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
901             break;
902           case 10: {
903             Name = input.ReadString();
904             break;
905           }
906           case 18: {
907             RequestTypeUrl = input.ReadString();
908             break;
909           }
910           case 24: {
911             RequestStreaming = input.ReadBool();
912             break;
913           }
914           case 34: {
915             ResponseTypeUrl = input.ReadString();
916             break;
917           }
918           case 40: {
919             ResponseStreaming = input.ReadBool();
920             break;
921           }
922           case 50: {
923             options_.AddEntriesFrom(ref input, _repeated_options_codec);
924             break;
925           }
926           case 56: {
927             Syntax = (global::Google.Protobuf.WellKnownTypes.Syntax) input.ReadEnum();
928             break;
929           }
930         }
931       }
932     }
933     #endif
934 
935   }
936 
937   /// <summary>
938   /// Declares an API Interface to be included in this interface. The including
939   /// interface must redeclare all the methods from the included interface, but
940   /// documentation and options are inherited as follows:
941   ///
942   /// - If after comment and whitespace stripping, the documentation
943   ///   string of the redeclared method is empty, it will be inherited
944   ///   from the original method.
945   ///
946   /// - Each annotation belonging to the service config (http,
947   ///   visibility) which is not set in the redeclared method will be
948   ///   inherited.
949   ///
950   /// - If an http annotation is inherited, the path pattern will be
951   ///   modified as follows. Any version prefix will be replaced by the
952   ///   version of the including interface plus the [root][] path if
953   ///   specified.
954   ///
955   /// Example of a simple mixin:
956   ///
957   ///     package google.acl.v1;
958   ///     service AccessControl {
959   ///       // Get the underlying ACL object.
960   ///       rpc GetAcl(GetAclRequest) returns (Acl) {
961   ///         option (google.api.http).get = "/v1/{resource=**}:getAcl";
962   ///       }
963   ///     }
964   ///
965   ///     package google.storage.v2;
966   ///     service Storage {
967   ///       rpc GetAcl(GetAclRequest) returns (Acl);
968   ///
969   ///       // Get a data record.
970   ///       rpc GetData(GetDataRequest) returns (Data) {
971   ///         option (google.api.http).get = "/v2/{resource=**}";
972   ///       }
973   ///     }
974   ///
975   /// Example of a mixin configuration:
976   ///
977   ///     apis:
978   ///     - name: google.storage.v2.Storage
979   ///       mixins:
980   ///       - name: google.acl.v1.AccessControl
981   ///
982   /// The mixin construct implies that all methods in `AccessControl` are
983   /// also declared with same name and request/response types in
984   /// `Storage`. A documentation generator or annotation processor will
985   /// see the effective `Storage.GetAcl` method after inheriting
986   /// documentation and annotations as follows:
987   ///
988   ///     service Storage {
989   ///       // Get the underlying ACL object.
990   ///       rpc GetAcl(GetAclRequest) returns (Acl) {
991   ///         option (google.api.http).get = "/v2/{resource=**}:getAcl";
992   ///       }
993   ///       ...
994   ///     }
995   ///
996   /// Note how the version in the path pattern changed from `v1` to `v2`.
997   ///
998   /// If the `root` field in the mixin is specified, it should be a
999   /// relative path under which inherited HTTP paths are placed. Example:
1000   ///
1001   ///     apis:
1002   ///     - name: google.storage.v2.Storage
1003   ///       mixins:
1004   ///       - name: google.acl.v1.AccessControl
1005   ///         root: acls
1006   ///
1007   /// This implies the following inherited HTTP annotation:
1008   ///
1009   ///     service Storage {
1010   ///       // Get the underlying ACL object.
1011   ///       rpc GetAcl(GetAclRequest) returns (Acl) {
1012   ///         option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
1013   ///       }
1014   ///       ...
1015   ///     }
1016   /// </summary>
1017   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1018   public sealed partial class Mixin : pb::IMessage<Mixin>
1019   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1020       , pb::IBufferMessage
1021   #endif
1022   {
1023     private static readonly pb::MessageParser<Mixin> _parser = new pb::MessageParser<Mixin>(() => new Mixin());
1024     private pb::UnknownFieldSet _unknownFields;
1025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1026     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1027     public static pb::MessageParser<Mixin> Parser { get { return _parser; } }
1028 
1029     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1030     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1031     public static pbr::MessageDescriptor Descriptor {
1032       get { return global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor.MessageTypes[2]; }
1033     }
1034 
1035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1037     pbr::MessageDescriptor pb::IMessage.Descriptor {
1038       get { return Descriptor; }
1039     }
1040 
1041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1042     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Mixin()1043     public Mixin() {
1044       OnConstruction();
1045     }
1046 
OnConstruction()1047     partial void OnConstruction();
1048 
1049     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1050     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Mixin(Mixin other)1051     public Mixin(Mixin other) : this() {
1052       name_ = other.name_;
1053       root_ = other.root_;
1054       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1055     }
1056 
1057     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1058     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1059     public Mixin Clone() {
1060       return new Mixin(this);
1061     }
1062 
1063     /// <summary>Field number for the "name" field.</summary>
1064     public const int NameFieldNumber = 1;
1065     private string name_ = "";
1066     /// <summary>
1067     /// The fully qualified name of the interface which is included.
1068     /// </summary>
1069     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1070     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1071     public string Name {
1072       get { return name_; }
1073       set {
1074         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1075       }
1076     }
1077 
1078     /// <summary>Field number for the "root" field.</summary>
1079     public const int RootFieldNumber = 2;
1080     private string root_ = "";
1081     /// <summary>
1082     /// If non-empty specifies a path under which inherited HTTP paths
1083     /// are rooted.
1084     /// </summary>
1085     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1086     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1087     public string Root {
1088       get { return root_; }
1089       set {
1090         root_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1091       }
1092     }
1093 
1094     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1095     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1096     public override bool Equals(object other) {
1097       return Equals(other as Mixin);
1098     }
1099 
1100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1101     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Mixin other)1102     public bool Equals(Mixin other) {
1103       if (ReferenceEquals(other, null)) {
1104         return false;
1105       }
1106       if (ReferenceEquals(other, this)) {
1107         return true;
1108       }
1109       if (Name != other.Name) return false;
1110       if (Root != other.Root) return false;
1111       return Equals(_unknownFields, other._unknownFields);
1112     }
1113 
1114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1116     public override int GetHashCode() {
1117       int hash = 1;
1118       if (Name.Length != 0) hash ^= Name.GetHashCode();
1119       if (Root.Length != 0) hash ^= Root.GetHashCode();
1120       if (_unknownFields != null) {
1121         hash ^= _unknownFields.GetHashCode();
1122       }
1123       return hash;
1124     }
1125 
1126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1127     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1128     public override string ToString() {
1129       return pb::JsonFormatter.ToDiagnosticString(this);
1130     }
1131 
1132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1134     public void WriteTo(pb::CodedOutputStream output) {
1135     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1136       output.WriteRawMessage(this);
1137     #else
1138       if (Name.Length != 0) {
1139         output.WriteRawTag(10);
1140         output.WriteString(Name);
1141       }
1142       if (Root.Length != 0) {
1143         output.WriteRawTag(18);
1144         output.WriteString(Root);
1145       }
1146       if (_unknownFields != null) {
1147         _unknownFields.WriteTo(output);
1148       }
1149     #endif
1150     }
1151 
1152     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1153     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1154     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1155     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1156       if (Name.Length != 0) {
1157         output.WriteRawTag(10);
1158         output.WriteString(Name);
1159       }
1160       if (Root.Length != 0) {
1161         output.WriteRawTag(18);
1162         output.WriteString(Root);
1163       }
1164       if (_unknownFields != null) {
1165         _unknownFields.WriteTo(ref output);
1166       }
1167     }
1168     #endif
1169 
1170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1172     public int CalculateSize() {
1173       int size = 0;
1174       if (Name.Length != 0) {
1175         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1176       }
1177       if (Root.Length != 0) {
1178         size += 1 + pb::CodedOutputStream.ComputeStringSize(Root);
1179       }
1180       if (_unknownFields != null) {
1181         size += _unknownFields.CalculateSize();
1182       }
1183       return size;
1184     }
1185 
1186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Mixin other)1188     public void MergeFrom(Mixin other) {
1189       if (other == null) {
1190         return;
1191       }
1192       if (other.Name.Length != 0) {
1193         Name = other.Name;
1194       }
1195       if (other.Root.Length != 0) {
1196         Root = other.Root;
1197       }
1198       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1199     }
1200 
1201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1202     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1203     public void MergeFrom(pb::CodedInputStream input) {
1204     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1205       input.ReadRawMessage(this);
1206     #else
1207       uint tag;
1208       while ((tag = input.ReadTag()) != 0) {
1209       if ((tag & 7) == 4) {
1210         // Abort on any end group tag.
1211         return;
1212       }
1213       switch(tag) {
1214           default:
1215             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1216             break;
1217           case 10: {
1218             Name = input.ReadString();
1219             break;
1220           }
1221           case 18: {
1222             Root = input.ReadString();
1223             break;
1224           }
1225         }
1226       }
1227     #endif
1228     }
1229 
1230     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1233     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1234       uint tag;
1235       while ((tag = input.ReadTag()) != 0) {
1236       if ((tag & 7) == 4) {
1237         // Abort on any end group tag.
1238         return;
1239       }
1240       switch(tag) {
1241           default:
1242             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1243             break;
1244           case 10: {
1245             Name = input.ReadString();
1246             break;
1247           }
1248           case 18: {
1249             Root = input.ReadString();
1250             break;
1251           }
1252         }
1253       }
1254     }
1255     #endif
1256 
1257   }
1258 
1259   #endregion
1260 
1261 }
1262 
1263 #endregion Designer generated code
1264