Class NetworkInterface.Builder (1.53.0)

public static final class NetworkInterface.Builder extends GeneratedMessageV3.Builder<NetworkInterface.Builder> implements NetworkInterfaceOrBuilder

A network interface resource attached to an instance.

Protobuf type google.cloud.compute.v1.NetworkInterface

Static Methods

getDescriptor()

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

Methods

addAccessConfigs(AccessConfig value)

public NetworkInterface.Builder addAccessConfigs(AccessConfig value)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addAccessConfigs(AccessConfig.Builder builderForValue)

public NetworkInterface.Builder addAccessConfigs(AccessConfig.Builder builderForValue)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

addAccessConfigs(int index, AccessConfig value)

public NetworkInterface.Builder addAccessConfigs(int index, AccessConfig value)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameters
Name Description
index int
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addAccessConfigs(int index, AccessConfig.Builder builderForValue)

public NetworkInterface.Builder addAccessConfigs(int index, AccessConfig.Builder builderForValue)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameters
Name Description
index int
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

addAccessConfigsBuilder()

public AccessConfig.Builder addAccessConfigsBuilder()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
AccessConfig.Builder

addAccessConfigsBuilder(int index)

public AccessConfig.Builder addAccessConfigsBuilder(int index)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

addAliasIpRanges(AliasIpRange value)

public NetworkInterface.Builder addAliasIpRanges(AliasIpRange value)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
value AliasIpRange
Returns
Type Description
NetworkInterface.Builder

addAliasIpRanges(AliasIpRange.Builder builderForValue)

public NetworkInterface.Builder addAliasIpRanges(AliasIpRange.Builder builderForValue)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
builderForValue AliasIpRange.Builder
Returns
Type Description
NetworkInterface.Builder

addAliasIpRanges(int index, AliasIpRange value)

public NetworkInterface.Builder addAliasIpRanges(int index, AliasIpRange value)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameters
Name Description
index int
value AliasIpRange
Returns
Type Description
NetworkInterface.Builder

addAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

public NetworkInterface.Builder addAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameters
Name Description
index int
builderForValue AliasIpRange.Builder
Returns
Type Description
NetworkInterface.Builder

addAliasIpRangesBuilder()

public AliasIpRange.Builder addAliasIpRangesBuilder()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
AliasIpRange.Builder

addAliasIpRangesBuilder(int index)

public AliasIpRange.Builder addAliasIpRangesBuilder(int index)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange.Builder

addAllAccessConfigs(Iterable<? extends AccessConfig> values)

public NetworkInterface.Builder addAllAccessConfigs(Iterable<? extends AccessConfig> values)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AccessConfig>
Returns
Type Description
NetworkInterface.Builder

addAllAliasIpRanges(Iterable<? extends AliasIpRange> values)

public NetworkInterface.Builder addAllAliasIpRanges(Iterable<? extends AliasIpRange> values)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AliasIpRange>
Returns
Type Description
NetworkInterface.Builder

addAllIpv6AccessConfigs(Iterable<? extends AccessConfig> values)

public NetworkInterface.Builder addAllIpv6AccessConfigs(Iterable<? extends AccessConfig> values)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AccessConfig>
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigs(AccessConfig value)

public NetworkInterface.Builder addIpv6AccessConfigs(AccessConfig value)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigs(AccessConfig.Builder builderForValue)

public NetworkInterface.Builder addIpv6AccessConfigs(AccessConfig.Builder builderForValue)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigs(int index, AccessConfig value)

public NetworkInterface.Builder addIpv6AccessConfigs(int index, AccessConfig value)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameters
Name Description
index int
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

public NetworkInterface.Builder addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameters
Name Description
index int
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigsBuilder()

public AccessConfig.Builder addIpv6AccessConfigsBuilder()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
AccessConfig.Builder

addIpv6AccessConfigsBuilder(int index)

public AccessConfig.Builder addIpv6AccessConfigsBuilder(int index)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkInterface build()
Returns
Type Description
NetworkInterface

buildPartial()

public NetworkInterface buildPartial()
Returns
Type Description
NetworkInterface

clear()

public NetworkInterface.Builder clear()
Returns
Type Description
NetworkInterface.Builder
Overrides

clearAccessConfigs()

public NetworkInterface.Builder clearAccessConfigs()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
NetworkInterface.Builder

clearAliasIpRanges()

public NetworkInterface.Builder clearAliasIpRanges()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
NetworkInterface.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public NetworkInterface.Builder clearFingerprint()

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearInternalIpv6PrefixLength()

public NetworkInterface.Builder clearInternalIpv6PrefixLength()

The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 203833757;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearIpv6AccessConfigs()

public NetworkInterface.Builder clearIpv6AccessConfigs()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
NetworkInterface.Builder

clearIpv6AccessType()

public NetworkInterface.Builder clearIpv6AccessType()

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearIpv6Address()

public NetworkInterface.Builder clearIpv6Address()

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearKind()

public NetworkInterface.Builder clearKind()

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearName()

public NetworkInterface.Builder clearName()

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNetwork()

public NetworkInterface.Builder clearNetwork()

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNetworkAttachment()

public NetworkInterface.Builder clearNetworkAttachment()

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNetworkIP()

public NetworkInterface.Builder clearNetworkIP()

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNicType()

public NetworkInterface.Builder clearNicType()

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueueCount()

public NetworkInterface.Builder clearQueueCount()

The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.

optional int32 queue_count = 503708769;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearStackType()

public NetworkInterface.Builder clearStackType()

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearSubnetwork()

public NetworkInterface.Builder clearSubnetwork()

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clone()

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

getAccessConfigs(int index)

public AccessConfig getAccessConfigs(int index)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getAccessConfigsBuilder(int index)

public AccessConfig.Builder getAccessConfigsBuilder(int index)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

getAccessConfigsBuilderList()

public List<AccessConfig.Builder> getAccessConfigsBuilderList()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
List<Builder>

getAccessConfigsCount()

public int getAccessConfigsCount()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
int

getAccessConfigsList()

public List<AccessConfig> getAccessConfigsList()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
List<AccessConfig>

getAccessConfigsOrBuilder(int index)

public AccessConfigOrBuilder getAccessConfigsOrBuilder(int index)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getAccessConfigsOrBuilderList()

public List<? extends AccessConfigOrBuilder> getAccessConfigsOrBuilderList()

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.AccessConfigOrBuilder>

getAliasIpRanges(int index)

public AliasIpRange getAliasIpRanges(int index)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange

getAliasIpRangesBuilder(int index)

public AliasIpRange.Builder getAliasIpRangesBuilder(int index)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange.Builder

getAliasIpRangesBuilderList()

public List<AliasIpRange.Builder> getAliasIpRangesBuilderList()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
List<Builder>

getAliasIpRangesCount()

public int getAliasIpRangesCount()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
int

getAliasIpRangesList()

public List<AliasIpRange> getAliasIpRangesList()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
List<AliasIpRange>

getAliasIpRangesOrBuilder(int index)

public AliasIpRangeOrBuilder getAliasIpRangesOrBuilder(int index)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
index int
Returns
Type Description
AliasIpRangeOrBuilder

getAliasIpRangesOrBuilderList()

public List<? extends AliasIpRangeOrBuilder> getAliasIpRangesOrBuilderList()

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.AliasIpRangeOrBuilder>

getDefaultInstanceForType()

public NetworkInterface getDefaultInstanceForType()
Returns
Type Description
NetworkInterface

getDescriptorForType()

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

getFingerprint()

public String getFingerprint()

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getInternalIpv6PrefixLength()

public int getInternalIpv6PrefixLength()

The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 203833757;

Returns
Type Description
int

The internalIpv6PrefixLength.

getIpv6AccessConfigs(int index)

public AccessConfig getIpv6AccessConfigs(int index)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getIpv6AccessConfigsBuilder(int index)

public AccessConfig.Builder getIpv6AccessConfigsBuilder(int index)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

getIpv6AccessConfigsBuilderList()

public List<AccessConfig.Builder> getIpv6AccessConfigsBuilderList()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
List<Builder>

getIpv6AccessConfigsCount()

public int getIpv6AccessConfigsCount()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
int

getIpv6AccessConfigsList()

public List<AccessConfig> getIpv6AccessConfigsList()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
List<AccessConfig>

getIpv6AccessConfigsOrBuilder(int index)

public AccessConfigOrBuilder getIpv6AccessConfigsOrBuilder(int index)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getIpv6AccessConfigsOrBuilderList()

public List<? extends AccessConfigOrBuilder> getIpv6AccessConfigsOrBuilderList()

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.AccessConfigOrBuilder>

getIpv6AccessType()

public String getIpv6AccessType()

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Returns
Type Description
String

The ipv6AccessType.

getIpv6AccessTypeBytes()

public ByteString getIpv6AccessTypeBytes()

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Returns
Type Description
ByteString

The bytes for ipv6AccessType.

getIpv6Address()

public String getIpv6Address()

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Returns
Type Description
String

The ipv6Address.

getIpv6AddressBytes()

public ByteString getIpv6AddressBytes()

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Returns
Type Description
ByteString

The bytes for ipv6Address.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Returns
Type Description
String

The network.

getNetworkAttachment()

public String getNetworkAttachment()

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

public ByteString getNetworkAttachmentBytes()

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Returns
Type Description
ByteString

The bytes for networkAttachment.

getNetworkBytes()

public ByteString getNetworkBytes()

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Returns
Type Description
ByteString

The bytes for network.

getNetworkIP()

public String getNetworkIP()

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Returns
Type Description
String

The networkIP.

getNetworkIPBytes()

public ByteString getNetworkIPBytes()

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Returns
Type Description
ByteString

The bytes for networkIP.

getNicType()

public String getNicType()

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Returns
Type Description
String

The nicType.

getNicTypeBytes()

public ByteString getNicTypeBytes()

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Returns
Type Description
ByteString

The bytes for nicType.

getQueueCount()

public int getQueueCount()

The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.

optional int32 queue_count = 503708769;

Returns
Type Description
int

The queueCount.

getStackType()

public String getStackType()

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
String

The stackType.

getStackTypeBytes()

public ByteString getStackTypeBytes()

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
ByteString

The bytes for stackType.

getSubnetwork()

public String getSubnetwork()

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Returns
Type Description
ByteString

The bytes for subnetwork.

hasFingerprint()

public boolean hasFingerprint()

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasInternalIpv6PrefixLength()

public boolean hasInternalIpv6PrefixLength()

The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 203833757;

Returns
Type Description
boolean

Whether the internalIpv6PrefixLength field is set.

hasIpv6AccessType()

public boolean hasIpv6AccessType()

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Returns
Type Description
boolean

Whether the ipv6AccessType field is set.

hasIpv6Address()

public boolean hasIpv6Address()

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Returns
Type Description
boolean

Whether the ipv6Address field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNetwork()

public boolean hasNetwork()

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Returns
Type Description
boolean

Whether the network field is set.

hasNetworkAttachment()

public boolean hasNetworkAttachment()

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Returns
Type Description
boolean

Whether the networkAttachment field is set.

hasNetworkIP()

public boolean hasNetworkIP()

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Returns
Type Description
boolean

Whether the networkIP field is set.

hasNicType()

public boolean hasNicType()

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Returns
Type Description
boolean

Whether the nicType field is set.

hasQueueCount()

public boolean hasQueueCount()

The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.

optional int32 queue_count = 503708769;

Returns
Type Description
boolean

Whether the queueCount field is set.

hasStackType()

public boolean hasStackType()

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Returns
Type Description
boolean

Whether the stackType field is set.

hasSubnetwork()

public boolean hasSubnetwork()

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Returns
Type Description
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkInterface other)

public NetworkInterface.Builder mergeFrom(NetworkInterface other)
Parameter
Name Description
other NetworkInterface
Returns
Type Description
NetworkInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkInterface.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NetworkInterface.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NetworkInterface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkInterface.Builder
Overrides

removeAccessConfigs(int index)

public NetworkInterface.Builder removeAccessConfigs(int index)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

removeAliasIpRanges(int index)

public NetworkInterface.Builder removeAliasIpRanges(int index)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

removeIpv6AccessConfigs(int index)

public NetworkInterface.Builder removeIpv6AccessConfigs(int index)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

setAccessConfigs(int index, AccessConfig value)

public NetworkInterface.Builder setAccessConfigs(int index, AccessConfig value)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameters
Name Description
index int
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

setAccessConfigs(int index, AccessConfig.Builder builderForValue)

public NetworkInterface.Builder setAccessConfigs(int index, AccessConfig.Builder builderForValue)

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;

Parameters
Name Description
index int
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

setAliasIpRanges(int index, AliasIpRange value)

public NetworkInterface.Builder setAliasIpRanges(int index, AliasIpRange value)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameters
Name Description
index int
value AliasIpRange
Returns
Type Description
NetworkInterface.Builder

setAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

public NetworkInterface.Builder setAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;

Parameters
Name Description
index int
builderForValue AliasIpRange.Builder
Returns
Type Description
NetworkInterface.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public NetworkInterface.Builder setFingerprint(String value)

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public NetworkInterface.Builder setFingerprintBytes(ByteString value)

Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setInternalIpv6PrefixLength(int value)

public NetworkInterface.Builder setInternalIpv6PrefixLength(int value)

The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 203833757;

Parameter
Name Description
value int

The internalIpv6PrefixLength to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AccessConfigs(int index, AccessConfig value)

public NetworkInterface.Builder setIpv6AccessConfigs(int index, AccessConfig value)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameters
Name Description
index int
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

public NetworkInterface.Builder setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;

Parameters
Name Description
index int
builderForValue AccessConfig.Builder
Returns
Type Description
NetworkInterface.Builder

setIpv6AccessType(String value)

public NetworkInterface.Builder setIpv6AccessType(String value)

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Parameter
Name Description
value String

The ipv6AccessType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AccessTypeBytes(ByteString value)

public NetworkInterface.Builder setIpv6AccessTypeBytes(ByteString value)

[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.

optional string ipv6_access_type = 504658653;

Parameter
Name Description
value ByteString

The bytes for ipv6AccessType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6Address(String value)

public NetworkInterface.Builder setIpv6Address(String value)

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Parameter
Name Description
value String

The ipv6Address to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AddressBytes(ByteString value)

public NetworkInterface.Builder setIpv6AddressBytes(ByteString value)

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

optional string ipv6_address = 341563804;

Parameter
Name Description
value ByteString

The bytes for ipv6Address to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setKind(String value)

public NetworkInterface.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setKindBytes(ByteString value)

public NetworkInterface.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setName(String value)

public NetworkInterface.Builder setName(String value)

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NetworkInterface.Builder setNameBytes(ByteString value)

[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetwork(String value)

public NetworkInterface.Builder setNetwork(String value)

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkAttachment(String value)

public NetworkInterface.Builder setNetworkAttachment(String value)

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Parameter
Name Description
value String

The networkAttachment to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkAttachmentBytes(ByteString value)

public NetworkInterface.Builder setNetworkAttachmentBytes(ByteString value)

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

optional string network_attachment = 224644052;

Parameter
Name Description
value ByteString

The bytes for networkAttachment to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public NetworkInterface.Builder setNetworkBytes(ByteString value)

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

optional string network = 232872494;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkIP(String value)

public NetworkInterface.Builder setNetworkIP(String value)

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Parameter
Name Description
value String

The networkIP to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkIPBytes(ByteString value)

public NetworkInterface.Builder setNetworkIPBytes(ByteString value)

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

optional string network_i_p = 207181961;

Parameter
Name Description
value ByteString

The bytes for networkIP to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNicType(String value)

public NetworkInterface.Builder setNicType(String value)

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Parameter
Name Description
value String

The nicType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNicTypeBytes(ByteString value)

public NetworkInterface.Builder setNicTypeBytes(ByteString value)

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.

optional string nic_type = 59810577;

Parameter
Name Description
value ByteString

The bytes for nicType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setQueueCount(int value)

public NetworkInterface.Builder setQueueCount(int value)

The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.

optional int32 queue_count = 503708769;

Parameter
Name Description
value int

The queueCount to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

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

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

setStackType(String value)

public NetworkInterface.Builder setStackType(String value)

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Parameter
Name Description
value String

The stackType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setStackTypeBytes(ByteString value)

public NetworkInterface.Builder setStackTypeBytes(ByteString value)

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.

optional string stack_type = 425908881;

Parameter
Name Description
value ByteString

The bytes for stackType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setSubnetwork(String value)

public NetworkInterface.Builder setSubnetwork(String value)

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public NetworkInterface.Builder setSubnetworkBytes(ByteString value)

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork

optional string subnetwork = 307827694;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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