public void MergeFrom(FeatureConfiguration other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ConfigCase)
            {
            case ConfigOneofCase.FixedLenFeature:
                if (FixedLenFeature == null)
                {
                    FixedLenFeature = new global::Tensorflow.FixedLenFeatureProto();
                }
                FixedLenFeature.MergeFrom(other.FixedLenFeature);
                break;

            case ConfigOneofCase.VarLenFeature:
                if (VarLenFeature == null)
                {
                    VarLenFeature = new global::Tensorflow.VarLenFeatureProto();
                }
                VarLenFeature.MergeFrom(other.VarLenFeature);
                break;
            }
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (configCase_ == ConfigOneofCase.FixedLenFeature)
            {
                hash ^= FixedLenFeature.GetHashCode();
            }
            if (configCase_ == ConfigOneofCase.VarLenFeature)
            {
                hash ^= VarLenFeature.GetHashCode();
            }
            hash ^= (int)configCase_;
            return(hash);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (configCase_ == ConfigOneofCase.FixedLenFeature)
            {
                hash ^= FixedLenFeature.GetHashCode();
            }
            if (configCase_ == ConfigOneofCase.VarLenFeature)
            {
                hash ^= VarLenFeature.GetHashCode();
            }
            hash ^= (int)configCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }