Beispiel #1
0
 public Builder SetESENTProvider(global::Alachisoft.NosDB.Common.Protobuf.ESENTConfig.Builder builderForValue)
 {
     pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     PrepareBuilder();
     result.hasESENTProvider = true;
     result.eSENTProvider_   = builderForValue.Build();
     return(this);
 }
Beispiel #2
0
            public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry)
            {
                PrepareBuilder();
                pb::UnknownFieldSet.Builder unknownFields = null;
                uint   tag;
                string field_name;

                while (input.ReadTag(out tag, out field_name))
                {
                    if (tag == 0 && field_name != null)
                    {
                        int field_ordinal = global::System.Array.BinarySearch(_storageProviderConfigFieldNames, field_name, global::System.StringComparer.Ordinal);
                        if (field_ordinal >= 0)
                        {
                            tag = _storageProviderConfigFieldTags[field_ordinal];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
                            continue;
                        }
                    }
                    switch (tag)
                    {
                    case 0: {
                        throw pb::InvalidProtocolBufferException.InvalidTag();
                    }

                    default: {
                        if (pb::WireFormat.IsEndGroupTag(tag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
                        break;
                    }

                    case 8: {
                        result.hasMaxDatabaseSize = input.ReadInt64(ref result.maxDatabaseSize_);
                        break;
                    }

                    case 18: {
                        result.hasProviderTypeString = input.ReadString(ref result.providerTypeString_);
                        break;
                    }

                    case 24: {
                        result.hasIsMultiFileStore = input.ReadBool(ref result.isMultiFileStore_);
                        break;
                    }

                    case 34: {
                        global::Alachisoft.NosDB.Common.Protobuf.LMDBConfig.Builder subBuilder = global::Alachisoft.NosDB.Common.Protobuf.LMDBConfig.CreateBuilder();
                        if (result.hasLMDBProvider)
                        {
                            subBuilder.MergeFrom(LMDBProvider);
                        }
                        input.ReadMessage(subBuilder, extensionRegistry);
                        LMDBProvider = subBuilder.BuildPartial();
                        break;
                    }

                    case 42: {
                        global::Alachisoft.NosDB.Common.Protobuf.ESENTConfig.Builder subBuilder = global::Alachisoft.NosDB.Common.Protobuf.ESENTConfig.CreateBuilder();
                        if (result.hasESENTProvider)
                        {
                            subBuilder.MergeFrom(ESENTProvider);
                        }
                        input.ReadMessage(subBuilder, extensionRegistry);
                        ESENTProvider = subBuilder.BuildPartial();
                        break;
                    }
                    }
                }

                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }