示例#1
0
 public void MergeFrom(Interaction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.ProcessingCallback.Length != 0)
     {
         ProcessingCallback = other.ProcessingCallback;
     }
     inputFormats_.Add(other.inputFormats_);
     outputFormats_.Add(other.outputFormats_);
     if (other.OnCreated.Length != 0)
     {
         OnCreated = other.OnCreated;
     }
     if (other.ProcessFrequency != 0F)
     {
         ProcessFrequency = other.ProcessFrequency;
     }
     authors_.Add(other.authors_);
     tags_.Add(other.tags_);
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#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: {
                    Id = input.ReadString();
                    break;
                }

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

                case 26: {
                    ProcessingCallback = input.ReadString();
                    break;
                }

                case 34: {
                    inputFormats_.AddEntriesFrom(input, _repeated_inputFormats_codec);
                    break;
                }

                case 42: {
                    outputFormats_.AddEntriesFrom(input, _repeated_outputFormats_codec);
                    break;
                }

                case 50: {
                    OnCreated = input.ReadString();
                    break;
                }

                case 61: {
                    ProcessFrequency = input.ReadFloat();
                    break;
                }

                case 66: {
                    authors_.AddEntriesFrom(input, _repeated_authors_codec);
                    break;
                }

                case 74: {
                    tags_.AddEntriesFrom(input, _repeated_tags_codec);
                    break;
                }

                case 82: {
                    Description = input.ReadString();
                    break;
                }

                case 88: {
                    status_ = (global::Ubii.Interactions.InteractionStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }