Send feedback
Class NetworkConfig.Builder (2.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.0 keyboard_arrow_down
public static final class NetworkConfig . Builder extends GeneratedMessageV3 . Builder<NetworkConfig . Builder > implements NetworkConfigOrBuilder
Network configuration for the Dataproc Metastore service.
Protobuf type google.cloud.metastore.v1alpha.NetworkConfig
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public NetworkConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public NetworkConfig build ()
Returns
public NetworkConfig buildPartial ()
Returns
public NetworkConfig . Builder clear ()
Returns
Overrides
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
public NetworkConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public NetworkConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public NetworkConfig . Builder clone ()
Returns
Overrides
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
Returns
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
Returns
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
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
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
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
Returns
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 >
public NetworkConfig getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public NetworkConfig . Builder mergeFrom ( NetworkConfig other )
Parameter
Returns
public NetworkConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public NetworkConfig . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final NetworkConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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
Returns
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
Returns
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
Returns
public NetworkConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public NetworkConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final NetworkConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]