Class ConnectNetworkConfig.Builder (0.16.1)

public static final class ConnectNetworkConfig.Builder extends GeneratedMessageV3.Builder<ConnectNetworkConfig.Builder> implements ConnectNetworkConfigOrBuilder

The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka Connect cluster.

Protobuf type google.cloud.managedkafka.v1.ConnectNetworkConfig

Static Methods

getDescriptor()

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

Methods

addAdditionalSubnets(String value)

public ConnectNetworkConfig.Builder addAdditionalSubnets(String value)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The additionalSubnets to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addAdditionalSubnetsBytes(ByteString value)

public ConnectNetworkConfig.Builder addAdditionalSubnetsBytes(ByteString value)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the additionalSubnets to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addAllAdditionalSubnets(Iterable<String> values)

public ConnectNetworkConfig.Builder addAllAdditionalSubnets(Iterable<String> values)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The additionalSubnets to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addAllDnsDomainNames(Iterable<String> values)

public ConnectNetworkConfig.Builder addAllDnsDomainNames(Iterable<String> values)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The dnsDomainNames to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addDnsDomainNames(String value)

public ConnectNetworkConfig.Builder addDnsDomainNames(String value)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dnsDomainNames to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addDnsDomainNamesBytes(ByteString value)

public ConnectNetworkConfig.Builder addDnsDomainNamesBytes(ByteString value)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the dnsDomainNames to add.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectNetworkConfig build()
Returns
Type Description
ConnectNetworkConfig

buildPartial()

public ConnectNetworkConfig buildPartial()
Returns
Type Description
ConnectNetworkConfig

clear()

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

clearAdditionalSubnets()

public ConnectNetworkConfig.Builder clearAdditionalSubnets()

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

clearDnsDomainNames()

public ConnectNetworkConfig.Builder clearDnsDomainNames()

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrimarySubnet()

public ConnectNetworkConfig.Builder clearPrimarySubnet()

Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

clone()

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

getAdditionalSubnets(int index)

public String getAdditionalSubnets(int index)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalSubnets at the given index.

getAdditionalSubnetsBytes(int index)

public ByteString getAdditionalSubnetsBytes(int index)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the additionalSubnets at the given index.

getAdditionalSubnetsCount()

public int getAdditionalSubnetsCount()

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of additionalSubnets.

getAdditionalSubnetsList()

public ProtocolStringList getAdditionalSubnetsList()

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the additionalSubnets.

getDefaultInstanceForType()

public ConnectNetworkConfig getDefaultInstanceForType()
Returns
Type Description
ConnectNetworkConfig

getDescriptorForType()

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

getDnsDomainNames(int index)

public String getDnsDomainNames(int index)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dnsDomainNames at the given index.

getDnsDomainNamesBytes(int index)

public ByteString getDnsDomainNamesBytes(int index)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dnsDomainNames at the given index.

getDnsDomainNamesCount()

public int getDnsDomainNamesCount()

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of dnsDomainNames.

getDnsDomainNamesList()

public ProtocolStringList getDnsDomainNamesList()

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the dnsDomainNames.

getPrimarySubnet()

public String getPrimarySubnet()

Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The primarySubnet.

getPrimarySubnetBytes()

public ByteString getPrimarySubnetBytes()

Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for primarySubnet.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdditionalSubnets(int index, String value)

public ConnectNetworkConfig.Builder setAdditionalSubnets(int index, String value)

Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

repeated string additional_subnets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalSubnets to set.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

setDnsDomainNames(int index, String value)

public ConnectNetworkConfig.Builder setDnsDomainNames(int index, String value)

Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

repeated string dns_domain_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The dnsDomainNames to set.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrimarySubnet(String value)

public ConnectNetworkConfig.Builder setPrimarySubnet(String value)

Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The primarySubnet to set.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

setPrimarySubnetBytes(ByteString value)

public ConnectNetworkConfig.Builder setPrimarySubnetBytes(ByteString value)

Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

string primary_subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for primarySubnet to set.

Returns
Type Description
ConnectNetworkConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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