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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.compute.v1.Address
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Address.Builder
addAllUsers(Iterable<String> values)
[Output Only] The URLs of the resources that are using this address.Address.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Address.Builder
addUsers(String value)
[Output Only] The URLs of the resources that are using this address.Address.Builder
addUsersBytes(com.google.protobuf.ByteString value)
[Output Only] The URLs of the resources that are using this address.Address
build()
Address
buildPartial()
Address.Builder
clear()
Address.Builder
clearAddress()
The static IP address represented by this resource.Address.Builder
clearAddressType()
The type of address to reserve, either INTERNAL or EXTERNAL.Address.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.Address.Builder
clearDescription()
An optional description of this resource.Address.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Address.Builder
clearId()
[Output Only] The unique identifier for the resource.Address.Builder
clearIpv6EndpointType()
The endpoint type of this address, which should be VM or NETLB.Address.Builder
clearIpVersion()
The IP version that will be used by this address.Address.Builder
clearKind()
[Output Only] Type of the resource.Address.Builder
clearLabelFingerprint()
A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking.Address.Builder
clearLabels()
Address.Builder
clearName()
Name of the resource.Address.Builder
clearNetwork()
The URL of the network in which to reserve the address.Address.Builder
clearNetworkTier()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.Address.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Address.Builder
clearPrefixLength()
The prefix length if the resource represents an IP range.Address.Builder
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.Address.Builder
clearRegion()
[Output Only] The URL of the region where a regional address resides.Address.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.Address.Builder
clearStatus()
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.Address.Builder
clearSubnetwork()
The URL of the subnetwork in which to reserve the address.Address.Builder
clearUsers()
[Output Only] The URLs of the resources that are using this address.Address.Builder
clone()
boolean
containsLabels(String key)
Labels for this resource.String
getAddress()
The static IP address represented by this resource.com.google.protobuf.ByteString
getAddressBytes()
The static IP address represented by this resource.String
getAddressType()
The type of address to reserve, either INTERNAL or EXTERNAL.com.google.protobuf.ByteString
getAddressTypeBytes()
The type of address to reserve, either INTERNAL or EXTERNAL.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.Address
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
[Output Only] The unique identifier for the resource.String
getIpv6EndpointType()
The endpoint type of this address, which should be VM or NETLB.com.google.protobuf.ByteString
getIpv6EndpointTypeBytes()
The endpoint type of this address, which should be VM or NETLB.String
getIpVersion()
The IP version that will be used by this address.com.google.protobuf.ByteString
getIpVersionBytes()
The IP version that will be used by this address.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getLabelFingerprint()
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.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.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels for this resource.Map<String,String>
getLabelsMap()
Labels for this resource.String
getLabelsOrDefault(String key, String defaultValue)
Labels for this resource.String
getLabelsOrThrow(String key)
Labels for this resource.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Name of the resource.com.google.protobuf.ByteString
getNameBytes()
Name of the resource.String
getNetwork()
The URL of the network in which to reserve the address.com.google.protobuf.ByteString
getNetworkBytes()
The URL of the network in which to reserve the address.String
getNetworkTier()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.com.google.protobuf.ByteString
getNetworkTierBytes()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.int
getPrefixLength()
The prefix length if the resource represents an IP range.String
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.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.String
getRegion()
[Output Only] The URL of the region where a regional address resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] The URL of the region where a regional address resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.String
getStatus()
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.com.google.protobuf.ByteString
getStatusBytes()
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.String
getSubnetwork()
The URL of the subnetwork in which to reserve the address.com.google.protobuf.ByteString
getSubnetworkBytes()
The URL of the subnetwork in which to reserve the address.String
getUsers(int index)
[Output Only] The URLs of the resources that are using this address.com.google.protobuf.ByteString
getUsersBytes(int index)
[Output Only] The URLs of the resources that are using this address.int
getUsersCount()
[Output Only] The URLs of the resources that are using this address.com.google.protobuf.ProtocolStringList
getUsersList()
[Output Only] The URLs of the resources that are using this address.boolean
hasAddress()
The static IP address represented by this resource.boolean
hasAddressType()
The type of address to reserve, either INTERNAL or EXTERNAL.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasIpv6EndpointType()
The endpoint type of this address, which should be VM or NETLB.boolean
hasIpVersion()
The IP version that will be used by this address.boolean
hasKind()
[Output Only] Type of the resource.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.boolean
hasName()
Name of the resource.boolean
hasNetwork()
The URL of the network in which to reserve the address.boolean
hasNetworkTier()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.boolean
hasPrefixLength()
The prefix length if the resource represents an IP range.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.boolean
hasRegion()
[Output Only] The URL of the region where a regional address resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasStatus()
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.boolean
hasSubnetwork()
The URL of the subnetwork in which to reserve the address.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Address.Builder
mergeFrom(Address other)
Address.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Address.Builder
mergeFrom(com.google.protobuf.Message other)
Address.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Address.Builder
putAllLabels(Map<String,String> values)
Labels for this resource.Address.Builder
putLabels(String key, String value)
Labels for this resource.Address.Builder
removeLabels(String key)
Labels for this resource.Address.Builder
setAddress(String value)
The static IP address represented by this resource.Address.Builder
setAddressBytes(com.google.protobuf.ByteString value)
The static IP address represented by this resource.Address.Builder
setAddressType(String value)
The type of address to reserve, either INTERNAL or EXTERNAL.Address.Builder
setAddressTypeBytes(com.google.protobuf.ByteString value)
The type of address to reserve, either INTERNAL or EXTERNAL.Address.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.Address.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.Address.Builder
setDescription(String value)
An optional description of this resource.Address.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.Address.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Address.Builder
setId(long value)
[Output Only] The unique identifier for the resource.Address.Builder
setIpv6EndpointType(String value)
The endpoint type of this address, which should be VM or NETLB.Address.Builder
setIpv6EndpointTypeBytes(com.google.protobuf.ByteString value)
The endpoint type of this address, which should be VM or NETLB.Address.Builder
setIpVersion(String value)
The IP version that will be used by this address.Address.Builder
setIpVersionBytes(com.google.protobuf.ByteString value)
The IP version that will be used by this address.Address.Builder
setKind(String value)
[Output Only] Type of the resource.Address.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.Address.Builder
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.Address.Builder
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.Address.Builder
setName(String value)
Name of the resource.Address.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.Address.Builder
setNetwork(String value)
The URL of the network in which to reserve the address.Address.Builder
setNetworkBytes(com.google.protobuf.ByteString value)
The URL of the network in which to reserve the address.Address.Builder
setNetworkTier(String value)
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.Address.Builder
setNetworkTierBytes(com.google.protobuf.ByteString value)
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD.Address.Builder
setPrefixLength(int value)
The prefix length if the resource represents an IP range.Address.Builder
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 resources.Address.Builder
setPurposeBytes(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 resources.Address.Builder
setRegion(String value)
[Output Only] The URL of the region where a regional address resides.Address.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] The URL of the region where a regional address resides.Address.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Address.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.Address.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.Address.Builder
setStatus(String value)
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.Address.Builder
setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE.Address.Builder
setSubnetwork(String value)
The URL of the subnetwork in which to reserve the address.Address.Builder
setSubnetworkBytes(com.google.protobuf.ByteString value)
The URL of the subnetwork in which to reserve the address.Address.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Address.Builder
setUsers(int index, String value)
[Output Only] The URLs of the resources that are using this address.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
clear
public Address.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<Address.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<Address.Builder>
-
getDefaultInstanceForType
public Address getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Address build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Address buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Address.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<Address.Builder>
-
setField
public Address.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<Address.Builder>
-
clearField
public Address.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<Address.Builder>
-
clearOneof
public Address.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<Address.Builder>
-
setRepeatedField
public Address.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<Address.Builder>
-
addRepeatedField
public Address.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<Address.Builder>
-
mergeFrom
public Address.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Address.Builder>
-
mergeFrom
public Address.Builder mergeFrom(Address other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
mergeFrom
public Address.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<Address.Builder>
- Throws:
IOException
-
hasAddress
public boolean hasAddress()
The static IP address represented by this resource.
optional string address = 462920692;
- Specified by:
hasAddress
in interfaceAddressOrBuilder
- Returns:
- Whether the address field is set.
-
getAddress
public String getAddress()
The static IP address represented by this resource.
optional string address = 462920692;
- Specified by:
getAddress
in 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:
getAddressBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for address.
-
setAddress
public Address.Builder setAddress(String value)
The static IP address represented by this resource.
optional string address = 462920692;
- Parameters:
value
- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
public Address.Builder clearAddress()
The static IP address represented by this resource.
optional string address = 462920692;
- Returns:
- This builder for chaining.
-
setAddressBytes
public Address.Builder setAddressBytes(com.google.protobuf.ByteString value)
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 or EXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;
- Specified by:
hasAddressType
in interfaceAddressOrBuilder
- Returns:
- Whether the addressType field is set.
-
getAddressType
public String getAddressType()
The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;
- Specified by:
getAddressType
in interfaceAddressOrBuilder
- Returns:
- The addressType.
-
getAddressTypeBytes
public com.google.protobuf.ByteString getAddressTypeBytes()
The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. Check the AddressType enum for the list of possible values.
optional string address_type = 264307877;
- Specified by:
getAddressTypeBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for addressType.
-
setAddressType
public Address.Builder setAddressType(String value)
The type of address to reserve, either INTERNAL or EXTERNAL. 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
public Address.Builder clearAddressType()
The type of address to reserve, either INTERNAL or EXTERNAL. 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
public Address.Builder setAddressTypeBytes(com.google.protobuf.ByteString value)
The type of address to reserve, either INTERNAL or EXTERNAL. 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] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceAddressOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceAddressOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Address.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Address.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Address.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceAddressOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public Address.Builder setDescription(String value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Address.Builder clearDescription()
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Address.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this field when you create the resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceAddressOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceAddressOrBuilder
- Returns:
- The id.
-
setId
public Address.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Address.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
hasIpVersion
public boolean hasIpVersion()
The IP version that will be used by this address. Valid options are IPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;
- Specified by:
hasIpVersion
in interfaceAddressOrBuilder
- Returns:
- Whether the ipVersion field is set.
-
getIpVersion
public String getIpVersion()
The IP version that will be used by this address. Valid options are IPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;
- Specified by:
getIpVersion
in interfaceAddressOrBuilder
- Returns:
- The ipVersion.
-
getIpVersionBytes
public com.google.protobuf.ByteString getIpVersionBytes()
The IP version that will be used by this address. Valid options are IPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;
- Specified by:
getIpVersionBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for ipVersion.
-
setIpVersion
public Address.Builder setIpVersion(String value)
The IP version that will be used by this address. Valid options are IPV4 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
public Address.Builder clearIpVersion()
The IP version that will be used by this address. Valid options are IPV4 or IPV6. Check the IpVersion enum for the list of possible values.
optional string ip_version = 294959552;
- Returns:
- This builder for chaining.
-
setIpVersionBytes
public Address.Builder setIpVersionBytes(com.google.protobuf.ByteString value)
The IP version that will be used by this address. Valid options are IPV4 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:
hasIpv6EndpointType
in interfaceAddressOrBuilder
- Returns:
- Whether the ipv6EndpointType field is set.
-
getIpv6EndpointType
public String 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:
getIpv6EndpointType
in 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:
getIpv6EndpointTypeBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for ipv6EndpointType.
-
setIpv6EndpointType
public Address.Builder setIpv6EndpointType(String value)
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
public Address.Builder 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
public Address.Builder setIpv6EndpointTypeBytes(com.google.protobuf.ByteString value)
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] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceAddressOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceAddressOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public Address.Builder setKind(String value)
[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
public Address.Builder clearKind()
[Output Only] Type of the resource. Always compute#address for addresses.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public Address.Builder setKindBytes(com.google.protobuf.ByteString value)
[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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;
- Specified by:
hasLabelFingerprint
in interfaceAddressOrBuilder
- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
public String 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;
- Specified by:
getLabelFingerprint
in 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 error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an Address.
optional string label_fingerprint = 178124825;
- Specified by:
getLabelFingerprintBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
public Address.Builder 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. 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 error 412 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
public Address.Builder 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 error 412 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
public Address.Builder 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. 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 error 412 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:AddressOrBuilder
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
- Specified by:
getLabelsCount
in interfaceAddressOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
- Specified by:
containsLabels
in interfaceAddressOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceAddressOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
- Specified by:
getLabelsMap
in interfaceAddressOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrDefault
in interfaceAddressOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrThrow
in interfaceAddressOrBuilder
-
clearLabels
public Address.Builder clearLabels()
-
removeLabels
public Address.Builder removeLabels(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Address.Builder putLabels(String key, String value)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
putAllLabels
public Address.Builder putAllLabels(Map<String,String> values)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. 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 with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Specified by:
hasName
in interfaceAddressOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Specified by:
getName
in 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 with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for name.
-
setName
public Address.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Address.Builder clearName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Returns:
- This builder for chaining.
-
setNameBytes
public Address.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
optional string name = 3373707;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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 the VPC_PEERING purpose.
optional string network = 232872494;
- Specified by:
hasNetwork
in interfaceAddressOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public String getNetwork()
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
optional string network = 232872494;
- Specified by:
getNetwork
in 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 the VPC_PEERING purpose.
optional string network = 232872494;
- Specified by:
getNetworkBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for network.
-
setNetwork
public Address.Builder setNetwork(String value)
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
optional string network = 232872494;
- Parameters:
value
- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
public Address.Builder clearNetwork()
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
optional string network = 232872494;
- Returns:
- This builder for chaining.
-
setNetworkBytes
public Address.Builder setNetworkBytes(com.google.protobuf.ByteString value)
The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_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 or STANDARD. 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:
hasNetworkTier
in interfaceAddressOrBuilder
- Returns:
- Whether the networkTier field is set.
-
getNetworkTier
public String getNetworkTier()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. 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:
getNetworkTier
in 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 or STANDARD. 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:
getNetworkTierBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for networkTier.
-
setNetworkTier
public Address.Builder setNetworkTier(String value)
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. 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
public Address.Builder clearNetworkTier()
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. 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
public Address.Builder setNetworkTierBytes(com.google.protobuf.ByteString value)
This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. 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:
hasPrefixLength
in 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:
getPrefixLength
in interfaceAddressOrBuilder
- Returns:
- The prefixLength.
-
setPrefixLength
public Address.Builder setPrefixLength(int value)
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
public Address.Builder 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:
hasPurpose
in interfaceAddressOrBuilder
- Returns:
- Whether the purpose field is set.
-
getPurpose
public String 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:
getPurpose
in 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:
getPurposeBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for purpose.
-
setPurpose
public Address.Builder 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 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
public Address.Builder 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
public Address.Builder setPurposeBytes(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 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] 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:
hasRegion
in interfaceAddressOrBuilder
- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[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:
getRegion
in interfaceAddressOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[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:
getRegionBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public Address.Builder setRegion(String value)
[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
public Address.Builder clearRegion()
[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
public Address.Builder setRegionBytes(com.google.protobuf.ByteString value)
[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:
hasSelfLink
in interfaceAddressOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in 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:
getSelfLinkBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public Address.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Address.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Address.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()
[Output Only] The status of the address, which can be one of RESERVING, 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:
hasStatus
in interfaceAddressOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public String getStatus()
[Output Only] The status of the address, which can be one of RESERVING, 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:
getStatus
in interfaceAddressOrBuilder
- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the address, which can be one of RESERVING, 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:
getStatusBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for status.
-
setStatus
public Address.Builder setStatus(String value)
[Output Only] The status of the address, which can be one of RESERVING, 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
public Address.Builder clearStatus()
[Output Only] The status of the address, which can be one of RESERVING, 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
public Address.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the address, which can be one of RESERVING, 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 a GCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;
- Specified by:
hasSubnetwork
in interfaceAddressOrBuilder
- Returns:
- Whether the subnetwork field is set.
-
getSubnetwork
public String 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 a GCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;
- Specified by:
getSubnetwork
in 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 a GCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;
- Specified by:
getSubnetworkBytes
in interfaceAddressOrBuilder
- Returns:
- The bytes for subnetwork.
-
setSubnetwork
public Address.Builder setSubnetwork(String value)
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 a GCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;
- Parameters:
value
- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
public Address.Builder 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 a GCE_ENDPOINT or DNS_RESOLVER purpose.
optional string subnetwork = 307827694;
- Returns:
- This builder for chaining.
-
setSubnetworkBytes
public Address.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
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 a GCE_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:
getUsersList
in 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:
getUsersCount
in interfaceAddressOrBuilder
- Returns:
- The count of users.
-
getUsers
public String getUsers(int index)
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;
- Specified by:
getUsers
in 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:
getUsersBytes
in interfaceAddressOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the users at the given index.
-
setUsers
public Address.Builder setUsers(int index, String value)
[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
public Address.Builder addUsers(String value)
[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
public Address.Builder addAllUsers(Iterable<String> values)
[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
public Address.Builder clearUsers()
[Output Only] The URLs of the resources that are using this address.
repeated string users = 111578632;
- Returns:
- This builder for chaining.
-
addUsersBytes
public Address.Builder addUsersBytes(com.google.protobuf.ByteString value)
[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.
-
setUnknownFields
public final Address.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
mergeUnknownFields
public final Address.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Address.Builder>
-
-