Package com.google.cloud.managedkafka.v1
Class ConnectNetworkConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConnectNetworkConfig.Builder>
com.google.cloud.managedkafka.v1.ConnectNetworkConfig.Builder
- All Implemented Interfaces:
ConnectNetworkConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConnectNetworkConfig
public static final class ConnectNetworkConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalSubnets(String value) Optional.addAdditionalSubnetsBytes(com.google.protobuf.ByteString value) Optional.addAllAdditionalSubnets(Iterable<String> values) Optional.addAllDnsDomainNames(Iterable<String> values) Optional.addDnsDomainNames(String value) Optional.addDnsDomainNamesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Required.getAdditionalSubnets(int index) Optional.com.google.protobuf.ByteStringgetAdditionalSubnetsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDnsDomainNames(int index) Optional.com.google.protobuf.ByteStringgetDnsDomainNamesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConnectNetworkConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAdditionalSubnets(int index, String value) Optional.setDnsDomainNames(int index, String value) Optional.setPrimarySubnet(String value) Required.setPrimarySubnetBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConnectNetworkConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConnectNetworkConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConnectNetworkConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectNetworkConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConnectNetworkConfig.Builder>
-
mergeFrom
public ConnectNetworkConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConnectNetworkConfig.Builder>- Throws:
IOException
-
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];- Specified by:
getPrimarySubnetin interfaceConnectNetworkConfigOrBuilder- Returns:
- The primarySubnet.
-
getPrimarySubnetBytes
public com.google.protobuf.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];- Specified by:
getPrimarySubnetBytesin interfaceConnectNetworkConfigOrBuilder- Returns:
- The bytes for primarySubnet.
-
setPrimarySubnet
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];- Parameters:
value- The primarySubnet to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPrimarySubnetBytes
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];- Parameters:
value- The bytes for primarySubnet to set.- Returns:
- This builder for chaining.
-
getAdditionalSubnetsList
public com.google.protobuf.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];- Specified by:
getAdditionalSubnetsListin interfaceConnectNetworkConfigOrBuilder- Returns:
- A list containing the additionalSubnets.
-
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];- Specified by:
getAdditionalSubnetsCountin interfaceConnectNetworkConfigOrBuilder- Returns:
- The count of additionalSubnets.
-
getAdditionalSubnets
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];- Specified by:
getAdditionalSubnetsin interfaceConnectNetworkConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The additionalSubnets at the given index.
-
getAdditionalSubnetsBytes
public com.google.protobuf.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];- Specified by:
getAdditionalSubnetsBytesin interfaceConnectNetworkConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the additionalSubnets at the given index.
-
setAdditionalSubnets
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:
index- The index to set the value at.value- The additionalSubnets to set.- Returns:
- This builder for chaining.
-
addAdditionalSubnets
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:
value- The additionalSubnets to add.- Returns:
- This builder for chaining.
-
addAllAdditionalSubnets
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:
values- The additionalSubnets to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addAdditionalSubnetsBytes
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:
value- The bytes of the additionalSubnets to add.- Returns:
- This builder for chaining.
-
getDnsDomainNamesList
public com.google.protobuf.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];- Specified by:
getDnsDomainNamesListin interfaceConnectNetworkConfigOrBuilder- Returns:
- A list containing the dnsDomainNames.
-
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];- Specified by:
getDnsDomainNamesCountin interfaceConnectNetworkConfigOrBuilder- Returns:
- The count of dnsDomainNames.
-
getDnsDomainNames
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];- Specified by:
getDnsDomainNamesin interfaceConnectNetworkConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dnsDomainNames at the given index.
-
getDnsDomainNamesBytes
public com.google.protobuf.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];- Specified by:
getDnsDomainNamesBytesin interfaceConnectNetworkConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dnsDomainNames at the given index.
-
setDnsDomainNames
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:
index- The index to set the value at.value- The dnsDomainNames to set.- Returns:
- This builder for chaining.
-
addDnsDomainNames
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:
value- The dnsDomainNames to add.- Returns:
- This builder for chaining.
-
addAllDnsDomainNames
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:
values- The dnsDomainNames to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addDnsDomainNamesBytes
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:
value- The bytes of the dnsDomainNames to add.- Returns:
- This builder for chaining.
-