• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/empty.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.WellKnownTypes {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary>
15   public static partial class EmptyReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/empty.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
EmptyReflection()24     static EmptyReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1",
28             "ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv",
29             "UAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2Vt",
30             "cHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlw",
31             "ZXNiBnByb3RvMw=="));
32       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
33           new pbr::FileDescriptor[] { },
34           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
35             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null, null)
36           }));
37     }
38     #endregion
39 
40   }
41   #region Messages
42   /// <summary>
43   /// A generic empty message that you can re-use to avoid defining duplicated
44   /// empty messages in your APIs. A typical example is to use it as the request
45   /// or the response type of an API method. For instance:
46   ///
47   ///     service Foo {
48   ///       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
49   ///     }
50   /// </summary>
51   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
52   public sealed partial class Empty : pb::IMessage<Empty>
53   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
54       , pb::IBufferMessage
55   #endif
56   {
57     private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
58     private pb::UnknownFieldSet _unknownFields;
59     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
61     public static pb::MessageParser<Empty> Parser { get { return _parser; } }
62 
63     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
65     public static pbr::MessageDescriptor Descriptor {
66       get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; }
67     }
68 
69     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
71     pbr::MessageDescriptor pb::IMessage.Descriptor {
72       get { return Descriptor; }
73     }
74 
75     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Empty()77     public Empty() {
78       OnConstruction();
79     }
80 
OnConstruction()81     partial void OnConstruction();
82 
83     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Empty(Empty other)85     public Empty(Empty other) : this() {
86       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
87     }
88 
89     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
90     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()91     public Empty Clone() {
92       return new Empty(this);
93     }
94 
95     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)97     public override bool Equals(object other) {
98       return Equals(other as Empty);
99     }
100 
101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Empty other)103     public bool Equals(Empty other) {
104       if (ReferenceEquals(other, null)) {
105         return false;
106       }
107       if (ReferenceEquals(other, this)) {
108         return true;
109       }
110       return Equals(_unknownFields, other._unknownFields);
111     }
112 
113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
114     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()115     public override int GetHashCode() {
116       int hash = 1;
117       if (_unknownFields != null) {
118         hash ^= _unknownFields.GetHashCode();
119       }
120       return hash;
121     }
122 
123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()125     public override string ToString() {
126       return pb::JsonFormatter.ToDiagnosticString(this);
127     }
128 
129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)131     public void WriteTo(pb::CodedOutputStream output) {
132     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
133       output.WriteRawMessage(this);
134     #else
135       if (_unknownFields != null) {
136         _unknownFields.WriteTo(output);
137       }
138     #endif
139     }
140 
141     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
143     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)144     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
145       if (_unknownFields != null) {
146         _unknownFields.WriteTo(ref output);
147       }
148     }
149     #endif
150 
151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
152     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()153     public int CalculateSize() {
154       int size = 0;
155       if (_unknownFields != null) {
156         size += _unknownFields.CalculateSize();
157       }
158       return size;
159     }
160 
161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Empty other)163     public void MergeFrom(Empty other) {
164       if (other == null) {
165         return;
166       }
167       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
168     }
169 
170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
171     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)172     public void MergeFrom(pb::CodedInputStream input) {
173     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
174       input.ReadRawMessage(this);
175     #else
176       uint tag;
177       while ((tag = input.ReadTag()) != 0) {
178       if ((tag & 7) == 4) {
179         // Abort on any end group tag.
180         return;
181       }
182       switch(tag) {
183           default:
184             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
185             break;
186         }
187       }
188     #endif
189     }
190 
191     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
192     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)194     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
195       uint tag;
196       while ((tag = input.ReadTag()) != 0) {
197       if ((tag & 7) == 4) {
198         // Abort on any end group tag.
199         return;
200       }
201       switch(tag) {
202           default:
203             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
204             break;
205         }
206       }
207     }
208     #endif
209 
210   }
211 
212   #endregion
213 
214 }
215 
216 #endregion Designer generated code
217