UnittestImportPublicProto3.cs 5.17 KB
Newer Older
1 2 3 4 5 6 7
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/unittest_import_public_proto3.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
8
using pbr = global::Google.Protobuf.Reflection;
9 10 11
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {

12
  /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_public_proto3.proto</summary>
13
  public static partial class UnittestImportPublicProto3Reflection {
14 15

    #region Descriptor
16
    /// <summary>File descriptor for google/protobuf/unittest_import_public_proto3.proto</summary>
17
    public static pbr::FileDescriptor Descriptor {
18 19
      get { return descriptor; }
    }
20
    private static pbr::FileDescriptor descriptor;
21

22
    static UnittestImportPublicProto3Reflection() {
23 24
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
25 26 27
            "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90",
            "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ",
            "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
28
            "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
29
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
30
          new pbr::FileDescriptor[] { },
31 32
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage.Parser, new[]{ "E" }, null, null, null)
33
          }));
34 35 36 37 38
    }
    #endregion

  }
  #region Messages
39
  public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> {
40
    private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
41
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
42 43
    public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }

44
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
45
    public static pbr::MessageDescriptor Descriptor {
46
      get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; }
47 48
    }

49
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
50 51
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
52 53
    }

54
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
55 56 57 58 59
    public PublicImportMessage() {
      OnConstruction();
    }

    partial void OnConstruction();
Jon Skeet's avatar
Jon Skeet committed
60

61
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
62
    public PublicImportMessage(PublicImportMessage other) : this() {
Jon Skeet's avatar
Jon Skeet committed
63 64 65
      e_ = other.e_;
    }

66
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
67 68
    public PublicImportMessage Clone() {
      return new PublicImportMessage(this);
69
    }
Jon Skeet's avatar
Jon Skeet committed
70

71
    /// <summary>Field number for the "e" field.</summary>
72 73
    public const int EFieldNumber = 1;
    private int e_;
74
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
75 76
    public int E {
      get { return e_; }
77 78 79
      set {
        e_ = value;
      }
80 81
    }

82
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
83 84 85 86
    public override bool Equals(object other) {
      return Equals(other as PublicImportMessage);
    }

87
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 89 90 91 92 93 94 95 96 97 98
    public bool Equals(PublicImportMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (E != other.E) return false;
      return true;
    }

99
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
100
    public override int GetHashCode() {
101
      int hash = 1;
102 103 104 105
      if (E != 0) hash ^= E.GetHashCode();
      return hash;
    }

106
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
107
    public override string ToString() {
108
      return pb::JsonFormatter.ToDiagnosticString(this);
109 110
    }

111
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
112
    public void WriteTo(pb::CodedOutputStream output) {
113
      if (E != 0) {
114 115
        output.WriteRawTag(8);
        output.WriteInt32(E);
116 117 118
      }
    }

119
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120 121 122
    public int CalculateSize() {
      int size = 0;
      if (E != 0) {
123
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
124 125 126
      }
      return size;
    }
127

128
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129 130 131 132 133 134 135 136 137
    public void MergeFrom(PublicImportMessage other) {
      if (other == null) {
        return;
      }
      if (other.E != 0) {
        E = other.E;
      }
    }

138
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
139
    public void MergeFrom(pb::CodedInputStream input) {
140
      uint tag;
141
      while ((tag = input.ReadTag()) != 0) {
142 143
        switch(tag) {
          default:
144
            input.SkipLastField();
145 146
            break;
          case 8: {
Jon Skeet's avatar
Jon Skeet committed
147
            E = input.ReadInt32();
148 149 150 151 152 153 154 155 156 157 158 159 160
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code