Package com.google.cloud.compute.v1
Class NetworkInterface
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.NetworkInterface
-
- All Implemented Interfaces:
NetworkInterfaceOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class NetworkInterface extends com.google.protobuf.GeneratedMessageV3 implements NetworkInterfaceOrBuilder
A network interface resource attached to an instance.
Protobuf typegoogle.cloud.compute.v1.NetworkInterface
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkInterface.Builder
A network interface resource attached to an instance.static class
NetworkInterface.Ipv6AccessType
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.static class
NetworkInterface.NicType
The type of vNIC to be used on this interface.static class
NetworkInterface.StackType
The stack type for this network interface.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCESS_CONFIGS_FIELD_NUMBER
static int
ALIAS_IP_RANGES_FIELD_NUMBER
static int
FINGERPRINT_FIELD_NUMBER
static int
INTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER
static int
IPV6_ACCESS_CONFIGS_FIELD_NUMBER
static int
IPV6_ACCESS_TYPE_FIELD_NUMBER
static int
IPV6_ADDRESS_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NETWORK_ATTACHMENT_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
NETWORK_I_P_FIELD_NUMBER
static int
NIC_TYPE_FIELD_NUMBER
static int
QUEUE_COUNT_FIELD_NUMBER
static int
STACK_TYPE_FIELD_NUMBER
static int
SUBNETWORK_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AccessConfig
getAccessConfigs(int index)
An array of configurations for this interface.int
getAccessConfigsCount()
An array of configurations for this interface.List<AccessConfig>
getAccessConfigsList()
An array of configurations for this interface.AccessConfigOrBuilder
getAccessConfigsOrBuilder(int index)
An array of configurations for this interface.List<? extends AccessConfigOrBuilder>
getAccessConfigsOrBuilderList()
An array of configurations for this interface.AliasIpRange
getAliasIpRanges(int index)
An array of alias IP ranges for this network interface.int
getAliasIpRangesCount()
An array of alias IP ranges for this network interface.List<AliasIpRange>
getAliasIpRangesList()
An array of alias IP ranges for this network interface.AliasIpRangeOrBuilder
getAliasIpRangesOrBuilder(int index)
An array of alias IP ranges for this network interface.List<? extends AliasIpRangeOrBuilder>
getAliasIpRangesOrBuilderList()
An array of alias IP ranges for this network interface.static NetworkInterface
getDefaultInstance()
NetworkInterface
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getFingerprint()
Fingerprint hash of contents stored in this network interface.com.google.protobuf.ByteString
getFingerprintBytes()
Fingerprint hash of contents stored in this network interface.int
getInternalIpv6PrefixLength()
The prefix length of the primary internal IPv6 range.AccessConfig
getIpv6AccessConfigs(int index)
An array of IPv6 access configurations for this interface.int
getIpv6AccessConfigsCount()
An array of IPv6 access configurations for this interface.List<AccessConfig>
getIpv6AccessConfigsList()
An array of IPv6 access configurations for this interface.AccessConfigOrBuilder
getIpv6AccessConfigsOrBuilder(int index)
An array of IPv6 access configurations for this interface.List<? extends AccessConfigOrBuilder>
getIpv6AccessConfigsOrBuilderList()
An array of IPv6 access configurations for this interface.String
getIpv6AccessType()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.com.google.protobuf.ByteString
getIpv6AccessTypeBytes()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.String
getIpv6Address()
An IPv6 internal network address for this network interface.com.google.protobuf.ByteString
getIpv6AddressBytes()
An IPv6 internal network address for this network interface.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getName()
[Output Only] The name of the network interface, which is generated by the server.com.google.protobuf.ByteString
getNameBytes()
[Output Only] The name of the network interface, which is generated by the server.String
getNetwork()
URL of the VPC network resource for this instance.String
getNetworkAttachment()
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.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}.com.google.protobuf.ByteString
getNetworkBytes()
URL of the VPC network resource for this instance.String
getNetworkIP()
An IPv4 internal IP address to assign to the instance for this network interface.com.google.protobuf.ByteString
getNetworkIPBytes()
An IPv4 internal IP address to assign to the instance for this network interface.String
getNicType()
The type of vNIC to be used on this interface.com.google.protobuf.ByteString
getNicTypeBytes()
The type of vNIC to be used on this interface.com.google.protobuf.Parser<NetworkInterface>
getParserForType()
int
getQueueCount()
The networking queue count that's specified by users for the network interface.int
getSerializedSize()
String
getStackType()
The stack type for this network interface.com.google.protobuf.ByteString
getStackTypeBytes()
The stack type for this network interface.String
getSubnetwork()
The URL of the Subnetwork resource for this instance.com.google.protobuf.ByteString
getSubnetworkBytes()
The URL of the Subnetwork resource for this instance.boolean
hasFingerprint()
Fingerprint hash of contents stored in this network interface.int
hashCode()
boolean
hasInternalIpv6PrefixLength()
The prefix length of the primary internal IPv6 range.boolean
hasIpv6AccessType()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet.boolean
hasIpv6Address()
An IPv6 internal network address for this network interface.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasName()
[Output Only] The name of the network interface, which is generated by the server.boolean
hasNetwork()
URL of the VPC network resource for this instance.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}.boolean
hasNetworkIP()
An IPv4 internal IP address to assign to the instance for this network interface.boolean
hasNicType()
The type of vNIC to be used on this interface.boolean
hasQueueCount()
The networking queue count that's specified by users for the network interface.boolean
hasStackType()
The stack type for this network interface.boolean
hasSubnetwork()
The URL of the Subnetwork resource for this instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static NetworkInterface.Builder
newBuilder()
static NetworkInterface.Builder
newBuilder(NetworkInterface prototype)
NetworkInterface.Builder
newBuilderForType()
protected NetworkInterface.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static NetworkInterface
parseDelimitedFrom(InputStream input)
static NetworkInterface
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NetworkInterface
parseFrom(byte[] data)
static NetworkInterface
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NetworkInterface
parseFrom(com.google.protobuf.ByteString data)
static NetworkInterface
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NetworkInterface
parseFrom(com.google.protobuf.CodedInputStream input)
static NetworkInterface
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NetworkInterface
parseFrom(InputStream input)
static NetworkInterface
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NetworkInterface
parseFrom(ByteBuffer data)
static NetworkInterface
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<NetworkInterface>
parser()
NetworkInterface.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ACCESS_CONFIGS_FIELD_NUMBER
public static final int ACCESS_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALIAS_IP_RANGES_FIELD_NUMBER
public static final int ALIAS_IP_RANGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FINGERPRINT_FIELD_NUMBER
public static final int FINGERPRINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER
public static final int INTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IPV6_ACCESS_CONFIGS_FIELD_NUMBER
public static final int IPV6_ACCESS_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IPV6_ACCESS_TYPE_FIELD_NUMBER
public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IPV6_ADDRESS_FIELD_NUMBER
public static final int IPV6_ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_ATTACHMENT_FIELD_NUMBER
public static final int NETWORK_ATTACHMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_I_P_FIELD_NUMBER
public static final int NETWORK_I_P_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NIC_TYPE_FIELD_NUMBER
public static final int NIC_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUE_COUNT_FIELD_NUMBER
public static final int QUEUE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STACK_TYPE_FIELD_NUMBER
public static final int STACK_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBNETWORK_FIELD_NUMBER
public static final int SUBNETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAccessConfigsList
public List<AccessConfig> getAccessConfigsList()
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
- Specified by:
getAccessConfigsList
in interfaceNetworkInterfaceOrBuilder
-
getAccessConfigsOrBuilderList
public List<? extends AccessConfigOrBuilder> getAccessConfigsOrBuilderList()
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
- Specified by:
getAccessConfigsOrBuilderList
in 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 no accessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
- Specified by:
getAccessConfigsCount
in interfaceNetworkInterfaceOrBuilder
-
getAccessConfigs
public AccessConfig getAccessConfigs(int index)
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
- Specified by:
getAccessConfigs
in interfaceNetworkInterfaceOrBuilder
-
getAccessConfigsOrBuilder
public AccessConfigOrBuilder getAccessConfigsOrBuilder(int index)
An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326;
- Specified by:
getAccessConfigsOrBuilder
in interfaceNetworkInterfaceOrBuilder
-
getAliasIpRangesList
public List<AliasIpRange> getAliasIpRangesList()
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;
- Specified by:
getAliasIpRangesList
in interfaceNetworkInterfaceOrBuilder
-
getAliasIpRangesOrBuilderList
public List<? extends AliasIpRangeOrBuilder> getAliasIpRangesOrBuilderList()
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;
- Specified by:
getAliasIpRangesOrBuilderList
in 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:
getAliasIpRangesCount
in interfaceNetworkInterfaceOrBuilder
-
getAliasIpRanges
public AliasIpRange getAliasIpRanges(int index)
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;
- Specified by:
getAliasIpRanges
in interfaceNetworkInterfaceOrBuilder
-
getAliasIpRangesOrBuilder
public AliasIpRangeOrBuilder getAliasIpRangesOrBuilder(int index)
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631;
- Specified by:
getAliasIpRangesOrBuilder
in interfaceNetworkInterfaceOrBuilder
-
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 the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;
- Specified by:
hasFingerprint
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
public String getFingerprint()
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;
- Specified by:
getFingerprint
in 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 the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date.
optional string fingerprint = 234678500;
- Specified by:
getFingerprintBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for fingerprint.
-
hasInternalIpv6PrefixLength
public boolean hasInternalIpv6PrefixLength()
The prefix length of the primary internal IPv6 range.
optional int32 internal_ipv6_prefix_length = 203833757;
- Specified by:
hasInternalIpv6PrefixLength
in 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:
getInternalIpv6PrefixLength
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The internalIpv6PrefixLength.
-
getIpv6AccessConfigsList
public List<AccessConfig> getIpv6AccessConfigsList()
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;
- Specified by:
getIpv6AccessConfigsList
in interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigsOrBuilderList
public List<? extends AccessConfigOrBuilder> getIpv6AccessConfigsOrBuilderList()
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;
- Specified by:
getIpv6AccessConfigsOrBuilderList
in 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:
getIpv6AccessConfigsCount
in interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigs
public AccessConfig getIpv6AccessConfigs(int index)
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;
- Specified by:
getIpv6AccessConfigs
in interfaceNetworkInterfaceOrBuilder
-
getIpv6AccessConfigsOrBuilder
public AccessConfigOrBuilder getIpv6AccessConfigsOrBuilder(int index)
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110;
- Specified by:
getIpv6AccessConfigsOrBuilder
in interfaceNetworkInterfaceOrBuilder
-
hasIpv6AccessType
public boolean hasIpv6AccessType()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
hasIpv6AccessType
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the ipv6AccessType field is set.
-
getIpv6AccessType
public String getIpv6AccessType()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
getIpv6AccessType
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The ipv6AccessType.
-
getIpv6AccessTypeBytes
public com.google.protobuf.ByteString getIpv6AccessTypeBytes()
[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
getIpv6AccessTypeBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for ipv6AccessType.
-
hasIpv6Address
public boolean hasIpv6Address()
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;
- Specified by:
hasIpv6Address
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the ipv6Address field is set.
-
getIpv6Address
public String getIpv6Address()
An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
optional string ipv6_address = 341563804;
- Specified by:
getIpv6Address
in 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:
getIpv6AddressBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for ipv6Address.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#networkInterface for network interfaces.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for kind.
-
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 and 7. The default interface value is nic0.
optional string name = 3373707;
- Specified by:
hasName
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
[Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 and 7. The default interface value is nic0.
optional string name = 3373707;
- Specified by:
getName
in 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 and 7. The default interface value is nic0.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for name.
-
hasNetwork
public boolean hasNetwork()
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default
optional string network = 232872494;
- Specified by:
getNetwork
in 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:
getNetworkBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for network.
-
hasNetworkAttachment
public boolean hasNetworkAttachment()
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
optional string network_attachment = 224644052;
- Specified by:
hasNetworkAttachment
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the networkAttachment field is set.
-
getNetworkAttachment
public String getNetworkAttachment()
The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
optional string network_attachment = 224644052;
- Specified by:
getNetworkAttachment
in 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:
getNetworkAttachmentBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for networkAttachment.
-
hasNetworkIP
public boolean hasNetworkIP()
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;
- Specified by:
hasNetworkIP
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the networkIP field is set.
-
getNetworkIP
public String getNetworkIP()
An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
optional string network_i_p = 207181961;
- Specified by:
getNetworkIP
in 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:
getNetworkIPBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for networkIP.
-
hasNicType
public boolean hasNicType()
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;
- Specified by:
hasNicType
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the nicType field is set.
-
getNicType
public String getNicType()
The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. Check the NicType enum for the list of possible values.
optional string nic_type = 59810577;
- Specified by:
getNicType
in 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:
getNicTypeBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for nicType.
-
hasQueueCount
public boolean hasQueueCount()
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.
optional int32 queue_count = 503708769;
- Specified by:
hasQueueCount
in 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:
getQueueCount
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The queueCount.
-
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, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
hasStackType
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the stackType field is set.
-
getStackType
public String getStackType()
The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
getStackType
in 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, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
getStackTypeBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for stackType.
-
hasSubnetwork
public boolean hasSubnetwork()
The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;
- Specified by:
hasSubnetwork
in interfaceNetworkInterfaceOrBuilder
- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
public String getSubnetwork()
The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;
- Specified by:
getSubnetwork
in 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 in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork
optional string subnetwork = 307827694;
- Specified by:
getSubnetworkBytes
in interfaceNetworkInterfaceOrBuilder
- Returns:
- The bytes for subnetwork.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NetworkInterface parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkInterface parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkInterface parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkInterface parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkInterface parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkInterface parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NetworkInterface parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public NetworkInterface.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NetworkInterface.Builder newBuilder()
-
newBuilder
public static NetworkInterface.Builder newBuilder(NetworkInterface prototype)
-
toBuilder
public NetworkInterface.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NetworkInterface.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NetworkInterface getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NetworkInterface> parser()
-
getParserForType
public com.google.protobuf.Parser<NetworkInterface> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NetworkInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-