@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        getSerializedSize();
        if (canSubscribe_) {
            output.writeBool(1, canSubscribe_);
        }
        if (canPublish_) {
            output.writeBool(2, canPublish_);
        }
        if (canPublishData_) {
            output.writeBool(3, canPublishData_);
        }
        if (hidden_) {
            output.writeBool(7, hidden_);
        }
        if (recorder_) {
            output.writeBool(8, recorder_);
        }
        if (getCanPublishSourcesList().size() > 0) {
            output.writeUInt32NoTag(74);
            output.writeUInt32NoTag(canPublishSourcesMemoizedSerializedSize);
        }
        for (Integer integer : canPublishSources_) {
            output.writeEnumNoTag(integer);
        }
        if (canUpdateMetadata_) {
            output.writeBool(10, canUpdateMetadata_);
        }
        if (agent_) {
            output.writeBool(11, agent_);
        }
        getUnknownFields().writeTo(output);
    }
<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