- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class Network.Builder extends GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder
Represents a VPC Network resource. Networks connect resources to each other and to the internet. For more information, read Virtual Private Cloud (VPC) Network.
Protobuf type google.cloud.compute.v1.Network
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Network.BuilderImplements
NetworkOrBuilderMethods
addAllPeerings(Iterable<? extends NetworkPeering> values)
public Network.Builder addAllPeerings(Iterable<? extends NetworkPeering> values)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.NetworkPeering> |
Type | Description |
Network.Builder |
addAllSubnetworks(Iterable<String> values)
public Network.Builder addAllSubnetworks(Iterable<String> values)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
values | Iterable<String> The subnetworks to add. |
Type | Description |
Network.Builder | This builder for chaining. |
addPeerings(NetworkPeering value)
public Network.Builder addPeerings(NetworkPeering value)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
value | NetworkPeering |
Type | Description |
Network.Builder |
addPeerings(NetworkPeering.Builder builderForValue)
public Network.Builder addPeerings(NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
builderForValue | NetworkPeering.Builder |
Type | Description |
Network.Builder |
addPeerings(int index, NetworkPeering value)
public Network.Builder addPeerings(int index, NetworkPeering value)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
value | NetworkPeering |
Type | Description |
Network.Builder |
addPeerings(int index, NetworkPeering.Builder builderForValue)
public Network.Builder addPeerings(int index, NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
builderForValue | NetworkPeering.Builder |
Type | Description |
Network.Builder |
addPeeringsBuilder()
public NetworkPeering.Builder addPeeringsBuilder()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
NetworkPeering.Builder |
addPeeringsBuilder(int index)
public NetworkPeering.Builder addPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
Type | Description |
NetworkPeering.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Network.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Network.Builder |
addSubnetworks(String value)
public Network.Builder addSubnetworks(String value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
value | String The subnetworks to add. |
Type | Description |
Network.Builder | This builder for chaining. |
addSubnetworksBytes(ByteString value)
public Network.Builder addSubnetworksBytes(ByteString value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
value | ByteString The bytes of the subnetworks to add. |
Type | Description |
Network.Builder | This builder for chaining. |
build()
public Network build()
Type | Description |
Network |
buildPartial()
public Network buildPartial()
Type | Description |
Network |
clear()
public Network.Builder clear()
Type | Description |
Network.Builder |
clearAutoCreateSubnetworks()
public Network.Builder clearAutoCreateSubnetworks()
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;
Type | Description |
Network.Builder | This builder for chaining. |
clearCreationTimestamp()
public Network.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
Network.Builder | This builder for chaining. |
clearDescription()
public Network.Builder clearDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Type | Description |
Network.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Network.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Network.Builder |
clearGatewayIPv4()
public Network.Builder clearGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Type | Description |
Network.Builder | This builder for chaining. |
clearIPv4Range()
public Network.Builder clearIPv4Range()
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;
Type | Description |
Network.Builder | This builder for chaining. |
clearId()
public Network.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
Network.Builder | This builder for chaining. |
clearKind()
public Network.Builder clearKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Type | Description |
Network.Builder | This builder for chaining. |
clearMtu()
public Network.Builder clearMtu()
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;
Type | Description |
Network.Builder | This builder for chaining. |
clearName()
public Network.Builder clearName()
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;
Type | Description |
Network.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Network.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Network.Builder |
clearPeerings()
public Network.Builder clearPeerings()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
Network.Builder |
clearRoutingConfig()
public Network.Builder clearRoutingConfig()
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;
Type | Description |
Network.Builder |
clearSelfLink()
public Network.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
Network.Builder | This builder for chaining. |
clearSubnetworks()
public Network.Builder clearSubnetworks()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Type | Description |
Network.Builder | This builder for chaining. |
clone()
public Network.Builder clone()
Type | Description |
Network.Builder |
getAutoCreateSubnetworks()
public 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;
Type | Description |
boolean | The autoCreateSubnetworks. |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public Network getDefaultInstanceForType()
Type | Description |
Network |
getDescription()
public String getDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getGatewayIPv4()
public String getGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Type | Description |
String | The gatewayIPv4. |
getGatewayIPv4Bytes()
public ByteString getGatewayIPv4Bytes()
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Type | Description |
ByteString | The bytes for gatewayIPv4. |
getIPv4Range()
public 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;
Type | Description |
String | The iPv4Range. |
getIPv4RangeBytes()
public 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;
Type | Description |
ByteString | The bytes for iPv4Range. |
getId()
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
long | The id. |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getMtu()
public 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;
Type | Description |
int | The mtu. |
getName()
public 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;
Type | Description |
String | The name. |
getNameBytes()
public 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;
Type | Description |
ByteString | The bytes for name. |
getPeerings(int index)
public NetworkPeering getPeerings(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
Type | Description |
NetworkPeering |
getPeeringsBuilder(int index)
public NetworkPeering.Builder getPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
Type | Description |
NetworkPeering.Builder |
getPeeringsBuilderList()
public List<NetworkPeering.Builder> getPeeringsBuilderList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
List<Builder> |
getPeeringsCount()
public int getPeeringsCount()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
int |
getPeeringsList()
public List<NetworkPeering> getPeeringsList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
List<NetworkPeering> |
getPeeringsOrBuilder(int index)
public NetworkPeeringOrBuilder getPeeringsOrBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
Type | Description |
NetworkPeeringOrBuilder |
getPeeringsOrBuilderList()
public List<? extends NetworkPeeringOrBuilder> getPeeringsOrBuilderList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Type | Description |
List<? extends com.google.cloud.compute.v1.NetworkPeeringOrBuilder> |
getRoutingConfig()
public 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;
Type | Description |
NetworkRoutingConfig | The routingConfig. |
getRoutingConfigBuilder()
public NetworkRoutingConfig.Builder getRoutingConfigBuilder()
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;
Type | Description |
NetworkRoutingConfig.Builder |
getRoutingConfigOrBuilder()
public 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;
Type | Description |
NetworkRoutingConfigOrBuilder |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
ByteString | The bytes for selfLink. |
getSubnetworks(int index)
public String getSubnetworks(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The subnetworks at the given index. |
getSubnetworksBytes(int index)
public ByteString getSubnetworksBytes(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the subnetworks at the given index. |
getSubnetworksCount()
public int getSubnetworksCount()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Type | Description |
int | The count of subnetworks. |
getSubnetworksList()
public ProtocolStringList getSubnetworksList()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Type | Description |
ProtocolStringList | A list containing the subnetworks. |
hasAutoCreateSubnetworks()
public 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;
Type | Description |
boolean | Whether the autoCreateSubnetworks field is set. |
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
boolean | Whether the creationTimestamp field is set. |
hasDescription()
public boolean hasDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Type | Description |
boolean | Whether the description field is set. |
hasGatewayIPv4()
public boolean hasGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Type | Description |
boolean | Whether the gatewayIPv4 field is set. |
hasIPv4Range()
public 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;
Type | Description |
boolean | Whether the iPv4Range field is set. |
hasId()
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Type | Description |
boolean | Whether the id field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasMtu()
public 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;
Type | Description |
boolean | Whether the mtu field is set. |
hasName()
public 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;
Type | Description |
boolean | Whether the name field is set. |
hasRoutingConfig()
public 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;
Type | Description |
boolean | Whether the routingConfig field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
boolean | Whether the selfLink field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Network other)
public Network.Builder mergeFrom(Network other)
Name | Description |
other | Network |
Type | Description |
Network.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Network.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Network.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Network.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Network.Builder |
mergeRoutingConfig(NetworkRoutingConfig value)
public Network.Builder mergeRoutingConfig(NetworkRoutingConfig value)
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;
Name | Description |
value | NetworkRoutingConfig |
Type | Description |
Network.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Network.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Network.Builder |
removePeerings(int index)
public Network.Builder removePeerings(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
Type | Description |
Network.Builder |
setAutoCreateSubnetworks(boolean value)
public Network.Builder setAutoCreateSubnetworks(boolean value)
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;
Name | Description |
value | boolean The autoCreateSubnetworks to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setCreationTimestamp(String value)
public Network.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | String The creationTimestamp to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public Network.Builder setCreationTimestampBytes(ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setDescription(String value)
public Network.Builder setDescription(String value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Name | Description |
value | String The description to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Network.Builder setDescriptionBytes(ByteString value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Network.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Network.Builder |
setGatewayIPv4(String value)
public Network.Builder setGatewayIPv4(String value)
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Name | Description |
value | String The gatewayIPv4 to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setGatewayIPv4Bytes(ByteString value)
public Network.Builder setGatewayIPv4Bytes(ByteString value)
[Output Only] The gateway address for default routing out of the network, selected by GCP.
optional string gateway_i_pv4 = 178678877;
Name | Description |
value | ByteString The bytes for gatewayIPv4 to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setIPv4Range(String value)
public Network.Builder setIPv4Range(String value)
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;
Name | Description |
value | String The iPv4Range to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setIPv4RangeBytes(ByteString value)
public Network.Builder setIPv4RangeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for iPv4Range to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setId(long value)
public Network.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Name | Description |
value | long The id to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setKind(String value)
public Network.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public Network.Builder setKindBytes(ByteString value)
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setMtu(int value)
public Network.Builder setMtu(int value)
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;
Name | Description |
value | int The mtu to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setName(String value)
public Network.Builder setName(String value)
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;
Name | Description |
value | String The name to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Network.Builder setNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setPeerings(int index, NetworkPeering value)
public Network.Builder setPeerings(int index, NetworkPeering value)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
value | NetworkPeering |
Type | Description |
Network.Builder |
setPeerings(int index, NetworkPeering.Builder builderForValue)
public Network.Builder setPeerings(int index, NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
Name | Description |
index | int |
builderForValue | NetworkPeering.Builder |
Type | Description |
Network.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Network.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Network.Builder |
setRoutingConfig(NetworkRoutingConfig value)
public Network.Builder setRoutingConfig(NetworkRoutingConfig value)
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;
Name | Description |
value | NetworkRoutingConfig |
Type | Description |
Network.Builder |
setRoutingConfig(NetworkRoutingConfig.Builder builderForValue)
public Network.Builder setRoutingConfig(NetworkRoutingConfig.Builder builderForValue)
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;
Name | Description |
builderForValue | NetworkRoutingConfig.Builder |
Type | Description |
Network.Builder |
setSelfLink(String value)
public Network.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | String The selfLink to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public Network.Builder setSelfLinkBytes(ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Name | Description |
value | ByteString The bytes for selfLink to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setSubnetworks(int index, String value)
public Network.Builder setSubnetworks(int index, String value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
Name | Description |
index | int The index to set the value at. |
value | String The subnetworks to set. |
Type | Description |
Network.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Network.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Network.Builder |