Class CreateAclRequest.Builder

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

public static final class CreateAclRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateAclRequest.Builder> implements CreateAclRequestOrBuilder
 Request for CreateAcl.
 
Protobuf type google.cloud.managedkafka.v1.CreateAclRequest
  • 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<CreateAclRequest.Builder>
    • clear

      public CreateAclRequest.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<CreateAclRequest.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<CreateAclRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateAclRequest.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<CreateAclRequest.Builder>
    • mergeFrom

      public CreateAclRequest.Builder mergeFrom(CreateAclRequest other)
    • isInitialized

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

      public CreateAclRequest.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<CreateAclRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent cluster in which to create the acl.
       Structured like
       `projects/{project}/locations/{location}/clusters/{cluster}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateAclRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent cluster in which to create the acl.
       Structured like
       `projects/{project}/locations/{location}/clusters/{cluster}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateAclRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateAclRequest.Builder setParent(String value)
       Required. The parent cluster in which to create the acl.
       Structured like
       `projects/{project}/locations/{location}/clusters/{cluster}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateAclRequest.Builder clearParent()
       Required. The parent cluster in which to create the acl.
       Structured like
       `projects/{project}/locations/{location}/clusters/{cluster}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateAclRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent cluster in which to create the acl.
       Structured like
       `projects/{project}/locations/{location}/clusters/{cluster}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getAclId

      public String getAclId()
       Required. The ID to use for the acl, which will become the final component
       of the acl's name. The structure of `acl_id` defines the Resource Pattern
       (resource_type, resource_name, pattern_type) of the acl. `acl_id` is
       structured like one of the following:
      
       For acls on the cluster:
       `cluster`
      
       For acls on a single resource within the cluster:
       `topic/{resource_name}`
       `consumerGroup/{resource_name}`
       `transactionalId/{resource_name}`
      
       For acls on all resources that match a prefix:
       `topicPrefixed/{resource_name}`
       `consumerGroupPrefixed/{resource_name}`
       `transactionalIdPrefixed/{resource_name}`
      
       For acls on all resources of a given type (i.e. the wildcard literal "*"):
       `allTopics` (represents `topic/*`)
       `allConsumerGroups` (represents `consumerGroup/*`)
       `allTransactionalIds` (represents `transactionalId/*`)
       
      string acl_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAclId in interface CreateAclRequestOrBuilder
      Returns:
      The aclId.
    • getAclIdBytes

      public com.google.protobuf.ByteString getAclIdBytes()
       Required. The ID to use for the acl, which will become the final component
       of the acl's name. The structure of `acl_id` defines the Resource Pattern
       (resource_type, resource_name, pattern_type) of the acl. `acl_id` is
       structured like one of the following:
      
       For acls on the cluster:
       `cluster`
      
       For acls on a single resource within the cluster:
       `topic/{resource_name}`
       `consumerGroup/{resource_name}`
       `transactionalId/{resource_name}`
      
       For acls on all resources that match a prefix:
       `topicPrefixed/{resource_name}`
       `consumerGroupPrefixed/{resource_name}`
       `transactionalIdPrefixed/{resource_name}`
      
       For acls on all resources of a given type (i.e. the wildcard literal "*"):
       `allTopics` (represents `topic/*`)
       `allConsumerGroups` (represents `consumerGroup/*`)
       `allTransactionalIds` (represents `transactionalId/*`)
       
      string acl_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAclIdBytes in interface CreateAclRequestOrBuilder
      Returns:
      The bytes for aclId.
    • setAclId

      public CreateAclRequest.Builder setAclId(String value)
       Required. The ID to use for the acl, which will become the final component
       of the acl's name. The structure of `acl_id` defines the Resource Pattern
       (resource_type, resource_name, pattern_type) of the acl. `acl_id` is
       structured like one of the following:
      
       For acls on the cluster:
       `cluster`
      
       For acls on a single resource within the cluster:
       `topic/{resource_name}`
       `consumerGroup/{resource_name}`
       `transactionalId/{resource_name}`
      
       For acls on all resources that match a prefix:
       `topicPrefixed/{resource_name}`
       `consumerGroupPrefixed/{resource_name}`
       `transactionalIdPrefixed/{resource_name}`
      
       For acls on all resources of a given type (i.e. the wildcard literal "*"):
       `allTopics` (represents `topic/*`)
       `allConsumerGroups` (represents `consumerGroup/*`)
       `allTransactionalIds` (represents `transactionalId/*`)
       
      string acl_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The aclId to set.
      Returns:
      This builder for chaining.
    • clearAclId

      public CreateAclRequest.Builder clearAclId()
       Required. The ID to use for the acl, which will become the final component
       of the acl's name. The structure of `acl_id` defines the Resource Pattern
       (resource_type, resource_name, pattern_type) of the acl. `acl_id` is
       structured like one of the following:
      
       For acls on the cluster:
       `cluster`
      
       For acls on a single resource within the cluster:
       `topic/{resource_name}`
       `consumerGroup/{resource_name}`
       `transactionalId/{resource_name}`
      
       For acls on all resources that match a prefix:
       `topicPrefixed/{resource_name}`
       `consumerGroupPrefixed/{resource_name}`
       `transactionalIdPrefixed/{resource_name}`
      
       For acls on all resources of a given type (i.e. the wildcard literal "*"):
       `allTopics` (represents `topic/*`)
       `allConsumerGroups` (represents `consumerGroup/*`)
       `allTransactionalIds` (represents `transactionalId/*`)
       
      string acl_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAclIdBytes

      public CreateAclRequest.Builder setAclIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the acl, which will become the final component
       of the acl's name. The structure of `acl_id` defines the Resource Pattern
       (resource_type, resource_name, pattern_type) of the acl. `acl_id` is
       structured like one of the following:
      
       For acls on the cluster:
       `cluster`
      
       For acls on a single resource within the cluster:
       `topic/{resource_name}`
       `consumerGroup/{resource_name}`
       `transactionalId/{resource_name}`
      
       For acls on all resources that match a prefix:
       `topicPrefixed/{resource_name}`
       `consumerGroupPrefixed/{resource_name}`
       `transactionalIdPrefixed/{resource_name}`
      
       For acls on all resources of a given type (i.e. the wildcard literal "*"):
       `allTopics` (represents `topic/*`)
       `allConsumerGroups` (represents `consumerGroup/*`)
       `allTransactionalIds` (represents `transactionalId/*`)
       
      string acl_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for aclId to set.
      Returns:
      This builder for chaining.
    • hasAcl

      public boolean hasAcl()
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAcl in interface CreateAclRequestOrBuilder
      Returns:
      Whether the acl field is set.
    • getAcl

      public Acl getAcl()
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAcl in interface CreateAclRequestOrBuilder
      Returns:
      The acl.
    • setAcl

      public CreateAclRequest.Builder setAcl(Acl value)
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAcl

      public CreateAclRequest.Builder setAcl(Acl.Builder builderForValue)
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAcl

      public CreateAclRequest.Builder mergeAcl(Acl value)
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAcl

      public CreateAclRequest.Builder clearAcl()
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAclBuilder

      public Acl.Builder getAclBuilder()
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAclOrBuilder

      public AclOrBuilder getAclOrBuilder()
       Required. Configuration of the acl to create. Its `name` field is ignored.
       
      .google.cloud.managedkafka.v1.Acl acl = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAclOrBuilder in interface CreateAclRequestOrBuilder