Class GcpConfig.Builder (0.11.0)

public static final class GcpConfig.Builder extends GeneratedMessageV3.Builder<GcpConfig.Builder> implements GcpConfigOrBuilder

Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

Protobuf type google.cloud.managedkafka.v1.GcpConfig

Implements

GcpConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GcpConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcpConfig.Builder
Overrides

build()

public GcpConfig build()
Returns
Type Description
GcpConfig

buildPartial()

public GcpConfig buildPartial()
Returns
Type Description
GcpConfig

clear()

public GcpConfig.Builder clear()
Returns
Type Description
GcpConfig.Builder
Overrides

clearAccessConfig()

public GcpConfig.Builder clearAccessConfig()

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcpConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public GcpConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GcpConfig.Builder
Overrides

clearKmsKey()

public GcpConfig.Builder clearKmsKey()

Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
GcpConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GcpConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GcpConfig.Builder
Overrides

clone()

public GcpConfig.Builder clone()
Returns
Type Description
GcpConfig.Builder
Overrides

getAccessConfig()

public AccessConfig getAccessConfig()

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessConfig

The accessConfig.

getAccessConfigBuilder()

public AccessConfig.Builder getAccessConfigBuilder()

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessConfig.Builder

getAccessConfigOrBuilder()

public AccessConfigOrBuilder getAccessConfigOrBuilder()

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessConfigOrBuilder

getDefaultInstanceForType()

public GcpConfig getDefaultInstanceForType()
Returns
Type Description
GcpConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKmsKey()

public String getKmsKey()

Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKey.

hasAccessConfig()

public boolean hasAccessConfig()

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the accessConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccessConfig(AccessConfig value)

public GcpConfig.Builder mergeAccessConfig(AccessConfig value)

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessConfig
Returns
Type Description
GcpConfig.Builder

mergeFrom(GcpConfig other)

public GcpConfig.Builder mergeFrom(GcpConfig other)
Parameter
Name Description
other GcpConfig
Returns
Type Description
GcpConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GcpConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GcpConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GcpConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GcpConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GcpConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpConfig.Builder
Overrides

setAccessConfig(AccessConfig value)

public GcpConfig.Builder setAccessConfig(AccessConfig value)

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessConfig
Returns
Type Description
GcpConfig.Builder

setAccessConfig(AccessConfig.Builder builderForValue)

public GcpConfig.Builder setAccessConfig(AccessConfig.Builder builderForValue)

Required. Access configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.AccessConfig access_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AccessConfig.Builder
Returns
Type Description
GcpConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GcpConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcpConfig.Builder
Overrides

setKmsKey(String value)

public GcpConfig.Builder setKmsKey(String value)

Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
GcpConfig.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public GcpConfig.Builder setKmsKeyBytes(ByteString value)

Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

string kms_key = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
GcpConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GcpConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GcpConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GcpConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpConfig.Builder
Overrides