Package com.google.cloud.compute.v1
Class Address.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Address.Builder>
com.google.cloud.compute.v1.Address.Builder
- All Implemented Interfaces:
AddressOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Address
public static final class Address.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Address.Builder>
implements AddressOrBuilder
Represents an IP Address resource. Google Compute Engine has two IP Address resources: * [Global (external and internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) * [Regional (external and internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) For more information, see Reserving a static external IP address.Protobuf type
google.cloud.compute.v1.Address-
Method Summary
Modifier and TypeMethodDescriptionaddAllUsers(Iterable<String> values) [Output Only] The URLs of the resources that are using this address.[Output Only] The URLs of the resources that are using this address.addUsersBytes(com.google.protobuf.ByteString value) [Output Only] The URLs of the resources that are using this address.build()clear()The static IP address represented by this resource.The type of address to reserve, either INTERNAL orEXTERNAL.Output only.An optional description of this resource.clearId()Output only.Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.The endpoint type of this address, which should be VM or NETLB.The IP version that will be used by this address.Output only.A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.Name of the resource.The URL of the network in which to reserve the address.This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.The prefix length if the resource represents an IP range.The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcesOutput only.[Output Only] Server-defined URL for the resource.Output only.The URL of the subnetwork in which to reserve the address.[Output Only] The URLs of the resources that are using this address.booleancontainsLabels(String key) Labels for this resource.The static IP address represented by this resource.com.google.protobuf.ByteStringThe static IP address represented by this resource.The type of address to reserve, either INTERNAL orEXTERNAL.com.google.protobuf.ByteStringThe type of address to reserve, either INTERNAL orEXTERNAL.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.com.google.protobuf.ByteStringReference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.The endpoint type of this address, which should be VM or NETLB.com.google.protobuf.ByteStringThe endpoint type of this address, which should be VM or NETLB.The IP version that will be used by this address.com.google.protobuf.ByteStringThe IP version that will be used by this address.getKind()Output only.com.google.protobuf.ByteStringOutput only.A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteStringA fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.Deprecated.intLabels for this resource.Labels for this resource.getLabelsOrDefault(String key, String defaultValue) Labels for this resource.getLabelsOrThrow(String key) Labels for this resource.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.The URL of the network in which to reserve the address.com.google.protobuf.ByteStringThe URL of the network in which to reserve the address.This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.com.google.protobuf.ByteStringThis signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.intThe prefix length if the resource represents an IP range.The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcescom.google.protobuf.ByteStringThe purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcesOutput only.com.google.protobuf.ByteStringOutput only.[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString[Output Only] Server-defined URL for the resource.Output only.com.google.protobuf.ByteStringOutput only.The URL of the subnetwork in which to reserve the address.com.google.protobuf.ByteStringThe URL of the subnetwork in which to reserve the address.getUsers(int index) [Output Only] The URLs of the resources that are using this address.com.google.protobuf.ByteStringgetUsersBytes(int index) [Output Only] The URLs of the resources that are using this address.int[Output Only] The URLs of the resources that are using this address.com.google.protobuf.ProtocolStringList[Output Only] The URLs of the resources that are using this address.booleanThe static IP address represented by this resource.booleanThe type of address to reserve, either INTERNAL orEXTERNAL.booleanOutput only.booleanAn optional description of this resource.booleanhasId()Output only.booleanReference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.booleanThe endpoint type of this address, which should be VM or NETLB.booleanThe IP version that will be used by this address.booleanhasKind()Output only.booleanA fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.booleanhasName()Name of the resource.booleanThe URL of the network in which to reserve the address.booleanThis signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.booleanThe prefix length if the resource represents an IP range.booleanThe purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcesbooleanOutput only.boolean[Output Only] Server-defined URL for the resource.booleanOutput only.booleanThe URL of the subnetwork in which to reserve the address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) Labels for this resource.Labels for this resource.removeLabels(String key) Labels for this resource.setAddress(String value) The static IP address represented by this resource.setAddressBytes(com.google.protobuf.ByteString value) The static IP address represented by this resource.setAddressType(String value) The type of address to reserve, either INTERNAL orEXTERNAL.setAddressTypeBytes(com.google.protobuf.ByteString value) The type of address to reserve, either INTERNAL orEXTERNAL.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setId(long value) Output only.setIpCollection(String value) Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.setIpCollectionBytes(com.google.protobuf.ByteString value) Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP.setIpv6EndpointType(String value) The endpoint type of this address, which should be VM or NETLB.setIpv6EndpointTypeBytes(com.google.protobuf.ByteString value) The endpoint type of this address, which should be VM or NETLB.setIpVersion(String value) The IP version that will be used by this address.setIpVersionBytes(com.google.protobuf.ByteString value) The IP version that will be used by this address.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLabelFingerprint(String value) A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.setLabelFingerprintBytes(com.google.protobuf.ByteString value) A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setNetwork(String value) The URL of the network in which to reserve the address.setNetworkBytes(com.google.protobuf.ByteString value) The URL of the network in which to reserve the address.setNetworkTier(String value) This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.setNetworkTierBytes(com.google.protobuf.ByteString value) This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD.setPrefixLength(int value) The prefix length if the resource represents an IP range.setPurpose(String value) The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcessetPurposeBytes(com.google.protobuf.ByteString value) The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resourcesOutput only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) [Output Only] Server-defined URL for the resource.setSelfLinkBytes(com.google.protobuf.ByteString value) [Output Only] Server-defined URL for the resource.Output only.setStatusBytes(com.google.protobuf.ByteString value) Output only.setSubnetwork(String value) The URL of the subnetwork in which to reserve the address.setSubnetworkBytes(com.google.protobuf.ByteString value) The URL of the subnetwork in which to reserve the address.[Output Only] The URLs of the resources that are using this address.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Address.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Address.Builder>
-
mergeFrom
public Address.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Address.Builder>- Throws:
IOException
-
hasAddress
public boolean hasAddress()The static IP address represented by this resource.
optional string address = 462920692;- Specified by:
hasAddressin interfaceAddressOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
The static IP address represented by this resource.
optional string address = 462920692;- Specified by:
getAddressin interfaceAddressOrBuilder- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()The static IP address represented by this resource.
optional string address = 462920692;- Specified by:
getAddressBytesin interfaceAddressOrBuilder- Returns:
- The bytes for address.
-
setAddress
The static IP address represented by this resource.
optional string address = 462920692;- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
The static IP address represented by this resource.
optional string address = 462920692;- Returns:
- This builder for chaining.
-
setAddressBytes
The static IP address represented by this resource.
optional string address = 462920692;- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
hasAddressType
public boolean hasAddressType()The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Specified by:
hasAddressTypein interfaceAddressOrBuilder- Returns:
- Whether the addressType field is set.
-
getAddressType
The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Specified by:
getAddressTypein interfaceAddressOrBuilder- Returns:
- The addressType.
-
getAddressTypeBytes
public com.google.protobuf.ByteString getAddressTypeBytes()The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Specified by:
getAddressTypeBytesin interfaceAddressOrBuilder- Returns:
- The bytes for addressType.
-
setAddressType
The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Parameters:
value- The addressType to set.- Returns:
- This builder for chaining.
-
clearAddressType
The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Returns:
- This builder for chaining.
-
setAddressTypeBytes
The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;- Parameters:
value- The bytes for addressType to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceAddressOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceAddressOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceAddressOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 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:
hasDescriptionin interfaceAddressOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceAddressOrBuilder- 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:
getDescriptionBytesin interfaceAddressOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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.
-
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceAddressOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceAddressOrBuilder- Returns:
- The id.
-
setId
Output only. [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
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasIpCollection
public boolean hasIpCollection()Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Specified by:
hasIpCollectionin interfaceAddressOrBuilder- Returns:
- Whether the ipCollection field is set.
-
getIpCollection
Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Specified by:
getIpCollectionin interfaceAddressOrBuilder- Returns:
- The ipCollection.
-
getIpCollectionBytes
public com.google.protobuf.ByteString getIpCollectionBytes()Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Specified by:
getIpCollectionBytesin interfaceAddressOrBuilder- Returns:
- The bytes for ipCollection.
-
setIpCollection
Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Parameters:
value- The ipCollection to set.- Returns:
- This builder for chaining.
-
clearIpCollection
Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Returns:
- This builder for chaining.
-
setIpCollectionBytes
Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4 allocations. Use one of the following formats to specify a PDP when reserving an external IPv4 address using BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - regions/region/publicDelegatedPrefixes/pdp-name
optional string ip_collection = 176818358;- Parameters:
value- The bytes for ipCollection to set.- Returns:
- This builder for chaining.
-
hasIpVersion
public boolean hasIpVersion()The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Specified by:
hasIpVersionin interfaceAddressOrBuilder- Returns:
- Whether the ipVersion field is set.
-
getIpVersion
The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Specified by:
getIpVersionin interfaceAddressOrBuilder- Returns:
- The ipVersion.
-
getIpVersionBytes
public com.google.protobuf.ByteString getIpVersionBytes()The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Specified by:
getIpVersionBytesin interfaceAddressOrBuilder- Returns:
- The bytes for ipVersion.
-
setIpVersion
The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Parameters:
value- The ipVersion to set.- Returns:
- This builder for chaining.
-
clearIpVersion
The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Returns:
- This builder for chaining.
-
setIpVersionBytes
The IP version that will be used by this address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;- Parameters:
value- The bytes for ipVersion to set.- Returns:
- This builder for chaining.
-
hasIpv6EndpointType
public boolean hasIpv6EndpointType()The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Specified by:
hasIpv6EndpointTypein interfaceAddressOrBuilder- Returns:
- Whether the ipv6EndpointType field is set.
-
getIpv6EndpointType
The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Specified by:
getIpv6EndpointTypein interfaceAddressOrBuilder- Returns:
- The ipv6EndpointType.
-
getIpv6EndpointTypeBytes
public com.google.protobuf.ByteString getIpv6EndpointTypeBytes()The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Specified by:
getIpv6EndpointTypeBytesin interfaceAddressOrBuilder- Returns:
- The bytes for ipv6EndpointType.
-
setIpv6EndpointType
The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Parameters:
value- The ipv6EndpointType to set.- Returns:
- This builder for chaining.
-
clearIpv6EndpointType
The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Returns:
- This builder for chaining.
-
setIpv6EndpointTypeBytes
The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Check the Ipv6EndpointType enum for the list of possible values.
optional string ipv6_endpoint_type = 97501004;- Parameters:
value- The bytes for ipv6EndpointType to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Specified by:
hasKindin interfaceAddressOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Specified by:
getKindin interfaceAddressOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceAddressOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLabelFingerprint
public boolean hasLabelFingerprint()A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceAddressOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceAddressOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceAddressOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:AddressOrBuilderLabels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceAddressOrBuilder
-
containsLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceAddressOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAddressOrBuilder
-
getLabelsMap
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceAddressOrBuilder
-
getLabelsOrDefault
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceAddressOrBuilder
-
getLabelsOrThrow
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceAddressOrBuilder
-
clearLabels
-
removeLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
putAllLabels
Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
map<string, string> labels = 500195327; -
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 withRFC1035. 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:
hasNamein interfaceAddressOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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:
getNamein interfaceAddressOrBuilder- 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 withRFC1035. 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:
getNameBytesin interfaceAddressOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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.
-
hasNetwork
public boolean hasNetwork()The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Specified by:
hasNetworkin interfaceAddressOrBuilder- Returns:
- Whether the network field is set.
-
getNetwork
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Specified by:
getNetworkin interfaceAddressOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Specified by:
getNetworkBytesin interfaceAddressOrBuilder- Returns:
- The bytes for network.
-
setNetwork
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Returns:
- This builder for chaining.
-
setNetworkBytes
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with theVPC_PEERING purpose.
optional string network = 232872494;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
hasNetworkTier
public boolean hasNetworkTier()This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Specified by:
hasNetworkTierin interfaceAddressOrBuilder- Returns:
- Whether the networkTier field is set.
-
getNetworkTier
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Specified by:
getNetworkTierin interfaceAddressOrBuilder- Returns:
- The networkTier.
-
getNetworkTierBytes
public com.google.protobuf.ByteString getNetworkTierBytes()This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Specified by:
getNetworkTierBytesin interfaceAddressOrBuilder- Returns:
- The bytes for networkTier.
-
setNetworkTier
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Parameters:
value- The networkTier to set.- Returns:
- This builder for chaining.
-
clearNetworkTier
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Returns:
- This builder for chaining.
-
setNetworkTierBytes
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either Standard or Premium Tier. If this field is not specified, it is assumed to be PREMIUM. Check the NetworkTier enum for the list of possible values.
optional string network_tier = 517397843;- Parameters:
value- The bytes for networkTier to set.- Returns:
- This builder for chaining.
-
hasPrefixLength
public boolean hasPrefixLength()The prefix length if the resource represents an IP range.
optional int32 prefix_length = 453565747;- Specified by:
hasPrefixLengthin interfaceAddressOrBuilder- Returns:
- Whether the prefixLength field is set.
-
getPrefixLength
public int getPrefixLength()The prefix length if the resource represents an IP range.
optional int32 prefix_length = 453565747;- Specified by:
getPrefixLengthin interfaceAddressOrBuilder- Returns:
- The prefixLength.
-
setPrefixLength
The prefix length if the resource represents an IP range.
optional int32 prefix_length = 453565747;- Parameters:
value- The prefixLength to set.- Returns:
- This builder for chaining.
-
clearPrefixLength
The prefix length if the resource represents an IP range.
optional int32 prefix_length = 453565747;- Returns:
- This builder for chaining.
-
hasPurpose
public boolean hasPurpose()The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;- Specified by:
hasPurposein interfaceAddressOrBuilder- Returns:
- Whether the purpose field is set.
-
getPurpose
The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;- Specified by:
getPurposein interfaceAddressOrBuilder- Returns:
- The purpose.
-
getPurposeBytes
public com.google.protobuf.ByteString getPurposeBytes()The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;- Specified by:
getPurposeBytesin interfaceAddressOrBuilder- Returns:
- The bytes for purpose.
-
setPurpose
The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. 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
The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;- Returns:
- This builder for chaining.
-
setPurposeBytes
The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud Interconnect* configuration. These addresses are regional resources. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. 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.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Specified by:
hasRegionin interfaceAddressOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Specified by:
getRegionin interfaceAddressOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceAddressOrBuilder- Returns:
- The bytes for region.
-
setRegion
Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. *This field is not applicable to global addresses.*
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceAddressOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceAddressOrBuilder- 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:
getSelfLinkBytesin interfaceAddressOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
[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
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
[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.
-
hasStatus
public boolean hasStatus()Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceAddressOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceAddressOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceAddressOrBuilder- Returns:
- The bytes for status.
-
setStatus
Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasSubnetwork
public boolean hasSubnetwork()The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Specified by:
hasSubnetworkin interfaceAddressOrBuilder- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Specified by:
getSubnetworkin interfaceAddressOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.ByteString getSubnetworkBytes()The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Specified by:
getSubnetworkBytesin interfaceAddressOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Returns:
- This builder for chaining.
-
setSubnetworkBytes
The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
getUsersList
public com.google.protobuf.ProtocolStringList getUsersList()[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Specified by:
getUsersListin interfaceAddressOrBuilder- Returns:
- A list containing the users.
-
getUsersCount
public int getUsersCount()[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Specified by:
getUsersCountin interfaceAddressOrBuilder- Returns:
- The count of users.
-
getUsers
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Specified by:
getUsersin interfaceAddressOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The users at the given index.
-
getUsersBytes
public com.google.protobuf.ByteString getUsersBytes(int index) [Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Specified by:
getUsersBytesin interfaceAddressOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the users at the given index.
-
setUsers
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Parameters:
index- The index to set the value at.value- The users to set.- Returns:
- This builder for chaining.
-
addUsers
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Parameters:
value- The users to add.- Returns:
- This builder for chaining.
-
addAllUsers
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Parameters:
values- The users to add.- Returns:
- This builder for chaining.
-
clearUsers
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Returns:
- This builder for chaining.
-
addUsersBytes
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;- Parameters:
value- The bytes of the users to add.- Returns:
- This builder for chaining.
-