Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (systemLabels_ != null)
            {
                hash ^= SystemLabels.GetHashCode();
            }
            hash ^= UserLabels.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(MonitoredResourceMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.systemLabels_ != null)
     {
         if (systemLabels_ == null)
         {
             SystemLabels = new global::Google.Protobuf.WellKnownTypes.Struct();
         }
         SystemLabels.MergeFrom(other.SystemLabels);
     }
     userLabels_.Add(other.userLabels_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }