@java.lang.Override
    public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) {
            return size;
        }

        size = 0;
        if (canSubscribe_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, canSubscribe_);
        }
        if (canPublish_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, canPublish_);
        }
        if (canPublishData_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, canPublishData_);
        }
        if (hidden_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hidden_);
        }
        if (recorder_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, recorder_);
        }
        {
            int dataSize = 0;
            for (Integer integer : canPublishSources_) {
                dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(integer);
            }
            size += dataSize;
            if (!getCanPublishSourcesList().isEmpty()) {
                size += 1;
                size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
            }
            canPublishSourcesMemoizedSerializedSize = dataSize;
        }
        if (canUpdateMetadata_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, canUpdateMetadata_);
        }
        if (agent_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, agent_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
    }
<pre>
indicates that participant is an agent
</pre>

<code>bool agent = 11;</code>

@return The agent.
turms-plugins/turms-plugin-livekit/src/main/java/im/turms/plugin/livekit/core/proto/models/ParticipantPermission.java