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