Example #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);
        }
Example #2
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);
     }
 }