Interface NetworkOrBuilder (1.7.2)

public interface NetworkOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoCreateSubnetworks()

public abstract 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
TypeDescription
boolean

The autoCreateSubnetworks.

getCreationTimestamp()

public abstract String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public abstract ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDescription()

public abstract String getDescription()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getGatewayIPv4()

public abstract String getGatewayIPv4()

[Output Only] The gateway address for default routing out of the network, selected by GCP.

optional string gateway_i_pv4 = 178678877;

Returns
TypeDescription
String

The gatewayIPv4.

getGatewayIPv4Bytes()

public abstract ByteString getGatewayIPv4Bytes()

[Output Only] The gateway address for default routing out of the network, selected by GCP.

optional string gateway_i_pv4 = 178678877;

Returns
TypeDescription
ByteString

The bytes for gatewayIPv4.

getIPv4Range()

public abstract 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
TypeDescription
String

The iPv4Range.

getIPv4RangeBytes()

public abstract 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
TypeDescription
ByteString

The bytes for iPv4Range.

getId()

public abstract long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public abstract String getKind()

[Output Only] Type of the resource. Always compute#network for networks.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public abstract ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#network for networks.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getMtu()

public abstract int getMtu()

Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes. If unspecified, defaults to 1460.

optional int32 mtu = 108462;

Returns
TypeDescription
int

The mtu.

getName()

public abstract 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?. 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
TypeDescription
String

The name.

getNameBytes()

public abstract 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?. 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
TypeDescription
ByteString

The bytes for name.

getPeerings(int index)

public abstract NetworkPeering getPeerings(int index)

[Output Only] A list of network peerings for the resource.

repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkPeering

getPeeringsCount()

public abstract int getPeeringsCount()

[Output Only] A list of network peerings for the resource.

repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;

Returns
TypeDescription
int

getPeeringsList()

public abstract List<NetworkPeering> getPeeringsList()

[Output Only] A list of network peerings for the resource.

repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;

Returns
TypeDescription
List<NetworkPeering>

getPeeringsOrBuilder(int index)

public abstract NetworkPeeringOrBuilder getPeeringsOrBuilder(int index)

[Output Only] A list of network peerings for the resource.

repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkPeeringOrBuilder

getPeeringsOrBuilderList()

public abstract List<? extends NetworkPeeringOrBuilder> getPeeringsOrBuilderList()

[Output Only] A list of network peerings for the resource.

repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.NetworkPeeringOrBuilder>

getRoutingConfig()

public abstract 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
TypeDescription
NetworkRoutingConfig

The routingConfig.

getRoutingConfigOrBuilder()

public abstract 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;

Returns
TypeDescription
NetworkRoutingConfigOrBuilder
public abstract String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public abstract ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSubnetworks(int index)

public abstract String getSubnetworks(int index)

[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.

repeated string subnetworks = 415853125;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The subnetworks at the given index.

getSubnetworksBytes(int index)

public abstract ByteString getSubnetworksBytes(int index)

[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.

repeated string subnetworks = 415853125;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the subnetworks at the given index.

getSubnetworksCount()

public abstract int getSubnetworksCount()

[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.

repeated string subnetworks = 415853125;

Returns
TypeDescription
int

The count of subnetworks.

getSubnetworksList()

public abstract List<String> getSubnetworksList()

[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.

repeated string subnetworks = 415853125;

Returns
TypeDescription
List<String>

A list containing the subnetworks.

hasAutoCreateSubnetworks()

public abstract 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
TypeDescription
boolean

Whether the autoCreateSubnetworks field is set.

hasCreationTimestamp()

public abstract boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public abstract boolean hasDescription()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasGatewayIPv4()

public abstract boolean hasGatewayIPv4()

[Output Only] The gateway address for default routing out of the network, selected by GCP.

optional string gateway_i_pv4 = 178678877;

Returns
TypeDescription
boolean

Whether the gatewayIPv4 field is set.

hasIPv4Range()

public abstract 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
TypeDescription
boolean

Whether the iPv4Range field is set.

hasId()

public abstract boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public abstract boolean hasKind()

[Output Only] Type of the resource. Always compute#network for networks.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasMtu()

public abstract boolean hasMtu()

Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes. If unspecified, defaults to 1460.

optional int32 mtu = 108462;

Returns
TypeDescription
boolean

Whether the mtu field is set.

hasName()

public abstract 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?. 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
TypeDescription
boolean

Whether the name field is set.

hasRoutingConfig()

public abstract 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
TypeDescription
boolean

Whether the routingConfig field is set.

public abstract boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.