Class NetworkInterface.Builder (0.21.0)

publicstaticfinalclass NetworkInterface.BuilderextendsGeneratedMessageV3.Builder<NetworkInterface.Builder>implementsNetworkInterfaceOrBuilder

A network interface resource attached to an instance. s

Protobuf type google.cloud.backupdr.v1.NetworkInterface

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAccessConfigs(AccessConfig value)

publicNetworkInterface.BuilderaddAccessConfigs(AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addAccessConfigs(AccessConfig.Builder builderForValue)

publicNetworkInterface.BuilderaddAccessConfigs(AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addAccessConfigs(int index, AccessConfig value)

publicNetworkInterface.BuilderaddAccessConfigs(intindex,AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addAccessConfigs(int index, AccessConfig.Builder builderForValue)

publicNetworkInterface.BuilderaddAccessConfigs(intindex,AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addAccessConfigsBuilder()

publicAccessConfig.BuilderaddAccessConfigsBuilder()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

addAccessConfigsBuilder(int index)

publicAccessConfig.BuilderaddAccessConfigsBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

addAliasIpRanges(AliasIpRange value)

publicNetworkInterface.BuilderaddAliasIpRanges(AliasIpRangevalue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AliasIpRange
Returns
Type Description
NetworkInterface.Builder

addAliasIpRanges(AliasIpRange.Builder builderForValue)

publicNetworkInterface.BuilderaddAliasIpRanges(AliasIpRange.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

addAliasIpRanges(int index, AliasIpRange value)

publicNetworkInterface.BuilderaddAliasIpRanges(intindex,AliasIpRangevalue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

addAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

publicNetworkInterface.BuilderaddAliasIpRanges(intindex,AliasIpRange.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

addAliasIpRangesBuilder()

publicAliasIpRange.BuilderaddAliasIpRangesBuilder()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AliasIpRange.Builder

addAliasIpRangesBuilder(int index)

publicAliasIpRange.BuilderaddAliasIpRangesBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange.Builder

addAllAccessConfigs(Iterable<? extends AccessConfig> values)

publicNetworkInterface.BuilderaddAllAccessConfigs(Iterable<?extendsAccessConfig>values)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

addAllAliasIpRanges(Iterable<? extends AliasIpRange> values)

publicNetworkInterface.BuilderaddAllAliasIpRanges(Iterable<?extendsAliasIpRange>values)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

addAllIpv6AccessConfigs(Iterable<? extends AccessConfig> values)

publicNetworkInterface.BuilderaddAllIpv6AccessConfigs(Iterable<?extendsAccessConfig>values)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

addIpv6AccessConfigs(AccessConfig value)

publicNetworkInterface.BuilderaddIpv6AccessConfigs(AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AccessConfig
Returns
Type Description
NetworkInterface.Builder

addIpv6AccessConfigs(AccessConfig.Builder builderForValue)

publicNetworkInterface.BuilderaddIpv6AccessConfigs(AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

addIpv6AccessConfigs(int index, AccessConfig value)

publicNetworkInterface.BuilderaddIpv6AccessConfigs(intindex,AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

publicNetworkInterface.BuilderaddIpv6AccessConfigs(intindex,AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

addIpv6AccessConfigsBuilder()

publicAccessConfig.BuilderaddIpv6AccessConfigsBuilder()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

addIpv6AccessConfigsBuilder(int index)

publicAccessConfig.BuilderaddIpv6AccessConfigsBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicNetworkInterface.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkInterface.Builder
Overrides

build()

publicNetworkInterfacebuild()
Returns
Type Description
NetworkInterface

buildPartial()

publicNetworkInterfacebuildPartial()
Returns
Type Description
NetworkInterface

clear()

publicNetworkInterface.Builderclear()
Returns
Type Description
NetworkInterface.Builder
Overrides

clearAccessConfigs()

publicNetworkInterface.BuilderclearAccessConfigs()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Builder

clearAliasIpRanges()

publicNetworkInterface.BuilderclearAliasIpRanges()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Builder

clearField(Descriptors.FieldDescriptor field)

publicNetworkInterface.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkInterface.Builder
Overrides

clearInternalIpv6PrefixLength()

publicNetworkInterface.BuilderclearInternalIpv6PrefixLength()

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

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearIpAddress()

publicNetworkInterface.BuilderclearIpAddress()

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearIpv6AccessConfigs()

publicNetworkInterface.BuilderclearIpv6AccessConfigs()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Builder

clearIpv6AccessType()

publicNetworkInterface.BuilderclearIpv6AccessType()

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearIpv6Address()

publicNetworkInterface.BuilderclearIpv6Address()

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearName()

publicNetworkInterface.BuilderclearName()

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

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNetwork()

publicNetworkInterface.BuilderclearNetwork()

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

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNetworkAttachment()

publicNetworkInterface.BuilderclearNetworkAttachment()

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearNicType()

publicNetworkInterface.BuilderclearNicType()

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

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicNetworkInterface.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkInterface.Builder
Overrides

clearQueueCount()

publicNetworkInterface.BuilderclearQueueCount()

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

optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearStackType()

publicNetworkInterface.BuilderclearStackType()

The stack type for this network interface.

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clearSubnetwork()

publicNetworkInterface.BuilderclearSubnetwork()

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

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

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

clone()

publicNetworkInterface.Builderclone()
Returns
Type Description
NetworkInterface.Builder
Overrides

getAccessConfigs(int index)

publicAccessConfiggetAccessConfigs(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getAccessConfigsBuilder(int index)

publicAccessConfig.BuildergetAccessConfigsBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

getAccessConfigsBuilderList()

publicList<AccessConfig.Builder>getAccessConfigsBuilderList()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAccessConfigsCount()

publicintgetAccessConfigsCount()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAccessConfigsList()

publicList<AccessConfig>getAccessConfigsList()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AccessConfig>

getAccessConfigsOrBuilder(int index)

publicAccessConfigOrBuildergetAccessConfigsOrBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getAccessConfigsOrBuilderList()

publicList<?extendsAccessConfigOrBuilder>getAccessConfigsOrBuilderList()

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

getAliasIpRanges(int index)

publicAliasIpRangegetAliasIpRanges(intindex)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange

getAliasIpRangesBuilder(int index)

publicAliasIpRange.BuildergetAliasIpRangesBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRange.Builder

getAliasIpRangesBuilderList()

publicList<AliasIpRange.Builder>getAliasIpRangesBuilderList()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAliasIpRangesCount()

publicintgetAliasIpRangesCount()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAliasIpRangesList()

publicList<AliasIpRange>getAliasIpRangesList()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AliasIpRange>

getAliasIpRangesOrBuilder(int index)

publicAliasIpRangeOrBuildergetAliasIpRangesOrBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AliasIpRangeOrBuilder

getAliasIpRangesOrBuilderList()

publicList<?extendsAliasIpRangeOrBuilder>getAliasIpRangesOrBuilderList()

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

getDefaultInstanceForType()

publicNetworkInterfacegetDefaultInstanceForType()
Returns
Type Description
NetworkInterface

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInternalIpv6PrefixLength()

publicintgetInternalIpv6PrefixLength()

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

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

Returns
Type Description
int

The internalIpv6PrefixLength.

getIpAddress()

publicStringgetIpAddress()

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

publicByteStringgetIpAddressBytes()

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpv6AccessConfigs(int index)

publicAccessConfiggetIpv6AccessConfigs(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig

getIpv6AccessConfigsBuilder(int index)

publicAccessConfig.BuildergetIpv6AccessConfigsBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfig.Builder

getIpv6AccessConfigsBuilderList()

publicList<AccessConfig.Builder>getIpv6AccessConfigsBuilderList()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getIpv6AccessConfigsCount()

publicintgetIpv6AccessConfigsCount()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getIpv6AccessConfigsList()

publicList<AccessConfig>getIpv6AccessConfigsList()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AccessConfig>

getIpv6AccessConfigsOrBuilder(int index)

publicAccessConfigOrBuildergetIpv6AccessConfigsOrBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccessConfigOrBuilder

getIpv6AccessConfigsOrBuilderList()

publicList<?extendsAccessConfigOrBuilder>getIpv6AccessConfigsOrBuilderList()

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

getIpv6AccessType()

publicNetworkInterface.Ipv6AccessTypegetIpv6AccessType()

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Returns
Type Description
NetworkInterface.Ipv6AccessType

The ipv6AccessType.

getIpv6AccessTypeValue()

publicintgetIpv6AccessTypeValue()

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Returns
Type Description
int

The enum numeric value on the wire for ipv6AccessType.

getIpv6Address()

publicStringgetIpv6Address()

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipv6Address.

getIpv6AddressBytes()

publicByteStringgetIpv6AddressBytes()

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipv6Address.

getName()

publicStringgetName()

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

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

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

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

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

publicStringgetNetwork()

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

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

Returns
Type Description
String

The network.

getNetworkAttachment()

publicStringgetNetworkAttachment()

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

publicByteStringgetNetworkAttachmentBytes()

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for networkAttachment.

getNetworkBytes()

publicByteStringgetNetworkBytes()

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

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

Returns
Type Description
ByteString

The bytes for network.

getNicType()

publicNetworkInterface.NicTypegetNicType()

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

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

Returns
Type Description
NetworkInterface.NicType

The nicType.

getNicTypeValue()

publicintgetNicTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for nicType.

getQueueCount()

publicintgetQueueCount()

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

optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The queueCount.

getStackType()

publicNetworkInterface.StackTypegetStackType()

The stack type for this network interface.

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

Returns
Type Description
NetworkInterface.StackType

The stackType.

getStackTypeValue()

publicintgetStackTypeValue()

The stack type for this network interface.

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

Returns
Type Description
int

The enum numeric value on the wire for stackType.

getSubnetwork()

publicStringgetSubnetwork()

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

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

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

publicByteStringgetSubnetworkBytes()

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

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

Returns
Type Description
ByteString

The bytes for subnetwork.

hasInternalIpv6PrefixLength()

publicbooleanhasInternalIpv6PrefixLength()

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

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

Returns
Type Description
boolean

Whether the internalIpv6PrefixLength field is set.

hasIpAddress()

publicbooleanhasIpAddress()

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpv6AccessType()

publicbooleanhasIpv6AccessType()

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Returns
Type Description
boolean

Whether the ipv6AccessType field is set.

hasIpv6Address()

publicbooleanhasIpv6Address()

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the ipv6Address field is set.

hasName()

publicbooleanhasName()

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

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

Returns
Type Description
boolean

Whether the name field is set.

hasNetwork()

publicbooleanhasNetwork()

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

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

Returns
Type Description
boolean

Whether the network field is set.

hasNetworkAttachment()

publicbooleanhasNetworkAttachment()

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the networkAttachment field is set.

hasNicType()

publicbooleanhasNicType()

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

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

Returns
Type Description
boolean

Whether the nicType field is set.

hasQueueCount()

publicbooleanhasQueueCount()

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

optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the queueCount field is set.

hasStackType()

publicbooleanhasStackType()

The stack type for this network interface.

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

Returns
Type Description
boolean

Whether the stackType field is set.

hasSubnetwork()

publicbooleanhasSubnetwork()

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

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

Returns
Type Description
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkInterface other)

publicNetworkInterface.BuildermergeFrom(NetworkInterfaceother)
Parameter
Name Description
other NetworkInterface
Returns
Type Description
NetworkInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicNetworkInterface.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkInterface.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicNetworkInterface.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
NetworkInterface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalNetworkInterface.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkInterface.Builder
Overrides

removeAccessConfigs(int index)

publicNetworkInterface.BuilderremoveAccessConfigs(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

removeAliasIpRanges(int index)

publicNetworkInterface.BuilderremoveAliasIpRanges(intindex)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

removeIpv6AccessConfigs(int index)

publicNetworkInterface.BuilderremoveIpv6AccessConfigs(intindex)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

setAccessConfigs(int index, AccessConfig value)

publicNetworkInterface.BuildersetAccessConfigs(intindex,AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

setAccessConfigs(int index, AccessConfig.Builder builderForValue)

publicNetworkInterface.BuildersetAccessConfigs(intindex,AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL];

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

setAliasIpRanges(int index, AliasIpRange value)

publicNetworkInterface.BuildersetAliasIpRanges(intindex,AliasIpRangevalue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

setAliasIpRanges(int index, AliasIpRange.Builder builderForValue)

publicNetworkInterface.BuildersetAliasIpRanges(intindex,AliasIpRange.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL];

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

setField(Descriptors.FieldDescriptor field, Object value)

publicNetworkInterface.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkInterface.Builder
Overrides

setInternalIpv6PrefixLength(int value)

publicNetworkInterface.BuildersetInternalIpv6PrefixLength(intvalue)

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

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

Parameter
Name Description
value int

The internalIpv6PrefixLength to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpAddress(String value)

publicNetworkInterface.BuildersetIpAddress(Stringvalue)

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

publicNetworkInterface.BuildersetIpAddressBytes(ByteStringvalue)

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

optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AccessConfigs(int index, AccessConfig value)

publicNetworkInterface.BuildersetIpv6AccessConfigs(intindex,AccessConfigvalue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)

publicNetworkInterface.BuildersetIpv6AccessConfigs(intindex,AccessConfig.BuilderbuilderForValue)

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

repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL];

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

setIpv6AccessType(NetworkInterface.Ipv6AccessType value)

publicNetworkInterface.BuildersetIpv6AccessType(NetworkInterface.Ipv6AccessTypevalue)

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Parameter
Name Description
value NetworkInterface.Ipv6AccessType

The ipv6AccessType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AccessTypeValue(int value)

publicNetworkInterface.BuildersetIpv6AccessTypeValue(intvalue)

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

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

Parameter
Name Description
value int

The enum numeric value on the wire for ipv6AccessType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6Address(String value)

publicNetworkInterface.BuildersetIpv6Address(Stringvalue)

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipv6Address to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setIpv6AddressBytes(ByteString value)

publicNetworkInterface.BuildersetIpv6AddressBytes(ByteStringvalue)

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

optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipv6Address to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setName(String value)

publicNetworkInterface.BuildersetName(Stringvalue)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicNetworkInterface.BuildersetNameBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetwork(String value)

publicNetworkInterface.BuildersetNetwork(Stringvalue)

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

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

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkAttachment(String value)

publicNetworkInterface.BuildersetNetworkAttachment(Stringvalue)

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The networkAttachment to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkAttachmentBytes(ByteString value)

publicNetworkInterface.BuildersetNetworkAttachmentBytes(ByteStringvalue)

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

optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for networkAttachment to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

publicNetworkInterface.BuildersetNetworkBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNicType(NetworkInterface.NicType value)

publicNetworkInterface.BuildersetNicType(NetworkInterface.NicTypevalue)

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

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

Parameter
Name Description
value NetworkInterface.NicType

The nicType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setNicTypeValue(int value)

publicNetworkInterface.BuildersetNicTypeValue(intvalue)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for nicType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setQueueCount(int value)

publicNetworkInterface.BuildersetQueueCount(intvalue)

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

optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The queueCount to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

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

publicNetworkInterface.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkInterface.Builder
Overrides

setStackType(NetworkInterface.StackType value)

publicNetworkInterface.BuildersetStackType(NetworkInterface.StackTypevalue)

The stack type for this network interface.

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

Parameter
Name Description
value NetworkInterface.StackType

The stackType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setStackTypeValue(int value)

publicNetworkInterface.BuildersetStackTypeValue(intvalue)

The stack type for this network interface.

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

Parameter
Name Description
value int

The enum numeric value on the wire for stackType to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setSubnetwork(String value)

publicNetworkInterface.BuildersetSubnetwork(Stringvalue)

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

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

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

publicNetworkInterface.BuildersetSubnetworkBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
NetworkInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalNetworkInterface.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkInterface.Builder
Overrides

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

Last updated 2025年11月19日 UTC.