test_class.file: dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilderTest.java
test_class.identifier: AbstractServiceBuilderTest
test_case.body: @Test
      void build() {
          ProtocolConfig protocol = new ProtocolConfig();
  
          ServiceBuilder builder = new ServiceBuilder();
          builder.version("version").group("group").deprecated(true).delay(1000).export(false).weight(1)
                  .document("document").dynamic(true).token("token").accesslog("accesslog")
                  .addProtocol(protocol).protocolIds("protocolIds").tag("tag").executes(100).register(false)
                  .warmup(200).serialization("serialization").id("id").prefix("prefix");
  
          ServiceConfig config = builder.build();
          ServiceConfig config2 = builder.build();
  
          Assertions.assertEquals("id", config.getId());
          Assertions.assertEquals("prefix", config.getPrefix());
          Assertions.assertEquals("version", config.getVersion());
          Assertions.assertEquals("group", config.getGroup());
          Assertions.assertEquals("document", config.getDocument());
          Assertions.assertEquals("token", config.getToken());
          Assertions.assertEquals("accesslog", config.getAccesslog());
          Assertions.assertEquals("protocolIds", config.getProtocolIds());
          Assertions.assertEquals("tag", config.getTag());
          Assertions.assertEquals("serialization", config.getSerialization());
          Assertions.assertTrue(config.isDeprecated());
          Assertions.assertFalse(config.getExport());
          Assertions.assertTrue(config.isDynamic());
          Assertions.assertFalse(config.isRegister());
          Assertions.assertEquals(1000, config.getDelay());
          Assertions.assertEquals(1, config.getWeight());
          Assertions.assertEquals(100, config.getExecutes());
          Assertions.assertEquals(200, config.getWarmup());
  
          Assertions.assertNotSame(config, config2);
      }
test_case.class_method_signature: AbstractServiceBuilderTest.build()
test_case.full_signature: @Test void build()
test_case.identifier: build
test_case.invocations: prefix id serialization warmup register executes tag protocolIds addProtocol accesslog token dynamic document weight export delay deprecated group version build build assertEquals getId assertEquals getPrefix assertEquals getVersion assertEquals getGroup assertEquals getDocument assertEquals getToken assertEquals getAccesslog assertEquals getProtocolIds assertEquals getTag assertEquals getSerialization assertTrue isDeprecated assertFalse getExport assertTrue isDynamic assertFalse isRegister assertEquals getDelay assertEquals getWeight assertEquals getExecutes assertEquals getWarmup assertNotSame
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: version
focal_class.modifier: protected
focal_class.original_string: protected String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: group
focal_class.modifier: protected
focal_class.original_string: protected String group;
focal_class.type: String
focal_class.var_name: group
focal_class.declarator: deprecated
focal_class.modifier: protected
focal_class.original_string: protected Boolean deprecated;
focal_class.type: Boolean
focal_class.var_name: deprecated
focal_class.declarator: delay
focal_class.modifier: protected
focal_class.original_string: protected Integer delay;
focal_class.type: Integer
focal_class.var_name: delay
focal_class.declarator: export
focal_class.modifier: protected
focal_class.original_string: protected Boolean export;
focal_class.type: Boolean
focal_class.var_name: export
focal_class.declarator: weight
focal_class.modifier: protected
focal_class.original_string: protected Integer weight;
focal_class.type: Integer
focal_class.var_name: weight
focal_class.declarator: document
focal_class.modifier: protected
focal_class.original_string: protected String document;
focal_class.type: String
focal_class.var_name: document
focal_class.declarator: dynamic
focal_class.modifier: protected
focal_class.original_string: protected Boolean dynamic;
focal_class.type: Boolean
focal_class.var_name: dynamic
focal_class.declarator: token
focal_class.modifier: protected
focal_class.original_string: protected String token;
focal_class.type: String
focal_class.var_name: token
focal_class.declarator: accesslog
focal_class.modifier: protected
focal_class.original_string: protected String accesslog;
focal_class.type: String
focal_class.var_name: accesslog
focal_class.declarator: protocols
focal_class.modifier: protected
focal_class.original_string: protected List<ProtocolConfig> protocols;
focal_class.type: List<ProtocolConfig>
focal_class.var_name: protocols
focal_class.declarator: protocolIds
focal_class.modifier: protected
focal_class.original_string: protected String protocolIds;
focal_class.type: String
focal_class.var_name: protocolIds
focal_class.declarator: executes
focal_class.modifier: private
focal_class.original_string: private Integer executes;
focal_class.type: Integer
focal_class.var_name: executes
focal_class.declarator: register
focal_class.modifier: private
focal_class.original_string: private Boolean register;
focal_class.type: Boolean
focal_class.var_name: register
focal_class.declarator: warmup
focal_class.modifier: private
focal_class.original_string: private Integer warmup;
focal_class.type: Integer
focal_class.var_name: warmup
focal_class.declarator: serialization
focal_class.modifier: private
focal_class.original_string: private String serialization;
focal_class.type: String
focal_class.var_name: serialization
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/AbstractServiceBuilder.java
focal_class.identifier: AbstractServiceBuilder
focal_class.class_method_signature: AbstractServiceBuilder.version(String version)
focal_class.full_signature: public B version(String version)
focal_class.identifier: version
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: B
focal_class.signature: B version(String version)
focal_class.class_method_signature: AbstractServiceBuilder.group(String group)
focal_class.full_signature: public B group(String group)
focal_class.identifier: group
focal_class.modifiers: public
focal_class.parameters: (String group)
focal_class.return: B
focal_class.signature: B group(String group)
focal_class.class_method_signature: AbstractServiceBuilder.deprecated(Boolean deprecated)
focal_class.full_signature: public B deprecated(Boolean deprecated)
focal_class.identifier: deprecated
focal_class.modifiers: public
focal_class.parameters: (Boolean deprecated)
focal_class.return: B
focal_class.signature: B deprecated(Boolean deprecated)
focal_class.class_method_signature: AbstractServiceBuilder.delay(Integer delay)
focal_class.full_signature: public B delay(Integer delay)
focal_class.identifier: delay
focal_class.modifiers: public
focal_class.parameters: (Integer delay)
focal_class.return: B
focal_class.signature: B delay(Integer delay)
focal_class.class_method_signature: AbstractServiceBuilder.export(Boolean export)
focal_class.full_signature: public B export(Boolean export)
focal_class.identifier: export
focal_class.modifiers: public
focal_class.parameters: (Boolean export)
focal_class.return: B
focal_class.signature: B export(Boolean export)
focal_class.class_method_signature: AbstractServiceBuilder.weight(Integer weight)
focal_class.full_signature: public B weight(Integer weight)
focal_class.identifier: weight
focal_class.modifiers: public
focal_class.parameters: (Integer weight)
focal_class.return: B
focal_class.signature: B weight(Integer weight)
focal_class.class_method_signature: AbstractServiceBuilder.document(String document)
focal_class.full_signature: public B document(String document)
focal_class.identifier: document
focal_class.modifiers: public
focal_class.parameters: (String document)
focal_class.return: B
focal_class.signature: B document(String document)
focal_class.class_method_signature: AbstractServiceBuilder.dynamic(Boolean dynamic)
focal_class.full_signature: public B dynamic(Boolean dynamic)
focal_class.identifier: dynamic
focal_class.modifiers: public
focal_class.parameters: (Boolean dynamic)
focal_class.return: B
focal_class.signature: B dynamic(Boolean dynamic)
focal_class.class_method_signature: AbstractServiceBuilder.token(String token)
focal_class.full_signature: public B token(String token)
focal_class.identifier: token
focal_class.modifiers: public
focal_class.parameters: (String token)
focal_class.return: B
focal_class.signature: B token(String token)
focal_class.class_method_signature: AbstractServiceBuilder.token(Boolean token)
focal_class.full_signature: public B token(Boolean token)
focal_class.identifier: token
focal_class.modifiers: public
focal_class.parameters: (Boolean token)
focal_class.return: B
focal_class.signature: B token(Boolean token)
focal_class.class_method_signature: AbstractServiceBuilder.accesslog(String accesslog)
focal_class.full_signature: public B accesslog(String accesslog)
focal_class.identifier: accesslog
focal_class.modifiers: public
focal_class.parameters: (String accesslog)
focal_class.return: B
focal_class.signature: B accesslog(String accesslog)
focal_class.class_method_signature: AbstractServiceBuilder.accesslog(Boolean accesslog)
focal_class.full_signature: public B accesslog(Boolean accesslog)
focal_class.identifier: accesslog
focal_class.modifiers: public
focal_class.parameters: (Boolean accesslog)
focal_class.return: B
focal_class.signature: B accesslog(Boolean accesslog)
focal_class.class_method_signature: AbstractServiceBuilder.addProtocols(List<ProtocolConfig> protocols)
focal_class.full_signature: public B addProtocols(List<ProtocolConfig> protocols)
focal_class.identifier: addProtocols
focal_class.modifiers: public
focal_class.parameters: (List<ProtocolConfig> protocols)
focal_class.return: B
focal_class.signature: B addProtocols(List<ProtocolConfig> protocols)
focal_class.class_method_signature: AbstractServiceBuilder.addProtocol(ProtocolConfig protocol)
focal_class.full_signature: public B addProtocol(ProtocolConfig protocol)
focal_class.identifier: addProtocol
focal_class.modifiers: public
focal_class.parameters: (ProtocolConfig protocol)
focal_class.return: B
focal_class.signature: B addProtocol(ProtocolConfig protocol)
focal_class.class_method_signature: AbstractServiceBuilder.protocolIds(String protocolIds)
focal_class.full_signature: public B protocolIds(String protocolIds)
focal_class.identifier: protocolIds
focal_class.modifiers: public
focal_class.parameters: (String protocolIds)
focal_class.return: B
focal_class.signature: B protocolIds(String protocolIds)
focal_class.class_method_signature: AbstractServiceBuilder.executes(Integer executes)
focal_class.full_signature: public B executes(Integer executes)
focal_class.identifier: executes
focal_class.modifiers: public
focal_class.parameters: (Integer executes)
focal_class.return: B
focal_class.signature: B executes(Integer executes)
focal_class.class_method_signature: AbstractServiceBuilder.register(Boolean register)
focal_class.full_signature: public B register(Boolean register)
focal_class.identifier: register
focal_class.modifiers: public
focal_class.parameters: (Boolean register)
focal_class.return: B
focal_class.signature: B register(Boolean register)
focal_class.class_method_signature: AbstractServiceBuilder.warmup(Integer warmup)
focal_class.full_signature: public B warmup(Integer warmup)
focal_class.identifier: warmup
focal_class.modifiers: public
focal_class.parameters: (Integer warmup)
focal_class.return: B
focal_class.signature: B warmup(Integer warmup)
focal_class.class_method_signature: AbstractServiceBuilder.serialization(String serialization)
focal_class.full_signature: public B serialization(String serialization)
focal_class.identifier: serialization
focal_class.modifiers: public
focal_class.parameters: (String serialization)
focal_class.return: B
focal_class.signature: B serialization(String serialization)
focal_class.class_method_signature: AbstractServiceBuilder.build(T instance)
focal_class.full_signature: @Override public void build(T instance)
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: (T instance)
focal_class.return: void
focal_class.signature: void build(T instance)
focal_class.superclass: extends AbstractInterfaceBuilder<T, B>
focal_method.body: @Override
      public void build(T instance) {
          super.build(instance);
  
          if (!StringUtils.isEmpty(version)) {
              instance.setVersion(version);
          }
          if (!StringUtils.isEmpty(group)) {
              instance.setGroup(group);
          }
          if (deprecated != null) {
              instance.setDeprecated(deprecated);
          }
          if (delay != null) {
              instance.setDelay(delay);
          }
          if (export != null) {
              instance.setExport(export);
          }
          if (weight != null) {
              instance.setWeight(weight);
          }
          if (!StringUtils.isEmpty(document)) {
              instance.setDocument(document);
          }
          if (dynamic != null) {
              instance.setDynamic(dynamic);
          }
          if (!StringUtils.isEmpty(token)) {
              instance.setToken(token);
          }
          if (!StringUtils.isEmpty(accesslog)) {
              instance.setAccesslog(accesslog);
          }
          if (protocols != null) {
              instance.setProtocols(protocols);
          }
          if (!StringUtils.isEmpty(protocolIds)) {
              instance.setProtocolIds(protocolIds);
          }
          if (executes != null) {
              instance.setExecutes(executes);
          }
          if (register != null) {
              instance.setRegister(register);
          }
          if (warmup != null) {
              instance.setWarmup(warmup);
          }
          if (!StringUtils.isEmpty(serialization)) {
              instance.setSerialization(serialization);
          }
      }
focal_method.class_method_signature: AbstractServiceBuilder.build(T instance)
focal_method.full_signature: @Override public void build(T instance)
focal_method.identifier: build
focal_method.invocations: build isEmpty setVersion isEmpty setGroup setDeprecated setDelay setExport setWeight isEmpty setDocument setDynamic isEmpty setToken isEmpty setAccesslog setProtocols isEmpty setProtocolIds setExecutes setRegister setWarmup isEmpty setSerialization
focal_method.modifiers: @Override public
focal_method.parameters: (T instance)
focal_method.return: void
focal_method.signature: void build(T instance)