public static final class CreateAclRequest.Builder extends GeneratedMessageV3.Builder<CreateAclRequest.Builder> implements CreateAclRequestOrBuilder
Request for CreateAcl.
Protobuf type google.cloud.managedkafka.v1.CreateAclRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateAclRequest.BuilderImplements
CreateAclRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAclRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
build()
public CreateAclRequest build()
Returns | |
---|---|
Type | Description |
CreateAclRequest |
buildPartial()
public CreateAclRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateAclRequest |
clear()
public CreateAclRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
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];
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
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 | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateAclRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAclRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
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 | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
clone()
public CreateAclRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
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];
Returns | |
---|---|
Type | Description |
Acl |
The acl. |
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];
Returns | |
---|---|
Type | Description |
Acl.Builder |
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];
Returns | |
---|---|
Type | Description |
String |
The aclId. |
getAclIdBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for aclId. |
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];
Returns | |
---|---|
Type | Description |
AclOrBuilder |
getDefaultInstanceForType()
public CreateAclRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateAclRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the acl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAcl(Acl value)
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];
Parameter | |
---|---|
Name | Description |
value |
Acl |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
mergeFrom(CreateAclRequest other)
public CreateAclRequest.Builder mergeFrom(CreateAclRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateAclRequest |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAclRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateAclRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAclRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
setAcl(Acl value)
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];
Parameter | |
---|---|
Name | Description |
value |
Acl |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
setAcl(Acl.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue |
Acl.Builder |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
setAclId(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The aclId to set. |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
setAclIdBytes(ByteString value)
public CreateAclRequest.Builder setAclIdBytes(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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for aclId to set. |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAclRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
setParent(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAclRequest.Builder setParentBytes(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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAclRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAclRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateAclRequest.Builder |