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