public static final class NetworkInterface.Builder extends GeneratedMessageV3.Builder<NetworkInterface.Builder> implements NetworkInterfaceOrBuilder
A network interface resource attached to an instance. s
Protobuf type google.cloud.backupdr.v1.NetworkInterface
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NetworkInterface.BuilderImplements
NetworkInterfaceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAccessConfigs(AccessConfig value)
public NetworkInterface.Builder addAccessConfigs(AccessConfig value)
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)
public NetworkInterface.Builder addAccessConfigs(AccessConfig.Builder builderForValue)
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)
public NetworkInterface.Builder addAccessConfigs(int index, AccessConfig value)
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)
public NetworkInterface.Builder addAccessConfigs(int index, AccessConfig.Builder builderForValue)
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()
public AccessConfig.Builder addAccessConfigsBuilder()
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)
public AccessConfig.Builder addAccessConfigsBuilder(int index)
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)
public NetworkInterface.Builder addAliasIpRanges(AliasIpRange value)
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)
public NetworkInterface.Builder addAliasIpRanges(AliasIpRange.Builder builderForValue)
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)
public NetworkInterface.Builder addAliasIpRanges(int index, AliasIpRange value)
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)
public NetworkInterface.Builder addAliasIpRanges(int index, AliasIpRange.Builder builderForValue)
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()
public AliasIpRange.Builder addAliasIpRangesBuilder()
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)
public AliasIpRange.Builder addAliasIpRangesBuilder(int index)
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)
public NetworkInterface.Builder addAllAccessConfigs(Iterable<? extends AccessConfig> 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)
public NetworkInterface.Builder addAllAliasIpRanges(Iterable<? extends AliasIpRange> 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)
public NetworkInterface.Builder addAllIpv6AccessConfigs(Iterable<? extends AccessConfig> 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)
public NetworkInterface.Builder addIpv6AccessConfigs(AccessConfig value)
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)
public NetworkInterface.Builder addIpv6AccessConfigs(AccessConfig.Builder builderForValue)
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)
public NetworkInterface.Builder addIpv6AccessConfigs(int index, AccessConfig value)
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)
public NetworkInterface.Builder addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)
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()
public AccessConfig.Builder addIpv6AccessConfigsBuilder()
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)
public AccessConfig.Builder addIpv6AccessConfigsBuilder(int index)
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)
public NetworkInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
build()
public NetworkInterface build()
Returns | |
---|---|
Type | Description |
NetworkInterface |
buildPartial()
public NetworkInterface buildPartial()
Returns | |
---|---|
Type | Description |
NetworkInterface |
clear()
public NetworkInterface.Builder clear()
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
clearAccessConfigs()
public NetworkInterface.Builder clearAccessConfigs()
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()
public NetworkInterface.Builder clearAliasIpRanges()
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)
public NetworkInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
clearInternalIpv6PrefixLength()
public NetworkInterface.Builder clearInternalIpv6PrefixLength()
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()
public NetworkInterface.Builder clearIpAddress()
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()
public NetworkInterface.Builder clearIpv6AccessConfigs()
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()
public NetworkInterface.Builder clearIpv6AccessType()
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()
public NetworkInterface.Builder clearIpv6Address()
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()
public NetworkInterface.Builder clearName()
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()
public NetworkInterface.Builder clearNetwork()
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()
public NetworkInterface.Builder clearNetworkAttachment()
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()
public NetworkInterface.Builder clearNicType()
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)
public NetworkInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
clearQueueCount()
public NetworkInterface.Builder clearQueueCount()
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()
public NetworkInterface.Builder clearStackType()
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()
public NetworkInterface.Builder clearSubnetwork()
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()
public NetworkInterface.Builder clone()
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
getAccessConfigs(int index)
public AccessConfig getAccessConfigs(int index)
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)
public AccessConfig.Builder getAccessConfigsBuilder(int index)
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()
public List<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()
public int getAccessConfigsCount()
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()
public List<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)
public AccessConfigOrBuilder getAccessConfigsOrBuilder(int index)
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()
public List<? extends AccessConfigOrBuilder> 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)
public AliasIpRange getAliasIpRanges(int index)
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)
public AliasIpRange.Builder getAliasIpRangesBuilder(int index)
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()
public List<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()
public int getAliasIpRangesCount()
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()
public List<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)
public AliasIpRangeOrBuilder getAliasIpRangesOrBuilder(int index)
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()
public List<? extends AliasIpRangeOrBuilder> 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()
public NetworkInterface getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
NetworkInterface |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getInternalIpv6PrefixLength()
public int getInternalIpv6PrefixLength()
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()
public String getIpAddress()
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()
public ByteString getIpAddressBytes()
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)
public AccessConfig getIpv6AccessConfigs(int index)
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)
public AccessConfig.Builder getIpv6AccessConfigsBuilder(int index)
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()
public List<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()
public int getIpv6AccessConfigsCount()
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()
public List<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)
public AccessConfigOrBuilder getIpv6AccessConfigsOrBuilder(int index)
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()
public List<? extends AccessConfigOrBuilder> 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()
public NetworkInterface.Ipv6AccessType getIpv6AccessType()
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()
public int getIpv6AccessTypeValue()
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()
public String getIpv6Address()
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()
public ByteString getIpv6AddressBytes()
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()
public String getName()
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()
public ByteString getNameBytes()
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()
public String getNetwork()
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()
public String getNetworkAttachment()
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()
public ByteString getNetworkAttachmentBytes()
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()
public ByteString getNetworkBytes()
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()
public NetworkInterface.NicType getNicType()
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()
public int getNicTypeValue()
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()
public int getQueueCount()
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()
public NetworkInterface.StackType getStackType()
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()
public int getStackTypeValue()
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()
public String getSubnetwork()
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()
public ByteString getSubnetworkBytes()
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()
public boolean hasInternalIpv6PrefixLength()
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()
public boolean hasIpAddress()
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()
public boolean hasIpv6AccessType()
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()
public boolean hasIpv6Address()
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()
public boolean hasName()
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()
public boolean hasNetwork()
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()
public boolean hasNetworkAttachment()
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()
public boolean hasNicType()
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()
public boolean hasQueueCount()
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()
public boolean hasStackType()
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()
public boolean hasSubnetwork()
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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(NetworkInterface other)
public NetworkInterface.Builder mergeFrom(NetworkInterface other)
Parameter | |
---|---|
Name | Description |
other |
NetworkInterface |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NetworkInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NetworkInterface.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
removeAccessConfigs(int index)
public NetworkInterface.Builder removeAccessConfigs(int index)
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)
public NetworkInterface.Builder removeAliasIpRanges(int index)
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)
public NetworkInterface.Builder removeIpv6AccessConfigs(int index)
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)
public NetworkInterface.Builder setAccessConfigs(int index, AccessConfig value)
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)
public NetworkInterface.Builder setAccessConfigs(int index, AccessConfig.Builder builderForValue)
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)
public NetworkInterface.Builder setAliasIpRanges(int index, AliasIpRange value)
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)
public NetworkInterface.Builder setAliasIpRanges(int index, AliasIpRange.Builder builderForValue)
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)
public NetworkInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
setInternalIpv6PrefixLength(int value)
public NetworkInterface.Builder setInternalIpv6PrefixLength(int value)
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)
public NetworkInterface.Builder setIpAddress(String value)
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)
public NetworkInterface.Builder setIpAddressBytes(ByteString value)
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)
public NetworkInterface.Builder setIpv6AccessConfigs(int index, AccessConfig value)
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)
public NetworkInterface.Builder setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue)
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)
public NetworkInterface.Builder setIpv6AccessType(NetworkInterface.Ipv6AccessType value)
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)
public NetworkInterface.Builder setIpv6AccessTypeValue(int value)
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)
public NetworkInterface.Builder setIpv6Address(String value)
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)
public NetworkInterface.Builder setIpv6AddressBytes(ByteString value)
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)
public NetworkInterface.Builder setName(String value)
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)
public NetworkInterface.Builder setNameBytes(ByteString value)
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)
public NetworkInterface.Builder setNetwork(String value)
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)
public NetworkInterface.Builder setNetworkAttachment(String value)
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)
public NetworkInterface.Builder setNetworkAttachmentBytes(ByteString value)
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)
public NetworkInterface.Builder setNetworkBytes(ByteString value)
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)
public NetworkInterface.Builder setNicType(NetworkInterface.NicType value)
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)
public NetworkInterface.Builder setNicTypeValue(int value)
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)
public NetworkInterface.Builder setQueueCount(int value)
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)
public NetworkInterface.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |
setStackType(NetworkInterface.StackType value)
public NetworkInterface.Builder setStackType(NetworkInterface.StackType value)
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)
public NetworkInterface.Builder setStackTypeValue(int value)
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)
public NetworkInterface.Builder setSubnetwork(String value)
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)
public NetworkInterface.Builder setSubnetworkBytes(ByteString value)
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)
public final NetworkInterface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkInterface.Builder |