Package com.google.cloud.compute.v1
Class UsableSubnetwork.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UsableSubnetwork.Builder>
-
- com.google.cloud.compute.v1.UsableSubnetwork.Builder
-
- All Implemented Interfaces:
UsableSubnetworkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- UsableSubnetwork
public static final class UsableSubnetwork.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UsableSubnetwork.Builder> implements UsableSubnetworkOrBuilder
Subnetwork which the current user has compute.subnetworks.use permission on.
Protobuf typegoogle.cloud.compute.v1.UsableSubnetwork
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UsableSubnetwork.Builder
addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)
Secondary IP ranges.UsableSubnetwork.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UsableSubnetwork.Builder
addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.UsableSubnetwork.Builder
addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.UsableSubnetwork.Builder
addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)
Secondary IP ranges.UsableSubnetwork.Builder
addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.UsableSubnetworkSecondaryRange.Builder
addSecondaryIpRangesBuilder()
Secondary IP ranges.UsableSubnetworkSecondaryRange.Builder
addSecondaryIpRangesBuilder(int index)
Secondary IP ranges.UsableSubnetwork
build()
UsableSubnetwork
buildPartial()
UsableSubnetwork.Builder
clear()
UsableSubnetwork.Builder
clearExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UsableSubnetwork.Builder
clearInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
clearIpCidrRange()
The range of internal addresses that are owned by this subnetwork.UsableSubnetwork.Builder
clearIpv6AccessType()
The access type of IPv6 address this subnet holds.UsableSubnetwork.Builder
clearNetwork()
Network URL.UsableSubnetwork.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UsableSubnetwork.Builder
clearPurpose()
The purpose of the resource.UsableSubnetwork.Builder
clearRole()
The role of subnetwork.UsableSubnetwork.Builder
clearSecondaryIpRanges()
Secondary IP ranges.UsableSubnetwork.Builder
clearStackType()
The stack type for the subnet.UsableSubnetwork.Builder
clearSubnetwork()
Subnetwork URL.UsableSubnetwork.Builder
clone()
UsableSubnetwork
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.com.google.protobuf.ByteString
getExternalIpv6PrefixBytes()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.String
getInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.com.google.protobuf.ByteString
getInternalIpv6PrefixBytes()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.String
getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.com.google.protobuf.ByteString
getIpCidrRangeBytes()
The range of internal addresses that are owned by this subnetwork.String
getIpv6AccessType()
The access type of IPv6 address this subnet holds.com.google.protobuf.ByteString
getIpv6AccessTypeBytes()
The access type of IPv6 address this subnet holds.String
getNetwork()
Network URL.com.google.protobuf.ByteString
getNetworkBytes()
Network URL.String
getPurpose()
The purpose of the resource.com.google.protobuf.ByteString
getPurposeBytes()
The purpose of the resource.String
getRole()
The role of subnetwork.com.google.protobuf.ByteString
getRoleBytes()
The role of subnetwork.UsableSubnetworkSecondaryRange
getSecondaryIpRanges(int index)
Secondary IP ranges.UsableSubnetworkSecondaryRange.Builder
getSecondaryIpRangesBuilder(int index)
Secondary IP ranges.List<UsableSubnetworkSecondaryRange.Builder>
getSecondaryIpRangesBuilderList()
Secondary IP ranges.int
getSecondaryIpRangesCount()
Secondary IP ranges.List<UsableSubnetworkSecondaryRange>
getSecondaryIpRangesList()
Secondary IP ranges.UsableSubnetworkSecondaryRangeOrBuilder
getSecondaryIpRangesOrBuilder(int index)
Secondary IP ranges.List<? extends UsableSubnetworkSecondaryRangeOrBuilder>
getSecondaryIpRangesOrBuilderList()
Secondary IP ranges.String
getStackType()
The stack type for the subnet.com.google.protobuf.ByteString
getStackTypeBytes()
The stack type for the subnet.String
getSubnetwork()
Subnetwork URL.com.google.protobuf.ByteString
getSubnetworkBytes()
Subnetwork URL.boolean
hasExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.boolean
hasInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.boolean
hasIpCidrRange()
The range of internal addresses that are owned by this subnetwork.boolean
hasIpv6AccessType()
The access type of IPv6 address this subnet holds.boolean
hasNetwork()
Network URL.boolean
hasPurpose()
The purpose of the resource.boolean
hasRole()
The role of subnetwork.boolean
hasStackType()
The stack type for the subnet.boolean
hasSubnetwork()
Subnetwork URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UsableSubnetwork.Builder
mergeFrom(UsableSubnetwork other)
UsableSubnetwork.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UsableSubnetwork.Builder
mergeFrom(com.google.protobuf.Message other)
UsableSubnetwork.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UsableSubnetwork.Builder
removeSecondaryIpRanges(int index)
Secondary IP ranges.UsableSubnetwork.Builder
setExternalIpv6Prefix(String value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
setExternalIpv6PrefixBytes(com.google.protobuf.ByteString value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UsableSubnetwork.Builder
setInternalIpv6Prefix(String value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
setInternalIpv6PrefixBytes(com.google.protobuf.ByteString value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.UsableSubnetwork.Builder
setIpCidrRange(String value)
The range of internal addresses that are owned by this subnetwork.UsableSubnetwork.Builder
setIpCidrRangeBytes(com.google.protobuf.ByteString value)
The range of internal addresses that are owned by this subnetwork.UsableSubnetwork.Builder
setIpv6AccessType(String value)
The access type of IPv6 address this subnet holds.UsableSubnetwork.Builder
setIpv6AccessTypeBytes(com.google.protobuf.ByteString value)
The access type of IPv6 address this subnet holds.UsableSubnetwork.Builder
setNetwork(String value)
Network URL.UsableSubnetwork.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
Network URL.UsableSubnetwork.Builder
setPurpose(String value)
The purpose of the resource.UsableSubnetwork.Builder
setPurposeBytes(com.google.protobuf.ByteString value)
The purpose of the resource.UsableSubnetwork.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UsableSubnetwork.Builder
setRole(String value)
The role of subnetwork.UsableSubnetwork.Builder
setRoleBytes(com.google.protobuf.ByteString value)
The role of subnetwork.UsableSubnetwork.Builder
setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.UsableSubnetwork.Builder
setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.UsableSubnetwork.Builder
setStackType(String value)
The stack type for the subnet.UsableSubnetwork.Builder
setStackTypeBytes(com.google.protobuf.ByteString value)
The stack type for the subnet.UsableSubnetwork.Builder
setSubnetwork(String value)
Subnetwork URL.UsableSubnetwork.Builder
setSubnetworkBytes(com.google.protobuf.ByteString value)
Subnetwork URL.UsableSubnetwork.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<UsableSubnetwork.Builder>
-
clear
public UsableSubnetwork.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<UsableSubnetwork.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<UsableSubnetwork.Builder>
-
getDefaultInstanceForType
public UsableSubnetwork getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UsableSubnetwork build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UsableSubnetwork buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
setField
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
clearField
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
clearOneof
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
setRepeatedField
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
addRepeatedField
public UsableSubnetwork.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<UsableSubnetwork.Builder>
-
mergeFrom
public UsableSubnetwork.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UsableSubnetwork.Builder>
-
mergeFrom
public UsableSubnetwork.Builder mergeFrom(UsableSubnetwork other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsableSubnetwork.Builder>
-
mergeFrom
public UsableSubnetwork.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<UsableSubnetwork.Builder>
- Throws:
IOException
-
hasExternalIpv6Prefix
public boolean hasExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Specified by:
hasExternalIpv6Prefix
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the externalIpv6Prefix field is set.
-
getExternalIpv6Prefix
public String getExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Specified by:
getExternalIpv6Prefix
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The externalIpv6Prefix.
-
getExternalIpv6PrefixBytes
public com.google.protobuf.ByteString getExternalIpv6PrefixBytes()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Specified by:
getExternalIpv6PrefixBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for externalIpv6Prefix.
-
setExternalIpv6Prefix
public UsableSubnetwork.Builder setExternalIpv6Prefix(String value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Parameters:
value
- The externalIpv6Prefix to set.- Returns:
- This builder for chaining.
-
clearExternalIpv6Prefix
public UsableSubnetwork.Builder clearExternalIpv6Prefix()
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Returns:
- This builder for chaining.
-
setExternalIpv6PrefixBytes
public UsableSubnetwork.Builder setExternalIpv6PrefixBytes(com.google.protobuf.ByteString value)
[Output Only] The external IPv6 address range that is assigned to this subnetwork.
optional string external_ipv6_prefix = 139299190;
- Parameters:
value
- The bytes for externalIpv6Prefix to set.- Returns:
- This builder for chaining.
-
hasInternalIpv6Prefix
public boolean hasInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Specified by:
hasInternalIpv6Prefix
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the internalIpv6Prefix field is set.
-
getInternalIpv6Prefix
public String getInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Specified by:
getInternalIpv6Prefix
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The internalIpv6Prefix.
-
getInternalIpv6PrefixBytes
public com.google.protobuf.ByteString getInternalIpv6PrefixBytes()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Specified by:
getInternalIpv6PrefixBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for internalIpv6Prefix.
-
setInternalIpv6Prefix
public UsableSubnetwork.Builder setInternalIpv6Prefix(String value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Parameters:
value
- The internalIpv6Prefix to set.- Returns:
- This builder for chaining.
-
clearInternalIpv6Prefix
public UsableSubnetwork.Builder clearInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Returns:
- This builder for chaining.
-
setInternalIpv6PrefixBytes
public UsableSubnetwork.Builder setInternalIpv6PrefixBytes(com.google.protobuf.ByteString value)
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
- Parameters:
value
- The bytes for internalIpv6Prefix to set.- Returns:
- This builder for chaining.
-
hasIpCidrRange
public boolean hasIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Specified by:
hasIpCidrRange
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the ipCidrRange field is set.
-
getIpCidrRange
public String getIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Specified by:
getIpCidrRange
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Specified by:
getIpCidrRangeBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for ipCidrRange.
-
setIpCidrRange
public UsableSubnetwork.Builder setIpCidrRange(String value)
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Parameters:
value
- The ipCidrRange to set.- Returns:
- This builder for chaining.
-
clearIpCidrRange
public UsableSubnetwork.Builder clearIpCidrRange()
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Returns:
- This builder for chaining.
-
setIpCidrRangeBytes
public UsableSubnetwork.Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value)
The range of internal addresses that are owned by this subnetwork.
optional string ip_cidr_range = 98117322;
- Parameters:
value
- The bytes for ipCidrRange to set.- Returns:
- This builder for chaining.
-
hasIpv6AccessType
public boolean hasIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
hasIpv6AccessType
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the ipv6AccessType field is set.
-
getIpv6AccessType
public String getIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
getIpv6AccessType
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The ipv6AccessType.
-
getIpv6AccessTypeBytes
public com.google.protobuf.ByteString getIpv6AccessTypeBytes()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Specified by:
getIpv6AccessTypeBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for ipv6AccessType.
-
setIpv6AccessType
public UsableSubnetwork.Builder setIpv6AccessType(String value)
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Parameters:
value
- The ipv6AccessType to set.- Returns:
- This builder for chaining.
-
clearIpv6AccessType
public UsableSubnetwork.Builder clearIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Returns:
- This builder for chaining.
-
setIpv6AccessTypeBytes
public UsableSubnetwork.Builder setIpv6AccessTypeBytes(com.google.protobuf.ByteString value)
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
- Parameters:
value
- The bytes for ipv6AccessType to set.- Returns:
- This builder for chaining.
-
hasNetwork
public boolean hasNetwork()
Network URL.
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
Network URL.
optional string network = 232872494;
- Specified by:
getNetwork
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Network URL.
optional string network = 232872494;
- Specified by:
getNetworkBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public UsableSubnetwork.Builder setNetwork(String value)
Network URL.
optional string network = 232872494;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public UsableSubnetwork.Builder clearNetwork()
Network URL.
optional string network = 232872494;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public UsableSubnetwork.Builder setNetworkBytes(com.google.protobuf.ByteString value)
Network URL.
optional string network = 232872494;
- Parameters:
value
- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasPurpose
public boolean hasPurpose()
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Specified by:
hasPurpose
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the purpose field is set.
-
getPurpose
public String getPurpose()
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Specified by:
getPurpose
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The purpose.
-
getPurposeBytes
public com.google.protobuf.ByteString getPurposeBytes()
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Specified by:
getPurposeBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for purpose.
-
setPurpose
public UsableSubnetwork.Builder setPurpose(String value)
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Parameters:
value
- The purpose to set.- Returns:
- This builder for chaining.
-
clearPurpose
public UsableSubnetwork.Builder clearPurpose()
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Returns:
- This builder for chaining.
-
setPurposeBytes
public UsableSubnetwork.Builder setPurposeBytes(com.google.protobuf.ByteString value)
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
- Parameters:
value
- The bytes for purpose to set.- Returns:
- This builder for chaining.
-
hasRole
public boolean hasRole()
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Specified by:
hasRole
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the role field is set.
-
getRole
public String getRole()
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Specified by:
getRole
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Specified by:
getRoleBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for role.
-
setRole
public UsableSubnetwork.Builder setRole(String value)
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Parameters:
value
- The role to set.- Returns:
- This builder for chaining.
-
clearRole
public UsableSubnetwork.Builder clearRole()
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Returns:
- This builder for chaining.
-
setRoleBytes
public UsableSubnetwork.Builder setRoleBytes(com.google.protobuf.ByteString value)
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
- Parameters:
value
- The bytes for role to set.- Returns:
- This builder for chaining.
-
getSecondaryIpRangesList
public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
- Specified by:
getSecondaryIpRangesList
in interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRangesCount
public int getSecondaryIpRangesCount()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
- Specified by:
getSecondaryIpRangesCount
in interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRanges
public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
- Specified by:
getSecondaryIpRanges
in interfaceUsableSubnetworkOrBuilder
-
setSecondaryIpRanges
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
setSecondaryIpRanges
public UsableSubnetwork.Builder setSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange value)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addSecondaryIpRanges
public UsableSubnetwork.Builder addSecondaryIpRanges(int index, UsableSubnetworkSecondaryRange.Builder builderForValue)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addAllSecondaryIpRanges
public UsableSubnetwork.Builder addAllSecondaryIpRanges(Iterable<? extends UsableSubnetworkSecondaryRange> values)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
clearSecondaryIpRanges
public UsableSubnetwork.Builder clearSecondaryIpRanges()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
removeSecondaryIpRanges
public UsableSubnetwork.Builder removeSecondaryIpRanges(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
getSecondaryIpRangesBuilder
public UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
getSecondaryIpRangesOrBuilder
public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
- Specified by:
getSecondaryIpRangesOrBuilder
in interfaceUsableSubnetworkOrBuilder
-
getSecondaryIpRangesOrBuilderList
public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
- Specified by:
getSecondaryIpRangesOrBuilderList
in interfaceUsableSubnetworkOrBuilder
-
addSecondaryIpRangesBuilder
public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
addSecondaryIpRangesBuilder
public UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder(int index)
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
getSecondaryIpRangesBuilderList
public List<UsableSubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()
Secondary IP ranges.
repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
-
hasStackType
public boolean hasStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
hasStackType
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the stackType field is set.
-
getStackType
public String getStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
getStackType
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The stackType.
-
getStackTypeBytes
public com.google.protobuf.ByteString getStackTypeBytes()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Specified by:
getStackTypeBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for stackType.
-
setStackType
public UsableSubnetwork.Builder setStackType(String value)
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Parameters:
value
- The stackType to set.- Returns:
- This builder for chaining.
-
clearStackType
public UsableSubnetwork.Builder clearStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Returns:
- This builder for chaining.
-
setStackTypeBytes
public UsableSubnetwork.Builder setStackTypeBytes(com.google.protobuf.ByteString value)
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
- Parameters:
value
- The bytes for stackType to set.- Returns:
- This builder for chaining.
-
hasSubnetwork
public boolean hasSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
- Specified by:
hasSubnetwork
in interfaceUsableSubnetworkOrBuilder
- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
public String getSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
- Specified by:
getSubnetwork
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()
Subnetwork URL.
optional string subnetwork = 307827694;
- Specified by:
getSubnetworkBytes
in interfaceUsableSubnetworkOrBuilder
- Returns:
- The bytes for subnetwork.
-
setSubnetwork
public UsableSubnetwork.Builder setSubnetwork(String value)
Subnetwork URL.
optional string subnetwork = 307827694;
- Parameters:
value
- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
public UsableSubnetwork.Builder clearSubnetwork()
Subnetwork URL.
optional string subnetwork = 307827694;
- Returns:
- This builder for chaining.
-
setSubnetworkBytes
public UsableSubnetwork.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
Subnetwork URL.
optional string subnetwork = 307827694;
- Parameters:
value
- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UsableSubnetwork.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsableSubnetwork.Builder>
-
mergeUnknownFields
public final UsableSubnetwork.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UsableSubnetwork.Builder>
-
-