Package com.google.cloud.compute.v1
Class Network.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
- com.google.cloud.compute.v1.Network.Builder
-
- All Implemented Interfaces:
NetworkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Network
public static final class Network.Builder extends com.google.protobuf.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 typegoogle.cloud.compute.v1.Network
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Network.Builder
addAllPeerings(Iterable<? extends NetworkPeering> values)
[Output Only] A list of network peerings for the resource.Network.Builder
addAllSubnetworks(Iterable<String> values)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.Network.Builder
addPeerings(int index, NetworkPeering value)
[Output Only] A list of network peerings for the resource.Network.Builder
addPeerings(int index, NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.Network.Builder
addPeerings(NetworkPeering value)
[Output Only] A list of network peerings for the resource.Network.Builder
addPeerings(NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.NetworkPeering.Builder
addPeeringsBuilder()
[Output Only] A list of network peerings for the resource.NetworkPeering.Builder
addPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.Network.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
addSubnetworks(String value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.Network.Builder
addSubnetworksBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.Network
build()
Network
buildPartial()
Network.Builder
clear()
Network.Builder
clearAutoCreateSubnetworks()
Must be set to create a VPC network.Network.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.Network.Builder
clearDescription()
An optional description of this resource.Network.Builder
clearEnableUlaInternalIpv6()
Enable ULA internal ipv6 on this network.Network.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Network.Builder
clearFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.Network.Builder
clearGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.Network.Builder
clearId()
[Output Only] The unique identifier for the resource.Network.Builder
clearInternalIpv6Range()
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.Network.Builder
clearIPv4Range()
Deprecated in favor of subnet mode networks.Network.Builder
clearKind()
[Output Only] Type of the resource.Network.Builder
clearMtu()
Maximum Transmission Unit in bytes.Network.Builder
clearName()
Name of the resource.Network.Builder
clearNetworkFirewallPolicyEnforcementOrder()
The network firewall policy enforcement order.Network.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Network.Builder
clearPeerings()
[Output Only] A list of network peerings for the resource.Network.Builder
clearRoutingConfig()
The network-level routing configuration for this network.Network.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.Network.Builder
clearSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.Network.Builder
clearSubnetworks()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.Network.Builder
clone()
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.Network
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.NetworkPeering.Builder
getPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.List<NetworkPeering.Builder>
getPeeringsBuilderList()
[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.NetworkRoutingConfig.Builder
getRoutingConfigBuilder()
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.com.google.protobuf.ProtocolStringList
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Network.Builder
mergeFrom(Network other)
Network.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Network.Builder
mergeFrom(com.google.protobuf.Message other)
Network.Builder
mergeRoutingConfig(NetworkRoutingConfig value)
The network-level routing configuration for this network.Network.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Network.Builder
removePeerings(int index)
[Output Only] A list of network peerings for the resource.Network.Builder
setAutoCreateSubnetworks(boolean value)
Must be set to create a VPC network.Network.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.Network.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.Network.Builder
setDescription(String value)
An optional description of this resource.Network.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.Network.Builder
setEnableUlaInternalIpv6(boolean value)
Enable ULA internal ipv6 on this network.Network.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Network.Builder
setFirewallPolicy(String value)
[Output Only] URL of the firewall policy the network is associated with.Network.Builder
setFirewallPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the firewall policy the network is associated with.Network.Builder
setGatewayIPv4(String value)
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.Network.Builder
setGatewayIPv4Bytes(com.google.protobuf.ByteString value)
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.Network.Builder
setId(long value)
[Output Only] The unique identifier for the resource.Network.Builder
setInternalIpv6Range(String value)
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.Network.Builder
setInternalIpv6RangeBytes(com.google.protobuf.ByteString value)
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20.Network.Builder
setIPv4Range(String value)
Deprecated in favor of subnet mode networks.Network.Builder
setIPv4RangeBytes(com.google.protobuf.ByteString value)
Deprecated in favor of subnet mode networks.Network.Builder
setKind(String value)
[Output Only] Type of the resource.Network.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.Network.Builder
setMtu(int value)
Maximum Transmission Unit in bytes.Network.Builder
setName(String value)
Name of the resource.Network.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.Network.Builder
setNetworkFirewallPolicyEnforcementOrder(String value)
The network firewall policy enforcement order.Network.Builder
setNetworkFirewallPolicyEnforcementOrderBytes(com.google.protobuf.ByteString value)
The network firewall policy enforcement order.Network.Builder
setPeerings(int index, NetworkPeering value)
[Output Only] A list of network peerings for the resource.Network.Builder
setPeerings(int index, NetworkPeering.Builder builderForValue)
[Output Only] A list of network peerings for the resource.Network.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Network.Builder
setRoutingConfig(NetworkRoutingConfig value)
The network-level routing configuration for this network.Network.Builder
setRoutingConfig(NetworkRoutingConfig.Builder builderForValue)
The network-level routing configuration for this network.Network.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.Network.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.Network.Builder
setSelfLinkWithId(String value)
[Output Only] Server-defined URL for this resource with the resource id.Network.Builder
setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource with the resource id.Network.Builder
setSubnetworks(int index, String value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.Network.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Network.Builder>
-
clear
public Network.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
getDefaultInstanceForType
public Network getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Network build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Network buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Network.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setField
public Network.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearField
public Network.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
clearOneof
public Network.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
setRepeatedField
public Network.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
addRepeatedField
public Network.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(Network other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeFrom
public Network.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Network.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasIPv4Range
in interfaceNetworkOrBuilder
- Returns:
- Whether the iPv4Range field is set.
-
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;
- Specified by:
getIPv4Range
in interfaceNetworkOrBuilder
- Returns:
- The iPv4Range.
-
getIPv4RangeBytes
public 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;
- Specified by:
getIPv4RangeBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for iPv4Range.
-
setIPv4Range
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;
- Parameters:
value
- The iPv4Range to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setIPv4RangeBytes
public Network.Builder setIPv4RangeBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for iPv4Range to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasAutoCreateSubnetworks
in interfaceNetworkOrBuilder
- Returns:
- Whether the autoCreateSubnetworks field is set.
-
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;
- Specified by:
getAutoCreateSubnetworks
in interfaceNetworkOrBuilder
- Returns:
- The autoCreateSubnetworks.
-
setAutoCreateSubnetworks
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;
- Parameters:
value
- The autoCreateSubnetworks to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceNetworkOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceNetworkOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Network.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Network.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Network.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceNetworkOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceNetworkOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Network.Builder setDescription(String value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Network.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasEnableUlaInternalIpv6
public 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;
- Specified by:
hasEnableUlaInternalIpv6
in interfaceNetworkOrBuilder
- Returns:
- Whether the enableUlaInternalIpv6 field is set.
-
getEnableUlaInternalIpv6
public 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;
- Specified by:
getEnableUlaInternalIpv6
in interfaceNetworkOrBuilder
- Returns:
- The enableUlaInternalIpv6.
-
setEnableUlaInternalIpv6
public Network.Builder setEnableUlaInternalIpv6(boolean value)
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;
- Parameters:
value
- The enableUlaInternalIpv6 to set.- Returns:
- This builder for chaining.
-
clearEnableUlaInternalIpv6
public Network.Builder clearEnableUlaInternalIpv6()
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:
- This builder for chaining.
-
hasFirewallPolicy
public boolean hasFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Specified by:
hasFirewallPolicy
in interfaceNetworkOrBuilder
- Returns:
- Whether the firewallPolicy field is set.
-
getFirewallPolicy
public String getFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Specified by:
getFirewallPolicy
in interfaceNetworkOrBuilder
- Returns:
- The firewallPolicy.
-
getFirewallPolicyBytes
public com.google.protobuf.ByteString getFirewallPolicyBytes()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Specified by:
getFirewallPolicyBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for firewallPolicy.
-
setFirewallPolicy
public Network.Builder setFirewallPolicy(String value)
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Parameters:
value
- The firewallPolicy to set.- Returns:
- This builder for chaining.
-
clearFirewallPolicy
public Network.Builder clearFirewallPolicy()
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Returns:
- This builder for chaining.
-
setFirewallPolicyBytes
public Network.Builder setFirewallPolicyBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the firewall policy the network is associated with.
optional string firewall_policy = 498173265;
- Parameters:
value
- The bytes for firewallPolicy to set.- Returns:
- This builder for chaining.
-
hasGatewayIPv4
public boolean hasGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Specified by:
hasGatewayIPv4
in interfaceNetworkOrBuilder
- Returns:
- Whether the gatewayIPv4 field is set.
-
getGatewayIPv4
public String getGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Specified by:
getGatewayIPv4
in interfaceNetworkOrBuilder
- Returns:
- The gatewayIPv4.
-
getGatewayIPv4Bytes
public 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;
- Specified by:
getGatewayIPv4Bytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for gatewayIPv4.
-
setGatewayIPv4
public Network.Builder setGatewayIPv4(String value)
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Parameters:
value
- The gatewayIPv4 to set.- Returns:
- This builder for chaining.
-
clearGatewayIPv4
public Network.Builder clearGatewayIPv4()
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Returns:
- This builder for chaining.
-
setGatewayIPv4Bytes
public Network.Builder setGatewayIPv4Bytes(com.google.protobuf.ByteString value)
[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.
optional string gateway_i_pv4 = 178678877;
- Parameters:
value
- The bytes for gatewayIPv4 to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceNetworkOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceNetworkOrBuilder
- Returns:
- The id.
-
setId
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;
- Parameters:
value
- The id to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
hasInternalIpv6Range
public 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;
- Specified by:
hasInternalIpv6Range
in interfaceNetworkOrBuilder
- Returns:
- Whether the internalIpv6Range field is set.
-
getInternalIpv6Range
public 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;
- Specified by:
getInternalIpv6Range
in interfaceNetworkOrBuilder
- Returns:
- The internalIpv6Range.
-
getInternalIpv6RangeBytes
public 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;
- Specified by:
getInternalIpv6RangeBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for internalIpv6Range.
-
setInternalIpv6Range
public Network.Builder setInternalIpv6Range(String value)
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;
- Parameters:
value
- The internalIpv6Range to set.- Returns:
- This builder for chaining.
-
clearInternalIpv6Range
public Network.Builder clearInternalIpv6Range()
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:
- This builder for chaining.
-
setInternalIpv6RangeBytes
public Network.Builder setInternalIpv6RangeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for internalIpv6Range to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceNetworkOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceNetworkOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public Network.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Network.Builder clearKind()
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public Network.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#network for networks.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasMtu
public 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;
- Specified by:
hasMtu
in interfaceNetworkOrBuilder
- Returns:
- Whether the mtu field is set.
-
getMtu
public 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;
- Specified by:
getMtu
in interfaceNetworkOrBuilder
- Returns:
- The mtu.
-
setMtu
public Network.Builder setMtu(int value)
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;
- Parameters:
value
- The mtu to set.- Returns:
- This builder for chaining.
-
clearMtu
public Network.Builder clearMtu()
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:
- This builder for chaining.
-
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]([-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;
- Specified by:
hasName
in interfaceNetworkOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-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;
- Specified by:
getName
in interfaceNetworkOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for name.
-
setName
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]([-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;
- Parameters:
value
- The name to set.- Returns:
- 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]([-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:
- This builder for chaining.
-
setNameBytes
public Network.Builder setNameBytes(com.google.protobuf.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]([-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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasNetworkFirewallPolicyEnforcementOrder
public 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;
- Specified by:
hasNetworkFirewallPolicyEnforcementOrder
in interfaceNetworkOrBuilder
- Returns:
- Whether the networkFirewallPolicyEnforcementOrder field is set.
-
getNetworkFirewallPolicyEnforcementOrder
public 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;
- Specified by:
getNetworkFirewallPolicyEnforcementOrder
in interfaceNetworkOrBuilder
- Returns:
- The networkFirewallPolicyEnforcementOrder.
-
getNetworkFirewallPolicyEnforcementOrderBytes
public 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;
- Specified by:
getNetworkFirewallPolicyEnforcementOrderBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for networkFirewallPolicyEnforcementOrder.
-
setNetworkFirewallPolicyEnforcementOrder
public Network.Builder setNetworkFirewallPolicyEnforcementOrder(String value)
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;
- Parameters:
value
- The networkFirewallPolicyEnforcementOrder to set.- Returns:
- This builder for chaining.
-
clearNetworkFirewallPolicyEnforcementOrder
public Network.Builder clearNetworkFirewallPolicyEnforcementOrder()
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:
- This builder for chaining.
-
setNetworkFirewallPolicyEnforcementOrderBytes
public Network.Builder setNetworkFirewallPolicyEnforcementOrderBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for networkFirewallPolicyEnforcementOrder to set.- Returns:
- This builder for chaining.
-
getPeeringsList
public List<NetworkPeering> getPeeringsList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
- Specified by:
getPeeringsList
in interfaceNetworkOrBuilder
-
getPeeringsCount
public int getPeeringsCount()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
- Specified by:
getPeeringsCount
in interfaceNetworkOrBuilder
-
getPeerings
public NetworkPeering getPeerings(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
- Specified by:
getPeerings
in interfaceNetworkOrBuilder
-
setPeerings
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;
-
setPeerings
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;
-
addPeerings
public Network.Builder addPeerings(NetworkPeering value)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
addPeerings
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;
-
addPeerings
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;
-
addPeerings
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;
-
addAllPeerings
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;
-
clearPeerings
public Network.Builder clearPeerings()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
removePeerings
public Network.Builder removePeerings(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsBuilder
public NetworkPeering.Builder getPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsOrBuilder
public NetworkPeeringOrBuilder getPeeringsOrBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
- Specified by:
getPeeringsOrBuilder
in interfaceNetworkOrBuilder
-
getPeeringsOrBuilderList
public List<? extends NetworkPeeringOrBuilder> getPeeringsOrBuilderList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
- Specified by:
getPeeringsOrBuilderList
in interfaceNetworkOrBuilder
-
addPeeringsBuilder
public NetworkPeering.Builder addPeeringsBuilder()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
addPeeringsBuilder
public NetworkPeering.Builder addPeeringsBuilder(int index)
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
getPeeringsBuilderList
public List<NetworkPeering.Builder> getPeeringsBuilderList()
[Output Only] A list of network peerings for the resource.
repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;
-
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;
- Specified by:
hasRoutingConfig
in interfaceNetworkOrBuilder
- Returns:
- Whether the routingConfig field is set.
-
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;
- Specified by:
getRoutingConfig
in interfaceNetworkOrBuilder
- Returns:
- The routingConfig.
-
setRoutingConfig
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;
-
setRoutingConfig
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;
-
mergeRoutingConfig
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;
-
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;
-
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;
-
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;
- Specified by:
getRoutingConfigOrBuilder
in interfaceNetworkOrBuilder
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceNetworkOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceNetworkOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public Network.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Network.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Network.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSelfLinkWithId
public boolean hasSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Specified by:
hasSelfLinkWithId
in interfaceNetworkOrBuilder
- Returns:
- Whether the selfLinkWithId field is set.
-
getSelfLinkWithId
public String getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Specified by:
getSelfLinkWithId
in interfaceNetworkOrBuilder
- Returns:
- The selfLinkWithId.
-
getSelfLinkWithIdBytes
public com.google.protobuf.ByteString getSelfLinkWithIdBytes()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Specified by:
getSelfLinkWithIdBytes
in interfaceNetworkOrBuilder
- Returns:
- The bytes for selfLinkWithId.
-
setSelfLinkWithId
public Network.Builder setSelfLinkWithId(String value)
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Parameters:
value
- The selfLinkWithId to set.- Returns:
- This builder for chaining.
-
clearSelfLinkWithId
public Network.Builder clearSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Returns:
- This builder for chaining.
-
setSelfLinkWithIdBytes
public Network.Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for this resource with the resource id.
optional string self_link_with_id = 44520962;
- Parameters:
value
- The bytes for selfLinkWithId to set.- Returns:
- This builder for chaining.
-
getSubnetworksList
public com.google.protobuf.ProtocolStringList getSubnetworksList()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Specified by:
getSubnetworksList
in interfaceNetworkOrBuilder
- Returns:
- A list containing the subnetworks.
-
getSubnetworksCount
public int getSubnetworksCount()
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Specified by:
getSubnetworksCount
in interfaceNetworkOrBuilder
- Returns:
- The count of subnetworks.
-
getSubnetworks
public String getSubnetworks(int index)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Specified by:
getSubnetworks
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The subnetworks at the given index.
-
getSubnetworksBytes
public 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;
- Specified by:
getSubnetworksBytes
in interfaceNetworkOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the subnetworks at the given index.
-
setSubnetworks
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;
- Parameters:
index
- The index to set the value at.value
- The subnetworks to set.- Returns:
- This builder for chaining.
-
addSubnetworks
public Network.Builder addSubnetworks(String value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Parameters:
value
- The subnetworks to add.- Returns:
- This builder for chaining.
-
addAllSubnetworks
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;
- Parameters:
values
- The subnetworks to add.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
addSubnetworksBytes
public Network.Builder addSubnetworksBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
repeated string subnetworks = 415853125;
- Parameters:
value
- The bytes of the subnetworks to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Network.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
mergeUnknownFields
public final Network.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Network.Builder>
-
-