Class NetworkConfig.Builder (2.41.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.v1beta.NetworkConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.metastore.v1beta.NetworkConfig.Consumer>
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueNetworkConfig.Consumer
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueNetworkConfig.Consumer.Builder
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
indexint
valueNetworkConfig.Consumer
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
indexint
builderForValueNetworkConfig.Consumer.Builder
Returns
TypeDescription
NetworkConfig.Builder

addConsumersBuilder()

public NetworkConfig.Consumer.Builder addConsumersBuilder()

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

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.Consumer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConfig.Builder
Overrides

build()

public NetworkConfig build()
Returns
TypeDescription
NetworkConfig

buildPartial()

public NetworkConfig buildPartial()
Returns
TypeDescription
NetworkConfig

clear()

public NetworkConfig.Builder clear()
Returns
TypeDescription
NetworkConfig.Builder
Overrides

clearConsumers()

public NetworkConfig.Builder clearConsumers()

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

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

Returns
TypeDescription
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
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkConfig.Builder
Overrides

clone()

public NetworkConfig.Builder clone()
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
List<Builder>

getConsumersCount()

public int getConsumersCount()

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

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

Returns
TypeDescription
int

getConsumersList()

public List<NetworkConfig.Consumer> getConsumersList()

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

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.ConsumerOrBuilder

getConsumersOrBuilderList()

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

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

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

Returns
TypeDescription
List<? extends com.google.cloud.metastore.v1beta.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
TypeDescription
boolean

The customRoutesEnabled.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
NetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkConfig other)

public NetworkConfig.Builder mergeFrom(NetworkConfig other)
Parameter
NameDescription
otherNetworkConfig
Returns
TypeDescription
NetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
indexint
valueNetworkConfig.Consumer
Returns
TypeDescription
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.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
NameDescription
indexint
builderForValueNetworkConfig.Consumer.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The customRoutesEnabled to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConfig.Builder
Overrides

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

public NetworkConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkConfig.Builder
Overrides