...
1/////////////
2// CONFIGS //
3/////////////
4
5// A type of config.
6ConfigResourceType int8 (
7 2: TOPIC
8 4: BROKER
9 8: BROKER_LOGGER
10)
11
12// Where a config entry is from. If there are no config synonyms,
13// the source is DEFAULT_CONFIG.
14ConfigSource int8 (
15 // Dynamic topic config for a specific topic.
16 1: DYNAMIC_TOPIC_CONFIG
17 // Dynamic broker config for a specific broker.
18 2: DYNAMIC_BROKER_CONFIG
19 // Dynamic broker config used as the default for all brokers in a cluster.
20 3: DYNAMIC_DEFAULT_BROKER_CONFIG
21 // Static broker config provided at start up.
22 4: STATIC_BROKER_CONFIG
23 // Built-in default configuration for those that have defaults.
24 5: DEFAULT_CONFIG
25 // Broker logger; see KIP-412.
26 6: DYNAMIC_BROKER_LOGGER_CONFIG
27)
28
29// A configuration data type.
30ConfigType int8 (
31 1: BOOLEAN
32 2: STRING
33 3: INT
34 4: SHORT
35 5: LONG
36 6: DOUBLE
37 7: LIST
38 8: CLASS
39 9: PASSWORD
40)
41
42// An incremental configuration operation.
43IncrementalAlterConfigOp int8 (
44 0: SET
45 1: DELETE
46 2: APPEND
47 3: SUBTRACT
48)
49
50//////////
51// ACLS //
52//////////
53
54// ACLResourceType is a type of resource to use for ACLs.
55ACLResourceType int8 (
56 1: ANY
57 2: TOPIC
58 3: GROUP
59 4: CLUSTER
60 5: TRANSACTIONAL_ID
61 6: DELEGATION_TOKEN
62 7: USER
63)
64
65// ACLResourcePatternType is how an acl's ResourceName is understood.
66//
67// This field was added with Kafka 2.0.0 for KIP-290.
68ACLResourcePatternType int8 (
69 // Matches anything.
70 1: ANY
71 // Performs pattern matching; i.e., a literal match, or a prefix match, or wildcard.
72 2: MATCH
73 // The name must be an exact match.
74 3: LITERAL
75 // The name must have our requested name as a prefix (that is, "foo" will match on "foobar").
76 4: PREFIXED
77)
78
79// An ACL permission type.
80ACLPermissionType int8 (
81 // Any permission.
82 1: ANY
83 // Any deny permission.
84 2: DENY
85 // Any allow permission.
86 3: ALLOW
87)
88
89// An ACL operation.
90ACLOperation int8 (
91 // Matches anything.
92 1: ANY
93 // Matches anything granted all permissions.
94 2: ALL
95 3: READ
96 4: WRITE
97 5: CREATE
98 6: DELETE
99 7: ALTER
100 8: DESCRIBE
101 9: CLUSTER_ACTION
102 10: DESCRIBE_CONFIGS
103 11: ALTER_CONFIGS
104 12: IDEMPOTENT_WRITE
105 13: CREATE_TOKENS
106 14: DESCRIBE_TOKENS
107)
108
109//////////
110// TXNS //
111//////////
112
113// TransactionState is the state of a transaction.
114TransactionState int8 camelcase (
115 0: Empty
116 1: Ongoing
117 2: PrepareCommit
118 3: PrepareAbort
119 4: CompleteCommit
120 5: CompleteAbort
121 6: Dead
122 7: PrepareEpochFence
123)
124
125////////////
126// QUOTAS //
127////////////
128
129// QuotasMatchType specifies how to match a Quota entity as part of the DescribeClientQuotasRequestComponent.
130QuotasMatchType int8 (
131 // Matches all quotas for the given EntityType with names equal to the Match field.
132 0: EXACT
133 // Matches the default for the given EntityType.
134 1: DEFAULT
135 // Matches all named quotas and default quotas for the given EntityType.
136 2: ANY
137)
138
139//////////
140// MISC //
141//////////
142
143ControlRecordKeyType int8 (
144 0: ABORT
145 1: COMMIT
146 2: QUORUM_REASSIGNMENT
147 3: LEADER_CHANGE
148)
View as plain text