Interface NetworkInterfaceOrBuilder (0.10.0)

publicinterface NetworkInterfaceOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAccessConfigs(int index)

publicabstractAccessConfiggetAccessConfigs(intindex)

Optional. 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.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getAccessConfigsCount()

publicabstractintgetAccessConfigsCount()

Optional. 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.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAccessConfigsList()

publicabstractList<AccessConfig>getAccessConfigsList()

Optional. 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.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AccessConfig>

getAccessConfigsOrBuilder(int index)

publicabstractAccessConfigOrBuildergetAccessConfigsOrBuilder(intindex)

Optional. 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.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getAccessConfigsOrBuilderList()

publicabstractList<?extendsAccessConfigOrBuilder>getAccessConfigsOrBuilderList()

Optional. 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.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

getAliasIpRanges(int index)

publicabstractAliasIpRangegetAliasIpRanges(intindex)

Optional. 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.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange

getAliasIpRangesCount()

publicabstractintgetAliasIpRangesCount()

Optional. 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.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAliasIpRangesList()

publicabstractList<AliasIpRange>getAliasIpRangesList()

Optional. 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.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AliasIpRange>

getAliasIpRangesOrBuilder(int index)

publicabstractAliasIpRangeOrBuildergetAliasIpRangesOrBuilder(intindex)

Optional. 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.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRangeOrBuilder

getAliasIpRangesOrBuilderList()

publicabstractList<?extendsAliasIpRangeOrBuilder>getAliasIpRangesOrBuilderList()

Optional. 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.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

getInternalIpv6PrefixLength()

publicabstractintgetInternalIpv6PrefixLength()

Optional. The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The internalIpv6PrefixLength.

getIpAddress()

publicabstractStringgetIpAddress()

Optional. 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 ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

publicabstractByteStringgetIpAddressBytes()

Optional. 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 ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpv6AccessConfigs(int index)

publicabstractAccessConfiggetIpv6AccessConfigs(intindex)

Optional. 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.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getIpv6AccessConfigsCount()

publicabstractintgetIpv6AccessConfigsCount()

Optional. 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.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getIpv6AccessConfigsList()

publicabstractList<AccessConfig>getIpv6AccessConfigsList()

Optional. 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.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AccessConfig>

getIpv6AccessConfigsOrBuilder(int index)

publicabstractAccessConfigOrBuildergetIpv6AccessConfigsOrBuilder(intindex)

Optional. 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.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getIpv6AccessConfigsOrBuilderList()

publicabstractList<?extendsAccessConfigOrBuilder>getIpv6AccessConfigsOrBuilderList()

Optional. 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.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

getIpv6AccessType()

publicabstractNetworkInterface.Ipv6AccessTypegetIpv6AccessType()

Optional. [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.

optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Ipv6AccessType

The ipv6AccessType.

getIpv6AccessTypeValue()

publicabstractintgetIpv6AccessTypeValue()

Optional. [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.

optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for ipv6AccessType.

getIpv6Address()

publicabstractStringgetIpv6Address()

Optional. 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipv6Address.

getIpv6AddressBytes()

publicabstractByteStringgetIpv6AddressBytes()

Optional. 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipv6Address.

getName()

publicabstractStringgetName()

Output only. [Output Only] The name of the network interface, which is generated by the server.

optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

Output only. [Output Only] The name of the network interface, which is generated by the server.

optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

publicabstractStringgetNetwork()

Optional. URL of the VPC network resource for this instance.

optional string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The network.

getNetworkAttachment()

publicabstractStringgetNetworkAttachment()

Optional. 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 = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

publicabstractByteStringgetNetworkAttachmentBytes()

Optional. 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 = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for networkAttachment.

getNetworkBytes()

publicabstractByteStringgetNetworkBytes()

Optional. URL of the VPC network resource for this instance.

optional string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for network.

getNicType()

publicabstractNetworkInterface.NicTypegetNicType()

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.NicType

The nicType.

getNicTypeValue()

publicabstractintgetNicTypeValue()

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for nicType.

getQueueCount()

publicabstractintgetQueueCount()

Optional. 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 = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The queueCount.

getStackType()

publicabstractNetworkInterface.StackTypegetStackType()

The stack type for this network interface.

optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10;

Returns
Type Description
NetworkInterface.StackType

The stackType.

getStackTypeValue()

publicabstractintgetStackTypeValue()

The stack type for this network interface.

optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10;

Returns
Type Description
int

The enum numeric value on the wire for stackType.

getSubnetwork()

publicabstractStringgetSubnetwork()

Optional. The URL of the Subnetwork resource for this instance.

optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

publicabstractByteStringgetSubnetworkBytes()

Optional. The URL of the Subnetwork resource for this instance.

optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subnetwork.

hasInternalIpv6PrefixLength()

publicabstractbooleanhasInternalIpv6PrefixLength()

Optional. The prefix length of the primary internal IPv6 range.

optional int32 internal_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the internalIpv6PrefixLength field is set.

hasIpAddress()

publicabstractbooleanhasIpAddress()

Optional. 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 ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpv6AccessType()

publicabstractbooleanhasIpv6AccessType()

Optional. [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.

optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ipv6AccessType field is set.

hasIpv6Address()

publicabstractbooleanhasIpv6Address()

Optional. 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the ipv6Address field is set.

hasName()

publicabstractbooleanhasName()

Output only. [Output Only] The name of the network interface, which is generated by the server.

optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the name field is set.

hasNetwork()

publicabstractbooleanhasNetwork()

Optional. URL of the VPC network resource for this instance.

optional string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the network field is set.

hasNetworkAttachment()

publicabstractbooleanhasNetworkAttachment()

Optional. 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 = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the networkAttachment field is set.

hasNicType()

publicabstractbooleanhasNicType()

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nicType field is set.

hasQueueCount()

publicabstractbooleanhasQueueCount()

Optional. 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 = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the queueCount field is set.

hasStackType()

publicabstractbooleanhasStackType()

The stack type for this network interface.

optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10;

Returns
Type Description
boolean

Whether the stackType field is set.

hasSubnetwork()

publicabstractbooleanhasSubnetwork()

Optional. The URL of the Subnetwork resource for this instance.

optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subnetwork field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.