| // <auto-generated> |
| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: google/protobuf/json_enumvalue_options.proto |
| // </auto-generated> |
| #pragma warning disable 1591, 0612, 3021, 8981 |
| #region Designer generated code |
| |
| using pb = global::Google.Protobuf; |
| using pbc = global::Google.Protobuf.Collections; |
| using pbr = global::Google.Protobuf.Reflection; |
| using scg = global::System.Collections.Generic; |
| namespace Pb.Enumvalue { |
| |
| /// <summary>Holder for reflection information generated from google/protobuf/json_enumvalue_options.proto</summary> |
| public static partial class JsonEnumvalueOptionsReflection { |
| |
| #region Descriptor |
| /// <summary>File descriptor for google/protobuf/json_enumvalue_options.proto</summary> |
| public static pbr::FileDescriptor Descriptor { |
| get { return descriptor; } |
| } |
| private static pbr::FileDescriptor descriptor; |
| |
| static JsonEnumvalueOptionsReflection() { |
| byte[] descriptorData = global::System.Convert.FromBase64String( |
| string.Concat( |
| "Cixnb29nbGUvcHJvdG9idWYvanNvbl9lbnVtdmFsdWVfb3B0aW9ucy5wcm90", |
| "bxIMcGIuZW51bXZhbHVlGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5w", |
| "cm90byIoChRKc29uRW51bVZhbHVlT3B0aW9ucxIOCgZzdHJpbmcYASABKAlY", |
| "ATpcCgRqc29uEiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnMY", |
| "5gcgASgLMiIucGIuZW51bXZhbHVlLkpzb25FbnVtVmFsdWVPcHRpb25zQgay", |
| "AQMI6gdCGgoYY29tLmdvb2dsZS5wcm90b2J1Zi51dGlsYghlZGl0aW9uc3Dp", |
| "Bw==")); |
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, |
| new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { JsonEnumvalueOptionsExtensions.Json }, new pbr::GeneratedClrTypeInfo[] { |
| new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Enumvalue.JsonEnumValueOptions), global::Pb.Enumvalue.JsonEnumValueOptions.Parser, new[]{ "String" }, null, null, null, null) |
| })); |
| } |
| #endregion |
| |
| } |
| /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/json_enumvalue_options.proto</summary> |
| public static partial class JsonEnumvalueOptionsExtensions { |
| public static readonly pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::Pb.Enumvalue.JsonEnumValueOptions> Json = |
| new pb::Extension<global::Google.Protobuf.Reflection.EnumValueOptions, global::Pb.Enumvalue.JsonEnumValueOptions>(998, pb::FieldCodec.ForMessage(7986, global::Pb.Enumvalue.JsonEnumValueOptions.Parser)); |
| } |
| |
| #region Messages |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| public sealed partial class JsonEnumValueOptions : pb::IMessage<JsonEnumValueOptions> |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| , pb::IBufferMessage |
| #endif |
| { |
| private static readonly pb::MessageParser<JsonEnumValueOptions> _parser = new pb::MessageParser<JsonEnumValueOptions>(() => new JsonEnumValueOptions()); |
| private pb::UnknownFieldSet _unknownFields; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pb::MessageParser<JsonEnumValueOptions> Parser { get { return _parser; } } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pbr::MessageDescriptor Descriptor { |
| get { return global::Pb.Enumvalue.JsonEnumvalueOptionsReflection.Descriptor.MessageTypes[0]; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| pbr::MessageDescriptor pb::IMessage.Descriptor { |
| get { return Descriptor; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public JsonEnumValueOptions() { |
| OnConstruction(); |
| } |
| |
| partial void OnConstruction(); |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public JsonEnumValueOptions(JsonEnumValueOptions other) : this() { |
| string_ = other.string_; |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public JsonEnumValueOptions Clone() { |
| return new JsonEnumValueOptions(this); |
| } |
| |
| /// <summary>Field number for the "string" field.</summary> |
| public const int StringFieldNumber = 1; |
| private readonly static string StringDefaultValue = ""; |
| |
| private string string_; |
| /// <summary> |
| /// Allows user to specify a custom string to use when serializing an enum |
| /// value to JSON. |
| /// |
| /// Sample usage: |
| /// enum Foo { |
| /// ... |
| /// FOO_BAR = 42 [(pb.enumvalue.json).string = "my_custom_name"]; |
| /// } |
| /// </summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public string String { |
| get { return string_ ?? StringDefaultValue; } |
| set { |
| string_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| } |
| } |
| /// <summary>Gets whether the "string" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasString { |
| get { return string_ != null; } |
| } |
| /// <summary>Clears the value of the "string" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearString() { |
| string_ = null; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override bool Equals(object other) { |
| return Equals(other as JsonEnumValueOptions); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool Equals(JsonEnumValueOptions other) { |
| if (ReferenceEquals(other, null)) { |
| return false; |
| } |
| if (ReferenceEquals(other, this)) { |
| return true; |
| } |
| if (String != other.String) return false; |
| return Equals(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override int GetHashCode() { |
| int hash = 1; |
| if (HasString) hash ^= String.GetHashCode(); |
| if (_unknownFields != null) { |
| hash ^= _unknownFields.GetHashCode(); |
| } |
| return hash; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override string ToString() { |
| return pb::JsonFormatter.ToDiagnosticString(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void WriteTo(pb::CodedOutputStream output) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| output.WriteRawMessage(this); |
| #else |
| if (HasString) { |
| output.WriteRawTag(10); |
| output.WriteString(String); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(output); |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| if (HasString) { |
| output.WriteRawTag(10); |
| output.WriteString(String); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(ref output); |
| } |
| } |
| #endif |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int CalculateSize() { |
| int size = 0; |
| if (HasString) { |
| size += 1 + pb::CodedOutputStream.ComputeStringSize(String); |
| } |
| if (_unknownFields != null) { |
| size += _unknownFields.CalculateSize(); |
| } |
| return size; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(JsonEnumValueOptions other) { |
| if (other == null) { |
| return; |
| } |
| if (other.HasString) { |
| String = other.String; |
| } |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(pb::CodedInputStream input) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| input.ReadRawMessage(this); |
| #else |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| if ((tag & 7) == 4) { |
| // Abort on any end group tag. |
| return; |
| } |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| break; |
| case 10: { |
| String = input.ReadString(); |
| break; |
| } |
| } |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| if ((tag & 7) == 4) { |
| // Abort on any end group tag. |
| return; |
| } |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| break; |
| case 10: { |
| String = input.ReadString(); |
| break; |
| } |
| } |
| } |
| } |
| #endif |
| |
| } |
| |
| #endregion |
| |
| } |
| |
| #endregion Designer generated code |