Package com.google.cloud.compute.v1
Class NetworkInterface.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
com.google.cloud.compute.v1.NetworkInterface.Builder
- All Implemented Interfaces:
NetworkInterfaceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkInterface
public static final class NetworkInterface.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
implements NetworkInterfaceOrBuilder
A network interface resource attached to an instance.Protobuf type
google.cloud.compute.v1.NetworkInterface-
Method Summary
Modifier and TypeMethodDescriptionaddAccessConfigs(int index, AccessConfig value) An array of configurations for this interface.addAccessConfigs(int index, AccessConfig.Builder builderForValue) An array of configurations for this interface.addAccessConfigs(AccessConfig value) An array of configurations for this interface.addAccessConfigs(AccessConfig.Builder builderForValue) An array of configurations for this interface.An array of configurations for this interface.addAccessConfigsBuilder(int index) An array of configurations for this interface.addAliasIpRanges(int index, AliasIpRange value) An array of alias IP ranges for this network interface.addAliasIpRanges(int index, AliasIpRange.Builder builderForValue) An array of alias IP ranges for this network interface.addAliasIpRanges(AliasIpRange value) An array of alias IP ranges for this network interface.addAliasIpRanges(AliasIpRange.Builder builderForValue) An array of alias IP ranges for this network interface.An array of alias IP ranges for this network interface.addAliasIpRangesBuilder(int index) An array of alias IP ranges for this network interface.addAllAccessConfigs(Iterable<? extends AccessConfig> values) An array of configurations for this interface.addAllAliasIpRanges(Iterable<? extends AliasIpRange> values) An array of alias IP ranges for this network interface.addAllIpv6AccessConfigs(Iterable<? extends AccessConfig> values) An array of IPv6 access configurations for this interface.addIpv6AccessConfigs(int index, AccessConfig value) An array of IPv6 access configurations for this interface.addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue) An array of IPv6 access configurations for this interface.addIpv6AccessConfigs(AccessConfig value) An array of IPv6 access configurations for this interface.addIpv6AccessConfigs(AccessConfig.Builder builderForValue) An array of IPv6 access configurations for this interface.An array of IPv6 access configurations for this interface.addIpv6AccessConfigsBuilder(int index) An array of IPv6 access configurations for this interface.build()clear()An array of configurations for this interface.An array of alias IP ranges for this network interface.Optional.Fingerprint hash of contents stored in this network interface.Indicate whether igmp query is enabled on the network interface or not.The prefix length of the primary internal IPv6 range.An array of IPv6 access configurations for this interface.Output only.An IPv6 internal network address for this network interface.Output only.[Output Only] The name of the network interface, which is generated by the server.URL of the VPC network resource for this instance.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}.An IPv4 internal IP address to assign to the instance for this network interface.The type of vNIC to be used on this interface.Name of the parent network interface of a dynamic network interface.The networking queue count that's specified by users for the network interface.Optional.The stack type for this network interface.The URL of the Subnetwork resource for this instance.VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.getAccessConfigs(int index) An array of configurations for this interface.getAccessConfigsBuilder(int index) An array of configurations for this interface.An array of configurations for this interface.intAn array of configurations for this interface.An array of configurations for this interface.getAccessConfigsOrBuilder(int index) An array of configurations for this interface.List<? extends AccessConfigOrBuilder>An array of configurations for this interface.getAliasIpRanges(int index) An array of alias IP ranges for this network interface.getAliasIpRangesBuilder(int index) An array of alias IP ranges for this network interface.An array of alias IP ranges for this network interface.intAn array of alias IP ranges for this network interface.An array of alias IP ranges for this network interface.getAliasIpRangesOrBuilder(int index) An array of alias IP ranges for this network interface.List<? extends AliasIpRangeOrBuilder>An array of alias IP ranges for this network interface.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Fingerprint hash of contents stored in this network interface.com.google.protobuf.ByteStringFingerprint hash of contents stored in this network interface.Indicate whether igmp query is enabled on the network interface or not.com.google.protobuf.ByteStringIndicate whether igmp query is enabled on the network interface or not.intThe prefix length of the primary internal IPv6 range.getIpv6AccessConfigs(int index) An array of IPv6 access configurations for this interface.getIpv6AccessConfigsBuilder(int index) An array of IPv6 access configurations for this interface.An array of IPv6 access configurations for this interface.intAn array of IPv6 access configurations for this interface.An array of IPv6 access configurations for this interface.getIpv6AccessConfigsOrBuilder(int index) An array of IPv6 access configurations for this interface.List<? extends AccessConfigOrBuilder>An array of IPv6 access configurations for this interface.Output only.com.google.protobuf.ByteStringOutput only.An IPv6 internal network address for this network interface.com.google.protobuf.ByteStringAn IPv6 internal network address for this network interface.getKind()Output only.com.google.protobuf.ByteStringOutput only.getName()[Output Only] The name of the network interface, which is generated by the server.com.google.protobuf.ByteString[Output Only] The name of the network interface, which is generated by the server.URL of the VPC network resource for this instance.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}.com.google.protobuf.ByteStringThe 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}.com.google.protobuf.ByteStringURL of the VPC network resource for this instance.An IPv4 internal IP address to assign to the instance for this network interface.com.google.protobuf.ByteStringAn IPv4 internal IP address to assign to the instance for this network interface.The type of vNIC to be used on this interface.com.google.protobuf.ByteStringThe type of vNIC to be used on this interface.Name of the parent network interface of a dynamic network interface.com.google.protobuf.ByteStringName of the parent network interface of a dynamic network interface.intThe networking queue count that's specified by users for the network interface.Optional.com.google.protobuf.ByteStringOptional.The stack type for this network interface.com.google.protobuf.ByteStringThe stack type for this network interface.The URL of the Subnetwork resource for this instance.com.google.protobuf.ByteStringThe URL of the Subnetwork resource for this instance.intgetVlan()VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.booleanOptional.booleanFingerprint hash of contents stored in this network interface.booleanIndicate whether igmp query is enabled on the network interface or not.booleanThe prefix length of the primary internal IPv6 range.booleanOutput only.booleanAn IPv6 internal network address for this network interface.booleanhasKind()Output only.booleanhasName()[Output Only] The name of the network interface, which is generated by the server.booleanURL of the VPC network resource for this instance.booleanThe 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}.booleanAn IPv4 internal IP address to assign to the instance for this network interface.booleanThe type of vNIC to be used on this interface.booleanName of the parent network interface of a dynamic network interface.booleanThe networking queue count that's specified by users for the network interface.booleanOptional.booleanThe stack type for this network interface.booleanThe URL of the Subnetwork resource for this instance.booleanhasVlan()VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NetworkInterface other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAccessConfigs(int index) An array of configurations for this interface.removeAliasIpRanges(int index) An array of alias IP ranges for this network interface.removeIpv6AccessConfigs(int index) An array of IPv6 access configurations for this interface.setAccessConfigs(int index, AccessConfig value) An array of configurations for this interface.setAccessConfigs(int index, AccessConfig.Builder builderForValue) An array of configurations for this interface.setAliasIpRanges(int index, AliasIpRange value) An array of alias IP ranges for this network interface.setAliasIpRanges(int index, AliasIpRange.Builder builderForValue) An array of alias IP ranges for this network interface.setEnableVpcScopedDns(boolean value) Optional.setFingerprint(String value) Fingerprint hash of contents stored in this network interface.setFingerprintBytes(com.google.protobuf.ByteString value) Fingerprint hash of contents stored in this network interface.setIgmpQuery(String value) Indicate whether igmp query is enabled on the network interface or not.setIgmpQueryBytes(com.google.protobuf.ByteString value) Indicate whether igmp query is enabled on the network interface or not.setInternalIpv6PrefixLength(int value) The prefix length of the primary internal IPv6 range.setIpv6AccessConfigs(int index, AccessConfig value) An array of IPv6 access configurations for this interface.setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue) An array of IPv6 access configurations for this interface.setIpv6AccessType(String value) Output only.setIpv6AccessTypeBytes(com.google.protobuf.ByteString value) Output only.setIpv6Address(String value) An IPv6 internal network address for this network interface.setIpv6AddressBytes(com.google.protobuf.ByteString value) An IPv6 internal network address for this network interface.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.[Output Only] The name of the network interface, which is generated by the server.setNameBytes(com.google.protobuf.ByteString value) [Output Only] The name of the network interface, which is generated by the server.setNetwork(String value) URL of the VPC network resource for this instance.setNetworkAttachment(String value) The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.setNetworkAttachmentBytes(com.google.protobuf.ByteString value) The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.setNetworkBytes(com.google.protobuf.ByteString value) URL of the VPC network resource for this instance.setNetworkIP(String value) An IPv4 internal IP address to assign to the instance for this network interface.setNetworkIPBytes(com.google.protobuf.ByteString value) An IPv4 internal IP address to assign to the instance for this network interface.setNicType(String value) The type of vNIC to be used on this interface.setNicTypeBytes(com.google.protobuf.ByteString value) The type of vNIC to be used on this interface.setParentNicName(String value) Name of the parent network interface of a dynamic network interface.setParentNicNameBytes(com.google.protobuf.ByteString value) Name of the parent network interface of a dynamic network interface.setQueueCount(int value) The networking queue count that's specified by users for the network interface.setServiceClassId(String value) Optional.setServiceClassIdBytes(com.google.protobuf.ByteString value) Optional.setStackType(String value) The stack type for this network interface.setStackTypeBytes(com.google.protobuf.ByteString value) The stack type for this network interface.setSubnetwork(String value) The URL of the Subnetwork resource for this instance.setSubnetworkBytes(com.google.protobuf.ByteString value) The URL of the Subnetwork resource for this instance.setVlan(int value) VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkInterface.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkInterface.Builder>
-
mergeFrom
public NetworkInterface.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkInterface.Builder>- Throws:
IOException
-
getAccessConfigsList
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;- Specified by:
getAccessConfigsListin interfaceNetworkInterfaceOrBuilder
-
getAccessConfigsCount
public int getAccessConfigsCount()An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;- Specified by:
getAccessConfigsCountin interfaceNetworkInterfaceOrBuilder
-
getAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;- Specified by:
getAccessConfigsin interfaceNetworkInterfaceOrBuilder
-
setAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
setAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAllAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
clearAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
removeAccessConfigs
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
getAccessConfigsBuilder
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
getAccessConfigsOrBuilder
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;- Specified by:
getAccessConfigsOrBuilderin interfaceNetworkInterfaceOrBuilder
-
getAccessConfigsOrBuilderList
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;- Specified by:
getAccessConfigsOrBuilderListin interfaceNetworkInterfaceOrBuilder
-
addAccessConfigsBuilder
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
addAccessConfigsBuilder
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
getAccessConfigsBuilderList
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; -
getAliasIpRangesList
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;- Specified by:
getAliasIpRangesListin interfaceNetworkInterfaceOrBuilder
-
getAliasIpRangesCount
public int getAliasIpRangesCount()An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;- Specified by:
getAliasIpRangesCountin interfaceNetworkInterfaceOrBuilder
-
getAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;- Specified by:
getAliasIpRangesin interfaceNetworkInterfaceOrBuilder
-
setAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
setAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAllAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
clearAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
removeAliasIpRanges
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
getAliasIpRangesBuilder
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
getAliasIpRangesOrBuilder
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;- Specified by:
getAliasIpRangesOrBuilderin interfaceNetworkInterfaceOrBuilder
-
getAliasIpRangesOrBuilderList
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;- Specified by:
getAliasIpRangesOrBuilderListin interfaceNetworkInterfaceOrBuilder
-
addAliasIpRangesBuilder
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
addAliasIpRangesBuilder
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
getAliasIpRangesBuilderList
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; -
hasEnableVpcScopedDns
public boolean hasEnableVpcScopedDns()Optional. If true, DNS resolution will be enabled over this interface. Only valid with network_attachment.
optional bool enable_vpc_scoped_dns = 283425868;- Specified by:
hasEnableVpcScopedDnsin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the enableVpcScopedDns field is set.
-
getEnableVpcScopedDns
public boolean getEnableVpcScopedDns()Optional. If true, DNS resolution will be enabled over this interface. Only valid with network_attachment.
optional bool enable_vpc_scoped_dns = 283425868;- Specified by:
getEnableVpcScopedDnsin interfaceNetworkInterfaceOrBuilder- Returns:
- The enableVpcScopedDns.
-
setEnableVpcScopedDns
Optional. If true, DNS resolution will be enabled over this interface. Only valid with network_attachment.
optional bool enable_vpc_scoped_dns = 283425868;- Parameters:
value- The enableVpcScopedDns to set.- Returns:
- This builder for chaining.
-
clearEnableVpcScopedDns
Optional. If true, DNS resolution will be enabled over this interface. Only valid with network_attachment.
optional bool enable_vpc_scoped_dns = 283425868;- Returns:
- This builder for chaining.
-
hasFingerprint
public boolean hasFingerprint()Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Specified by:
hasFingerprintin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Specified by:
getFingerprintin interfaceNetworkInterfaceOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Specified by:
getFingerprintBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Returns:
- This builder for chaining.
-
setFingerprintBytes
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update theNetworkInterface. The request will fail with error400 Bad Request if the fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
hasIgmpQuery
public boolean hasIgmpQuery()Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Specified by:
hasIgmpQueryin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the igmpQuery field is set.
-
getIgmpQuery
Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Specified by:
getIgmpQueryin interfaceNetworkInterfaceOrBuilder- Returns:
- The igmpQuery.
-
getIgmpQueryBytes
public com.google.protobuf.ByteString getIgmpQueryBytes()Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Specified by:
getIgmpQueryBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for igmpQuery.
-
setIgmpQuery
Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Parameters:
value- The igmpQuery to set.- Returns:
- This builder for chaining.
-
clearIgmpQuery
Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Returns:
- This builder for chaining.
-
setIgmpQueryBytes
Indicate whether igmp query is enabled on the network interface or not. If enabled, also indicates the version of IGMP supported. Check the IgmpQuery enum for the list of possible values.
optional string igmp_query = 30249546;- Parameters:
value- The bytes for igmpQuery to set.- Returns:
- This builder for chaining.
-
hasInternalIpv6PrefixLength
public boolean hasInternalIpv6PrefixLength()The prefix length of the primary internal IPv6 range.
optional int32 internal_ipv6_prefix_length = 203833757;- Specified by:
hasInternalIpv6PrefixLengthin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the internalIpv6PrefixLength field is set.
-
getInternalIpv6PrefixLength
public int getInternalIpv6PrefixLength()The prefix length of the primary internal IPv6 range.
optional int32 internal_ipv6_prefix_length = 203833757;- Specified by:
getInternalIpv6PrefixLengthin interfaceNetworkInterfaceOrBuilder- Returns:
- The internalIpv6PrefixLength.
-
setInternalIpv6PrefixLength
The prefix length of the primary internal IPv6 range.
optional int32 internal_ipv6_prefix_length = 203833757;- Parameters:
value- The internalIpv6PrefixLength to set.- Returns:
- This builder for chaining.
-
clearInternalIpv6PrefixLength
The prefix length of the primary internal IPv6 range.
optional int32 internal_ipv6_prefix_length = 203833757;- Returns:
- This builder for chaining.
-
getIpv6AccessConfigsList
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;- Specified by:
getIpv6AccessConfigsListin interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigsCount
public int getIpv6AccessConfigsCount()An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;- Specified by:
getIpv6AccessConfigsCountin interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;- Specified by:
getIpv6AccessConfigsin interfaceNetworkInterfaceOrBuilder
-
setIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
setIpv6AccessConfigs
public NetworkInterface.Builder setIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue) An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addIpv6AccessConfigs
public NetworkInterface.Builder addIpv6AccessConfigs(int index, AccessConfig.Builder builderForValue) An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addAllIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
clearIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
removeIpv6AccessConfigs
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
getIpv6AccessConfigsBuilder
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
getIpv6AccessConfigsOrBuilder
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;- Specified by:
getIpv6AccessConfigsOrBuilderin interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigsOrBuilderList
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;- Specified by:
getIpv6AccessConfigsOrBuilderListin interfaceNetworkInterfaceOrBuilder
-
addIpv6AccessConfigsBuilder
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
addIpv6AccessConfigsBuilder
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
getIpv6AccessConfigsBuilderList
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; -
hasIpv6AccessType
public boolean hasIpv6AccessType()Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Specified by:
hasIpv6AccessTypein interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the ipv6AccessType field is set.
-
getIpv6AccessType
Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Specified by:
getIpv6AccessTypein interfaceNetworkInterfaceOrBuilder- Returns:
- The ipv6AccessType.
-
getIpv6AccessTypeBytes
public com.google.protobuf.ByteString getIpv6AccessTypeBytes()Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Specified by:
getIpv6AccessTypeBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for ipv6AccessType.
-
setIpv6AccessType
Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Parameters:
value- The ipv6AccessType to set.- Returns:
- This builder for chaining.
-
clearIpv6AccessType
Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Returns:
- This builder for chaining.
-
setIpv6AccessTypeBytes
Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;- Parameters:
value- The bytes for ipv6AccessType to set.- Returns:
- This builder for chaining.
-
hasIpv6Address
public boolean hasIpv6Address()An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Specified by:
hasIpv6Addressin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the ipv6Address field is set.
-
getIpv6Address
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Specified by:
getIpv6Addressin interfaceNetworkInterfaceOrBuilder- Returns:
- The ipv6Address.
-
getIpv6AddressBytes
public com.google.protobuf.ByteString getIpv6AddressBytes()An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Specified by:
getIpv6AddressBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for ipv6Address.
-
setIpv6Address
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Parameters:
value- The ipv6Address to set.- Returns:
- This builder for chaining.
-
clearIpv6Address
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Returns:
- This builder for chaining.
-
setIpv6AddressBytes
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;- Parameters:
value- The bytes for ipv6Address to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Specified by:
hasKindin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Specified by:
getKindin interfaceNetworkInterfaceOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Specified by:
hasNamein interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the name field is set.
-
getName
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Specified by:
getNamein interfaceNetworkInterfaceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for name.
-
setName
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and7. The default interface value is nic0.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasNetwork
public boolean hasNetwork()URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Specified by:
hasNetworkin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Specified by:
getNetworkin interfaceNetworkInterfaceOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Specified by:
getNetworkBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for network.
-
setNetwork
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Returns:
- This builder for chaining.
-
setNetworkBytes
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasNetworkAttachment
public boolean hasNetworkAttachment()The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Specified by:
hasNetworkAttachmentin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the networkAttachment field is set.
-
getNetworkAttachment
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Specified by:
getNetworkAttachmentin interfaceNetworkInterfaceOrBuilder- Returns:
- The networkAttachment.
-
getNetworkAttachmentBytes
public com.google.protobuf.ByteString getNetworkAttachmentBytes()The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Specified by:
getNetworkAttachmentBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for networkAttachment.
-
setNetworkAttachment
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Parameters:
value- The networkAttachment to set.- Returns:
- This builder for chaining.
-
clearNetworkAttachment
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Returns:
- This builder for chaining.
-
setNetworkAttachmentBytes
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.optional string network_attachment = 224644052;- Parameters:
value- The bytes for networkAttachment to set.- Returns:
- This builder for chaining.
-
hasNetworkIP
public boolean hasNetworkIP()An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Specified by:
hasNetworkIPin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the networkIP field is set.
-
getNetworkIP
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Specified by:
getNetworkIPin interfaceNetworkInterfaceOrBuilder- Returns:
- The networkIP.
-
getNetworkIPBytes
public com.google.protobuf.ByteString getNetworkIPBytes()An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Specified by:
getNetworkIPBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for networkIP.
-
setNetworkIP
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Parameters:
value- The networkIP to set.- Returns:
- This builder for chaining.
-
clearNetworkIP
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Returns:
- This builder for chaining.
-
setNetworkIPBytes
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;- Parameters:
value- The bytes for networkIP to set.- Returns:
- This builder for chaining.
-
hasNicType
public boolean hasNicType()The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Specified by:
hasNicTypein interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the nicType field is set.
-
getNicType
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Specified by:
getNicTypein interfaceNetworkInterfaceOrBuilder- Returns:
- The nicType.
-
getNicTypeBytes
public com.google.protobuf.ByteString getNicTypeBytes()The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Specified by:
getNicTypeBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for nicType.
-
setNicType
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Parameters:
value- The nicType to set.- Returns:
- This builder for chaining.
-
clearNicType
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Returns:
- This builder for chaining.
-
setNicTypeBytes
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;- Parameters:
value- The bytes for nicType to set.- Returns:
- This builder for chaining.
-
hasParentNicName
public boolean hasParentNicName()Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Specified by:
hasParentNicNamein interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the parentNicName field is set.
-
getParentNicName
Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Specified by:
getParentNicNamein interfaceNetworkInterfaceOrBuilder- Returns:
- The parentNicName.
-
getParentNicNameBytes
public com.google.protobuf.ByteString getParentNicNameBytes()Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Specified by:
getParentNicNameBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for parentNicName.
-
setParentNicName
Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Parameters:
value- The parentNicName to set.- Returns:
- This builder for chaining.
-
clearParentNicName
Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Returns:
- This builder for chaining.
-
setParentNicNameBytes
Name of the parent network interface of a dynamic network interface.
optional string parent_nic_name = 418764375;- Parameters:
value- The bytes for parentNicName to set.- Returns:
- This builder for chaining.
-
hasQueueCount
public boolean hasQueueCount()The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
optional int32 queue_count = 503708769;- Specified by:
hasQueueCountin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the queueCount field is set.
-
getQueueCount
public int getQueueCount()The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
optional int32 queue_count = 503708769;- Specified by:
getQueueCountin interfaceNetworkInterfaceOrBuilder- Returns:
- The queueCount.
-
setQueueCount
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
optional int32 queue_count = 503708769;- Parameters:
value- The queueCount to set.- Returns:
- This builder for chaining.
-
clearQueueCount
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
optional int32 queue_count = 503708769;- Returns:
- This builder for chaining.
-
hasServiceClassId
public boolean hasServiceClassId()Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Specified by:
hasServiceClassIdin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the serviceClassId field is set.
-
getServiceClassId
Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Specified by:
getServiceClassIdin interfaceNetworkInterfaceOrBuilder- Returns:
- The serviceClassId.
-
getServiceClassIdBytes
public com.google.protobuf.ByteString getServiceClassIdBytes()Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Specified by:
getServiceClassIdBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for serviceClassId.
-
setServiceClassId
Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Parameters:
value- The serviceClassId to set.- Returns:
- This builder for chaining.
-
clearServiceClassId
Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Returns:
- This builder for chaining.
-
setServiceClassIdBytes
Optional. Producer Service's Service class Id for the region of this network interface. Can only be used with network_attachment. It is not possible to use on its own however, network_attachment can be used without service_class_id.
optional string service_class_id = 422763404;- Parameters:
value- The bytes for serviceClassId to set.- Returns:
- This builder for chaining.
-
hasStackType
public boolean hasStackType()The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Specified by:
hasStackTypein interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the stackType field is set.
-
getStackType
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Specified by:
getStackTypein interfaceNetworkInterfaceOrBuilder- Returns:
- The stackType.
-
getStackTypeBytes
public com.google.protobuf.ByteString getStackTypeBytes()The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Specified by:
getStackTypeBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for stackType.
-
setStackType
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Parameters:
value- The stackType to set.- Returns:
- This builder for chaining.
-
clearStackType
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Returns:
- This builder for chaining.
-
setStackTypeBytes
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Parameters:
value- The bytes for stackType to set.- Returns:
- This builder for chaining.
-
hasSubnetwork
public boolean hasSubnetwork()The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Specified by:
hasSubnetworkin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Specified by:
getSubnetworkin interfaceNetworkInterfaceOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Specified by:
getSubnetworkBytesin interfaceNetworkInterfaceOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Returns:
- This builder for chaining.
-
setSubnetworkBytes
The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
hasVlan
public boolean hasVlan()VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
optional int32 vlan = 3622243;- Specified by:
hasVlanin interfaceNetworkInterfaceOrBuilder- Returns:
- Whether the vlan field is set.
-
getVlan
public int getVlan()VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
optional int32 vlan = 3622243;- Specified by:
getVlanin interfaceNetworkInterfaceOrBuilder- Returns:
- The vlan.
-
setVlan
VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
optional int32 vlan = 3622243;- Parameters:
value- The vlan to set.- Returns:
- This builder for chaining.
-
clearVlan
VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 inclusively.
optional int32 vlan = 3622243;- Returns:
- This builder for chaining.
-