コード例 #1
0
        public void MergeFrom(ResultSetStats other)
        {
            if (other == null)
            {
                return;
            }
            if (other.queryPlan_ != null)
            {
                if (queryPlan_ == null)
                {
                    QueryPlan = new global::Google.Cloud.Spanner.V1.QueryPlan();
                }
                QueryPlan.MergeFrom(other.QueryPlan);
            }
            if (other.queryStats_ != null)
            {
                if (queryStats_ == null)
                {
                    QueryStats = new global::Google.Protobuf.WellKnownTypes.Struct();
                }
                QueryStats.MergeFrom(other.QueryStats);
            }
            switch (other.RowCountCase)
            {
            case RowCountOneofCase.RowCountExact:
                RowCountExact = other.RowCountExact;
                break;

            case RowCountOneofCase.RowCountLowerBound:
                RowCountLowerBound = other.RowCountLowerBound;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (queryPlan_ != null)
            {
                hash ^= QueryPlan.GetHashCode();
            }
            if (queryStats_ != null)
            {
                hash ^= QueryStats.GetHashCode();
            }
            if (rowCountCase_ == RowCountOneofCase.RowCountExact)
            {
                hash ^= RowCountExact.GetHashCode();
            }
            if (rowCountCase_ == RowCountOneofCase.RowCountLowerBound)
            {
                hash ^= RowCountLowerBound.GetHashCode();
            }
            hash ^= (int)rowCountCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (queryPlan_ != null)
            {
                hash ^= QueryPlan.GetHashCode();
            }
            if (queryStats_ != null)
            {
                hash ^= QueryStats.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
 public void MergeFrom(ResultSetStats other)
 {
     if (other == null)
     {
         return;
     }
     if (other.queryPlan_ != null)
     {
         if (queryPlan_ == null)
         {
             queryPlan_ = new global::Google.Cloud.Spanner.V1.QueryPlan();
         }
         QueryPlan.MergeFrom(other.QueryPlan);
     }
     if (other.queryStats_ != null)
     {
         if (queryStats_ == null)
         {
             queryStats_ = new global::Google.Protobuf.WellKnownTypes.Struct();
         }
         QueryStats.MergeFrom(other.QueryStats);
     }
 }