Class NetworkConfig.Builder (2.49.0)

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

Network configuration for the Dataproc Metastore service.

Next available ID: 4

Protobuf type google.cloud.metastore.v1alpha.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.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
values Iterable<? extends com.google.cloud.metastore.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NetworkConfig.Builder

clearCustomRoutesEnabled()

public NetworkConfig.Builder clearCustomRoutesEnabled()

Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.

bool custom_routes_enabled = 2;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConsumers(int index)

public NetworkConfig.Consumer getConsumers(int index)

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

repeated .google.cloud.metastore.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

getCustomRoutesEnabled()

public boolean getCustomRoutesEnabled()

Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.

bool custom_routes_enabled = 2;

Returns
Type Description
boolean

The customRoutesEnabled.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
Type Description
NetworkConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v1alpha.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.v1alpha.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.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

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

setCustomRoutesEnabled(boolean value)

public NetworkConfig.Builder setCustomRoutesEnabled(boolean value)

Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.

bool custom_routes_enabled = 2;

Parameter
Name Description
value boolean

The customRoutesEnabled to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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