Class NetworkInterface.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
com.google.cloud.compute.v1.NetworkInterface.Builder
All Implemented Interfaces:
NetworkInterfaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NetworkInterface

public static final class NetworkInterface.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder> implements NetworkInterfaceOrBuilder
 A network interface resource attached to an instance.
 
Protobuf type google.cloud.compute.v1.NetworkInterface
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
    • clear

      public NetworkInterface.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
    • getDefaultInstanceForType

      public NetworkInterface getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NetworkInterface build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NetworkInterface buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NetworkInterface.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkInterface.Builder>
    • mergeFrom

      public NetworkInterface.Builder mergeFrom(NetworkInterface other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
    • mergeFrom

      public NetworkInterface.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkInterface.Builder>
      Throws:
      IOException
    • 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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
      Specified by:
      getAccessConfigsList in interface NetworkInterfaceOrBuilder
    • 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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
      Specified by:
      getAccessConfigsCount in interface NetworkInterfaceOrBuilder
    • getAccessConfigs

      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 noaccessConfigs specified, then this instance will have
       no external internet access.
       
      repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
      Specified by:
      getAccessConfigs in interface NetworkInterfaceOrBuilder
    • setAccessConfigs

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

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

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

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

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

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

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

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

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

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

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

      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;
      Specified by:
      getAliasIpRanges in interface NetworkInterfaceOrBuilder
    • setAliasIpRanges

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

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

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

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

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

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

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

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

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

      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;
      Specified by:
      getAliasIpRangesOrBuilder in interface NetworkInterfaceOrBuilder
    • 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;
      Specified by:
      getAliasIpRangesOrBuilderList in interface NetworkInterfaceOrBuilder
    • 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;
    • addAliasIpRangesBuilder

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

      public 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;
      Specified by:
      hasEnableVpcScopedDns in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the enableVpcScopedDns field is set.
    • getEnableVpcScopedDns

      public 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;
      Specified by:
      getEnableVpcScopedDns in interface NetworkInterfaceOrBuilder
      Returns:
      The enableVpcScopedDns.
    • setEnableVpcScopedDns

      public NetworkInterface.Builder setEnableVpcScopedDns(boolean value)
       Optional. If true, DNS resolution will be enabled over this interface. Only valid
       with network_attachment.
       
      optional bool enable_vpc_scoped_dns = 283425868;
      Parameters:
      value - The enableVpcScopedDns to set.
      Returns:
      This builder for chaining.
    • clearEnableVpcScopedDns

      public NetworkInterface.Builder clearEnableVpcScopedDns()
       Optional. If true, DNS resolution will be enabled over this interface. Only valid
       with network_attachment.
       
      optional bool enable_vpc_scoped_dns = 283425868;
      Returns:
      This builder for chaining.
    • 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 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;
      Specified by:
      hasFingerprint in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • 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 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;
      Specified by:
      getFingerprint in interface NetworkInterfaceOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public 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;
      Specified by:
      getFingerprintBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      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 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;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • 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 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:
      This builder for chaining.
    • setFingerprintBytes

      public NetworkInterface.Builder setFingerprintBytes(com.google.protobuf.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 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;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • hasIgmpQuery

      public 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;
      Specified by:
      hasIgmpQuery in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the igmpQuery field is set.
    • getIgmpQuery

      public 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;
      Specified by:
      getIgmpQuery in interface NetworkInterfaceOrBuilder
      Returns:
      The igmpQuery.
    • getIgmpQueryBytes

      public 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;
      Specified by:
      getIgmpQueryBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for igmpQuery.
    • setIgmpQuery

      public NetworkInterface.Builder setIgmpQuery(String value)
       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;
      Parameters:
      value - The igmpQuery to set.
      Returns:
      This builder for chaining.
    • clearIgmpQuery

      public NetworkInterface.Builder clearIgmpQuery()
       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:
      This builder for chaining.
    • setIgmpQueryBytes

      public NetworkInterface.Builder setIgmpQueryBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for igmpQuery to set.
      Returns:
      This builder for chaining.
    • hasInternalIpv6PrefixLength

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

      public int getInternalIpv6PrefixLength()
       The prefix length of the primary internal IPv6 range.
       
      optional int32 internal_ipv6_prefix_length = 203833757;
      Specified by:
      getInternalIpv6PrefixLength in interface NetworkInterfaceOrBuilder
      Returns:
      The internalIpv6PrefixLength.
    • setInternalIpv6PrefixLength

      public NetworkInterface.Builder setInternalIpv6PrefixLength(int value)
       The prefix length of the primary internal IPv6 range.
       
      optional int32 internal_ipv6_prefix_length = 203833757;
      Parameters:
      value - The internalIpv6PrefixLength to set.
      Returns:
      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:
      This builder for chaining.
    • 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;
      Specified by:
      getIpv6AccessConfigsList in interface NetworkInterfaceOrBuilder
    • 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;
      Specified by:
      getIpv6AccessConfigsCount in interface NetworkInterfaceOrBuilder
    • getIpv6AccessConfigs

      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;
      Specified by:
      getIpv6AccessConfigs in interface NetworkInterfaceOrBuilder
    • setIpv6AccessConfigs

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

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

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

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

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

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

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

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

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

      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;
      Specified by:
      getIpv6AccessConfigsOrBuilder in interface NetworkInterfaceOrBuilder
    • 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;
      Specified by:
      getIpv6AccessConfigsOrBuilderList in interface NetworkInterfaceOrBuilder
    • 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;
    • addIpv6AccessConfigsBuilder

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

      public 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;
      Specified by:
      hasIpv6AccessType in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the ipv6AccessType field is set.
    • getIpv6AccessType

      public 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;
      Specified by:
      getIpv6AccessType in interface NetworkInterfaceOrBuilder
      Returns:
      The ipv6AccessType.
    • getIpv6AccessTypeBytes

      public 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;
      Specified by:
      getIpv6AccessTypeBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for ipv6AccessType.
    • setIpv6AccessType

      public NetworkInterface.Builder setIpv6AccessType(String value)
       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;
      Parameters:
      value - The ipv6AccessType to set.
      Returns:
      This builder for chaining.
    • clearIpv6AccessType

      public NetworkInterface.Builder clearIpv6AccessType()
       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:
      This builder for chaining.
    • setIpv6AccessTypeBytes

      public NetworkInterface.Builder setIpv6AccessTypeBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for ipv6AccessType to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasIpv6Address in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • 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;
      Specified by:
      getIpv6Address in interface NetworkInterfaceOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public 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;
      Specified by:
      getIpv6AddressBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for ipv6Address.
    • setIpv6Address

      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;
      Parameters:
      value - The ipv6Address to set.
      Returns:
      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:
      This builder for chaining.
    • setIpv6AddressBytes

      public NetworkInterface.Builder setIpv6AddressBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for ipv6Address to set.
      Returns:
      This builder for chaining.
    • hasKind

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

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

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

      public NetworkInterface.Builder setKind(String value)
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public NetworkInterface.Builder clearKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public NetworkInterface.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • 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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the name field is set.
    • 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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Specified by:
      getName in interface NetworkInterfaceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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;
      Specified by:
      getNameBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for name.
    • setName

      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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public NetworkInterface.Builder setNameBytes(com.google.protobuf.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 and7. The default interface value is nic0.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasNetwork in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the network field is set.
    • 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;
      Specified by:
      getNetwork in interface NetworkInterfaceOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public 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;
      Specified by:
      getNetworkBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      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;
      Parameters:
      value - The network to set.
      Returns:
      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:
      This builder for chaining.
    • setNetworkBytes

      public NetworkInterface.Builder setNetworkBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasNetworkAttachment in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the networkAttachment field is set.
    • 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;
      Specified by:
      getNetworkAttachment in interface NetworkInterfaceOrBuilder
      Returns:
      The networkAttachment.
    • getNetworkAttachmentBytes

      public 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;
      Specified by:
      getNetworkAttachmentBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for networkAttachment.
    • setNetworkAttachment

      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;
      Parameters:
      value - The networkAttachment to set.
      Returns:
      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:
      This builder for chaining.
    • setNetworkAttachmentBytes

      public NetworkInterface.Builder setNetworkAttachmentBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for networkAttachment to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasNetworkIP in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the networkIP field is set.
    • 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;
      Specified by:
      getNetworkIP in interface NetworkInterfaceOrBuilder
      Returns:
      The networkIP.
    • getNetworkIPBytes

      public 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;
      Specified by:
      getNetworkIPBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for networkIP.
    • setNetworkIP

      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;
      Parameters:
      value - The networkIP to set.
      Returns:
      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:
      This builder for chaining.
    • setNetworkIPBytes

      public NetworkInterface.Builder setNetworkIPBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for networkIP to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasNicType in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the nicType field is set.
    • 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;
      Specified by:
      getNicType in interface NetworkInterfaceOrBuilder
      Returns:
      The nicType.
    • getNicTypeBytes

      public 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;
      Specified by:
      getNicTypeBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for nicType.
    • setNicType

      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;
      Parameters:
      value - The nicType to set.
      Returns:
      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:
      This builder for chaining.
    • setNicTypeBytes

      public NetworkInterface.Builder setNicTypeBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for nicType to set.
      Returns:
      This builder for chaining.
    • hasParentNicName

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

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

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

      public NetworkInterface.Builder setParentNicName(String value)
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Parameters:
      value - The parentNicName to set.
      Returns:
      This builder for chaining.
    • clearParentNicName

      public NetworkInterface.Builder clearParentNicName()
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Returns:
      This builder for chaining.
    • setParentNicNameBytes

      public NetworkInterface.Builder setParentNicNameBytes(com.google.protobuf.ByteString value)
       Name of the parent network interface of a dynamic network interface.
       
      optional string parent_nic_name = 418764375;
      Parameters:
      value - The bytes for parentNicName to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasQueueCount in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the queueCount field is set.
    • 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;
      Specified by:
      getQueueCount in interface NetworkInterfaceOrBuilder
      Returns:
      The queueCount.
    • setQueueCount

      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;
      Parameters:
      value - The queueCount to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • hasServiceClassId

      public 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;
      Specified by:
      hasServiceClassId in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the serviceClassId field is set.
    • getServiceClassId

      public 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;
      Specified by:
      getServiceClassId in interface NetworkInterfaceOrBuilder
      Returns:
      The serviceClassId.
    • getServiceClassIdBytes

      public 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;
      Specified by:
      getServiceClassIdBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for serviceClassId.
    • setServiceClassId

      public NetworkInterface.Builder setServiceClassId(String value)
       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;
      Parameters:
      value - The serviceClassId to set.
      Returns:
      This builder for chaining.
    • clearServiceClassId

      public NetworkInterface.Builder clearServiceClassId()
       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:
      This builder for chaining.
    • setServiceClassIdBytes

      public NetworkInterface.Builder setServiceClassIdBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for serviceClassId to set.
      Returns:
      This builder for chaining.
    • 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, 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;
      Specified by:
      hasStackType in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the stackType field is set.
    • 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, 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;
      Specified by:
      getStackType in interface NetworkInterfaceOrBuilder
      Returns:
      The stackType.
    • getStackTypeBytes

      public 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;
      Specified by:
      getStackTypeBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for stackType.
    • setStackType

      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, 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;
      Parameters:
      value - The stackType to set.
      Returns:
      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, 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:
      This builder for chaining.
    • setStackTypeBytes

      public NetworkInterface.Builder setStackTypeBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for stackType to set.
      Returns:
      This builder for chaining.
    • hasSubnetwork

      public 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;
      Specified by:
      hasSubnetwork in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the subnetwork field is set.
    • getSubnetwork

      public 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;
      Specified by:
      getSubnetwork in interface NetworkInterfaceOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public 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;
      Specified by:
      getSubnetworkBytes in interface NetworkInterfaceOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public NetworkInterface.Builder setSubnetwork(String value)
       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;
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

      public NetworkInterface.Builder clearSubnetwork()
       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:
      This builder for chaining.
    • setSubnetworkBytes

      public NetworkInterface.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • hasVlan

      public 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;
      Specified by:
      hasVlan in interface NetworkInterfaceOrBuilder
      Returns:
      Whether the vlan field is set.
    • getVlan

      public 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;
      Specified by:
      getVlan in interface NetworkInterfaceOrBuilder
      Returns:
      The vlan.
    • setVlan

      public NetworkInterface.Builder setVlan(int value)
       VLAN tag of a dynamic network interface, must be  an integer in the range
       from 2 to 255 inclusively.
       
      optional int32 vlan = 3622243;
      Parameters:
      value - The vlan to set.
      Returns:
      This builder for chaining.
    • clearVlan

      public NetworkInterface.Builder clearVlan()
       VLAN tag of a dynamic network interface, must be  an integer in the range
       from 2 to 255 inclusively.
       
      optional int32 vlan = 3622243;
      Returns:
      This builder for chaining.