Class NetworkConfig.Builder (1.53.0)

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

Network configuration for the instance.

Protobuf type google.cloud.filestore.v1beta1.NetworkConfig

Static Methods

getDescriptor()

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

Methods

addAllIpAddresses(Iterable<String> values)

public NetworkConfig.Builder addAllIpAddresses(Iterable<String> values)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The ipAddresses to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addAllModes(Iterable<? extends NetworkConfig.AddressMode> values)

public NetworkConfig.Builder addAllModes(Iterable<? extends NetworkConfig.AddressMode> values)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>

The modes to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addAllModesValue(Iterable<Integer> values)

public NetworkConfig.Builder addAllModesValue(Iterable<Integer> values)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for modes to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addIpAddresses(String value)

public NetworkConfig.Builder addIpAddresses(String value)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The ipAddresses to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addIpAddressesBytes(ByteString value)

public NetworkConfig.Builder addIpAddressesBytes(ByteString value)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the ipAddresses to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addModes(NetworkConfig.AddressMode value)

public NetworkConfig.Builder addModes(NetworkConfig.AddressMode value)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
value NetworkConfig.AddressMode

The modes to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

addModesValue(int value)

public NetworkConfig.Builder addModesValue(int value)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for modes to add.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

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

clearConnectMode()

public NetworkConfig.Builder clearConnectMode()

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6;

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

clearIpAddresses()

public NetworkConfig.Builder clearIpAddresses()

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearModes()

public NetworkConfig.Builder clearModes()

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearNetwork()

public NetworkConfig.Builder clearNetwork()

The name of the Google Compute Engine VPC network to which the instance is connected.

string network = 1;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReservedIpRange()

public NetworkConfig.Builder clearReservedIpRange()

Optional, reserved_ip_range can have one of the following two types of values.

  • CIDR range value when using DIRECT_PEERING connect mode.
  • Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.

    When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.

string reserved_ip_range = 4;

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clone()

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

getConnectMode()

public NetworkConfig.ConnectMode getConnectMode()

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6;

Returns
Type Description
NetworkConfig.ConnectMode

The connectMode.

getConnectModeValue()

public int getConnectModeValue()

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6;

Returns
Type Description
int

The enum numeric value on the wire for connectMode.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
Type Description
NetworkConfig

getDescriptorForType()

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

getIpAddresses(int index)

public String getIpAddresses(int index)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipAddresses at the given index.

getIpAddressesBytes(int index)

public ByteString getIpAddressesBytes(int index)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipAddresses at the given index.

getIpAddressesCount()

public int getIpAddressesCount()

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of ipAddresses.

getIpAddressesList()

public ProtocolStringList getIpAddressesList()

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the ipAddresses.

getModes(int index)

public NetworkConfig.AddressMode getModes(int index)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
NetworkConfig.AddressMode

The modes at the given index.

getModesCount()

public int getModesCount()

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Returns
Type Description
int

The count of modes.

getModesList()

public List<NetworkConfig.AddressMode> getModesList()

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Returns
Type Description
List<AddressMode>

A list containing the modes.

getModesValue(int index)

public int getModesValue(int index)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of modes at the given index.

getModesValueList()

public List<Integer> getModesValueList()

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for modes.

getNetwork()

public String getNetwork()

The name of the Google Compute Engine VPC network to which the instance is connected.

string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The name of the Google Compute Engine VPC network to which the instance is connected.

string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getReservedIpRange()

public String getReservedIpRange()

Optional, reserved_ip_range can have one of the following two types of values.

  • CIDR range value when using DIRECT_PEERING connect mode.
  • Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.

    When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.

string reserved_ip_range = 4;

Returns
Type Description
String

The reservedIpRange.

getReservedIpRangeBytes()

public ByteString getReservedIpRangeBytes()

Optional, reserved_ip_range can have one of the following two types of values.

  • CIDR range value when using DIRECT_PEERING connect mode.
  • Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.

    When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.

string reserved_ip_range = 4;

Returns
Type Description
ByteString

The bytes for reservedIpRange.

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

setConnectMode(NetworkConfig.ConnectMode value)

public NetworkConfig.Builder setConnectMode(NetworkConfig.ConnectMode value)

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6;

Parameter
Name Description
value NetworkConfig.ConnectMode

The connectMode to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setConnectModeValue(int value)

public NetworkConfig.Builder setConnectModeValue(int value)

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

.google.cloud.filestore.v1beta1.NetworkConfig.ConnectMode connect_mode = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for connectMode 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

setIpAddresses(int index, String value)

public NetworkConfig.Builder setIpAddresses(int index, String value)

Output only. IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4} or IPv6 addresses in the format {block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}.

repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The ipAddresses to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setModes(int index, NetworkConfig.AddressMode value)

public NetworkConfig.Builder setModes(int index, NetworkConfig.AddressMode value)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameters
Name Description
index int

The index to set the value at.

value NetworkConfig.AddressMode

The modes to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setModesValue(int index, int value)

public NetworkConfig.Builder setModesValue(int index, int value)

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig.AddressMode modes = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for modes to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetwork(String value)

public NetworkConfig.Builder setNetwork(String value)

The name of the Google Compute Engine VPC network to which the instance is connected.

string network = 1;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public NetworkConfig.Builder setNetworkBytes(ByteString value)

The name of the Google Compute Engine VPC network to which the instance is connected.

string network = 1;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

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

setReservedIpRange(String value)

public NetworkConfig.Builder setReservedIpRange(String value)

Optional, reserved_ip_range can have one of the following two types of values.

  • CIDR range value when using DIRECT_PEERING connect mode.
  • Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.

    When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.

string reserved_ip_range = 4;

Parameter
Name Description
value String

The reservedIpRange to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setReservedIpRangeBytes(ByteString value)

public NetworkConfig.Builder setReservedIpRangeBytes(ByteString value)

Optional, reserved_ip_range can have one of the following two types of values.

  • CIDR range value when using DIRECT_PEERING connect mode.
  • Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.

    When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24, or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.

string reserved_ip_range = 4;

Parameter
Name Description
value ByteString

The bytes for reservedIpRange to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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