Class PublicDelegatedPrefix.Builder (1.56.0)

public static final class PublicDelegatedPrefix.Builder extends GeneratedMessageV3.Builder<PublicDelegatedPrefix.Builder> implements PublicDelegatedPrefixOrBuilder

A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block.

Protobuf type google.cloud.compute.v1.PublicDelegatedPrefix

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPublicDelegatedSubPrefixs(Iterable<? extends PublicDelegatedPrefixPublicDelegatedSubPrefix> values)

public PublicDelegatedPrefix.Builder addAllPublicDelegatedSubPrefixs(Iterable<? extends PublicDelegatedPrefixPublicDelegatedSubPrefix> values)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix>
Returns
Type Description
PublicDelegatedPrefix.Builder

addPublicDelegatedSubPrefixs(PublicDelegatedPrefixPublicDelegatedSubPrefix value)

public PublicDelegatedPrefix.Builder addPublicDelegatedSubPrefixs(PublicDelegatedPrefixPublicDelegatedSubPrefix value)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
value PublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
Type Description
PublicDelegatedPrefix.Builder

addPublicDelegatedSubPrefixs(PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

public PublicDelegatedPrefix.Builder addPublicDelegatedSubPrefixs(PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
builderForValue PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
Type Description
PublicDelegatedPrefix.Builder

addPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix value)

public PublicDelegatedPrefix.Builder addPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix value)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameters
Name Description
index int
value PublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
Type Description
PublicDelegatedPrefix.Builder

addPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

public PublicDelegatedPrefix.Builder addPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameters
Name Description
index int
builderForValue PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
Type Description
PublicDelegatedPrefix.Builder

addPublicDelegatedSubPrefixsBuilder()

public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder addPublicDelegatedSubPrefixsBuilder()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder

addPublicDelegatedSubPrefixsBuilder(int index)

public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder addPublicDelegatedSubPrefixsBuilder(int index)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
index int
Returns
Type Description
PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublicDelegatedPrefix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

build()

public PublicDelegatedPrefix build()
Returns
Type Description
PublicDelegatedPrefix

buildPartial()

public PublicDelegatedPrefix buildPartial()
Returns
Type Description
PublicDelegatedPrefix

clear()

public PublicDelegatedPrefix.Builder clear()
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

clearAllocatablePrefixLength()

public PublicDelegatedPrefix.Builder clearAllocatablePrefixLength()

The allocatable prefix length supported by this public delegated prefix. This field is optional and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and it always defaults to 32.

optional int32 allocatable_prefix_length = 38427446;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearByoipApiVersion()

public PublicDelegatedPrefix.Builder clearByoipApiVersion()

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearCreationTimestamp()

public PublicDelegatedPrefix.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearDescription()

public PublicDelegatedPrefix.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PublicDelegatedPrefix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

clearFingerprint()

public PublicDelegatedPrefix.Builder clearFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearId()

public PublicDelegatedPrefix.Builder clearId()

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearIpCidrRange()

public PublicDelegatedPrefix.Builder clearIpCidrRange()

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearIsLiveMigration()

public PublicDelegatedPrefix.Builder clearIsLiveMigration()

If true, the prefix will be live migrated.

optional bool is_live_migration = 511823856;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearKind()

public PublicDelegatedPrefix.Builder clearKind()

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearMode()

public PublicDelegatedPrefix.Builder clearMode()

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearName()

public PublicDelegatedPrefix.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? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PublicDelegatedPrefix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

clearParentPrefix()

public PublicDelegatedPrefix.Builder clearParentPrefix()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearPublicDelegatedSubPrefixs()

public PublicDelegatedPrefix.Builder clearPublicDelegatedSubPrefixs()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
PublicDelegatedPrefix.Builder

clearRegion()

public PublicDelegatedPrefix.Builder clearRegion()

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

public PublicDelegatedPrefix.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clearStatus()

public PublicDelegatedPrefix.Builder clearStatus()

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

clone()

public PublicDelegatedPrefix.Builder clone()
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

getAllocatablePrefixLength()

public int getAllocatablePrefixLength()

The allocatable prefix length supported by this public delegated prefix. This field is optional and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and it always defaults to 32.

optional int32 allocatable_prefix_length = 38427446;

Returns
Type Description
int

The allocatablePrefixLength.

getByoipApiVersion()

public String getByoipApiVersion()

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Returns
Type Description
String

The byoipApiVersion.

getByoipApiVersionBytes()

public ByteString getByoipApiVersionBytes()

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Returns
Type Description
ByteString

The bytes for byoipApiVersion.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public PublicDelegatedPrefix getDefaultInstanceForType()
Returns
Type Description
PublicDelegatedPrefix

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFingerprint()

public String getFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getId()

public long getId()

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getIpCidrRange()

public String getIpCidrRange()

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getIsLiveMigration()

public boolean getIsLiveMigration()

If true, the prefix will be live migrated.

optional bool is_live_migration = 511823856;

Returns
Type Description
boolean

The isLiveMigration.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getMode()

public String getMode()

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
Type Description
String

The mode.

getModeBytes()

public ByteString getModeBytes()

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
Type Description
ByteString

The bytes for mode.

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? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParentPrefix()

public String getParentPrefix()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
Type Description
String

The parentPrefix.

getParentPrefixBytes()

public ByteString getParentPrefixBytes()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
Type Description
ByteString

The bytes for parentPrefix.

getPublicDelegatedSubPrefixs(int index)

public PublicDelegatedPrefixPublicDelegatedSubPrefix getPublicDelegatedSubPrefixs(int index)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
index int
Returns
Type Description
PublicDelegatedPrefixPublicDelegatedSubPrefix

getPublicDelegatedSubPrefixsBuilder(int index)

public PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder getPublicDelegatedSubPrefixsBuilder(int index)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
index int
Returns
Type Description
PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder

getPublicDelegatedSubPrefixsBuilderList()

public List<PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder> getPublicDelegatedSubPrefixsBuilderList()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
List<Builder>

getPublicDelegatedSubPrefixsCount()

public int getPublicDelegatedSubPrefixsCount()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
int

getPublicDelegatedSubPrefixsList()

public List<PublicDelegatedPrefixPublicDelegatedSubPrefix> getPublicDelegatedSubPrefixsList()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
List<PublicDelegatedPrefixPublicDelegatedSubPrefix>

getPublicDelegatedSubPrefixsOrBuilder(int index)

public PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder getPublicDelegatedSubPrefixsOrBuilder(int index)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
index int
Returns
Type Description
PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder

getPublicDelegatedSubPrefixsOrBuilderList()

public List<? extends PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder> getPublicDelegatedSubPrefixsOrBuilderList()

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefixOrBuilder>

getRegion()

public String getRegion()

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getStatus()

public String getStatus()

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

hasAllocatablePrefixLength()

public boolean hasAllocatablePrefixLength()

The allocatable prefix length supported by this public delegated prefix. This field is optional and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and it always defaults to 32.

optional int32 allocatable_prefix_length = 38427446;

Returns
Type Description
boolean

Whether the allocatablePrefixLength field is set.

hasByoipApiVersion()

public boolean hasByoipApiVersion()

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Returns
Type Description
boolean

Whether the byoipApiVersion field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasFingerprint()

public boolean hasFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasIpCidrRange()

public boolean hasIpCidrRange()

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Returns
Type Description
boolean

Whether the ipCidrRange field is set.

hasIsLiveMigration()

public boolean hasIsLiveMigration()

If true, the prefix will be live migrated.

optional bool is_live_migration = 511823856;

Returns
Type Description
boolean

Whether the isLiveMigration field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasMode()

public boolean hasMode()

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Returns
Type Description
boolean

Whether the mode field is set.

hasName()

public boolean hasName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasParentPrefix()

public boolean hasParentPrefix()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
Type Description
boolean

Whether the parentPrefix field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublicDelegatedPrefix other)

public PublicDelegatedPrefix.Builder mergeFrom(PublicDelegatedPrefix other)
Parameter
Name Description
other PublicDelegatedPrefix
Returns
Type Description
PublicDelegatedPrefix.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublicDelegatedPrefix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PublicDelegatedPrefix.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublicDelegatedPrefix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

removePublicDelegatedSubPrefixs(int index)

public PublicDelegatedPrefix.Builder removePublicDelegatedSubPrefixs(int index)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameter
Name Description
index int
Returns
Type Description
PublicDelegatedPrefix.Builder

setAllocatablePrefixLength(int value)

public PublicDelegatedPrefix.Builder setAllocatablePrefixLength(int value)

The allocatable prefix length supported by this public delegated prefix. This field is optional and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, and it always defaults to 32.

optional int32 allocatable_prefix_length = 38427446;

Parameter
Name Description
value int

The allocatablePrefixLength to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setByoipApiVersion(String value)

public PublicDelegatedPrefix.Builder setByoipApiVersion(String value)

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Parameter
Name Description
value String

The byoipApiVersion to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setByoipApiVersionBytes(ByteString value)

public PublicDelegatedPrefix.Builder setByoipApiVersionBytes(ByteString value)

[Output Only] The version of BYOIP API. Check the ByoipApiVersion enum for the list of possible values.

optional string byoip_api_version = 162683283;

Parameter
Name Description
value ByteString

The bytes for byoipApiVersion to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setCreationTimestamp(String value)

public PublicDelegatedPrefix.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public PublicDelegatedPrefix.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setDescription(String value)

public PublicDelegatedPrefix.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PublicDelegatedPrefix.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublicDelegatedPrefix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides

setFingerprint(String value)

public PublicDelegatedPrefix.Builder setFingerprint(String value)

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public PublicDelegatedPrefix.Builder setFingerprintBytes(ByteString value)

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be provided in order to update the PublicDelegatedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setId(long value)

public PublicDelegatedPrefix.Builder setId(long value)

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setIpCidrRange(String value)

public PublicDelegatedPrefix.Builder setIpCidrRange(String value)

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public PublicDelegatedPrefix.Builder setIpCidrRangeBytes(ByteString value)

The IP address range, in CIDR format, represented by this public delegated prefix.

optional string ip_cidr_range = 98117322;

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setIsLiveMigration(boolean value)

public PublicDelegatedPrefix.Builder setIsLiveMigration(boolean value)

If true, the prefix will be live migrated.

optional bool is_live_migration = 511823856;

Parameter
Name Description
value boolean

The isLiveMigration to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setKind(String value)

public PublicDelegatedPrefix.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setKindBytes(ByteString value)

public PublicDelegatedPrefix.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setMode(String value)

public PublicDelegatedPrefix.Builder setMode(String value)

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Parameter
Name Description
value String

The mode to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setModeBytes(ByteString value)

public PublicDelegatedPrefix.Builder setModeBytes(ByteString value)

The public delegated prefix mode for IPv6 only. Check the Mode enum for the list of possible values.

optional string mode = 3357091;

Parameter
Name Description
value ByteString

The bytes for mode to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setName(String value)

public PublicDelegatedPrefix.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? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PublicDelegatedPrefix.Builder setNameBytes(ByteString value)

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setParentPrefix(String value)

public PublicDelegatedPrefix.Builder setParentPrefix(String value)

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Parameter
Name Description
value String

The parentPrefix to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setParentPrefixBytes(ByteString value)

public PublicDelegatedPrefix.Builder setParentPrefixBytes(ByteString value)

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Parameter
Name Description
value ByteString

The bytes for parentPrefix to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix value)

public PublicDelegatedPrefix.Builder setPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix value)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameters
Name Description
index int
value PublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
Type Description
PublicDelegatedPrefix.Builder

setPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

public PublicDelegatedPrefix.Builder setPublicDelegatedSubPrefixs(int index, PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder builderForValue)

The list of sub public delegated prefixes that exist for this public delegated prefix.

repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044;

Parameters
Name Description
index int
builderForValue PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
Type Description
PublicDelegatedPrefix.Builder

setRegion(String value)

public PublicDelegatedPrefix.Builder setRegion(String value)

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public PublicDelegatedPrefix.Builder setRegionBytes(ByteString value)

[Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PublicDelegatedPrefix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides
public PublicDelegatedPrefix.Builder setSelfLink(String value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public PublicDelegatedPrefix.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setStatus(String value)

public PublicDelegatedPrefix.Builder setStatus(String value)

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public PublicDelegatedPrefix.Builder setStatusBytes(ByteString value)

[Output Only] The status of the public delegated prefix, which can be one of following values: - INITIALIZING The public delegated prefix is being initialized and addresses cannot be created yet. - READY_TO_ANNOUNCE The public delegated prefix is a live migration prefix and is active. - ANNOUNCED The public delegated prefix is active. - DELETING The public delegated prefix is being deprovsioned. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
PublicDelegatedPrefix.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublicDelegatedPrefix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublicDelegatedPrefix.Builder
Overrides