public void MergeFrom(Tensorboard other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.encryptionSpec_ != null)
     {
         if (encryptionSpec_ == null)
         {
             EncryptionSpec = new global::Google.Cloud.AIPlatform.V1.EncryptionSpec();
         }
         EncryptionSpec.MergeFrom(other.EncryptionSpec);
     }
     if (other.BlobStoragePathPrefix.Length != 0)
     {
         BlobStoragePathPrefix = other.BlobStoragePathPrefix;
     }
     if (other.RunCount != 0)
     {
         RunCount = other.RunCount;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     labels_.Add(other.labels_);
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
 public void MergeFrom(MetadataStore other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.encryptionSpec_ != null)
     {
         if (encryptionSpec_ == null)
         {
             EncryptionSpec = new global::Google.Cloud.AIPlatform.V1.EncryptionSpec();
         }
         EncryptionSpec.MergeFrom(other.EncryptionSpec);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.state_ != null)
     {
         if (state_ == null)
         {
             State = new global::Google.Cloud.AIPlatform.V1.MetadataStore.Types.MetadataStoreState();
         }
         State.MergeFrom(other.State);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }