Class NetworkConfig.Builder (1.9.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
TypeDescription
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
NameDescription
valuesIterable<String>

The ipAddresses to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.NetworkConfig.AddressMode>

The modes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueString

The ipAddresses to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the ipAddresses to add.

Returns
TypeDescription
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
NameDescription
valueNetworkConfig.AddressMode

The modes to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

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

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
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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
NetworkConfig.Builder

This builder for chaining.

clone()

public NetworkConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for connectMode.

getDefaultInstanceForType()

public NetworkConfig getDefaultInstanceForType()
Returns
TypeDescription
NetworkConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for reservedIpRange.

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

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
NameDescription
valueNetworkConfig.ConnectMode

The connectMode to set.

Returns
TypeDescription
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
NameDescription
valueint

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

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
NameDescription
indexint

The index to set the value at.

valueString

The ipAddresses to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueNetworkConfig.AddressMode

The modes to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The reservedIpRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for reservedIpRange to set.

Returns
TypeDescription
NetworkConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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