コード例 #1
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: {
                    Host = input.ReadString();
                    break;
                }

                case 16: {
                    Port = input.ReadInt32();
                    break;
                }

                case 24: {
                    Type = (global::OpenMatch.FunctionConfig.Types.Type)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(FunctionConfig other) {
   if (other == null) {
     return;
   }
   if (other.Host.Length != 0) {
     Host = other.Host;
   }
   if (other.Port != 0) {
     Port = other.Port;
   }
   if (other.Type != 0) {
     Type = other.Type;
   }
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }