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