コード例 #1
0
 public override int GetHashCode() {
   int hash = 1;
   if (FilePath.Length != 0) hash ^= FilePath.GetHashCode();
   if (gcsTimestamps_ != null) hash ^= GcsTimestamps.GetHashCode();
   if (SizeBytes != 0L) hash ^= SizeBytes.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
コード例 #2
0
 public void MergeFrom(GcsFileSpec other) {
   if (other == null) {
     return;
   }
   if (other.FilePath.Length != 0) {
     FilePath = other.FilePath;
   }
   if (other.gcsTimestamps_ != null) {
     if (gcsTimestamps_ == null) {
       GcsTimestamps = new global::Google.Cloud.DataCatalog.V1.SystemTimestamps();
     }
     GcsTimestamps.MergeFrom(other.GcsTimestamps);
   }
   if (other.SizeBytes != 0L) {
     SizeBytes = other.SizeBytes;
   }
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }