Class AclEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder>
com.google.cloud.managedkafka.v1.AclEntry.Builder
All Implemented Interfaces:
AclEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AclEntry

public static final class AclEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder> implements AclEntryOrBuilder
 Represents the access granted for a given Resource Pattern in an ACL.
 
Protobuf type google.cloud.managedkafka.v1.AclEntry
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder>
    • clear

      public AclEntry.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder>
    • getDefaultInstanceForType

      public AclEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AclEntry build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AclEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AclEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AclEntry.Builder>
    • mergeFrom

      public AclEntry.Builder mergeFrom(AclEntry other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AclEntry.Builder>
    • mergeFrom

      public AclEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AclEntry.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getPrincipal in interface AclEntryOrBuilder
      Returns:
      The principal.
    • getPrincipalBytes

      public com.google.protobuf.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];
      Specified by:
      getPrincipalBytes in interface AclEntryOrBuilder
      Returns:
      The bytes for principal.
    • setPrincipal

      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];
      Parameters:
      value - The principal to set.
      Returns:
      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:
      This builder for chaining.
    • setPrincipalBytes

      public AclEntry.Builder setPrincipalBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for principal to set.
      Returns:
      This builder for chaining.
    • getPermissionType

      public String getPermissionType()
       Required. The permission type. Accepted values are (case insensitive):
       ALLOW, DENY.
       
      string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionType in interface AclEntryOrBuilder
      Returns:
      The permissionType.
    • getPermissionTypeBytes

      public com.google.protobuf.ByteString getPermissionTypeBytes()
       Required. The permission type. Accepted values are (case insensitive):
       ALLOW, DENY.
       
      string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPermissionTypeBytes in interface AclEntryOrBuilder
      Returns:
      The bytes for permissionType.
    • setPermissionType

      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];
      Parameters:
      value - The permissionType to set.
      Returns:
      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:
      This builder for chaining.
    • setPermissionTypeBytes

      public AclEntry.Builder setPermissionTypeBytes(com.google.protobuf.ByteString value)
       Required. The permission type. Accepted values are (case insensitive):
       ALLOW, DENY.
       
      string permission_type = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for permissionType to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getOperation in interface AclEntryOrBuilder
      Returns:
      The operation.
    • getOperationBytes

      public com.google.protobuf.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];
      Specified by:
      getOperationBytes in interface AclEntryOrBuilder
      Returns:
      The bytes for operation.
    • setOperation

      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];
      Parameters:
      value - The operation to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setOperationBytes

      public AclEntry.Builder setOperationBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for operation to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getHost in interface AclEntryOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Required. The host. Must be set to "*" for Managed Service for Apache
       Kafka.
       
      string host = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostBytes in interface AclEntryOrBuilder
      Returns:
      The bytes for host.
    • setHost

      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];
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setHostBytes

      public AclEntry.Builder setHostBytes(com.google.protobuf.ByteString value)
       Required. The host. Must be set to "*" for Managed Service for Apache
       Kafka.
       
      string host = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for host to set.
      Returns:
      This builder for chaining.