public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    if (properties_ == null)
                    {
                        properties_ = new global::Tensorflow.DeviceProperties();
                    }
                    input.ReadMessage(properties_);
                    break;
                }
                }
            }
        }
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 10: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    if (properties_ == null)
                    {
                        Properties = new global::Tensorflow.DeviceProperties();
                    }
                    input.ReadMessage(Properties);
                    break;
                }
                }
            }
        }
 public void MergeFrom(NamedDevice other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.properties_ != null)
     {
         if (properties_ == null)
         {
             properties_ = new global::Tensorflow.DeviceProperties();
         }
         Properties.MergeFrom(other.Properties);
     }
 }
Exemple #4
0
 public void MergeFrom(NamedDevice other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.properties_ != null)
     {
         if (properties_ == null)
         {
             Properties = new global::Tensorflow.DeviceProperties();
         }
         Properties.MergeFrom(other.Properties);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }