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

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

14
  /// <summary>Holder for reflection information generated from unittest_import_public_proto3.proto</summary>
15
  public static partial class UnittestImportPublicProto3Reflection {
16 17

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

24
    static UnittestImportPublicProto3Reflection() {
25 26
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
27 28
            "CiN1bml0dGVzdF9pbXBvcnRfcHVibGljX3Byb3RvMy5wcm90bxIYcHJvdG9i",
            "dWZfdW5pdHRlc3RfaW1wb3J0IiAKE1B1YmxpY0ltcG9ydE1lc3NhZ2USCQoB",
29 30
            "ZRgBIAEoBUIdqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3Rv",
            "Mw=="));
31
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32
          new pbr::FileDescriptor[] { },
33 34
          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)
35
          }));
36 37 38 39 40
    }
    #endregion

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

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

52
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
53 54
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
55 56
    }

57
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58 59 60 61 62
    public PublicImportMessage() {
      OnConstruction();
    }

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

64
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65
    public PublicImportMessage(PublicImportMessage other) : this() {
Jon Skeet's avatar
Jon Skeet committed
66
      e_ = other.e_;
67
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
68 69
    }

70
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
71 72
    public PublicImportMessage Clone() {
      return new PublicImportMessage(this);
73
    }
Jon Skeet's avatar
Jon Skeet committed
74

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

86
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
87 88 89 90
    public override bool Equals(object other) {
      return Equals(other as PublicImportMessage);
    }

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

103
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
104
    public override int GetHashCode() {
105
      int hash = 1;
106
      if (E != 0) hash ^= E.GetHashCode();
107 108 109
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
110 111 112
      return hash;
    }

113
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
114
    public override string ToString() {
115
      return pb::JsonFormatter.ToDiagnosticString(this);
116 117
    }

118
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
119
    public void WriteTo(pb::CodedOutputStream output) {
120
      if (E != 0) {
121 122
        output.WriteRawTag(8);
        output.WriteInt32(E);
123
      }
124 125 126
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
127 128
    }

129
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
130 131 132
    public int CalculateSize() {
      int size = 0;
      if (E != 0) {
133
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
134
      }
135 136 137
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
138 139
      return size;
    }
140

141
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
142 143 144 145 146 147 148
    public void MergeFrom(PublicImportMessage other) {
      if (other == null) {
        return;
      }
      if (other.E != 0) {
        E = other.E;
      }
149
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
150 151
    }

152
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
153
    public void MergeFrom(pb::CodedInputStream input) {
154
      uint tag;
155
      while ((tag = input.ReadTag()) != 0) {
156 157
        switch(tag) {
          default:
158
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
159 160
            break;
          case 8: {
Jon Skeet's avatar
Jon Skeet committed
161
            E = input.ReadInt32();
162 163 164 165 166 167 168 169 170 171 172 173 174
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code