public static final class AclEntry.Builder extends GeneratedMessageV3.Builder<AclEntry.Builder> implements AclEntryOrBuilder
Represents the access granted for a given Resource Pattern in an ACL.
Protobuf type google.cloud.managedkafka.v1.AclEntry
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AclEntry.BuilderImplements
AclEntryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AclEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
build()
public AclEntry build()
Returns | |
---|---|
Type | Description |
AclEntry |
buildPartial()
public AclEntry buildPartial()
Returns | |
---|---|
Type | Description |
AclEntry |
clear()
public AclEntry.Builder clear()
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
clearField(Descriptors.FieldDescriptor field)
public AclEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
clearHost()
public AclEntry.Builder clearHost()
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
string host = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AclEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
clearOperation()
public AclEntry.Builder clearOperation()
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
string operation = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
clearPermissionType()
public AclEntry.Builder clearPermissionType()
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
clearPrincipal()
public AclEntry.Builder clearPrincipal()
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
string principal = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
clone()
public AclEntry.Builder clone()
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
getDefaultInstanceForType()
public AclEntry getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AclEntry |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getHost()
public String getHost()
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
string host = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The host. |
getHostBytes()
public ByteString getHostBytes()
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
string host = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for host. |
getOperation()
public String getOperation()
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
string operation = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The operation. |
getOperationBytes()
public ByteString getOperationBytes()
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
string operation = 6 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for operation. |
getPermissionType()
public String getPermissionType()
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The permissionType. |
getPermissionTypeBytes()
public ByteString getPermissionTypeBytes()
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for permissionType. |
getPrincipal()
public String getPrincipal()
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
string principal = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The principal. |
getPrincipalBytes()
public ByteString getPrincipalBytes()
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
string principal = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for principal. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AclEntry other)
public AclEntry.Builder mergeFrom(AclEntry other)
Parameter | |
---|---|
Name | Description |
other |
AclEntry |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AclEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AclEntry.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AclEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AclEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
setHost(String value)
public AclEntry.Builder setHost(String value)
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
string host = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The host to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setHostBytes(ByteString value)
public AclEntry.Builder setHostBytes(ByteString value)
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
string host = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for host to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setOperation(String value)
public AclEntry.Builder setOperation(String value)
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
string operation = 6 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The operation to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setOperationBytes(ByteString value)
public AclEntry.Builder setOperationBytes(ByteString value)
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
string operation = 6 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for operation to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setPermissionType(String value)
public AclEntry.Builder setPermissionType(String value)
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The permissionType to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setPermissionTypeBytes(ByteString value)
public AclEntry.Builder setPermissionTypeBytes(ByteString value)
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for permissionType to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setPrincipal(String value)
public AclEntry.Builder setPrincipal(String value)
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
string principal = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The principal to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setPrincipalBytes(ByteString value)
public AclEntry.Builder setPrincipalBytes(ByteString value)
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
string principal = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for principal to set. |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AclEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AclEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AclEntry.Builder |