Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StringField.Length != 0)
            {
                hash ^= StringField.GetHashCode();
            }
            if (Int64Field != 0L)
            {
                hash ^= Int64Field.GetHashCode();
            }
            if (Uint32Field != 0)
            {
                hash ^= Uint32Field.GetHashCode();
            }
            hash ^= repeatedDoubleField_.GetHashCode();
            if (EnumField != global::Plexus.Interop.Testing.Generated.EchoRequest.Types.SubEnum.ValueOne)
            {
                hash ^= EnumField.GetHashCode();
            }
            if (subMessageField_ != null)
            {
                hash ^= SubMessageField.GetHashCode();
            }
            hash ^= repeatedSubMessageField_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public void MergeFrom(EchoRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StringField.Length != 0)
     {
         StringField = other.StringField;
     }
     if (other.Int64Field != 0L)
     {
         Int64Field = other.Int64Field;
     }
     if (other.Uint32Field != 0)
     {
         Uint32Field = other.Uint32Field;
     }
     repeatedDoubleField_.Add(other.repeatedDoubleField_);
     if (other.EnumField != global::Plexus.Interop.Testing.Generated.EchoRequest.Types.SubEnum.ValueOne)
     {
         EnumField = other.EnumField;
     }
     if (other.subMessageField_ != null)
     {
         if (subMessageField_ == null)
         {
             SubMessageField = new global::Plexus.Interop.Testing.Generated.EchoRequest.Types.SubMessage();
         }
         SubMessageField.MergeFrom(other.SubMessageField);
     }
     repeatedSubMessageField_.Add(other.repeatedSubMessageField_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StringField.Length != 0)
            {
                hash ^= StringField.GetHashCode();
            }
            if (Int64Field != 0L)
            {
                hash ^= Int64Field.GetHashCode();
            }
            if (Uint32Field != 0)
            {
                hash ^= Uint32Field.GetHashCode();
            }
            hash ^= repeatedDoubleField_.GetHashCode();
            if (EnumField != 0)
            {
                hash ^= EnumField.GetHashCode();
            }
            if (subMessageField_ != null)
            {
                hash ^= SubMessageField.GetHashCode();
            }
            hash ^= repeatedSubMessageField_.GetHashCode();
            return(hash);
        }