Class ConnectGcpConfig.Builder (0.16.1)

public static final class ConnectGcpConfig.Builder extends GeneratedMessageV3.Builder<ConnectGcpConfig.Builder> implements ConnectGcpConfigOrBuilder

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

Protobuf type google.cloud.managedkafka.v1.ConnectGcpConfig

Static Methods

getDescriptor()

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

Methods

addAllSecretPaths(Iterable<String> values)

public ConnectGcpConfig.Builder addAllSecretPaths(Iterable<String> values)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The secretPaths to add.

Returns
Type Description
ConnectGcpConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSecretPaths(String value)

public ConnectGcpConfig.Builder addSecretPaths(String value)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The secretPaths to add.

Returns
Type Description
ConnectGcpConfig.Builder

This builder for chaining.

addSecretPathsBytes(ByteString value)

public ConnectGcpConfig.Builder addSecretPathsBytes(ByteString value)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the secretPaths to add.

Returns
Type Description
ConnectGcpConfig.Builder

This builder for chaining.

build()

public ConnectGcpConfig build()
Returns
Type Description
ConnectGcpConfig

buildPartial()

public ConnectGcpConfig buildPartial()
Returns
Type Description
ConnectGcpConfig

clear()

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

clearAccessConfig()

public ConnectGcpConfig.Builder clearAccessConfig()

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectGcpConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecretPaths()

public ConnectGcpConfig.Builder clearSecretPaths()

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ConnectGcpConfig.Builder

This builder for chaining.

clone()

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

getAccessConfig()

public ConnectAccessConfig getAccessConfig()

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectAccessConfig

The accessConfig.

getAccessConfigBuilder()

public ConnectAccessConfig.Builder getAccessConfigBuilder()

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectAccessConfig.Builder

getAccessConfigOrBuilder()

public ConnectAccessConfigOrBuilder getAccessConfigOrBuilder()

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectAccessConfigOrBuilder

getDefaultInstanceForType()

public ConnectGcpConfig getDefaultInstanceForType()
Returns
Type Description
ConnectGcpConfig

getDescriptorForType()

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

getSecretPaths(int index)

public String getSecretPaths(int index)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The secretPaths at the given index.

getSecretPathsBytes(int index)

public ByteString getSecretPathsBytes(int index)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the secretPaths at the given index.

getSecretPathsCount()

public int getSecretPathsCount()

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of secretPaths.

getSecretPathsList()

public ProtocolStringList getSecretPathsList()

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the secretPaths.

hasAccessConfig()

public boolean hasAccessConfig()

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.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(ConnectAccessConfig value)

public ConnectGcpConfig.Builder mergeAccessConfig(ConnectAccessConfig value)

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectAccessConfig
Returns
Type Description
ConnectGcpConfig.Builder

mergeFrom(ConnectGcpConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessConfig(ConnectAccessConfig value)

public ConnectGcpConfig.Builder setAccessConfig(ConnectAccessConfig value)

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectAccessConfig
Returns
Type Description
ConnectGcpConfig.Builder

setAccessConfig(ConnectAccessConfig.Builder builderForValue)

public ConnectGcpConfig.Builder setAccessConfig(ConnectAccessConfig.Builder builderForValue)

Required. Access configuration for the Kafka Connect cluster.

.google.cloud.managedkafka.v1.ConnectAccessConfig access_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ConnectAccessConfig.Builder
Returns
Type Description
ConnectGcpConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecretPaths(int index, String value)

public ConnectGcpConfig.Builder setSecretPaths(int index, String value)

Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

repeated string secret_paths = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The secretPaths to set.

Returns
Type Description
ConnectGcpConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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