public override int GetHashCode()
        {
            int hash = 1;

            if (UserEmail.Length != 0)
            {
                hash ^= UserEmail.GetHashCode();
            }
            if (deployTime_ != null)
            {
                hash ^= DeployTime.GetHashCode();
            }
            if (undeployTime_ != null)
            {
                hash ^= UndeployTime.GetHashCode();
            }
            if (Config.Length != 0)
            {
                hash ^= Config.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            hash ^= resourceUri_.GetHashCode();
            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserEmail.Length != 0)
            {
                hash ^= UserEmail.GetHashCode();
            }
            if (deployTime_ != null)
            {
                hash ^= DeployTime.GetHashCode();
            }
            if (undeployTime_ != null)
            {
                hash ^= UndeployTime.GetHashCode();
            }
            if (Config.Length != 0)
            {
                hash ^= Config.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            hash ^= resourceUri_.GetHashCode();
            if (Platform != global::Grafeas.V1.DeploymentOccurrence.Types.Platform.Unspecified)
            {
                hash ^= Platform.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(DeploymentOccurrence other)
 {
     if (other == null)
     {
         return;
     }
     if (other.UserEmail.Length != 0)
     {
         UserEmail = other.UserEmail;
     }
     if (other.deployTime_ != null)
     {
         if (deployTime_ == null)
         {
             DeployTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         DeployTime.MergeFrom(other.DeployTime);
     }
     if (other.undeployTime_ != null)
     {
         if (undeployTime_ == null)
         {
             UndeployTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UndeployTime.MergeFrom(other.UndeployTime);
     }
     if (other.Config.Length != 0)
     {
         Config = other.Config;
     }
     if (other.Address.Length != 0)
     {
         Address = other.Address;
     }
     resourceUri_.Add(other.resourceUri_);
     if (other.Platform != 0)
     {
         Platform = other.Platform;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }