Exemple #1
0
 public void MergeFrom(ClusterOperationMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClusterName.Length != 0)
     {
         ClusterName = other.ClusterName;
     }
     if (other.ClusterUuid.Length != 0)
     {
         ClusterUuid = other.ClusterUuid;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             status_ = new global::Google.Cloud.Dataproc.V1.ClusterOperationStatus();
         }
         Status.MergeFrom(other.Status);
     }
     statusHistory_.Add(other.statusHistory_);
     if (other.OperationType.Length != 0)
     {
         OperationType = other.OperationType;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     labels_.Add(other.labels_);
     warnings_.Add(other.warnings_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 58: {
                    ClusterName = input.ReadString();
                    break;
                }

                case 66: {
                    ClusterUuid = input.ReadString();
                    break;
                }

                case 74: {
                    if (status_ == null)
                    {
                        status_ = new global::Google.Cloud.Dataproc.V1.ClusterOperationStatus();
                    }
                    input.ReadMessage(status_);
                    break;
                }

                case 82: {
                    statusHistory_.AddEntriesFrom(input, _repeated_statusHistory_codec);
                    break;
                }

                case 90: {
                    OperationType = input.ReadString();
                    break;
                }

                case 98: {
                    Description = input.ReadString();
                    break;
                }

                case 106: {
                    labels_.AddEntriesFrom(input, _map_labels_codec);
                    break;
                }

                case 114: {
                    warnings_.AddEntriesFrom(input, _repeated_warnings_codec);
                    break;
                }
                }
            }
        }