Class CreateAclRequest (0.20.0)

public final class CreateAclRequest extends GeneratedMessageV3 implements CreateAclRequestOrBuilder

Request for CreateAcl.

Protobuf type google.cloud.managedkafka.v1.CreateAclRequest

Static Fields

ACL_FIELD_NUMBER

public static final int ACL_FIELD_NUMBER
Field Value
Type Description
int

ACL_ID_FIELD_NUMBER

public static final int ACL_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateAclRequest getDefaultInstance()
Returns
Type Description
CreateAclRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateAclRequest.Builder newBuilder()
Returns
Type Description
CreateAclRequest.Builder

newBuilder(CreateAclRequest prototype)

public static CreateAclRequest.Builder newBuilder(CreateAclRequest prototype)
Parameter
Name Description
prototype CreateAclRequest
Returns
Type Description
CreateAclRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateAclRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateAclRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateAclRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateAclRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateAclRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateAclRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateAclRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAclRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateAclRequest> parser()
Returns
Type Description
Parser<CreateAclRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<CreateAclRequest> getParserForType()
Returns
Type Description
Parser<CreateAclRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateAclRequest.Builder newBuilderForType()
Returns
Type Description
CreateAclRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateAclRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateAclRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateAclRequest.Builder toBuilder()
Returns
Type Description
CreateAclRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException