Class AccessConfig.Builder (0.7.0)

public static final class AccessConfig.Builder extends GeneratedMessageV3.Builder<AccessConfig.Builder> implements AccessConfigOrBuilder

The configuration of access to the Kafka cluster.

Protobuf type google.cloud.managedkafka.v1.AccessConfig

Static Methods

getDescriptor()

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

Methods

addAllNetworkConfigs(Iterable<? extends NetworkConfig> values)

public AccessConfig.Builder addAllNetworkConfigs(Iterable<? extends NetworkConfig> values)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.managedkafka.v1.NetworkConfig>
Returns
Type Description
AccessConfig.Builder

addNetworkConfigs(NetworkConfig value)

public AccessConfig.Builder addNetworkConfigs(NetworkConfig value)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value NetworkConfig
Returns
Type Description
AccessConfig.Builder

addNetworkConfigs(NetworkConfig.Builder builderForValue)

public AccessConfig.Builder addNetworkConfigs(NetworkConfig.Builder builderForValue)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

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

addNetworkConfigs(int index, NetworkConfig value)

public AccessConfig.Builder addNetworkConfigs(int index, NetworkConfig value)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value NetworkConfig
Returns
Type Description
AccessConfig.Builder

addNetworkConfigs(int index, NetworkConfig.Builder builderForValue)

public AccessConfig.Builder addNetworkConfigs(int index, NetworkConfig.Builder builderForValue)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue NetworkConfig.Builder
Returns
Type Description
AccessConfig.Builder

addNetworkConfigsBuilder()

public NetworkConfig.Builder addNetworkConfigsBuilder()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
NetworkConfig.Builder

addNetworkConfigsBuilder(int index)

public NetworkConfig.Builder addNetworkConfigsBuilder(int index)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessConfig build()
Returns
Type Description
AccessConfig

buildPartial()

public AccessConfig buildPartial()
Returns
Type Description
AccessConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkConfigs()

public AccessConfig.Builder clearNetworkConfigs()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AccessConfig getDefaultInstanceForType()
Returns
Type Description
AccessConfig

getDescriptorForType()

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

getNetworkConfigs(int index)

public NetworkConfig getNetworkConfigs(int index)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig

getNetworkConfigsBuilder(int index)

public NetworkConfig.Builder getNetworkConfigsBuilder(int index)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Builder

getNetworkConfigsBuilderList()

public List<NetworkConfig.Builder> getNetworkConfigsBuilderList()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getNetworkConfigsCount()

public int getNetworkConfigsCount()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getNetworkConfigsList()

public List<NetworkConfig> getNetworkConfigsList()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<NetworkConfig>

getNetworkConfigsOrBuilder(int index)

public NetworkConfigOrBuilder getNetworkConfigsOrBuilder(int index)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfigOrBuilder

getNetworkConfigsOrBuilderList()

public List<? extends NetworkConfigOrBuilder> getNetworkConfigsOrBuilderList()

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.managedkafka.v1.NetworkConfigOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNetworkConfigs(int index)

public AccessConfig.Builder removeNetworkConfigs(int index)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkConfigs(int index, NetworkConfig value)

public AccessConfig.Builder setNetworkConfigs(int index, NetworkConfig value)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value NetworkConfig
Returns
Type Description
AccessConfig.Builder

setNetworkConfigs(int index, NetworkConfig.Builder builderForValue)

public AccessConfig.Builder setNetworkConfigs(int index, NetworkConfig.Builder builderForValue)

Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

repeated .google.cloud.managedkafka.v1.NetworkConfig network_configs = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue NetworkConfig.Builder
Returns
Type Description
AccessConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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