Class AddAclEntryRequest.Builder

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

public static final class AddAclEntryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AddAclEntryRequest.Builder> implements AddAclEntryRequestOrBuilder
 Request for AddAclEntry.
 
Protobuf type google.cloud.managedkafka.v1.AddAclEntryRequest
  • 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<AddAclEntryRequest.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<AddAclEntryRequest.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<AddAclEntryRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public AddAclEntryRequest.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<AddAclEntryRequest.Builder>
      Throws:
      IOException
    • getAcl

      public String getAcl()
       Required. The name of the acl to add the acl entry to.
       Structured like:
       `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
      
       The structure of `acl_id` defines the Resource Pattern (resource_type,
       resource_name, pattern_type) of the acl. See `Acl.name` for
       details.
       
      string acl = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAcl in interface AddAclEntryRequestOrBuilder
      Returns:
      The acl.
    • getAclBytes

      public com.google.protobuf.ByteString getAclBytes()
       Required. The name of the acl to add the acl entry to.
       Structured like:
       `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
      
       The structure of `acl_id` defines the Resource Pattern (resource_type,
       resource_name, pattern_type) of the acl. See `Acl.name` for
       details.
       
      string acl = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAclBytes in interface AddAclEntryRequestOrBuilder
      Returns:
      The bytes for acl.
    • setAcl

      public AddAclEntryRequest.Builder setAcl(String value)
       Required. The name of the acl to add the acl entry to.
       Structured like:
       `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
      
       The structure of `acl_id` defines the Resource Pattern (resource_type,
       resource_name, pattern_type) of the acl. See `Acl.name` for
       details.
       
      string acl = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The acl to set.
      Returns:
      This builder for chaining.
    • clearAcl

      public AddAclEntryRequest.Builder clearAcl()
       Required. The name of the acl to add the acl entry to.
       Structured like:
       `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
      
       The structure of `acl_id` defines the Resource Pattern (resource_type,
       resource_name, pattern_type) of the acl. See `Acl.name` for
       details.
       
      string acl = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAclBytes

      public AddAclEntryRequest.Builder setAclBytes(com.google.protobuf.ByteString value)
       Required. The name of the acl to add the acl entry to.
       Structured like:
       `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
      
       The structure of `acl_id` defines the Resource Pattern (resource_type,
       resource_name, pattern_type) of the acl. See `Acl.name` for
       details.
       
      string acl = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for acl to set.
      Returns:
      This builder for chaining.
    • hasAclEntry

      public boolean hasAclEntry()
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAclEntry in interface AddAclEntryRequestOrBuilder
      Returns:
      Whether the aclEntry field is set.
    • getAclEntry

      public AclEntry getAclEntry()
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAclEntry in interface AddAclEntryRequestOrBuilder
      Returns:
      The aclEntry.
    • setAclEntry

      public AddAclEntryRequest.Builder setAclEntry(AclEntry value)
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
    • setAclEntry

      public AddAclEntryRequest.Builder setAclEntry(AclEntry.Builder builderForValue)
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeAclEntry

      public AddAclEntryRequest.Builder mergeAclEntry(AclEntry value)
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearAclEntry

      public AddAclEntryRequest.Builder clearAclEntry()
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAclEntryBuilder

      public AclEntry.Builder getAclEntryBuilder()
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAclEntryOrBuilder

      public AclEntryOrBuilder getAclEntryOrBuilder()
       Required. The acl entry to add.
       
      .google.cloud.managedkafka.v1.AclEntry acl_entry = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAclEntryOrBuilder in interface AddAclEntryRequestOrBuilder