private ClientMaster.RegisterRequestC2MV2 createMasterRegisterRequest() throws Exception {
        ClientMaster.RegisterRequestC2MV2.Builder builder =
                ClientMaster.RegisterRequestC2MV2.newBuilder();
        builder.setClientId(this.consumerId);
        builder.setHostName(AddressUtils.getLocalAddress());
        builder.setSourceCount(this.sourceCount);
        builder.setNodeId(this.nodeId);
        builder.setJdkVersion(MixedUtils.getJavaVersion());
        builder.setGroupName(this.consumerConfig.getConsumerGroup());
        builder.addAllTopicList(this.consumeSubInfo.getSubscribedTopics());
        builder.addAllTopicCondition(formatTopicCondInfo(
                this.consumeSubInfo.getTopicCondRegistry()));
        builder.setSubRepInfo(this.clientRmtDataCache.buildClientSubRepInfo());
        ClientMaster.OpsTaskInfo opsTaskInfo =
                this.clientRmtDataCache.buildOpsTaskInfo();
        if (opsTaskInfo != null) {
            builder.setOpsTaskInfo(opsTaskInfo);
        }
        ClientMaster.MasterCertificateInfo authInfo = genMasterCertificateInfo(true);
        if (authInfo != null) {
            builder.setAuthInfo(authInfo);
        }
        return builder.build();
    }
Unregister partitions.

@param unRegisterInfoMap partitions to be unregister
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/consumer/SimpleClientBalanceConsumer.java