Class NetworkConfig.Builder (2.84.0)

public static final class NetworkConfig.Builder extends GeneratedMessage.Builder<NetworkConfig.Builder> implements NetworkConfigOrBuilder

Network configuration for the Dataproc Metastore service.

Next available ID: 4

Protobuf type google.cloud.metastore.v1.NetworkConfig

Static Methods

getDescriptor()

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

Methods

addAllConsumers(Iterable<? extends NetworkConfig.Consumer> values)

public NetworkConfig.Builder addAllConsumers(Iterable<? extends NetworkConfig.Consumer> values)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

addConsumers(NetworkConfig.Consumer value)

public NetworkConfig.Builder addConsumers(NetworkConfig.Consumer value)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value NetworkConfig.Consumer
Returns
Type Description
NetworkConfig.Builder

addConsumers(NetworkConfig.Consumer.Builder builderForValue)

public NetworkConfig.Builder addConsumers(NetworkConfig.Consumer.Builder builderForValue)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

addConsumers(int index, NetworkConfig.Consumer value)

public NetworkConfig.Builder addConsumers(int index, NetworkConfig.Consumer value)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

addConsumers(int index, NetworkConfig.Consumer.Builder builderForValue)

public NetworkConfig.Builder addConsumers(int index, NetworkConfig.Consumer.Builder builderForValue)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

addConsumersBuilder()

public NetworkConfig.Consumer.Builder addConsumersBuilder()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NetworkConfig.Consumer.Builder

addConsumersBuilder(int index)

public NetworkConfig.Consumer.Builder addConsumersBuilder(int index)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Consumer.Builder

build()

public NetworkConfig build()
Returns
Type Description
NetworkConfig

buildPartial()

public NetworkConfig buildPartial()
Returns
Type Description
NetworkConfig

clear()

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

clearConsumers()

public NetworkConfig.Builder clearConsumers()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NetworkConfig.Builder

getConsumers(int index)

public NetworkConfig.Consumer getConsumers(int index)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Consumer

getConsumersBuilder(int index)

public NetworkConfig.Consumer.Builder getConsumersBuilder(int index)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Consumer.Builder

getConsumersBuilderList()

public List<NetworkConfig.Consumer.Builder> getConsumersBuilderList()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<Builder>

getConsumersCount()

public int getConsumersCount()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getConsumersList()

public List<NetworkConfig.Consumer> getConsumersList()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<Consumer>

getConsumersOrBuilder(int index)

public NetworkConfig.ConsumerOrBuilder getConsumersOrBuilder(int index)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.ConsumerOrBuilder

getConsumersOrBuilderList()

public List<? extends NetworkConfig.ConsumerOrBuilder> getConsumersOrBuilderList()

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<? extends com.google.cloud.metastore.v1.NetworkConfig.ConsumerOrBuilder>

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
Type Description
NetworkConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeConsumers(int index)

public NetworkConfig.Builder removeConsumers(int index)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
NetworkConfig.Builder

setConsumers(int index, NetworkConfig.Consumer value)

public NetworkConfig.Builder setConsumers(int index, NetworkConfig.Consumer value)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

setConsumers(int index, NetworkConfig.Consumer.Builder builderForValue)

public NetworkConfig.Builder setConsumers(int index, NetworkConfig.Consumer.Builder builderForValue)

Immutable. The consumer-side network configuration for the Dataproc Metastore instance.

repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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