Package com.google.cloud.compute.v1
Interface NetworkOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Network
,Network.Builder
public interface NetworkOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAutoCreateSubnetworks()
Must be set to create a VPC network.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.boolean
getEnableUlaInternalIpv6()
Enable ULA internal ipv6 on this network.String
getFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.com.google.protobuf.ByteString
getFirewallPolicyBytes()
[Output Only] URL of the firewall policy the network is associated with.String
getGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.com.google.protobuf.ByteString
getGatewayIPv4Bytes()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.long
getId()
[Output Only] The unique identifier for the resource.String
getInternalIpv6Range()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.com.google.protobuf.ByteString
getInternalIpv6RangeBytes()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.String
getIPv4Range()
Deprecated in favor of subnet mode networks.com.google.protobuf.ByteString
getIPv4RangeBytes()
Deprecated in favor of subnet mode networks.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.int
getMtu()
Maximum Transmission Unit in bytes.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getNetworkFirewallPolicyEnforcementOrder()
The network firewall policy enforcement order.com.google.protobuf.ByteString
getNetworkFirewallPolicyEnforcementOrderBytes()
The network firewall policy enforcement order.NetworkPeering
getPeerings(int index)
[Output Only] A list of network peerings for the resource.int
getPeeringsCount()
[Output Only] A list of network peerings for the resource.List<NetworkPeering>
getPeeringsList()
[Output Only] A list of network peerings for the resource.NetworkPeeringOrBuilder
getPeeringsOrBuilder(int index)
[Output Only] A list of network peerings for the resource.List<? extends NetworkPeeringOrBuilder>
getPeeringsOrBuilderList()
[Output Only] A list of network peerings for the resource.NetworkRoutingConfig
getRoutingConfig()
The network-level routing configuration for this network.NetworkRoutingConfigOrBuilder
getRoutingConfigOrBuilder()
The network-level routing configuration for this network.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.String
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.com.google.protobuf.ByteString
getSelfLinkWithIdBytes()
[Output Only] Server-defined URL for this resource with the resource id.String
getSubnetworks(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.com.google.protobuf.ByteString
getSubnetworksBytes(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.int
getSubnetworksCount()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.List<String>
getSubnetworksList()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.boolean
hasAutoCreateSubnetworks()
Must be set to create a VPC network.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasEnableUlaInternalIpv6()
Enable ULA internal ipv6 on this network.boolean
hasFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.boolean
hasGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasInternalIpv6Range()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.boolean
hasIPv4Range()
Deprecated in favor of subnet mode networks.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasMtu()
Maximum Transmission Unit in bytes.boolean
hasName()
Name of the resource.boolean
hasNetworkFirewallPolicyEnforcementOrder()
The network firewall policy enforcement order.boolean
hasRoutingConfig()
The network-level routing configuration for this network.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasIPv4Range
boolean hasIPv4Range()
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
optional string I_pv4_range = 59234358;
- Returns:
- Whether the iPv4Range field is set.
-
getIPv4Range
String getIPv4Range()
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
optional string I_pv4_range = 59234358;
- Returns:
- The iPv4Range.
-
getIPv4RangeBytes
com.google.protobuf.ByteString getIPv4RangeBytes()
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
optional string I_pv4_range = 59234358;
- Returns:
- The bytes for iPv4Range.
-
hasAutoCreateSubnetworks
boolean hasAutoCreateSubnetworks()
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
optional bool auto_create_subnetworks = 256156690;
- Returns:
- Whether the autoCreateSubnetworks field is set.
-
getAutoCreateSubnetworks
boolean getAutoCreateSubnetworks()
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
optional bool auto_create_subnetworks = 256156690;
- Returns:
- The autoCreateSubnetworks.
-
hasCreationTimestamp
boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Returns:
- The bytes for description.
-
hasEnableUlaInternalIpv6
boolean hasEnableUlaInternalIpv6()
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
optional bool enable_ula_internal_ipv6 = 423757720;
- Returns:
- Whether the enableUlaInternalIpv6 field is set.
-
getEnableUlaInternalIpv6
boolean getEnableUlaInternalIpv6()
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
optional bool enable_ula_internal_ipv6 = 423757720;
- Returns:
- The enableUlaInternalIpv6.
-
hasFirewallPolicy
boolean hasFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Returns:
- Whether the firewallPolicy field is set.
-
getFirewallPolicy
String getFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Returns:
- The firewallPolicy.
-
getFirewallPolicyBytes
com.google.protobuf.ByteString getFirewallPolicyBytes()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Returns:
- The bytes for firewallPolicy.
-
hasGatewayIPv4
boolean hasGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Returns:
- Whether the gatewayIPv4 field is set.
-
getGatewayIPv4
String getGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Returns:
- The gatewayIPv4.
-
getGatewayIPv4Bytes
com.google.protobuf.ByteString getGatewayIPv4Bytes()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Returns:
- The bytes for gatewayIPv4.
-
hasId
boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- Whether the id field is set.
-
getId
long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- The id.
-
hasInternalIpv6Range
boolean hasInternalIpv6Range()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
optional string internal_ipv6_range = 277456807;
- Returns:
- Whether the internalIpv6Range field is set.
-
getInternalIpv6Range
String getInternalIpv6Range()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
optional string internal_ipv6_range = 277456807;
- Returns:
- The internalIpv6Range.
-
getInternalIpv6RangeBytes
com.google.protobuf.ByteString getInternalIpv6RangeBytes()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
optional string internal_ipv6_range = 277456807;
- Returns:
- The bytes for internalIpv6Range.
-
hasKind
boolean hasKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Returns:
- Whether the kind field is set.
-
getKind
String getKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Returns:
- The bytes for kind.
-
hasMtu
boolean hasMtu()
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
optional int32 mtu = 108462;
- Returns:
- Whether the mtu field is set.
-
getMtu
int getMtu()
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
optional int32 mtu = 108462;
- Returns:
- The mtu.
-
hasName
boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Returns:
- Whether the name field is set.
-
getName
String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Returns:
- The bytes for name.
-
hasNetworkFirewallPolicyEnforcementOrder
boolean hasNetworkFirewallPolicyEnforcementOrder()
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
optional string network_firewall_policy_enforcement_order = 6504784;
- Returns:
- Whether the networkFirewallPolicyEnforcementOrder field is set.
-
getNetworkFirewallPolicyEnforcementOrder
String getNetworkFirewallPolicyEnforcementOrder()
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
optional string network_firewall_policy_enforcement_order = 6504784;
- Returns:
- The networkFirewallPolicyEnforcementOrder.
-
getNetworkFirewallPolicyEnforcementOrderBytes
com.google.protobuf.ByteString getNetworkFirewallPolicyEnforcementOrderBytes()
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
optional string network_firewall_policy_enforcement_order = 6504784;
- Returns:
- The bytes for networkFirewallPolicyEnforcementOrder.
-
getPeeringsList
List<NetworkPeering> getPeeringsList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeerings
NetworkPeering getPeerings(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsCount
int getPeeringsCount()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsOrBuilderList
List<? extends NetworkPeeringOrBuilder> getPeeringsOrBuilderList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsOrBuilder
NetworkPeeringOrBuilder getPeeringsOrBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
hasRoutingConfig
boolean hasRoutingConfig()
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;
- Returns:
- Whether the routingConfig field is set.
-
getRoutingConfig
NetworkRoutingConfig getRoutingConfig()
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;
- Returns:
- The routingConfig.
-
getRoutingConfigOrBuilder
NetworkRoutingConfigOrBuilder getRoutingConfigOrBuilder()
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;
-
hasSelfLink
boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- The bytes for selfLink.
-
hasSelfLinkWithId
boolean hasSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Returns:
- Whether the selfLinkWithId field is set.
-
getSelfLinkWithId
String getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Returns:
- The selfLinkWithId.
-
getSelfLinkWithIdBytes
com.google.protobuf.ByteString getSelfLinkWithIdBytes()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Returns:
- The bytes for selfLinkWithId.
-
getSubnetworksList
List<String> getSubnetworksList()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Returns:
- A list containing the subnetworks.
-
getSubnetworksCount
int getSubnetworksCount()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Returns:
- The count of subnetworks.
-
getSubnetworks
String getSubnetworks(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Parameters:
index
- The index of the element to return.- Returns:
- The subnetworks at the given index.
-
getSubnetworksBytes
com.google.protobuf.ByteString getSubnetworksBytes(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the subnetworks at the given index.
-
-