Interface NetworkInterfaceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
NetworkInterface, NetworkInterface.Builder

@Generated public interface NetworkInterfaceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getAccessConfigsList

      List<AccessConfig> getAccessConfigsList()
       An array of configurations for this interface. Currently, only one access
       config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
    • getAccessConfigs

      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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
    • getAccessConfigsCount

      int getAccessConfigsCount()
       An array of configurations for this interface. Currently, only one access
       config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
    • getAccessConfigsOrBuilderList

      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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
    • getAccessConfigsOrBuilder

      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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
    • getAliasIpRangesList

      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;
    • getAliasIpRanges

      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;
    • getAliasIpRangesCount

      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;
    • getAliasIpRangesOrBuilderList

      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;
    • getAliasIpRangesOrBuilder

      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;
    • hasEnableVpcScopedDns

      boolean hasEnableVpcScopedDns()
       Optional. If true, DNS resolution will be enabled over this interface. Only valid
       with network_attachment.
       
      optional bool enable_vpc_scoped_dns = 283425868;
      Returns:
      Whether the enableVpcScopedDns field is set.
    • getEnableVpcScopedDns

      boolean getEnableVpcScopedDns()
       Optional. If true, DNS resolution will be enabled over this interface. Only valid
       with network_attachment.
       
      optional bool enable_vpc_scoped_dns = 283425868;
      Returns:
      The enableVpcScopedDns.
    • hasFingerprint

      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 theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
       
      optional string fingerprint = 234678500;
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      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 theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
       
      optional string fingerprint = 234678500;
      Returns:
      The fingerprint.
    • getFingerprintBytes

      com.google.protobuf.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 theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
       
      optional string fingerprint = 234678500;
      Returns:
      The bytes for fingerprint.
    • hasIgmpQuery

      boolean hasIgmpQuery()
       Indicate whether igmp query is enabled on the network interface
       or not. If enabled, also indicates the version of IGMP supported.
       Check the IgmpQuery enum for the list of possible values.
       
      optional string igmp_query = 30249546;
      Returns:
      Whether the igmpQuery field is set.
    • getIgmpQuery

      String getIgmpQuery()
       Indicate whether igmp query is enabled on the network interface
       or not. If enabled, also indicates the version of IGMP supported.
       Check the IgmpQuery enum for the list of possible values.
       
      optional string igmp_query = 30249546;
      Returns:
      The igmpQuery.
    • getIgmpQueryBytes

      com.google.protobuf.ByteString getIgmpQueryBytes()
       Indicate whether igmp query is enabled on the network interface
       or not. If enabled, also indicates the version of IGMP supported.
       Check the IgmpQuery enum for the list of possible values.
       
      optional string igmp_query = 30249546;
      Returns:
      The bytes for igmpQuery.
    • hasInternalIpv6PrefixLength

      boolean hasInternalIpv6PrefixLength()
       The prefix length of the primary internal IPv6 range.
       
      optional int32 internal_ipv6_prefix_length = 203833757;
      Returns:
      Whether the internalIpv6PrefixLength field is set.
    • getInternalIpv6PrefixLength

      int getInternalIpv6PrefixLength()
       The prefix length of the primary internal IPv6 range.
       
      optional int32 internal_ipv6_prefix_length = 203833757;
      Returns:
      The internalIpv6PrefixLength.
    • getIpv6AccessConfigsList

      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;
    • getIpv6AccessConfigs

      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;
    • getIpv6AccessConfigsCount

      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;
    • getIpv6AccessConfigsOrBuilderList

      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;
    • getIpv6AccessConfigsOrBuilder

      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;
    • hasIpv6AccessType

      boolean hasIpv6AccessType()
       Output only. [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:
      Whether the ipv6AccessType field is set.
    • getIpv6AccessType

      String getIpv6AccessType()
       Output only. [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:
      The ipv6AccessType.
    • getIpv6AccessTypeBytes

      com.google.protobuf.ByteString getIpv6AccessTypeBytes()
       Output only. [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:
      The bytes for ipv6AccessType.
    • hasIpv6Address

      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:
      Whether the ipv6Address field is set.
    • getIpv6Address

      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:
      The ipv6Address.
    • getIpv6AddressBytes

      com.google.protobuf.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:
      The bytes for ipv6Address.
    • hasKind

      boolean hasKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Returns:
      Whether the kind field is set.
    • getKind

      String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Returns:
      The kind.
    • getKindBytes

      com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Returns:
      The bytes for kind.
    • hasName

      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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Returns:
      Whether the name field is set.
    • getName

      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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Returns:
      The bytes for name.
    • hasNetwork

      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:
      Whether the network field is set.
    • getNetwork

      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:
      The network.
    • getNetworkBytes

      com.google.protobuf.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:
      The bytes for network.
    • hasNetworkAttachment

      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:
      Whether the networkAttachment field is set.
    • getNetworkAttachment

      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:
      The networkAttachment.
    • getNetworkAttachmentBytes

      com.google.protobuf.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:
      The bytes for networkAttachment.
    • hasNetworkIP

      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:
      Whether the networkIP field is set.
    • getNetworkIP

      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:
      The networkIP.
    • getNetworkIPBytes

      com.google.protobuf.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:
      The bytes for networkIP.
    • hasNicType

      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:
      Whether the nicType field is set.
    • getNicType

      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:
      The nicType.
    • getNicTypeBytes

      com.google.protobuf.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:
      The bytes for nicType.
    • hasParentNicName

      boolean hasParentNicName()
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Returns:
      Whether the parentNicName field is set.
    • getParentNicName

      String getParentNicName()
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Returns:
      The parentNicName.
    • getParentNicNameBytes

      com.google.protobuf.ByteString getParentNicNameBytes()
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Returns:
      The bytes for parentNicName.
    • hasQueueCount

      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:
      Whether the queueCount field is set.
    • getQueueCount

      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:
      The queueCount.
    • hasServiceClassId

      boolean hasServiceClassId()
       Optional. Producer Service's Service class Id for the region of this network
       interface. Can only be used with network_attachment. It is not possible to
       use on its own however, network_attachment can be used without
       service_class_id.
       
      optional string service_class_id = 422763404;
      Returns:
      Whether the serviceClassId field is set.
    • getServiceClassId

      String getServiceClassId()
       Optional. Producer Service's Service class Id for the region of this network
       interface. Can only be used with network_attachment. It is not possible to
       use on its own however, network_attachment can be used without
       service_class_id.
       
      optional string service_class_id = 422763404;
      Returns:
      The serviceClassId.
    • getServiceClassIdBytes

      com.google.protobuf.ByteString getServiceClassIdBytes()
       Optional. Producer Service's Service class Id for the region of this network
       interface. Can only be used with network_attachment. It is not possible to
       use on its own however, network_attachment can be used without
       service_class_id.
       
      optional string service_class_id = 422763404;
      Returns:
      The bytes for serviceClassId.
    • hasStackType

      boolean hasStackType()
       The stack type for this network interface. To assign only IPv4 addresses,
       use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_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:
      Whether the stackType field is set.
    • getStackType

      String getStackType()
       The stack type for this network interface. To assign only IPv4 addresses,
       use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_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:
      The stackType.
    • getStackTypeBytes

      com.google.protobuf.ByteString getStackTypeBytes()
       The stack type for this network interface. To assign only IPv4 addresses,
       use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_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:
      The bytes for stackType.
    • hasSubnetwork

      boolean hasSubnetwork()
       The URL of the Subnetwork resource for this instance. If the network
       resource is inlegacy
       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:
      Whether the subnetwork field is set.
    • getSubnetwork

      String getSubnetwork()
       The URL of the Subnetwork resource for this instance. If the network
       resource is inlegacy
       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:
      The subnetwork.
    • getSubnetworkBytes

      com.google.protobuf.ByteString getSubnetworkBytes()
       The URL of the Subnetwork resource for this instance. If the network
       resource is inlegacy
       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:
      The bytes for subnetwork.
    • hasVlan

      boolean hasVlan()
       VLAN tag of a dynamic network interface, must be  an integer in the range
       from 2 to 255 inclusively.
       
      optional int32 vlan = 3622243;
      Returns:
      Whether the vlan field is set.
    • getVlan

      int getVlan()
       VLAN tag of a dynamic network interface, must be  an integer in the range
       from 2 to 255 inclusively.
       
      optional int32 vlan = 3622243;
      Returns:
      The vlan.