public void MergeFrom(OSPolicyResourceCompliance other)
        {
            if (other == null)
            {
                return;
            }
            if (other.OsPolicyResourceId.Length != 0)
            {
                OsPolicyResourceId = other.OsPolicyResourceId;
            }
            configSteps_.Add(other.configSteps_);
            if (other.State != global::Google.Cloud.OsConfig.V1Alpha.OSPolicyComplianceState.Unspecified)
            {
                State = other.State;
            }
            switch (other.OutputCase)
            {
            case OutputOneofCase.ExecResourceOutput:
                if (ExecResourceOutput == null)
                {
                    ExecResourceOutput = new global::Google.Cloud.OsConfig.V1Alpha.OSPolicyResourceCompliance.Types.ExecResourceOutput();
                }
                ExecResourceOutput.MergeFrom(other.ExecResourceOutput);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (OsPolicyResourceId.Length != 0)
            {
                hash ^= OsPolicyResourceId.GetHashCode();
            }
            hash ^= configSteps_.GetHashCode();
            if (State != global::Google.Cloud.OsConfig.V1Alpha.OSPolicyComplianceState.Unspecified)
            {
                hash ^= State.GetHashCode();
            }
            if (outputCase_ == OutputOneofCase.ExecResourceOutput)
            {
                hash ^= ExecResourceOutput.GetHashCode();
            }
            hash ^= (int)outputCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }