Class NetworkInterface (0.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclass NetworkInterfaceextendsGeneratedMessageV3implementsNetworkInterfaceOrBuilderA network interface resource attached to an instance. s
Protobuf type google.cloud.backupdr.v1.NetworkInterface
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NetworkInterfaceImplements
NetworkInterfaceOrBuilderInherited Members
Static Fields
ACCESS_CONFIGS_FIELD_NUMBER
publicstaticfinalintACCESS_CONFIGS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ALIAS_IP_RANGES_FIELD_NUMBER
publicstaticfinalintALIAS_IP_RANGES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER
publicstaticfinalintINTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
IPV6_ACCESS_CONFIGS_FIELD_NUMBER
publicstaticfinalintIPV6_ACCESS_CONFIGS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
IPV6_ACCESS_TYPE_FIELD_NUMBER
publicstaticfinalintIPV6_ACCESS_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
IPV6_ADDRESS_FIELD_NUMBER
publicstaticfinalintIPV6_ADDRESS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
IP_ADDRESS_FIELD_NUMBER
publicstaticfinalintIP_ADDRESS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NETWORK_ATTACHMENT_FIELD_NUMBER
publicstaticfinalintNETWORK_ATTACHMENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NETWORK_FIELD_NUMBER
publicstaticfinalintNETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NIC_TYPE_FIELD_NUMBER
publicstaticfinalintNIC_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
QUEUE_COUNT_FIELD_NUMBER
publicstaticfinalintQUEUE_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
STACK_TYPE_FIELD_NUMBER
publicstaticfinalintSTACK_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SUBNETWORK_FIELD_NUMBER
publicstaticfinalintSUBNETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
publicstaticNetworkInterfacegetDefaultInstance()| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
publicstaticNetworkInterface.BuildernewBuilder()| Returns | |
|---|---|
| Type | Description |
NetworkInterface.Builder |
|
newBuilder(NetworkInterface prototype)
publicstaticNetworkInterface.BuildernewBuilder(NetworkInterfaceprototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
NetworkInterface |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface.Builder |
|
parseDelimitedFrom(InputStream input)
publicstaticNetworkInterfaceparseDelimitedFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
publicstaticNetworkInterfaceparseFrom(byte[]data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
publicstaticNetworkInterfaceparseFrom(ByteStringdata)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
publicstaticNetworkInterfaceparseFrom(CodedInputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
publicstaticNetworkInterfaceparseFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
publicstaticNetworkInterfaceparseFrom(ByteBufferdata)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkInterfaceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
publicstaticParser<NetworkInterface>parser()| Returns | |
|---|---|
| Type | Description |
Parser<NetworkInterface> |
|
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAccessConfigs(int index)
publicAccessConfiggetAccessConfigs(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()
publicintgetAccessConfigsCount()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()
publicList<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)
publicAccessConfigOrBuildergetAccessConfigsOrBuilder(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()
publicList<?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)
publicAliasIpRangegetAliasIpRanges(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()
publicintgetAliasIpRangesCount()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()
publicList<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)
publicAliasIpRangeOrBuildergetAliasIpRangesOrBuilder(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()
publicList<?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> |
|
getDefaultInstanceForType()
publicNetworkInterfacegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NetworkInterface |
|
getInternalIpv6PrefixLength()
publicintgetInternalIpv6PrefixLength()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()
publicStringgetIpAddress()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()
publicByteStringgetIpAddressBytes()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)
publicAccessConfiggetIpv6AccessConfigs(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()
publicintgetIpv6AccessConfigsCount()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()
publicList<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)
publicAccessConfigOrBuildergetIpv6AccessConfigsOrBuilder(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()
publicList<?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()
publicNetworkInterface.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()
publicintgetIpv6AccessTypeValue()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()
publicStringgetIpv6Address()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()
publicByteStringgetIpv6AddressBytes()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()
publicStringgetName()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()
publicByteStringgetNameBytes()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()
publicStringgetNetwork()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()
publicStringgetNetworkAttachment()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()
publicByteStringgetNetworkAttachmentBytes()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()
publicByteStringgetNetworkBytes()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()
publicNetworkInterface.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()
publicintgetNicTypeValue()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. |
getParserForType()
publicParser<NetworkInterface>getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<NetworkInterface> |
|
getQueueCount()
publicintgetQueueCount()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. |
getSerializedSize()
publicintgetSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getStackType()
publicNetworkInterface.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()
publicintgetStackTypeValue()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()
publicStringgetSubnetwork()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()
publicByteStringgetSubnetworkBytes()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()
publicbooleanhasInternalIpv6PrefixLength()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()
publicbooleanhasIpAddress()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()
publicbooleanhasIpv6AccessType()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()
publicbooleanhasIpv6Address()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()
publicbooleanhasName()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()
publicbooleanhasNetwork()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()
publicbooleanhasNetworkAttachment()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()
publicbooleanhasNicType()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()
publicbooleanhasQueueCount()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()
publicbooleanhasStackType()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()
publicbooleanhasSubnetwork()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. |
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
publicNetworkInterface.BuildernewBuilderForType()| Returns | |
|---|---|
| Type | Description |
NetworkInterface.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedNetworkInterface.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
NetworkInterface.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
publicNetworkInterface.BuildertoBuilder()| Returns | |
|---|---|
| Type | Description |
NetworkInterface.Builder |
|
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|